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 Details

    • 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

      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 the LocationTimestamp.Builder avoiding the need to create one manually via LocationTimestamp.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to timestamp(LocationTimestamp).

      Parameters:
      timestamp - a consumer that will call methods on LocationTimestamp.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.