Interface LocationAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LocationAction.Builder,,LocationAction> SdkBuilder<LocationAction.Builder,,LocationAction> SdkPojo
- Enclosing class:
LocationAction
-
Method Summary
Modifier and TypeMethodDescriptionThe unique ID of the device providing the location data.A string that evaluates to a double value that represents the latitude of the device's location.A string that evaluates to a double value that represents the longitude of the device's location.The IAM role that grants permission to write to the Amazon Location resource.default LocationAction.Buildertimestamp(Consumer<LocationTimestamp.Builder> timestamp) The time that the location data was sampled.timestamp(LocationTimestamp timestamp) The time that the location data was sampled.trackerName(String trackerName) The name of the tracker resource in Amazon Location in which the location is updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
roleArn
The IAM role that grants permission to write to the Amazon Location resource.
- Parameters:
roleArn- The IAM role that grants permission to write to the Amazon Location resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trackerName
The name of the tracker resource in Amazon Location in which the location is updated.
- Parameters:
trackerName- The name of the tracker resource in Amazon Location in which the location is updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceId
The unique ID of the device providing the location data.
- Parameters:
deviceId- The unique ID of the device providing the location data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
The time that the location data was sampled. The default value is the time the MQTT message was processed.
- Parameters:
timestamp- The time that the location data was sampled. The default value is the time the MQTT message was processed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
The time that the location data was sampled. The default value is the time the MQTT message was processed.
This is a convenience method that creates an instance of theLocationTimestamp.Builderavoiding the need to create one manually viaLocationTimestamp.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimestamp(LocationTimestamp).- Parameters:
timestamp- a consumer that will call methods onLocationTimestamp.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
latitude
A string that evaluates to a double value that represents the latitude of the device's location.
- Parameters:
latitude- A string that evaluates to a double value that represents the latitude of the device's location.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
longitude
A string that evaluates to a double value that represents the longitude of the device's location.
- Parameters:
longitude- A string that evaluates to a double value that represents the longitude of the device's location.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-