@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListDevicePositionsResponseEntry extends Object implements Serializable, Cloneable, StructuredPojo
Contains the tracker resource details.
Constructor and Description |
---|
ListDevicePositionsResponseEntry() |
Modifier and Type | Method and Description |
---|---|
ListDevicePositionsResponseEntry |
addPositionPropertiesEntry(String key,
String value)
Add a single PositionProperties entry
|
ListDevicePositionsResponseEntry |
clearPositionPropertiesEntries()
Removes all the entries added into PositionProperties.
|
ListDevicePositionsResponseEntry |
clone() |
boolean |
equals(Object obj) |
PositionalAccuracy |
getAccuracy()
The accuracy of the device position.
|
String |
getDeviceId()
The ID of the device for this position.
|
List<Double> |
getPosition()
The last known device position.
|
Map<String,String> |
getPositionProperties()
The properties associated with the position.
|
Date |
getSampleTime()
The timestamp at which the device 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 ID of the device for this position.
|
void |
setPosition(Collection<Double> position)
The last known device position.
|
void |
setPositionProperties(Map<String,String> positionProperties)
The properties associated with the position.
|
void |
setSampleTime(Date sampleTime)
The timestamp at which the device position was determined.
|
String |
toString()
Returns a string representation of this object.
|
ListDevicePositionsResponseEntry |
withAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
|
ListDevicePositionsResponseEntry |
withDeviceId(String deviceId)
The ID of the device for this position.
|
ListDevicePositionsResponseEntry |
withPosition(Collection<Double> position)
The last known device position.
|
ListDevicePositionsResponseEntry |
withPosition(Double... position)
The last known device position.
|
ListDevicePositionsResponseEntry |
withPositionProperties(Map<String,String> positionProperties)
The properties associated with the position.
|
ListDevicePositionsResponseEntry |
withSampleTime(Date sampleTime)
The timestamp at which the device position was determined.
|
public void setDeviceId(String deviceId)
The ID of the device for this position.
deviceId
- The ID of the device for this position.public String getDeviceId()
The ID of the device for this position.
public ListDevicePositionsResponseEntry withDeviceId(String deviceId)
The ID of the device for this position.
deviceId
- The ID of the device for this position.public void setSampleTime(Date sampleTime)
The timestamp at which the device position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
sampleTime
- The timestamp at which the device position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public Date getSampleTime()
The timestamp at which the device position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
YYYY-MM-DDThh:mm:ss.sssZ
.public ListDevicePositionsResponseEntry withSampleTime(Date sampleTime)
The timestamp at which the device position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
sampleTime
- The timestamp at which the device position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public List<Double> getPosition()
The last known device position. Empty if no positions currently stored.
public void setPosition(Collection<Double> position)
The last known device position. Empty if no positions currently stored.
position
- The last known device position. Empty if no positions currently stored.public ListDevicePositionsResponseEntry withPosition(Double... position)
The last known device position. Empty if no positions currently stored.
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. Empty if no positions currently stored.public ListDevicePositionsResponseEntry withPosition(Collection<Double> position)
The last known device position. Empty if no positions currently stored.
position
- The last known device position. Empty if no positions currently stored.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 ListDevicePositionsResponseEntry withAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
accuracy
- The accuracy of the 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 ListDevicePositionsResponseEntry withPositionProperties(Map<String,String> positionProperties)
The properties associated with the position.
positionProperties
- The properties associated with the position.public ListDevicePositionsResponseEntry addPositionPropertiesEntry(String key, String value)
public ListDevicePositionsResponseEntry clearPositionPropertiesEntries()
public String toString()
toString
in class Object
Object.toString()
public ListDevicePositionsResponseEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.