Interface CreateDbClusterGroupRequest.Builder

  • Method Details

    • dbClusterGroupIdentifier

      CreateDbClusterGroupRequest.Builder dbClusterGroupIdentifier(String dbClusterGroupIdentifier)

      The identifier for the new DB cluster group. This parameter is stored as a lowercase string.

      Constraints:

      • Must contain from 1 to 63 letters, numbers, or hyphens.

      • First character must be a letter.

      • Can't end with a hyphen or contain two consecutive hyphens.

      • Must be unique for all DB cluster groups owned by your Amazon Web Services account in the current Amazon Web Services Region.

      Parameters:
      dbClusterGroupIdentifier - The identifier for the new DB cluster group. This parameter is stored as a lowercase string.

      Constraints:

      • Must contain from 1 to 63 letters, numbers, or hyphens.

      • First character must be a letter.

      • Can't end with a hyphen or contain two consecutive hyphens.

      • Must be unique for all DB cluster groups owned by your Amazon Web Services account in the current Amazon Web Services Region.

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

      The database engine to use for the DB cluster group. All member DB clusters must use this engine.

      Valid Values:

      • aurora-mysql - Aurora MySQL-Compatible Edition

      • aurora-postgresql - Aurora PostgreSQL-Compatible Edition

      Parameters:
      engine - The database engine to use for the DB cluster group. All member DB clusters must use this engine.

      Valid Values:

      • aurora-mysql - Aurora MySQL-Compatible Edition

      • aurora-postgresql - Aurora PostgreSQL-Compatible Edition

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

      CreateDbClusterGroupRequest.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)

      The weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).

      Format: ddd:hh24:mi-ddd:hh24:mi

      Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

      Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week, which doesn't overlap the preferred backup window.

      Constraints: Must be at least 30 minutes. Must not overlap the preferred backup window.

      The maintenance window of the DB cluster group can overlap the maintenance windows of its member DB clusters.

      Parameters:
      preferredMaintenanceWindow - The weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).

      Format: ddd:hh24:mi-ddd:hh24:mi

      Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

      Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week, which doesn't overlap the preferred backup window.

      Constraints: Must be at least 30 minutes. Must not overlap the preferred backup window.

      The maintenance window of the DB cluster group can overlap the maintenance windows of its member DB clusters.

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

      CreateDbClusterGroupRequest.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot)

      Specifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group. The default is not to copy them.

      Parameters:
      copyTagsToSnapshot - Specifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group. The default is not to copy them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • preferredBackupWindow

      CreateDbClusterGroupRequest.Builder preferredBackupWindow(String preferredBackupWindow)

      The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).

      Format: hh24:mi-hh24:mi

      Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, which doesn't overlap the preferred maintenance window.

      Constraints: Must be at least 30 minutes. Must not overlap the preferred maintenance window of the DB cluster group.

      Parameters:
      preferredBackupWindow - The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).

      Format: hh24:mi-hh24:mi

      Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, which doesn't overlap the preferred maintenance window.

      Constraints: Must be at least 30 minutes. Must not overlap the preferred maintenance window of the DB cluster group.

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

      CreateDbClusterGroupRequest.Builder backupRetentionPeriod(Integer backupRetentionPeriod)

      The number of days for which automated backups of the DB cluster group are retained.

      Default: 1

      Constraints: Must be a value from 1 to 35.

      Parameters:
      backupRetentionPeriod - The number of days for which automated backups of the DB cluster group are retained.

      Default: 1

      Constraints: Must be a value from 1 to 35.

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

      CreateDbClusterGroupRequest.Builder deletionProtection(Boolean deletionProtection)

      Specifies whether the DB cluster group has deletion protection enabled. You can't delete the DB cluster group when deletion protection is enabled. By default, deletion protection isn't enabled.

      Parameters:
      deletionProtection - Specifies whether the DB cluster group has deletion protection enabled. You can't delete the DB cluster group when deletion protection is enabled. By default, deletion protection isn't enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enableRouting

      CreateDbClusterGroupRequest.Builder enableRouting(Boolean enableRouting)

      Specifies whether to enable routing for the DB cluster group. When routing is enabled, Amazon RDS creates a routing endpoint that applications connect to instead of connecting to each member DB cluster.

      When you enable routing, you must specify VpcSubnetIds in RoutingEndpointConfiguration, and you must specify AdminUsername and AdminUserPassword.

      Default: false

      Parameters:
      enableRouting - Specifies whether to enable routing for the DB cluster group. When routing is enabled, Amazon RDS creates a routing endpoint that applications connect to instead of connecting to each member DB cluster.

      When you enable routing, you must specify VpcSubnetIds in RoutingEndpointConfiguration, and you must specify AdminUsername and AdminUserPassword.

      Default: false

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

      CreateDbClusterGroupRequest.Builder routingEndpointConfiguration(RoutingEndpointConfiguration routingEndpointConfiguration)

      The settings of the routing endpoint. Specify this parameter only when EnableRouting is true, and include VpcSubnetIds.

      Parameters:
      routingEndpointConfiguration - The settings of the routing endpoint. Specify this parameter only when EnableRouting is true, and include VpcSubnetIds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • routingEndpointConfiguration

      default CreateDbClusterGroupRequest.Builder routingEndpointConfiguration(Consumer<RoutingEndpointConfiguration.Builder> routingEndpointConfiguration)

      The settings of the routing endpoint. Specify this parameter only when EnableRouting is true, and include VpcSubnetIds.

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

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

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

      Tags to assign to the DB cluster group.

      Parameters:
      tags - Tags to assign to the DB cluster group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Tags to assign to the DB cluster group.

      Parameters:
      tags - Tags to assign to the DB cluster group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Tags to assign to the DB cluster group.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

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

      CreateDbClusterGroupRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)

      Tags to assign to resources associated with the DB cluster group.

      Parameters:
      tagSpecifications - Tags to assign to resources associated with the DB cluster group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tagSpecifications

      CreateDbClusterGroupRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)

      Tags to assign to resources associated with the DB cluster group.

      Parameters:
      tagSpecifications - Tags to assign to resources associated with the DB cluster group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tagSpecifications

      CreateDbClusterGroupRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)

      Tags to assign to resources associated with the DB cluster group.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tagSpecifications(List<TagSpecification>).

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

      CreateDbClusterGroupRequest.Builder adminUsername(String adminUsername)

      The name of the admin user that the routing endpoint uses to connect to the member DB clusters.

      If you specify AdminUsername, you must also specify AdminUserPassword.

      Default: None. An admin user is required when you enable routing.

      Parameters:
      adminUsername - The name of the admin user that the routing endpoint uses to connect to the member DB clusters.

      If you specify AdminUsername, you must also specify AdminUserPassword.

      Default: None. An admin user is required when you enable routing.

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

      CreateDbClusterGroupRequest.Builder adminUserPassword(String adminUserPassword)

      The password for the admin user that the routing endpoint uses to connect to the member DB clusters.

      If you specify AdminUserPassword, you must also specify AdminUsername.

      Default: None. An admin user is required when you enable routing.

      Parameters:
      adminUserPassword - The password for the admin user that the routing endpoint uses to connect to the member DB clusters.

      If you specify AdminUserPassword, you must also specify AdminUsername.

      Default: None. An admin user is required when you enable routing.

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

      CreateDbClusterGroupRequest.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.