@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 |
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 |
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.
|
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 |
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 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 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()