@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetDevicePositionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetDevicePositionResult() |
Modifier and Type | Method and Description |
---|---|
GetDevicePositionResult |
addPositionPropertiesEntry(String key,
String value)
Add a single PositionProperties entry
|
GetDevicePositionResult |
clearPositionPropertiesEntries()
Removes all the entries added into PositionProperties.
|
GetDevicePositionResult |
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 |
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.
|
GetDevicePositionResult |
withAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
|
GetDevicePositionResult |
withDeviceId(String deviceId)
The device whose position you retrieved.
|
GetDevicePositionResult |
withPosition(Collection<Double> position)
The last known device position.
|
GetDevicePositionResult |
withPosition(Double... position)
The last known device position.
|
GetDevicePositionResult |
withPositionProperties(Map<String,String> positionProperties)
The properties associated with the position.
|
GetDevicePositionResult |
withReceivedTime(Date receivedTime)
The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
GetDevicePositionResult |
withSampleTime(Date sampleTime)
The timestamp at which the device's position was determined.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 GetDevicePositionResult 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 GetDevicePositionResult 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 GetDevicePositionResult 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 GetDevicePositionResult 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 GetDevicePositionResult withPositionProperties(Map<String,String> positionProperties)
The properties associated with the position.
positionProperties
- The properties associated with the position.public GetDevicePositionResult addPositionPropertiesEntry(String key, String value)
public GetDevicePositionResult 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 GetDevicePositionResult 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 GetDevicePositionResult 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 GetDevicePositionResult clone()