Interface LocationAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LocationAction.Builder,LocationAction>,SdkBuilder<LocationAction.Builder,LocationAction>,SdkPojo
- Enclosing class:
- LocationAction
public static interface LocationAction.Builder extends SdkPojo, CopyableBuilder<LocationAction.Builder,LocationAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LocationAction.BuilderdeviceId(String deviceId)The unique ID of the device providing the location data.LocationAction.Builderlatitude(String latitude)A string that evaluates to a double value that represents the latitude of the device's location.LocationAction.Builderlongitude(String longitude)A string that evaluates to a double value that represents the longitude of the device's location.LocationAction.BuilderroleArn(String roleArn)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.LocationAction.Buildertimestamp(LocationTimestamp timestamp)The time that the location data was sampled.LocationAction.BuildertrackerName(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
roleArn
LocationAction.Builder roleArn(String 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
LocationAction.Builder trackerName(String 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
LocationAction.Builder deviceId(String 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
LocationAction.Builder timestamp(LocationTimestamp 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
default LocationAction.Builder timestamp(Consumer<LocationTimestamp.Builder> 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:
timestamp(LocationTimestamp)
-
latitude
LocationAction.Builder latitude(String 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
LocationAction.Builder longitude(String 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.
-
-