public class DeviceStateChangeCreateRequest extends DeviceEventCreateRequest implements IDeviceStateChangeCreateRequest, java.io.Serializable
DeviceEventCreateRequest.Builder<T extends DeviceEventCreateRequest>
Constructor and Description |
---|
DeviceStateChangeCreateRequest(StateChangeCategory category,
StateChangeType type,
java.lang.String previousState,
java.lang.String newState) |
Modifier and Type | Method and Description |
---|---|
StateChangeCategory |
getCategory()
Get category of state change.
|
java.util.Map<java.lang.String,java.lang.String> |
getData()
Get data associated with the state change.
|
java.lang.String |
getNewState()
Get the requested new state.
|
java.lang.String |
getPreviousState()
Get the previous (or assumed previous) state.
|
StateChangeType |
getType()
Get type of state change.
|
void |
setCategory(StateChangeCategory category) |
void |
setData(java.util.Map<java.lang.String,java.lang.String> data) |
void |
setNewState(java.lang.String newState) |
void |
setPreviousState(java.lang.String previousState) |
void |
setType(StateChangeType type) |
getEventDate, getMetadata, isUpdateState, setEventDate, setMetadata, setUpdateState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventDate, getMetadata, isUpdateState, setUpdateState
public DeviceStateChangeCreateRequest(StateChangeCategory category, StateChangeType type, java.lang.String previousState, java.lang.String newState)
public StateChangeCategory getCategory()
IDeviceStateChangeCreateRequest
getCategory
in interface IDeviceStateChangeCreateRequest
public void setCategory(StateChangeCategory category)
public StateChangeType getType()
IDeviceStateChangeCreateRequest
getType
in interface IDeviceStateChangeCreateRequest
public void setType(StateChangeType type)
public java.lang.String getPreviousState()
IDeviceStateChangeCreateRequest
getPreviousState
in interface IDeviceStateChangeCreateRequest
public void setPreviousState(java.lang.String previousState)
public java.lang.String getNewState()
IDeviceStateChangeCreateRequest
getNewState
in interface IDeviceStateChangeCreateRequest
public void setNewState(java.lang.String newState)
public java.util.Map<java.lang.String,java.lang.String> getData()
IDeviceStateChangeCreateRequest
getData
in interface IDeviceStateChangeCreateRequest
public void setData(java.util.Map<java.lang.String,java.lang.String> data)