@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DevicePositionUpdate extends Object implements Serializable, Cloneable, StructuredPojo
Contains the position update details for a device.
Constructor and Description |
---|
DevicePositionUpdate() |
Modifier and Type | Method and Description |
---|---|
DevicePositionUpdate |
clone() |
boolean |
equals(Object obj) |
String |
getDeviceId()
The device associated to the position update.
|
List<Double> |
getPosition()
The latest device position defined in WGS 84
format:
[X or longitude, Y or latitude] . |
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 |
setDeviceId(String deviceId)
The device associated to the position update.
|
void |
setPosition(Collection<Double> position)
The latest device position defined in WGS 84
format:
[X or longitude, Y or latitude] . |
void |
setSampleTime(Date sampleTime)
The timestamp at which the device's position was determined.
|
String |
toString()
Returns a string representation of this object.
|
DevicePositionUpdate |
withDeviceId(String deviceId)
The device associated to the position update.
|
DevicePositionUpdate |
withPosition(Collection<Double> position)
The latest device position defined in WGS 84
format:
[X or longitude, Y or latitude] . |
DevicePositionUpdate |
withPosition(Double... position)
The latest device position defined in WGS 84
format:
[X or longitude, Y or latitude] . |
DevicePositionUpdate |
withSampleTime(Date sampleTime)
The timestamp at which the device's position was determined.
|
public void setDeviceId(String deviceId)
The device associated to the position update.
deviceId
- The device associated to the position update.public String getDeviceId()
The device associated to the position update.
public DevicePositionUpdate withDeviceId(String deviceId)
The device associated to the position update.
deviceId
- The device associated to the position update.public List<Double> getPosition()
The latest device position defined in WGS 84
format: [X or longitude, Y or latitude]
.
[X or longitude, Y or latitude]
.public void setPosition(Collection<Double> position)
The latest device position defined in WGS 84
format: [X or longitude, Y or latitude]
.
position
- The latest device position defined in WGS
84 format: [X or longitude, Y or latitude]
.public DevicePositionUpdate withPosition(Double... position)
The latest device position defined in WGS 84
format: [X or longitude, Y or latitude]
.
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 latest device position defined in WGS
84 format: [X or longitude, Y or latitude]
.public DevicePositionUpdate withPosition(Collection<Double> position)
The latest device position defined in WGS 84
format: [X or longitude, Y or latitude]
.
position
- The latest device position defined in WGS
84 format: [X or longitude, Y or latitude]
.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 DevicePositionUpdate 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 DevicePositionUpdate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.