public class GetDevicePositionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Retrieves the latest device position.
Limitation — Device positions are deleted after one year.
Constructor and Description |
---|
GetDevicePositionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeviceId()
The device whose position you want to retreieve.
|
java.lang.String |
getTrackerName()
The tracker resource receiving the position update.
|
int |
hashCode() |
void |
setDeviceId(java.lang.String deviceId)
The device whose position you want to retreieve.
|
void |
setTrackerName(java.lang.String trackerName)
The tracker resource receiving the position update.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetDevicePositionRequest |
withDeviceId(java.lang.String deviceId)
The device whose position you want to retreieve.
|
GetDevicePositionRequest |
withTrackerName(java.lang.String trackerName)
The tracker resource receiving the position update.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getDeviceId()
The device whose position you want to retreieve.
Constraints:
Length: 1 - 100
Pattern: ^[-._\p{L}\p{N}]+$
The device whose position you want to retreieve.
public void setDeviceId(java.lang.String deviceId)
The device whose position you want to retreieve.
Constraints:
Length: 1 - 100
Pattern: ^[-._\p{L}\p{N}]+$
deviceId
- The device whose position you want to retreieve.
public GetDevicePositionRequest withDeviceId(java.lang.String deviceId)
The device whose position you want to retreieve.
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 want to retreieve.
public java.lang.String getTrackerName()
The tracker resource receiving the position update.
Constraints:
Length: 1 - 100
Pattern: ^[-._\w]+$
The tracker resource receiving the position update.
public void setTrackerName(java.lang.String trackerName)
The tracker resource receiving the position update.
Constraints:
Length: 1 - 100
Pattern: ^[-._\w]+$
trackerName
- The tracker resource receiving the position update.
public GetDevicePositionRequest withTrackerName(java.lang.String trackerName)
The tracker resource receiving the position update.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
Pattern: ^[-._\w]+$
trackerName
- The tracker resource receiving the position update.
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.