hueplusplus
1.0.0
|
Parameters for creating a new Schedule. More...
#include <hueplusplus/Schedule.h>
Public Member Functions | |
CreateSchedule & | setName (const std::string &name) |
Set name. More... | |
CreateSchedule & | setDescription (const std::string &description) |
Set description. More... | |
CreateSchedule & | setCommand (const Action &command) |
Set command. More... | |
CreateSchedule & | setTime (const time::TimePattern &time) |
Set time. More... | |
CreateSchedule & | setStatus (bool enabled) |
Set status. More... | |
CreateSchedule & | setAutodelete (bool autodelete) |
Set autodelete. More... | |
CreateSchedule & | setRecycle (bool recycle) |
Set recycle. More... | |
nlohmann::json | getRequest () const |
Get request to create the schedule. More... | |
Parameters for creating a new Schedule.
Can be used like a builder object with chained calls.
nlohmann::json hueplusplus::CreateSchedule::getRequest | ( | ) | const |
Get request to create the schedule.
CreateSchedule & hueplusplus::CreateSchedule::setAutodelete | ( | bool | autodelete | ) |
Set autodelete.
CreateSchedule & hueplusplus::CreateSchedule::setCommand | ( | const Action & | command | ) |
Set command.
CreateSchedule & hueplusplus::CreateSchedule::setDescription | ( | const std::string & | description | ) |
Set description.
CreateSchedule & hueplusplus::CreateSchedule::setName | ( | const std::string & | name | ) |
Set name.
CreateSchedule & hueplusplus::CreateSchedule::setRecycle | ( | bool | recycle | ) |
Set recycle.
When recycle is true, it is deleted when no resourcelinks refer to it.
CreateSchedule & hueplusplus::CreateSchedule::setStatus | ( | bool | enabled | ) |
Set status.
CreateSchedule & hueplusplus::CreateSchedule::setTime | ( | const time::TimePattern & | time | ) |
Set time.