@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DevicePositionUpdate extends Object implements Serializable, Cloneable, StructuredPojo
Contains the position update details for a device.
| Constructor and Description |
|---|
DevicePositionUpdate() |
| Modifier and Type | Method and Description |
|---|---|
DevicePositionUpdate |
clone() |
boolean |
equals(Object obj) |
String |
getDeviceId()
The device associated to the position update.
|
List<Double> |
getPosition()
The latest device position defined in WGS 84
format:
[Xlongitude, Ylatitude]. |
Date |
getSampleTime()
The timestamp for when the position update was received in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDeviceId(String deviceId)
The device associated to the position update.
|
void |
setPosition(Collection<Double> position)
The latest device position defined in WGS 84
format:
[Xlongitude, Ylatitude]. |
void |
setSampleTime(Date sampleTime)
The timestamp for when the position update was received in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ |
String |
toString()
Returns a string representation of this object.
|
DevicePositionUpdate |
withDeviceId(String deviceId)
The device associated to the position update.
|
DevicePositionUpdate |
withPosition(Collection<Double> position)
The latest device position defined in WGS 84
format:
[Xlongitude, Ylatitude]. |
DevicePositionUpdate |
withPosition(Double... position)
The latest device position defined in WGS 84
format:
[Xlongitude, Ylatitude]. |
DevicePositionUpdate |
withSampleTime(Date sampleTime)
The timestamp for when the position update was received in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ |
public void setDeviceId(String deviceId)
The device associated to the position update.
deviceId - The device associated to the position update.public String getDeviceId()
The device associated to the position update.
public DevicePositionUpdate withDeviceId(String deviceId)
The device associated to the position update.
deviceId - The device associated to the position update.public List<Double> getPosition()
The latest device position defined in WGS 84
format: [Xlongitude, Ylatitude].
[Xlongitude, Ylatitude].public void setPosition(Collection<Double> position)
The latest device position defined in WGS 84
format: [Xlongitude, Ylatitude].
position - The latest device position defined in WGS
84 format: [Xlongitude, Ylatitude].public DevicePositionUpdate withPosition(Double... position)
The latest device position defined in WGS 84
format: [Xlongitude, Ylatitude].
NOTE: This method appends the values to the existing list (if any). Use
setPosition(java.util.Collection) or withPosition(java.util.Collection) if you want to override
the existing values.
position - The latest device position defined in WGS
84 format: [Xlongitude, Ylatitude].public DevicePositionUpdate withPosition(Collection<Double> position)
The latest device position defined in WGS 84
format: [Xlongitude, Ylatitude].
position - The latest device position defined in WGS
84 format: [Xlongitude, Ylatitude].public void setSampleTime(Date sampleTime)
The timestamp for when the position update was received in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
sampleTime - The timestamp for when the position update was received in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZpublic Date getSampleTime()
The timestamp for when the position update was received in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
YYYY-MM-DDThh:mm:ss.sssZpublic DevicePositionUpdate withSampleTime(Date sampleTime)
The timestamp for when the position update was received in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
sampleTime - The timestamp for when the position update was received in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZpublic String toString()
toString in class ObjectObject.toString()public DevicePositionUpdate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.