@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RestoreDBClusterFromSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RestoreDBClusterFromSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
RestoreDBClusterFromSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getAvailabilityZones()
Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.
|
Boolean |
getCopyTagsToSnapshot()
If set to
true , tags are copied to any snapshot of the restored DB cluster that is created. |
String |
getDatabaseName()
Not supported.
|
String |
getDBClusterIdentifier()
The name of the DB cluster to create from the DB snapshot or DB cluster snapshot.
|
String |
getDBClusterParameterGroupName()
The name of the DB cluster parameter group to associate with the new DB cluster.
|
String |
getDBSubnetGroupName()
The name of the DB subnet group to use for the new DB cluster.
|
Boolean |
getDeletionProtection()
A value that indicates whether the DB cluster has deletion protection enabled.
|
List<String> |
getEnableCloudwatchLogsExports()
The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.
|
Boolean |
getEnableIAMDatabaseAuthentication()
True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and
otherwise false.
|
String |
getEngine()
The database engine to use for the new DB cluster.
|
String |
getEngineVersion()
The version of the database engine to use for the new DB cluster.
|
String |
getKmsKeyId()
The Amazon KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster
snapshot.
|
String |
getOptionGroupName()
(Not supported by Neptune)
|
Integer |
getPort()
The port number on which the new DB cluster accepts connections.
|
ServerlessV2ScalingConfiguration |
getServerlessV2ScalingConfiguration()
Contains the scaling configuration of a Neptune Serverless DB cluster.
|
String |
getSnapshotIdentifier()
The identifier for the DB snapshot or DB cluster snapshot to restore from.
|
String |
getStorageType()
Specifies the storage type to be associated with the DB cluster.
|
List<Tag> |
getTags()
The tags to be assigned to the restored DB cluster.
|
List<String> |
getVpcSecurityGroupIds()
A list of VPC security groups that the new DB cluster will belong to.
|
int |
hashCode() |
Boolean |
isCopyTagsToSnapshot()
If set to
true , tags are copied to any snapshot of the restored DB cluster that is created. |
Boolean |
isDeletionProtection()
A value that indicates whether the DB cluster has deletion protection enabled.
|
Boolean |
isEnableIAMDatabaseAuthentication()
True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and
otherwise false.
|
void |
setAvailabilityZones(Collection<String> availabilityZones)
Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.
|
void |
setCopyTagsToSnapshot(Boolean copyTagsToSnapshot)
If set to
true , tags are copied to any snapshot of the restored DB cluster that is created. |
void |
setDatabaseName(String databaseName)
Not supported.
|
void |
setDBClusterIdentifier(String dBClusterIdentifier)
The name of the DB cluster to create from the DB snapshot or DB cluster snapshot.
|
void |
setDBClusterParameterGroupName(String dBClusterParameterGroupName)
The name of the DB cluster parameter group to associate with the new DB cluster.
|
void |
setDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group to use for the new DB cluster.
|
void |
setDeletionProtection(Boolean deletionProtection)
A value that indicates whether the DB cluster has deletion protection enabled.
|
void |
setEnableCloudwatchLogsExports(Collection<String> enableCloudwatchLogsExports)
The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.
|
void |
setEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication)
True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and
otherwise false.
|
void |
setEngine(String engine)
The database engine to use for the new DB cluster.
|
void |
setEngineVersion(String engineVersion)
The version of the database engine to use for the new DB cluster.
|
void |
setKmsKeyId(String kmsKeyId)
The Amazon KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster
snapshot.
|
void |
setOptionGroupName(String optionGroupName)
(Not supported by Neptune)
|
void |
setPort(Integer port)
The port number on which the new DB cluster accepts connections.
|
void |
setServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration)
Contains the scaling configuration of a Neptune Serverless DB cluster.
|
void |
setSnapshotIdentifier(String snapshotIdentifier)
The identifier for the DB snapshot or DB cluster snapshot to restore from.
|
void |
setStorageType(String storageType)
Specifies the storage type to be associated with the DB cluster.
|
void |
setTags(Collection<Tag> tags)
The tags to be assigned to the restored DB cluster.
|
void |
setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of VPC security groups that the new DB cluster will belong to.
|
String |
toString()
Returns a string representation of this object.
|
RestoreDBClusterFromSnapshotRequest |
withAvailabilityZones(Collection<String> availabilityZones)
Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.
|
RestoreDBClusterFromSnapshotRequest |
withAvailabilityZones(String... availabilityZones)
Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.
|
RestoreDBClusterFromSnapshotRequest |
withCopyTagsToSnapshot(Boolean copyTagsToSnapshot)
If set to
true , tags are copied to any snapshot of the restored DB cluster that is created. |
RestoreDBClusterFromSnapshotRequest |
withDatabaseName(String databaseName)
Not supported.
|
RestoreDBClusterFromSnapshotRequest |
withDBClusterIdentifier(String dBClusterIdentifier)
The name of the DB cluster to create from the DB snapshot or DB cluster snapshot.
|
RestoreDBClusterFromSnapshotRequest |
withDBClusterParameterGroupName(String dBClusterParameterGroupName)
The name of the DB cluster parameter group to associate with the new DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group to use for the new DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withDeletionProtection(Boolean deletionProtection)
A value that indicates whether the DB cluster has deletion protection enabled.
|
RestoreDBClusterFromSnapshotRequest |
withEnableCloudwatchLogsExports(Collection<String> enableCloudwatchLogsExports)
The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.
|
RestoreDBClusterFromSnapshotRequest |
withEnableCloudwatchLogsExports(String... enableCloudwatchLogsExports)
The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.
|
RestoreDBClusterFromSnapshotRequest |
withEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication)
True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and
otherwise false.
|
RestoreDBClusterFromSnapshotRequest |
withEngine(String engine)
The database engine to use for the new DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withEngineVersion(String engineVersion)
The version of the database engine to use for the new DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withKmsKeyId(String kmsKeyId)
The Amazon KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster
snapshot.
|
RestoreDBClusterFromSnapshotRequest |
withOptionGroupName(String optionGroupName)
(Not supported by Neptune)
|
RestoreDBClusterFromSnapshotRequest |
withPort(Integer port)
The port number on which the new DB cluster accepts connections.
|
RestoreDBClusterFromSnapshotRequest |
withServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration)
Contains the scaling configuration of a Neptune Serverless DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withSnapshotIdentifier(String snapshotIdentifier)
The identifier for the DB snapshot or DB cluster snapshot to restore from.
|
RestoreDBClusterFromSnapshotRequest |
withStorageType(String storageType)
Specifies the storage type to be associated with the DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withTags(Collection<Tag> tags)
The tags to be assigned to the restored DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withTags(Tag... tags)
The tags to be assigned to the restored DB cluster.
|
RestoreDBClusterFromSnapshotRequest |
withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of VPC security groups that the new DB cluster will belong to.
|
RestoreDBClusterFromSnapshotRequest |
withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
A list of VPC security groups that the new DB cluster will belong to.
|
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 List<String> getAvailabilityZones()
Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.
public void setAvailabilityZones(Collection<String> availabilityZones)
Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.
availabilityZones
- Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.public RestoreDBClusterFromSnapshotRequest withAvailabilityZones(String... availabilityZones)
Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)
or withAvailabilityZones(java.util.Collection)
if
you want to override the existing values.
availabilityZones
- Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.public RestoreDBClusterFromSnapshotRequest withAvailabilityZones(Collection<String> availabilityZones)
Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.
availabilityZones
- Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.public void setDBClusterIdentifier(String dBClusterIdentifier)
The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't case-sensitive.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
dBClusterIdentifier
- The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't
case-sensitive.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
public String getDBClusterIdentifier()
The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't case-sensitive.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
public RestoreDBClusterFromSnapshotRequest withDBClusterIdentifier(String dBClusterIdentifier)
The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't case-sensitive.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
dBClusterIdentifier
- The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't
case-sensitive.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
public void setSnapshotIdentifier(String snapshotIdentifier)
The identifier for the DB snapshot or DB cluster snapshot to restore from.
You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot.
Constraints:
Must match the identifier of an existing Snapshot.
snapshotIdentifier
- The identifier for the DB snapshot or DB cluster snapshot to restore from.
You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot.
Constraints:
Must match the identifier of an existing Snapshot.
public String getSnapshotIdentifier()
The identifier for the DB snapshot or DB cluster snapshot to restore from.
You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot.
Constraints:
Must match the identifier of an existing Snapshot.
You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot.
Constraints:
Must match the identifier of an existing Snapshot.
public RestoreDBClusterFromSnapshotRequest withSnapshotIdentifier(String snapshotIdentifier)
The identifier for the DB snapshot or DB cluster snapshot to restore from.
You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot.
Constraints:
Must match the identifier of an existing Snapshot.
snapshotIdentifier
- The identifier for the DB snapshot or DB cluster snapshot to restore from.
You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot.
Constraints:
Must match the identifier of an existing Snapshot.
public void setEngine(String engine)
The database engine to use for the new DB cluster.
Default: The same as source
Constraint: Must be compatible with the engine of the source
engine
- The database engine to use for the new DB cluster.
Default: The same as source
Constraint: Must be compatible with the engine of the source
public String getEngine()
The database engine to use for the new DB cluster.
Default: The same as source
Constraint: Must be compatible with the engine of the source
Default: The same as source
Constraint: Must be compatible with the engine of the source
public RestoreDBClusterFromSnapshotRequest withEngine(String engine)
The database engine to use for the new DB cluster.
Default: The same as source
Constraint: Must be compatible with the engine of the source
engine
- The database engine to use for the new DB cluster.
Default: The same as source
Constraint: Must be compatible with the engine of the source
public void setEngineVersion(String engineVersion)
The version of the database engine to use for the new DB cluster.
engineVersion
- The version of the database engine to use for the new DB cluster.public String getEngineVersion()
The version of the database engine to use for the new DB cluster.
public RestoreDBClusterFromSnapshotRequest withEngineVersion(String engineVersion)
The version of the database engine to use for the new DB cluster.
engineVersion
- The version of the database engine to use for the new DB cluster.public void setPort(Integer port)
The port number on which the new DB cluster accepts connections.
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
port
- The port number on which the new DB cluster accepts connections.
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
public Integer getPort()
The port number on which the new DB cluster accepts connections.
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
public RestoreDBClusterFromSnapshotRequest withPort(Integer port)
The port number on which the new DB cluster accepts connections.
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
port
- The port number on which the new DB cluster accepts connections.
Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
public void setDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group to use for the new DB cluster.
Constraints: If supplied, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
dBSubnetGroupName
- The name of the DB subnet group to use for the new DB cluster.
Constraints: If supplied, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
public String getDBSubnetGroupName()
The name of the DB subnet group to use for the new DB cluster.
Constraints: If supplied, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
Constraints: If supplied, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
public RestoreDBClusterFromSnapshotRequest withDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group to use for the new DB cluster.
Constraints: If supplied, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
dBSubnetGroupName
- The name of the DB subnet group to use for the new DB cluster.
Constraints: If supplied, must match the name of an existing DBSubnetGroup.
Example: mySubnetgroup
public void setDatabaseName(String databaseName)
Not supported.
databaseName
- Not supported.public String getDatabaseName()
Not supported.
public RestoreDBClusterFromSnapshotRequest withDatabaseName(String databaseName)
Not supported.
databaseName
- Not supported.public void setOptionGroupName(String optionGroupName)
(Not supported by Neptune)
optionGroupName
- (Not supported by Neptune)public String getOptionGroupName()
(Not supported by Neptune)
public RestoreDBClusterFromSnapshotRequest withOptionGroupName(String optionGroupName)
(Not supported by Neptune)
optionGroupName
- (Not supported by Neptune)public List<String> getVpcSecurityGroupIds()
A list of VPC security groups that the new DB cluster will belong to.
public void setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of VPC security groups that the new DB cluster will belong to.
vpcSecurityGroupIds
- A list of VPC security groups that the new DB cluster will belong to.public RestoreDBClusterFromSnapshotRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
A list of VPC security groups that the new DB cluster will belong to.
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 VPC security groups that the new DB cluster will belong to.public RestoreDBClusterFromSnapshotRequest withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of VPC security groups that the new DB cluster will belong to.
vpcSecurityGroupIds
- A list of VPC security groups that the new DB cluster will belong to.public List<Tag> getTags()
The tags to be assigned to the restored DB cluster.
public void setTags(Collection<Tag> tags)
The tags to be assigned to the restored DB cluster.
tags
- The tags to be assigned to the restored DB cluster.public RestoreDBClusterFromSnapshotRequest withTags(Tag... tags)
The tags to be assigned to the restored DB cluster.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to be assigned to the restored DB cluster.public RestoreDBClusterFromSnapshotRequest withTags(Collection<Tag> tags)
The tags to be assigned to the restored DB cluster.
tags
- The tags to be assigned to the restored DB cluster.public void setKmsKeyId(String kmsKeyId)
The Amazon KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster snapshot.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.
If you do not specify a value for the KmsKeyId
parameter, then the following will occur:
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is encrypted, then the restored DB
cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster snapshot.
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is not encrypted, then the restored
DB cluster is not encrypted.
kmsKeyId
- The Amazon KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB
cluster snapshot.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.
If you do not specify a value for the KmsKeyId
parameter, then the following will occur:
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is encrypted, then the
restored DB cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster
snapshot.
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is not encrypted, then the
restored DB cluster is not encrypted.
public String getKmsKeyId()
The Amazon KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster snapshot.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.
If you do not specify a value for the KmsKeyId
parameter, then the following will occur:
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is encrypted, then the restored DB
cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster snapshot.
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is not encrypted, then the restored
DB cluster is not encrypted.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.
If you do not specify a value for the KmsKeyId
parameter, then the following will occur:
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is encrypted, then the
restored DB cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster
snapshot.
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is not encrypted, then the
restored DB cluster is not encrypted.
public RestoreDBClusterFromSnapshotRequest withKmsKeyId(String kmsKeyId)
The Amazon KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster snapshot.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.
If you do not specify a value for the KmsKeyId
parameter, then the following will occur:
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is encrypted, then the restored DB
cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster snapshot.
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is not encrypted, then the restored
DB cluster is not encrypted.
kmsKeyId
- The Amazon KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB
cluster snapshot.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.
If you do not specify a value for the KmsKeyId
parameter, then the following will occur:
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is encrypted, then the
restored DB cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster
snapshot.
If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is not encrypted, then the
restored DB cluster is not encrypted.
public void setEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication)
True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.
Default: false
enableIAMDatabaseAuthentication
- True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and
otherwise false.
Default: false
public Boolean getEnableIAMDatabaseAuthentication()
True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.
Default: false
Default: false
public RestoreDBClusterFromSnapshotRequest withEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication)
True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.
Default: false
enableIAMDatabaseAuthentication
- True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and
otherwise false.
Default: false
public Boolean isEnableIAMDatabaseAuthentication()
True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.
Default: false
Default: false
public List<String> getEnableCloudwatchLogsExports()
The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.
public void setEnableCloudwatchLogsExports(Collection<String> enableCloudwatchLogsExports)
The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.
enableCloudwatchLogsExports
- The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.public RestoreDBClusterFromSnapshotRequest withEnableCloudwatchLogsExports(String... enableCloudwatchLogsExports)
The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.
NOTE: This method appends the values to the existing list (if any). Use
setEnableCloudwatchLogsExports(java.util.Collection)
or
withEnableCloudwatchLogsExports(java.util.Collection)
if you want to override the existing values.
enableCloudwatchLogsExports
- The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.public RestoreDBClusterFromSnapshotRequest withEnableCloudwatchLogsExports(Collection<String> enableCloudwatchLogsExports)
The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.
enableCloudwatchLogsExports
- The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.public void setDBClusterParameterGroupName(String dBClusterParameterGroupName)
The name of the DB cluster parameter group to associate with the new DB cluster.
Constraints:
If supplied, must match the name of an existing DBClusterParameterGroup.
dBClusterParameterGroupName
- The name of the DB cluster parameter group to associate with the new DB cluster.
Constraints:
If supplied, must match the name of an existing DBClusterParameterGroup.
public String getDBClusterParameterGroupName()
The name of the DB cluster parameter group to associate with the new DB cluster.
Constraints:
If supplied, must match the name of an existing DBClusterParameterGroup.
Constraints:
If supplied, must match the name of an existing DBClusterParameterGroup.
public RestoreDBClusterFromSnapshotRequest withDBClusterParameterGroupName(String dBClusterParameterGroupName)
The name of the DB cluster parameter group to associate with the new DB cluster.
Constraints:
If supplied, must match the name of an existing DBClusterParameterGroup.
dBClusterParameterGroupName
- The name of the DB cluster parameter group to associate with the new DB cluster.
Constraints:
If supplied, must match the name of an existing DBClusterParameterGroup.
public void setDeletionProtection(Boolean deletionProtection)
A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.
deletionProtection
- A value that indicates whether the DB cluster has deletion protection enabled. The database can't be
deleted when deletion protection is enabled. By default, deletion protection is disabled.public Boolean getDeletionProtection()
A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.
public RestoreDBClusterFromSnapshotRequest withDeletionProtection(Boolean deletionProtection)
A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.
deletionProtection
- A value that indicates whether the DB cluster has deletion protection enabled. The database can't be
deleted when deletion protection is enabled. By default, deletion protection is disabled.public Boolean isDeletionProtection()
A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.
public void setCopyTagsToSnapshot(Boolean copyTagsToSnapshot)
If set to true
, tags are copied to any snapshot of the restored DB cluster that is created.
copyTagsToSnapshot
- If set to true
, tags are copied to any snapshot of the restored DB cluster that is
created.public Boolean getCopyTagsToSnapshot()
If set to true
, tags are copied to any snapshot of the restored DB cluster that is created.
true
, tags are copied to any snapshot of the restored DB cluster that is
created.public RestoreDBClusterFromSnapshotRequest withCopyTagsToSnapshot(Boolean copyTagsToSnapshot)
If set to true
, tags are copied to any snapshot of the restored DB cluster that is created.
copyTagsToSnapshot
- If set to true
, tags are copied to any snapshot of the restored DB cluster that is
created.public Boolean isCopyTagsToSnapshot()
If set to true
, tags are copied to any snapshot of the restored DB cluster that is created.
true
, tags are copied to any snapshot of the restored DB cluster that is
created.public void setServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration)
Contains the scaling configuration of a Neptune Serverless DB cluster.
For more information, see Using Amazon Neptune Serverless in the Amazon Neptune User Guide.
serverlessV2ScalingConfiguration
- Contains the scaling configuration of a Neptune Serverless DB cluster.
For more information, see Using Amazon Neptune Serverless in the Amazon Neptune User Guide.
public ServerlessV2ScalingConfiguration getServerlessV2ScalingConfiguration()
Contains the scaling configuration of a Neptune Serverless DB cluster.
For more information, see Using Amazon Neptune Serverless in the Amazon Neptune User Guide.
For more information, see Using Amazon Neptune Serverless in the Amazon Neptune User Guide.
public RestoreDBClusterFromSnapshotRequest withServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration)
Contains the scaling configuration of a Neptune Serverless DB cluster.
For more information, see Using Amazon Neptune Serverless in the Amazon Neptune User Guide.
serverlessV2ScalingConfiguration
- Contains the scaling configuration of a Neptune Serverless DB cluster.
For more information, see Using Amazon Neptune Serverless in the Amazon Neptune User Guide.
public void setStorageType(String storageType)
Specifies the storage type to be associated with the DB cluster.
Valid values: standard
, iopt1
Default: standard
storageType
- Specifies the storage type to be associated with the DB cluster.
Valid values: standard
, iopt1
Default: standard
public String getStorageType()
Specifies the storage type to be associated with the DB cluster.
Valid values: standard
, iopt1
Default: standard
Valid values: standard
, iopt1
Default: standard
public RestoreDBClusterFromSnapshotRequest withStorageType(String storageType)
Specifies the storage type to be associated with the DB cluster.
Valid values: standard
, iopt1
Default: standard
storageType
- Specifies the storage type to be associated with the DB cluster.
Valid values: standard
, iopt1
Default: standard
public String toString()
toString
in class Object
Object.toString()
public RestoreDBClusterFromSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()