@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeviceEvent extends Object implements Serializable, Cloneable, StructuredPojo
The list of device events.
| Constructor and Description |
|---|
DeviceEvent() |
| Modifier and Type | Method and Description |
|---|---|
DeviceEvent |
clone() |
boolean |
equals(Object obj) |
Date |
getTimestamp()
The time (in epoch) when the event occurred.
|
String |
getType()
The type of device event.
|
String |
getValue()
The value of the event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setTimestamp(Date timestamp)
The time (in epoch) when the event occurred.
|
void |
setType(String type)
The type of device event.
|
void |
setValue(String value)
The value of the event.
|
String |
toString()
Returns a string representation of this object.
|
DeviceEvent |
withTimestamp(Date timestamp)
The time (in epoch) when the event occurred.
|
DeviceEvent |
withType(DeviceEventType type)
The type of device event.
|
DeviceEvent |
withType(String type)
The type of device event.
|
DeviceEvent |
withValue(String value)
The value of the event.
|
public void setType(String type)
The type of device event.
type - The type of device event.DeviceEventTypepublic String getType()
The type of device event.
DeviceEventTypepublic DeviceEvent withType(String type)
The type of device event.
type - The type of device event.DeviceEventTypepublic DeviceEvent withType(DeviceEventType type)
The type of device event.
type - The type of device event.DeviceEventTypepublic void setValue(String value)
The value of the event.
value - The value of the event.public String getValue()
The value of the event.
public DeviceEvent withValue(String value)
The value of the event.
value - The value of the event.public void setTimestamp(Date timestamp)
The time (in epoch) when the event occurred.
timestamp - The time (in epoch) when the event occurred.public Date getTimestamp()
The time (in epoch) when the event occurred.
public DeviceEvent withTimestamp(Date timestamp)
The time (in epoch) when the event occurred.
timestamp - The time (in epoch) when the event occurred.public String toString()
toString in class ObjectObject.toString()public DeviceEvent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.