@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 |
addPositionPropertiesEntry(String key,
String value)
Add a single PositionProperties entry
|
DevicePosition |
clearPositionPropertiesEntries()
Removes all the entries added into PositionProperties.
|
DevicePosition |
clone() |
boolean |
equals(Object obj) |
PositionalAccuracy |
getAccuracy()
The accuracy of the device position.
|
String |
getDeviceId()
The device whose position you retrieved.
|
List<Double> |
getPosition()
The last known device position.
|
Map<String,String> |
getPositionProperties()
The properties associated with the 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)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
|
void |
setDeviceId(String deviceId)
The device whose position you retrieved.
|
void |
setPosition(Collection<Double> position)
The last known device position.
|
void |
setPositionProperties(Map<String,String> positionProperties)
The properties associated with the 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 |
withAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
|
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 |
withPositionProperties(Map<String,String> positionProperties)
The properties associated with the 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 setAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
accuracy
- The accuracy of the device position.public PositionalAccuracy getAccuracy()
The accuracy of the device position.
public DevicePosition withAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
accuracy
- The accuracy of the device position.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 Map<String,String> getPositionProperties()
The properties associated with the position.
public void setPositionProperties(Map<String,String> positionProperties)
The properties associated with the position.
positionProperties
- The properties associated with the position.public DevicePosition withPositionProperties(Map<String,String> positionProperties)
The properties associated with the position.
positionProperties
- The properties associated with the position.public DevicePosition addPositionPropertiesEntry(String key, String value)
public DevicePosition clearPositionPropertiesEntries()
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 Object
Object.toString()
public DevicePosition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.