@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 |
addPositionPropertiesEntry(String key,
String value)
Add a single PositionProperties entry
|
DevicePositionUpdate |
clearPositionPropertiesEntries()
Removes all the entries added into PositionProperties.
|
DevicePositionUpdate |
clone() |
boolean |
equals(Object obj) |
PositionalAccuracy |
getAccuracy()
The accuracy of the device position.
|
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] . |
Map<String,String> |
getPositionProperties()
Associates one of more properties with the position update.
|
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 |
setAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
|
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 |
setPositionProperties(Map<String,String> positionProperties)
Associates one of more properties with the position update.
|
void |
setSampleTime(Date sampleTime)
The timestamp at which the device's position was determined.
|
String |
toString()
Returns a string representation of this object.
|
DevicePositionUpdate |
withAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
|
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 |
withPositionProperties(Map<String,String> positionProperties)
Associates one of more properties with the position update.
|
DevicePositionUpdate |
withSampleTime(Date sampleTime)
The timestamp at which the device's position was determined.
|
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 DevicePositionUpdate withAccuracy(PositionalAccuracy accuracy)
The accuracy of the device position.
accuracy
- The accuracy of the device position.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 Map<String,String> getPositionProperties()
Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger.
Format: "key" : "value"
Format: "key" : "value"
public void setPositionProperties(Map<String,String> positionProperties)
Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger.
Format: "key" : "value"
positionProperties
- Associates one of more properties with the position update. A property is a key-value pair stored with the
position update and added to any geofence event the update may trigger.
Format: "key" : "value"
public DevicePositionUpdate withPositionProperties(Map<String,String> positionProperties)
Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger.
Format: "key" : "value"
positionProperties
- Associates one of more properties with the position update. A property is a key-value pair stored with the
position update and added to any geofence event the update may trigger.
Format: "key" : "value"
public DevicePositionUpdate addPositionPropertiesEntry(String key, String value)
public DevicePositionUpdate clearPositionPropertiesEntries()
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.