Interface RestoreClusterFromSnapshotRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<RestoreClusterFromSnapshotRequest.Builder,
,RestoreClusterFromSnapshotRequest> DocDbElasticRequest.Builder
,SdkBuilder<RestoreClusterFromSnapshotRequest.Builder,
,RestoreClusterFromSnapshotRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
RestoreClusterFromSnapshotRequest
-
Method Summary
Modifier and TypeMethodDescriptionclusterName
(String clusterName) The name of the elastic cluster.The KMS key identifier to use to encrypt the new Amazon DocumentDB elastic clusters cluster.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.shardCapacity
(Integer shardCapacity) The capacity of each shard in the new restored elastic cluster.shardInstanceCount
(Integer shardInstanceCount) The number of replica instances applying to all shards in the elastic cluster.snapshotArn
(String snapshotArn) The ARN identifier of the elastic cluster snapshot.The Amazon EC2 subnet IDs for the elastic cluster.subnetIds
(Collection<String> subnetIds) The Amazon EC2 subnet IDs for the elastic cluster.A list of the tag names to be assigned to the restored elastic cluster, in the form of an array of key-value pairs in which the key is the tag name and the value is the key value.vpcSecurityGroupIds
(String... vpcSecurityGroupIds) A list of EC2 VPC security groups to associate with the elastic cluster.vpcSecurityGroupIds
(Collection<String> vpcSecurityGroupIds) A list of EC2 VPC security groups to associate with the elastic cluster.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.docdbelastic.model.DocDbElasticRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clusterName
The name of the elastic cluster.
- Parameters:
clusterName
- The name of the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
The KMS key identifier to use to encrypt the new Amazon DocumentDB elastic clusters cluster.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.
If an encryption key is not specified here, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
- Parameters:
kmsKeyId
- The KMS key identifier to use to encrypt the new Amazon DocumentDB elastic clusters cluster.The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.
If an encryption key is not specified here, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shardCapacity
The capacity of each shard in the new restored elastic cluster.
- Parameters:
shardCapacity
- The capacity of each shard in the new restored elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shardInstanceCount
The number of replica instances applying to all shards in the elastic cluster. A
shardInstanceCount
value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.- Parameters:
shardInstanceCount
- The number of replica instances applying to all shards in the elastic cluster. AshardInstanceCount
value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotArn
The ARN identifier of the elastic cluster snapshot.
- Parameters:
snapshotArn
- The ARN identifier of the elastic cluster snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The Amazon EC2 subnet IDs for the elastic cluster.
- Parameters:
subnetIds
- The Amazon EC2 subnet IDs for the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The Amazon EC2 subnet IDs for the elastic cluster.
- Parameters:
subnetIds
- The Amazon EC2 subnet IDs for the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of the tag names to be assigned to the restored elastic cluster, in the form of an array of key-value pairs in which the key is the tag name and the value is the key value.
- Parameters:
tags
- A list of the tag names to be assigned to the restored elastic cluster, in the form of an array of key-value pairs in which the key is the tag name and the value is the key value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroupIds
RestoreClusterFromSnapshotRequest.Builder vpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds) A list of EC2 VPC security groups to associate with the elastic cluster.
- Parameters:
vpcSecurityGroupIds
- A list of EC2 VPC security groups to associate with the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroupIds
A list of EC2 VPC security groups to associate with the elastic cluster.
- Parameters:
vpcSecurityGroupIds
- A list of EC2 VPC security groups to associate with the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
RestoreClusterFromSnapshotRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
RestoreClusterFromSnapshotRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-