@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DevicePosition extends Object implements Serializable, Cloneable, StructuredPojo
Contains the device position details.
| Constructor and Description |
|---|
DevicePosition() |
| Modifier and Type | Method and Description |
|---|---|
DevicePosition |
clone() |
boolean |
equals(Object obj) |
String |
getDeviceId()
The device whose position you retrieved.
|
List<Double> |
getPosition()
The last known device position.
|
Date |
getReceivedTime()
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. |
Date |
getSampleTime()
The timestamp at which the device's position was determined.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setDeviceId(String deviceId)
The device whose position you retrieved.
|
void |
setPosition(Collection<Double> position)
The last known device position.
|
void |
setReceivedTime(Date receivedTime)
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. |
void |
setSampleTime(Date sampleTime)
The timestamp at which the device's position was determined.
|
String |
toString()
Returns a string representation of this object.
|
DevicePosition |
withDeviceId(String deviceId)
The device whose position you retrieved.
|
DevicePosition |
withPosition(Collection<Double> position)
The last known device position.
|
DevicePosition |
withPosition(Double... position)
The last known device position.
|
DevicePosition |
withReceivedTime(Date receivedTime)
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. |
DevicePosition |
withSampleTime(Date sampleTime)
The timestamp at which the device's position was determined.
|
public void setDeviceId(String deviceId)
The device whose position you retrieved.
deviceId - The device whose position you retrieved.public String getDeviceId()
The device whose position you retrieved.
public DevicePosition withDeviceId(String deviceId)
The device whose position you retrieved.
deviceId - The device whose position you retrieved.public List<Double> getPosition()
The last known device position.
public void setPosition(Collection<Double> position)
The last known device position.
position - The last known device position.public DevicePosition withPosition(Double... position)
The last known device position.
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 last known device position.public DevicePosition withPosition(Collection<Double> position)
The last known device position.
position - The last known device position.public void setReceivedTime(Date receivedTime)
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
receivedTime - The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.public Date getReceivedTime()
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
YYYY-MM-DDThh:mm:ss.sssZ.public DevicePosition withReceivedTime(Date receivedTime)
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
receivedTime - The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.public void setSampleTime(Date sampleTime)
The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
sampleTime - The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.public Date getSampleTime()
The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
YYYY-MM-DDThh:mm:ss.sssZ.public DevicePosition withSampleTime(Date sampleTime)
The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
sampleTime - The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.public String toString()
toString in class ObjectObject.toString()public DevicePosition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.