public class DeviceEventCreateRequest extends java.lang.Object implements IDeviceEventCreateRequest, java.io.Serializable
DeviceEvent
subclasses.Modifier and Type | Class and Description |
---|---|
static class |
DeviceEventCreateRequest.Builder<T extends DeviceEventCreateRequest>
Uses builder pattern to create device event requests.
|
Constructor and Description |
---|
DeviceEventCreateRequest() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getEventDate()
Get the date on which the event occurred.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Get metadata values.
|
boolean |
isUpdateState()
Indicates whether state information on the device assignment should be
updated to reflect new event.
|
void |
setEventDate(java.util.Date eventDate) |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
void |
setUpdateState(boolean updateState)
Set indicator for whether state information on the device assignment
should be updated.
|
public java.util.Date getEventDate()
IDeviceEventCreateRequest
getEventDate
in interface IDeviceEventCreateRequest
public void setEventDate(java.util.Date eventDate)
public boolean isUpdateState()
IDeviceEventCreateRequest
isUpdateState
in interface IDeviceEventCreateRequest
public void setUpdateState(boolean updateState)
IDeviceEventCreateRequest
setUpdateState
in interface IDeviceEventCreateRequest
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
IDeviceEventCreateRequest
getMetadata
in interface IDeviceEventCreateRequest
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)