Interface CreateBranchRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateBranchRequest.Builder,,CreateBranchRequest> RdsRequest.Builder,SdkBuilder<CreateBranchRequest.Builder,,CreateBranchRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateBranchRequest
-
Method Summary
Modifier and TypeMethodDescriptionbranchName(String branchName) The name of the branch.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateBranchRequest.BuilderscalingConfiguration(Consumer<BranchScalingConfiguration.Builder> scalingConfiguration) The capacity settings of the branch.scalingConfiguration(BranchScalingConfiguration scalingConfiguration) The capacity settings of the branch.sourceBranchName(String sourceBranchName) The name or Amazon Resource Name (ARN) of the branch to create the branch from.sourceDBClusterIdentifier(String sourceDBClusterIdentifier) The identifier of the DB cluster to create the branch from.tags(Collection<Tag> tags) Tags to assign to the branch.tags(Consumer<Tag.Builder>... tags) Tags to assign to the branch.Tags to assign to the branch.ttlSeconds(Long ttlSeconds) The number of seconds after the branch is created that Amazon RDS deletes it.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rds.model.RdsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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 theBranchScalingConfiguration.Builderavoiding the need to create one manually viaBranchScalingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscalingConfiguration(BranchScalingConfiguration).- Parameters:
scalingConfiguration- a consumer that will call methods onBranchScalingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 inSourceDBClusterIdentifier.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
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 specifySourceBranchName, 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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateBranchRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-