Class LocationAction
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.LocationAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LocationAction.Builder,LocationAction>
@Generated("software.amazon.awssdk:codegen") public final class LocationAction extends Object implements SdkPojo, Serializable, 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLocationAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocationAction.Builderbuilder()StringdeviceId()The unique ID of the device providing the location data.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringlatitude()A string that evaluates to a double value that represents the latitude of the device's location.Stringlongitude()A string that evaluates to a double value that represents the longitude of the device's location.StringroleArn()The IAM role that grants permission to write to the Amazon Location resource.List<SdkField<?>>sdkFields()static Class<? extends LocationAction.Builder>serializableBuilderClass()LocationTimestamptimestamp()The time that the location data was sampled.LocationAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringtrackerName()The name of the tracker resource in Amazon Location in which the location is updated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
roleArn
public final String 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
public final String 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
public final String deviceId()
The unique ID of the device providing the location data.
- Returns:
- The unique ID of the device providing the location data.
-
timestamp
public final LocationTimestamp 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
public final String 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
public final String 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
public LocationAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LocationAction.Builder,LocationAction>
-
builder
public static LocationAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends LocationAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-