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.Builderbuilder()final StringdeviceId()The unique ID of the device providing the location data.final booleanfinal booleanequalsBySdkFields(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 inthashCode()final Stringlatitude()A string that evaluates to a double value that represents the latitude of the device's location.final StringA string that evaluates to a double value that represents the longitude of the device's location.final StringroleArn()The IAM role that grants permission to write to the Amazon Location resource.static Class<? extends LocationAction.Builder> final LocationTimestampThe 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 StringtoString()Returns a string representation of this object.final StringThe 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<LocationAction.Builder,LocationAction> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-