Class LocationAction
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<LocationAction.Builder,
LocationAction>
The Amazon Location rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LocationAction.Builder
builder()
final String
deviceId()
The unique ID of the device providing the location data.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
latitude()
A string that evaluates to a double value that represents the latitude of the device's location.final String
A string that evaluates to a double value that represents the longitude of the device's location.final String
roleArn()
The IAM role that grants permission to write to the Amazon Location resource.static Class
<? extends LocationAction.Builder> final LocationTimestamp
The time that the location data was sampled.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
The name of the tracker resource in Amazon Location in which the location is updated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
roleArn
The IAM role that grants permission to write to the Amazon Location resource.
- Returns:
- The IAM role that grants permission to write to the Amazon Location resource.
-
trackerName
The name of the tracker resource in Amazon Location in which the location is updated.
- Returns:
- The name of the tracker resource in Amazon Location in which the location is updated.
-
deviceId
The unique ID of the device providing the location data.
- Returns:
- The unique ID of the device providing the location data.
-
timestamp
The time that the location data was sampled. The default value is the time the MQTT message was processed.
- Returns:
- The time that the location data was sampled. The default value is the time the MQTT message was processed.
-
latitude
A string that evaluates to a double value that represents the latitude of the device's location.
- Returns:
- A string that evaluates to a double value that represents the latitude of the device's location.
-
longitude
A string that evaluates to a double value that represents the longitude of the device's location.
- Returns:
- A string that evaluates to a double value that represents the longitude of the device's location.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<LocationAction.Builder,
LocationAction> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-