@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RestoreClusterFromSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RestoreClusterFromSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
RestoreClusterFromSnapshotRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
RestoreClusterFromSnapshotRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
RestoreClusterFromSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClusterName()
The name of the elastic cluster.
|
String |
getKmsKeyId()
The KMS key identifier to use to encrypt the new Amazon DocumentDB elastic clusters cluster.
|
Integer |
getShardCapacity()
The capacity of each shard in the new restored elastic cluster.
|
Integer |
getShardInstanceCount()
The number of replica instances applying to all shards in the elastic cluster.
|
String |
getSnapshotArn()
The ARN identifier of the elastic cluster snapshot.
|
List<String> |
getSubnetIds()
The Amazon EC2 subnet IDs for the elastic cluster.
|
Map<String,String> |
getTags()
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.
|
List<String> |
getVpcSecurityGroupIds()
A list of EC2 VPC security groups to associate with the elastic cluster.
|
int |
hashCode() |
void |
setClusterName(String clusterName)
The name of the elastic cluster.
|
void |
setKmsKeyId(String kmsKeyId)
The KMS key identifier to use to encrypt the new Amazon DocumentDB elastic clusters cluster.
|
void |
setShardCapacity(Integer shardCapacity)
The capacity of each shard in the new restored elastic cluster.
|
void |
setShardInstanceCount(Integer shardInstanceCount)
The number of replica instances applying to all shards in the elastic cluster.
|
void |
setSnapshotArn(String snapshotArn)
The ARN identifier of the elastic cluster snapshot.
|
void |
setSubnetIds(Collection<String> subnetIds)
The Amazon EC2 subnet IDs for the elastic cluster.
|
void |
setTags(Map<String,String> 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.
|
void |
setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with the elastic cluster.
|
String |
toString()
Returns a string representation of this object.
|
RestoreClusterFromSnapshotRequest |
withClusterName(String clusterName)
The name of the elastic cluster.
|
RestoreClusterFromSnapshotRequest |
withKmsKeyId(String kmsKeyId)
The KMS key identifier to use to encrypt the new Amazon DocumentDB elastic clusters cluster.
|
RestoreClusterFromSnapshotRequest |
withShardCapacity(Integer shardCapacity)
The capacity of each shard in the new restored elastic cluster.
|
RestoreClusterFromSnapshotRequest |
withShardInstanceCount(Integer shardInstanceCount)
The number of replica instances applying to all shards in the elastic cluster.
|
RestoreClusterFromSnapshotRequest |
withSnapshotArn(String snapshotArn)
The ARN identifier of the elastic cluster snapshot.
|
RestoreClusterFromSnapshotRequest |
withSubnetIds(Collection<String> subnetIds)
The Amazon EC2 subnet IDs for the elastic cluster.
|
RestoreClusterFromSnapshotRequest |
withSubnetIds(String... subnetIds)
The Amazon EC2 subnet IDs for the elastic cluster.
|
RestoreClusterFromSnapshotRequest |
withTags(Map<String,String> 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.
|
RestoreClusterFromSnapshotRequest |
withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with the elastic cluster.
|
RestoreClusterFromSnapshotRequest |
withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with the elastic cluster.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClusterName(String clusterName)
The name of the elastic cluster.
clusterName
- The name of the elastic cluster.public String getClusterName()
The name of the elastic cluster.
public RestoreClusterFromSnapshotRequest withClusterName(String clusterName)
The name of the elastic cluster.
clusterName
- The name of the elastic cluster.public void setKmsKeyId(String 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.
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.
public String getKmsKeyId()
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.
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.
public RestoreClusterFromSnapshotRequest withKmsKeyId(String 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.
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.
public void setShardCapacity(Integer shardCapacity)
The capacity of each shard in the new restored elastic cluster.
shardCapacity
- The capacity of each shard in the new restored elastic cluster.public Integer getShardCapacity()
The capacity of each shard in the new restored elastic cluster.
public RestoreClusterFromSnapshotRequest withShardCapacity(Integer shardCapacity)
The capacity of each shard in the new restored elastic cluster.
shardCapacity
- The capacity of each shard in the new restored elastic cluster.public void setShardInstanceCount(Integer 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.
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.public Integer getShardInstanceCount()
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.
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.public RestoreClusterFromSnapshotRequest withShardInstanceCount(Integer 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.
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.public void setSnapshotArn(String snapshotArn)
The ARN identifier of the elastic cluster snapshot.
snapshotArn
- The ARN identifier of the elastic cluster snapshot.public String getSnapshotArn()
The ARN identifier of the elastic cluster snapshot.
public RestoreClusterFromSnapshotRequest withSnapshotArn(String snapshotArn)
The ARN identifier of the elastic cluster snapshot.
snapshotArn
- The ARN identifier of the elastic cluster snapshot.public List<String> getSubnetIds()
The Amazon EC2 subnet IDs for the elastic cluster.
public void setSubnetIds(Collection<String> subnetIds)
The Amazon EC2 subnet IDs for the elastic cluster.
subnetIds
- The Amazon EC2 subnet IDs for the elastic cluster.public RestoreClusterFromSnapshotRequest withSubnetIds(String... subnetIds)
The Amazon EC2 subnet IDs for the elastic cluster.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to
override the existing values.
subnetIds
- The Amazon EC2 subnet IDs for the elastic cluster.public RestoreClusterFromSnapshotRequest withSubnetIds(Collection<String> subnetIds)
The Amazon EC2 subnet IDs for the elastic cluster.
subnetIds
- The Amazon EC2 subnet IDs for the elastic cluster.public Map<String,String> getTags()
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.
public void setTags(Map<String,String> 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.
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.public RestoreClusterFromSnapshotRequest withTags(Map<String,String> 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.
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.public RestoreClusterFromSnapshotRequest addTagsEntry(String key, String value)
public RestoreClusterFromSnapshotRequest clearTagsEntries()
public List<String> getVpcSecurityGroupIds()
A list of EC2 VPC security groups to associate with the elastic cluster.
public void setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with the elastic cluster.
vpcSecurityGroupIds
- A list of EC2 VPC security groups to associate with the elastic cluster.public RestoreClusterFromSnapshotRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with the elastic cluster.
NOTE: This method appends the values to the existing list (if any). Use
setVpcSecurityGroupIds(java.util.Collection)
or withVpcSecurityGroupIds(java.util.Collection)
if you want to override the existing values.
vpcSecurityGroupIds
- A list of EC2 VPC security groups to associate with the elastic cluster.public RestoreClusterFromSnapshotRequest withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with the elastic cluster.
vpcSecurityGroupIds
- A list of EC2 VPC security groups to associate with the elastic cluster.public String toString()
toString
in class Object
Object.toString()
public RestoreClusterFromSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()