public class GetDevicePositionResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GetDevicePositionResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeviceId()
The device whose position you retrieved.
|
java.util.List<java.lang.Double> |
getPosition()
The last known device position.
|
java.util.Date |
getReceivedTime()
The timestamp for when the tracker resource recieved the position in ISO 8601
format:
YYYY-MM-DDThh:mm:ss.sssZ . |
java.util.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 |
setDeviceId(java.lang.String deviceId)
The device whose position you retrieved.
|
void |
setPosition(java.util.Collection<java.lang.Double> position)
The last known device position.
|
void |
setReceivedTime(java.util.Date receivedTime)
The timestamp for when the tracker resource recieved the position in ISO 8601
format:
YYYY-MM-DDThh:mm:ss.sssZ . |
void |
setSampleTime(java.util.Date sampleTime)
The timestamp for when the position was detected and sampled 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.
|
GetDevicePositionResult |
withDeviceId(java.lang.String deviceId)
The device whose position you retrieved.
|
GetDevicePositionResult |
withPosition(java.util.Collection<java.lang.Double> position)
The last known device position.
|
GetDevicePositionResult |
withPosition(java.lang.Double... position)
The last known device position.
|
GetDevicePositionResult |
withReceivedTime(java.util.Date receivedTime)
The timestamp for when the tracker resource recieved the position in ISO 8601
format:
YYYY-MM-DDThh:mm:ss.sssZ . |
GetDevicePositionResult |
withSampleTime(java.util.Date sampleTime)
The timestamp for when the position was detected and sampled in ISO 8601
format:
YYYY-MM-DDThh:mm:ss.sssZ . |
public java.lang.String getDeviceId()
The device whose position you retrieved.
Constraints:
Length: 1 - 100
Pattern: ^[-._\p{L}\p{N}]+$
The device whose position you retrieved.
public void setDeviceId(java.lang.String deviceId)
The device whose position you retrieved.
Constraints:
Length: 1 - 100
Pattern: ^[-._\p{L}\p{N}]+$
deviceId
- The device whose position you retrieved.
public GetDevicePositionResult withDeviceId(java.lang.String deviceId)
The device whose position you retrieved.
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 whose position you retrieved.
public java.util.List<java.lang.Double> getPosition()
The last known device position.
The last known device position.
public void setPosition(java.util.Collection<java.lang.Double> position)
The last known device position.
position
- The last known device position.
public GetDevicePositionResult withPosition(java.lang.Double... position)
The last known device position.
Returns a reference to this object so that method calls can be chained together.
position
- The last known device position.
public GetDevicePositionResult withPosition(java.util.Collection<java.lang.Double> position)
The last known device position.
Returns a reference to this object so that method calls can be chained together.
position
- The last known device position.
public java.util.Date getReceivedTime()
The timestamp for when the tracker resource recieved the position in ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
.
The timestamp for when the tracker resource recieved the position
in
ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
public void setReceivedTime(java.util.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 GetDevicePositionResult withReceivedTime(java.util.Date receivedTime)
The timestamp for when the tracker resource recieved the position in ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
.
Returns a reference to this object so that method calls can be chained together.
receivedTime
-
The timestamp for when the tracker resource recieved the
position in ISO
8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
public java.util.Date getSampleTime()
The timestamp for when the position was detected and sampled in ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
.
The timestamp for when the position was detected and sampled in
ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
public void setSampleTime(java.util.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 GetDevicePositionResult withSampleTime(java.util.Date sampleTime)
The timestamp for when the position was detected and sampled 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 was detected and sampled
in ISO
8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.