public class DevicePositionUpdate
extends java.lang.Object
implements java.io.Serializable
Contains the position update details for a device.
| Constructor and Description | 
|---|
DevicePositionUpdate()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(java.lang.Object obj)  | 
java.lang.String | 
getDeviceId()
 The device associated to the position update. 
 | 
java.util.List<java.lang.Double> | 
getPosition()
 The latest device position defined in WGS 84
 format:  
[Xlongitude, Ylatitude]. | 
java.util.Date | 
getSampleTime()
 The timestamp for when the position update was received in ISO
 8601 format:  
YYYY-MM-DDThh:mm:ss.sssZ | 
int | 
hashCode()  | 
void | 
setDeviceId(java.lang.String deviceId)
 The device associated to the position update. 
 | 
void | 
setPosition(java.util.Collection<java.lang.Double> position)
 The latest device position defined in WGS 84
 format:  
[Xlongitude, Ylatitude]. | 
void | 
setSampleTime(java.util.Date sampleTime)
 The timestamp for when the position update was received in ISO
 8601 format:  
YYYY-MM-DDThh:mm:ss.sssZ | 
java.lang.String | 
toString()
Returns a string representation of this object; useful for testing and
 debugging. 
 | 
DevicePositionUpdate | 
withDeviceId(java.lang.String deviceId)
 The device associated to the position update. 
 | 
DevicePositionUpdate | 
withPosition(java.util.Collection<java.lang.Double> position)
 The latest device position defined in WGS 84
 format:  
[Xlongitude, Ylatitude]. | 
DevicePositionUpdate | 
withPosition(java.lang.Double... position)
 The latest device position defined in WGS 84
 format:  
[Xlongitude, Ylatitude]. | 
DevicePositionUpdate | 
withSampleTime(java.util.Date sampleTime)
 The timestamp for when the position update was received in ISO
 8601 format:  
YYYY-MM-DDThh:mm:ss.sssZ | 
public java.lang.String getDeviceId()
The device associated to the position update.
 Constraints:
 Length: 1 - 100
 Pattern: ^[-._\p{L}\p{N}]+$
The device associated to the position update.
public void setDeviceId(java.lang.String deviceId)
The device associated to the position update.
 Constraints:
 Length: 1 - 100
 Pattern: ^[-._\p{L}\p{N}]+$
deviceId - The device associated to the position update.
public DevicePositionUpdate withDeviceId(java.lang.String deviceId)
The device associated to the position update.
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 1 - 100
 Pattern: ^[-._\p{L}\p{N}]+$
deviceId - The device associated to the position update.
public java.util.List<java.lang.Double> getPosition()
 The latest device position defined in WGS 84
 format: [Xlongitude, Ylatitude].
 
         The latest device position defined in WGS
         84 format: [Xlongitude, Ylatitude].
         
public void setPosition(java.util.Collection<java.lang.Double> position)
 The latest device position defined in WGS 84
 format: [Xlongitude, Ylatitude].
 
position - 
            The latest device position defined in WGS
            84 format: [Xlongitude, Ylatitude].
            
public DevicePositionUpdate withPosition(java.lang.Double... position)
 The latest device position defined in WGS 84
 format: [Xlongitude, Ylatitude].
 
Returns a reference to this object so that method calls can be chained together.
position - 
            The latest device position defined in WGS
            84 format: [Xlongitude, Ylatitude].
            
public DevicePositionUpdate withPosition(java.util.Collection<java.lang.Double> position)
 The latest device position defined in WGS 84
 format: [Xlongitude, Ylatitude].
 
Returns a reference to this object so that method calls can be chained together.
position - 
            The latest device position defined in WGS
            84 format: [Xlongitude, Ylatitude].
            
public java.util.Date getSampleTime()
 The timestamp for when the position update was received in ISO
 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
 
         The timestamp for when the position update was received in ISO
         8601 format: YYYY-MM-DDThh:mm:ss.sssZ
         
public void setSampleTime(java.util.Date sampleTime)
 The timestamp for when the position update was received in ISO
 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
 
sampleTime - 
            The timestamp for when the position update was received in ISO
            8601 format: YYYY-MM-DDThh:mm:ss.sssZ
            
public DevicePositionUpdate withSampleTime(java.util.Date sampleTime)
 The timestamp for when the position update was received in ISO
 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
 
Returns a reference to this object so that method calls can be chained together.
sampleTime - 
            The timestamp for when the position update was received in ISO
            8601 format: YYYY-MM-DDThh:mm:ss.sssZ
            
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.