@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)
Marshalls this structured data using the given
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; useful for testing and debugging.
|
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.DeviceEventType
public String getType()
The type of device event.
DeviceEventType
public DeviceEvent withType(String type)
The type of device event.
type
- The type of device event.DeviceEventType
public DeviceEvent withType(DeviceEventType type)
The type of device event.
type
- The type of device event.DeviceEventType
public 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 Object
Object.toString()
public DeviceEvent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.