Class CfnGeofenceCollection.Builder

java.lang.Object
software.amazon.awscdk.services.location.CfnGeofenceCollection.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGeofenceCollection>
Enclosing class:
CfnGeofenceCollection

@Stability(Stable) public static final class CfnGeofenceCollection.Builder extends Object implements software.amazon.jsii.Builder<CfnGeofenceCollection>
A fluent builder for CfnGeofenceCollection.
  • Method Details

    • create

      @Stability(Stable) public static CfnGeofenceCollection.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnGeofenceCollection.Builder.
    • collectionName

      @Stability(Stable) public CfnGeofenceCollection.Builder collectionName(String collectionName)
      A custom name for the geofence collection.

      Requirements:

      • Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
      • Must be a unique geofence collection name.
      • No spaces allowed. For example, ExampleGeofenceCollection .

      Parameters:
      collectionName - A custom name for the geofence collection. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnGeofenceCollection.Builder description(String description)
      An optional description for the geofence collection.

      Parameters:
      description - An optional description for the geofence collection. This parameter is required.
      Returns:
      this
    • kmsKeyId

      @Stability(Stable) public CfnGeofenceCollection.Builder kmsKeyId(String kmsKeyId)
      A key identifier for an AWS KMS customer managed key . Enter a key ID, key ARN, alias name, or alias ARN.

      Parameters:
      kmsKeyId - A key identifier for an AWS KMS customer managed key . Enter a key ID, key ARN, alias name, or alias ARN. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnGeofenceCollection build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnGeofenceCollection>
      Returns:
      a newly built instance of CfnGeofenceCollection.