@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 recieved the position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
Date |
getSampleTime()
The timestamp for when the position was detected and sampled in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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 recieved the position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
void |
setSampleTime(Date sampleTime)
The timestamp for when the position was detected and sampled in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
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 recieved the position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
DevicePosition |
withSampleTime(Date sampleTime)
The timestamp for when the position was detected and sampled in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
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 recieved the position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
receivedTime
- The timestamp for when the tracker resource recieved the position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public Date getReceivedTime()
The timestamp for when the tracker resource recieved the 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 recieved the position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
receivedTime
- The timestamp for when the tracker resource recieved the position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public void setSampleTime(Date sampleTime)
The timestamp for when the position was detected and sampled in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
sampleTime
- The timestamp for when the position was detected and sampled in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public Date getSampleTime()
The timestamp for when the position was detected and sampled in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
YYYY-MM-DDThh:mm:ss.sssZ
.public DevicePosition withSampleTime(Date sampleTime)
The timestamp for when the position was detected and sampled in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
sampleTime
- The timestamp for when the position was detected and sampled in 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.