@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LocationAction extends Object implements Serializable, Cloneable, StructuredPojo
The Amazon Location rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.
Constructor and Description |
---|
LocationAction() |
Modifier and Type | Method and Description |
---|---|
LocationAction |
clone() |
boolean |
equals(Object obj) |
String |
getDeviceId()
The unique ID of the device providing the location data.
|
String |
getLatitude()
A string that evaluates to a double value that represents the latitude of the device's location.
|
String |
getLongitude()
A string that evaluates to a double value that represents the longitude of the device's location.
|
String |
getRoleArn()
The IAM role that grants permission to write to the Amazon Location resource.
|
LocationTimestamp |
getTimestamp()
The time that the location data was sampled.
|
String |
getTrackerName()
The name of the tracker resource in Amazon Location in which the location is updated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDeviceId(String deviceId)
The unique ID of the device providing the location data.
|
void |
setLatitude(String latitude)
A string that evaluates to a double value that represents the latitude of the device's location.
|
void |
setLongitude(String longitude)
A string that evaluates to a double value that represents the longitude of the device's location.
|
void |
setRoleArn(String roleArn)
The IAM role that grants permission to write to the Amazon Location resource.
|
void |
setTimestamp(LocationTimestamp timestamp)
The time that the location data was sampled.
|
void |
setTrackerName(String trackerName)
The name of the tracker resource in Amazon Location in which the location is updated.
|
String |
toString()
Returns a string representation of this object.
|
LocationAction |
withDeviceId(String deviceId)
The unique ID of the device providing the location data.
|
LocationAction |
withLatitude(String latitude)
A string that evaluates to a double value that represents the latitude of the device's location.
|
LocationAction |
withLongitude(String longitude)
A string that evaluates to a double value that represents the longitude of the device's location.
|
LocationAction |
withRoleArn(String roleArn)
The IAM role that grants permission to write to the Amazon Location resource.
|
LocationAction |
withTimestamp(LocationTimestamp timestamp)
The time that the location data was sampled.
|
LocationAction |
withTrackerName(String trackerName)
The name of the tracker resource in Amazon Location in which the location is updated.
|
public void setRoleArn(String roleArn)
The IAM role that grants permission to write to the Amazon Location resource.
roleArn
- The IAM role that grants permission to write to the Amazon Location resource.public String getRoleArn()
The IAM role that grants permission to write to the Amazon Location resource.
public LocationAction withRoleArn(String roleArn)
The IAM role that grants permission to write to the Amazon Location resource.
roleArn
- The IAM role that grants permission to write to the Amazon Location resource.public void setTrackerName(String trackerName)
The name of the tracker resource in Amazon Location in which the location is updated.
trackerName
- The name of the tracker resource in Amazon Location in which the location is updated.public String getTrackerName()
The name of the tracker resource in Amazon Location in which the location is updated.
public LocationAction withTrackerName(String trackerName)
The name of the tracker resource in Amazon Location in which the location is updated.
trackerName
- The name of the tracker resource in Amazon Location in which the location is updated.public void setDeviceId(String deviceId)
The unique ID of the device providing the location data.
deviceId
- The unique ID of the device providing the location data.public String getDeviceId()
The unique ID of the device providing the location data.
public LocationAction withDeviceId(String deviceId)
The unique ID of the device providing the location data.
deviceId
- The unique ID of the device providing the location data.public void setTimestamp(LocationTimestamp timestamp)
The time that the location data was sampled. The default value is the time the MQTT message was processed.
timestamp
- The time that the location data was sampled. The default value is the time the MQTT message was processed.public LocationTimestamp getTimestamp()
The time that the location data was sampled. The default value is the time the MQTT message was processed.
public LocationAction withTimestamp(LocationTimestamp timestamp)
The time that the location data was sampled. The default value is the time the MQTT message was processed.
timestamp
- The time that the location data was sampled. The default value is the time the MQTT message was processed.public void setLatitude(String latitude)
A string that evaluates to a double value that represents the latitude of the device's location.
latitude
- A string that evaluates to a double value that represents the latitude of the device's location.public String getLatitude()
A string that evaluates to a double value that represents the latitude of the device's location.
public LocationAction withLatitude(String latitude)
A string that evaluates to a double value that represents the latitude of the device's location.
latitude
- A string that evaluates to a double value that represents the latitude of the device's location.public void setLongitude(String longitude)
A string that evaluates to a double value that represents the longitude of the device's location.
longitude
- A string that evaluates to a double value that represents the longitude of the device's location.public String getLongitude()
A string that evaluates to a double value that represents the longitude of the device's location.
public LocationAction withLongitude(String longitude)
A string that evaluates to a double value that represents the longitude of the device's location.
longitude
- A string that evaluates to a double value that represents the longitude of the device's location.public String toString()
toString
in class Object
Object.toString()
public LocationAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.