Interface CreateBranchRequest.Builder

  • Method Details

    • branchName

      CreateBranchRequest.Builder branchName(String branchName)

      The name of the branch. The name must be unique among the branches of the root DB cluster.

      Branch names aren't case-sensitive. Amazon RDS keeps the name in the case that you specify, but a DB cluster can't have two branches whose names differ only in case.

      The following constraints apply to this parameter:

      • Must contain from 1 to 63 alphanumeric characters or hyphens.

      • First character must be a letter.

      Example: my-feature-branch

      Parameters:
      branchName - The name of the branch. The name must be unique among the branches of the root DB cluster.

      Branch names aren't case-sensitive. Amazon RDS keeps the name in the case that you specify, but a DB cluster can't have two branches whose names differ only in case.

      The following constraints apply to this parameter:

      • Must contain from 1 to 63 alphanumeric characters or hyphens.

      • First character must be a letter.

      Example: my-feature-branch

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

      CreateBranchRequest.Builder scalingConfiguration(BranchScalingConfiguration scalingConfiguration)

      The capacity settings of the branch.

      Parameters:
      scalingConfiguration - The capacity settings of the branch.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scalingConfiguration

      default CreateBranchRequest.Builder scalingConfiguration(Consumer<BranchScalingConfiguration.Builder> scalingConfiguration)

      The capacity settings of the branch.

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

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

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

      CreateBranchRequest.Builder sourceBranchName(String sourceBranchName)

      The name or Amazon Resource Name (ARN) of the branch to create the branch from. The source branch must belong to the DB cluster that you specify in SourceDBClusterIdentifier.

      If you don't specify this parameter, Amazon RDS creates the branch from the DB cluster.

      The following constraints apply to this parameter:

      • A branch name must contain from 1 to 63 alphanumeric characters or hyphens, and start with a letter.

      • A branch ARN must be the ARN of a branch in your Amazon Web Services account and Amazon Web Services Region.

      • The source branch must be available.

      • The source branch can't itself have been created from a branch.

      • The source branch must expire in at least 3600 seconds (1 hour).

      • Can't be specified with TtlSeconds.

      Parameters:
      sourceBranchName - The name or Amazon Resource Name (ARN) of the branch to create the branch from. The source branch must belong to the DB cluster that you specify in SourceDBClusterIdentifier.

      If you don't specify this parameter, Amazon RDS creates the branch from the DB cluster.

      The following constraints apply to this parameter:

      • A branch name must contain from 1 to 63 alphanumeric characters or hyphens, and start with a letter.

      • A branch ARN must be the ARN of a branch in your Amazon Web Services account and Amazon Web Services Region.

      • The source branch must be available.

      • The source branch can't itself have been created from a branch.

      • The source branch must expire in at least 3600 seconds (1 hour).

      • Can't be specified with TtlSeconds.

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

      CreateBranchRequest.Builder sourceDBClusterIdentifier(String sourceDBClusterIdentifier)

      The identifier of the DB cluster to create the branch from. If you specify SourceBranchName, this is the root DB cluster of the source branch.

      You can specify either of the following:

      • The name of the DB cluster.

      • The Amazon Resource Name (ARN) of the DB cluster.

      You can't specify the DB cluster of a branch.

      The following constraints apply to this parameter:

      • Must match the identifier of an existing DB cluster.

      • The DB cluster and its writer DB instance must be available.

      • A DB cluster ARN must be the ARN of a DB cluster in your Amazon Web Services account and Amazon Web Services Region.

      Parameters:
      sourceDBClusterIdentifier - The identifier of the DB cluster to create the branch from. If you specify SourceBranchName, this is the root DB cluster of the source branch.

      You can specify either of the following:

      • The name of the DB cluster.

      • The Amazon Resource Name (ARN) of the DB cluster.

      You can't specify the DB cluster of a branch.

      The following constraints apply to this parameter:

      • Must match the identifier of an existing DB cluster.

      • The DB cluster and its writer DB instance must be available.

      • A DB cluster ARN must be the ARN of a DB cluster in your Amazon Web Services account and Amazon Web Services Region.

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

      Tags to assign to the branch.

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

      Tags to assign to the branch.

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

      Tags to assign to the branch.

      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:
    • ttlSeconds

      CreateBranchRequest.Builder ttlSeconds(Long ttlSeconds)

      The number of seconds after the branch is created that Amazon RDS deletes it.

      Default: 86400 (24 hours)

      The following constraints apply to this parameter:

      • Must be a value from 3600 (1 hour) to 7776000 (90 days).

      • Can't be specified with SourceBranchName. A branch created from a branch expires when its source branch expires.

      Parameters:
      ttlSeconds - The number of seconds after the branch is created that Amazon RDS deletes it.

      Default: 86400 (24 hours)

      The following constraints apply to this parameter:

      • Must be a value from 3600 (1 hour) to 7776000 (90 days).

      • Can't be specified with SourceBranchName. A branch created from a branch expires when its source branch expires.

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

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