Interface PutGeofenceRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<PutGeofenceRequest.Builder,PutGeofenceRequest>, LocationRequest.Builder, SdkBuilder<PutGeofenceRequest.Builder,PutGeofenceRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
PutGeofenceRequest

public static interface PutGeofenceRequest.Builder extends LocationRequest.Builder, SdkPojo, CopyableBuilder<PutGeofenceRequest.Builder,PutGeofenceRequest>
  • Method Details

    • collectionName

      PutGeofenceRequest.Builder collectionName(String collectionName)

      The geofence collection to store the geofence in.

      Parameters:
      collectionName - The geofence collection to store the geofence in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • geofenceId

      PutGeofenceRequest.Builder geofenceId(String geofenceId)

      An identifier for the geofence. For example, ExampleGeofence-1.

      Parameters:
      geofenceId - An identifier for the geofence. For example, ExampleGeofence-1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • geometry

      Contains the details to specify the position of the geofence. Can be a polygon, a circle or a polygon encoded in Geobuf format. Including multiple selections will return a validation error.

      The geofence polygon format supports a maximum of 1,000 vertices. The Geofence Geobuf format supports a maximum of 100,000 vertices.

      Parameters:
      geometry - Contains the details to specify the position of the geofence. Can be a polygon, a circle or a polygon encoded in Geobuf format. Including multiple selections will return a validation error.

      The geofence polygon format supports a maximum of 1,000 vertices. The Geofence Geobuf format supports a maximum of 100,000 vertices.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • geometry

      Contains the details to specify the position of the geofence. Can be a polygon, a circle or a polygon encoded in Geobuf format. Including multiple selections will return a validation error.

      The geofence polygon format supports a maximum of 1,000 vertices. The Geofence Geobuf format supports a maximum of 100,000 vertices.

      This is a convenience method that creates an instance of the GeofenceGeometry.Builder avoiding the need to create one manually via GeofenceGeometry.builder().

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

      Parameters:
      geometry - a consumer that will call methods on GeofenceGeometry.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • geofenceProperties

      PutGeofenceRequest.Builder geofenceProperties(Map<String,String> geofenceProperties)

      Associates one of more properties with the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence.

      Format: "key" : "value"

      Parameters:
      geofenceProperties - Associates one of more properties with the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence.

      Format: "key" : "value"

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      PutGeofenceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.