@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDBClusterRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input to CreateDBCluster.
NOOP
Constructor and Description |
---|
CreateDBClusterRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDBClusterRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getAvailabilityZones()
A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
|
Integer |
getBackupRetentionPeriod()
The number of days for which automated backups are retained.
|
String |
getDBClusterIdentifier()
The cluster identifier.
|
String |
getDBClusterParameterGroupName()
The name of the cluster parameter group to associate with this cluster.
|
String |
getDBSubnetGroupName()
A subnet group to associate with this cluster.
|
Boolean |
getDeletionProtection()
Specifies whether this cluster can be deleted.
|
List<String> |
getEnableCloudwatchLogsExports()
A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs.
|
String |
getEngine()
The name of the database engine to be used for this cluster.
|
String |
getEngineVersion()
The version number of the database engine to use.
|
String |
getGlobalClusterIdentifier()
The cluster identifier of the new global cluster.
|
String |
getKmsKeyId()
The KMS key identifier for an encrypted cluster.
|
String |
getMasterUsername()
The name of the master user for the cluster.
|
String |
getMasterUserPassword()
The password for the master database user.
|
Integer |
getPort()
The port number on which the instances in the cluster accept connections.
|
String |
getPreferredBackupWindow()
The daily time range during which automated backups are created if automated backups are enabled using the
BackupRetentionPeriod parameter. |
String |
getPreferredMaintenanceWindow()
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
String |
getPreSignedUrl()
Not currently supported.
|
String |
getSourceRegion()
The region where the source instance is located.
|
Boolean |
getStorageEncrypted()
Specifies whether the cluster is encrypted.
|
String |
getStorageType()
The storage type to associate with the DB cluster.
|
List<Tag> |
getTags()
The tags to be assigned to the cluster.
|
List<String> |
getVpcSecurityGroupIds()
A list of EC2 VPC security groups to associate with this cluster.
|
int |
hashCode() |
Boolean |
isDeletionProtection()
Specifies whether this cluster can be deleted.
|
Boolean |
isStorageEncrypted()
Specifies whether the cluster is encrypted.
|
void |
setAvailabilityZones(Collection<String> availabilityZones)
A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
|
void |
setBackupRetentionPeriod(Integer backupRetentionPeriod)
The number of days for which automated backups are retained.
|
void |
setDBClusterIdentifier(String dBClusterIdentifier)
The cluster identifier.
|
void |
setDBClusterParameterGroupName(String dBClusterParameterGroupName)
The name of the cluster parameter group to associate with this cluster.
|
void |
setDBSubnetGroupName(String dBSubnetGroupName)
A subnet group to associate with this cluster.
|
void |
setDeletionProtection(Boolean deletionProtection)
Specifies whether this cluster can be deleted.
|
void |
setEnableCloudwatchLogsExports(Collection<String> enableCloudwatchLogsExports)
A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs.
|
void |
setEngine(String engine)
The name of the database engine to be used for this cluster.
|
void |
setEngineVersion(String engineVersion)
The version number of the database engine to use.
|
void |
setGlobalClusterIdentifier(String globalClusterIdentifier)
The cluster identifier of the new global cluster.
|
void |
setKmsKeyId(String kmsKeyId)
The KMS key identifier for an encrypted cluster.
|
void |
setMasterUsername(String masterUsername)
The name of the master user for the cluster.
|
void |
setMasterUserPassword(String masterUserPassword)
The password for the master database user.
|
void |
setPort(Integer port)
The port number on which the instances in the cluster accept connections.
|
void |
setPreferredBackupWindow(String preferredBackupWindow)
The daily time range during which automated backups are created if automated backups are enabled using the
BackupRetentionPeriod parameter. |
void |
setPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
void |
setPreSignedUrl(String preSignedUrl)
Not currently supported.
|
void |
setSourceRegion(String sourceRegion)
The region where the source instance is located.
|
void |
setStorageEncrypted(Boolean storageEncrypted)
Specifies whether the cluster is encrypted.
|
void |
setStorageType(String storageType)
The storage type to associate with the DB cluster.
|
void |
setTags(Collection<Tag> tags)
The tags to be assigned to the cluster.
|
void |
setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with this cluster.
|
String |
toString()
Returns a string representation of this object.
|
CreateDBClusterRequest |
withAvailabilityZones(Collection<String> availabilityZones)
A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
|
CreateDBClusterRequest |
withAvailabilityZones(String... availabilityZones)
A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
|
CreateDBClusterRequest |
withBackupRetentionPeriod(Integer backupRetentionPeriod)
The number of days for which automated backups are retained.
|
CreateDBClusterRequest |
withDBClusterIdentifier(String dBClusterIdentifier)
The cluster identifier.
|
CreateDBClusterRequest |
withDBClusterParameterGroupName(String dBClusterParameterGroupName)
The name of the cluster parameter group to associate with this cluster.
|
CreateDBClusterRequest |
withDBSubnetGroupName(String dBSubnetGroupName)
A subnet group to associate with this cluster.
|
CreateDBClusterRequest |
withDeletionProtection(Boolean deletionProtection)
Specifies whether this cluster can be deleted.
|
CreateDBClusterRequest |
withEnableCloudwatchLogsExports(Collection<String> enableCloudwatchLogsExports)
A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs.
|
CreateDBClusterRequest |
withEnableCloudwatchLogsExports(String... enableCloudwatchLogsExports)
A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs.
|
CreateDBClusterRequest |
withEngine(String engine)
The name of the database engine to be used for this cluster.
|
CreateDBClusterRequest |
withEngineVersion(String engineVersion)
The version number of the database engine to use.
|
CreateDBClusterRequest |
withGlobalClusterIdentifier(String globalClusterIdentifier)
The cluster identifier of the new global cluster.
|
CreateDBClusterRequest |
withKmsKeyId(String kmsKeyId)
The KMS key identifier for an encrypted cluster.
|
CreateDBClusterRequest |
withMasterUsername(String masterUsername)
The name of the master user for the cluster.
|
CreateDBClusterRequest |
withMasterUserPassword(String masterUserPassword)
The password for the master database user.
|
CreateDBClusterRequest |
withPort(Integer port)
The port number on which the instances in the cluster accept connections.
|
CreateDBClusterRequest |
withPreferredBackupWindow(String preferredBackupWindow)
The daily time range during which automated backups are created if automated backups are enabled using the
BackupRetentionPeriod parameter. |
CreateDBClusterRequest |
withPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
CreateDBClusterRequest |
withPreSignedUrl(String preSignedUrl)
Not currently supported.
|
CreateDBClusterRequest |
withSourceRegion(String sourceRegion)
The region where the source instance is located.
|
CreateDBClusterRequest |
withStorageEncrypted(Boolean storageEncrypted)
Specifies whether the cluster is encrypted.
|
CreateDBClusterRequest |
withStorageType(String storageType)
The storage type to associate with the DB cluster.
|
CreateDBClusterRequest |
withTags(Collection<Tag> tags)
The tags to be assigned to the cluster.
|
CreateDBClusterRequest |
withTags(Tag... tags)
The tags to be assigned to the cluster.
|
CreateDBClusterRequest |
withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with this cluster.
|
CreateDBClusterRequest |
withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with this 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 List<String> getAvailabilityZones()
A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
public void setAvailabilityZones(Collection<String> availabilityZones)
A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
availabilityZones
- A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.public CreateDBClusterRequest withAvailabilityZones(String... availabilityZones)
A list of Amazon EC2 Availability Zones that instances in the 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
- A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.public CreateDBClusterRequest withAvailabilityZones(Collection<String> availabilityZones)
A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
availabilityZones
- A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.public void setBackupRetentionPeriod(Integer backupRetentionPeriod)
The number of days for which automated backups are retained. You must specify a minimum value of 1.
Default: 1
Constraints:
Must be a value from 1 to 35.
backupRetentionPeriod
- The number of days for which automated backups are retained. You must specify a minimum value of 1.
Default: 1
Constraints:
Must be a value from 1 to 35.
public Integer getBackupRetentionPeriod()
The number of days for which automated backups are retained. You must specify a minimum value of 1.
Default: 1
Constraints:
Must be a value from 1 to 35.
Default: 1
Constraints:
Must be a value from 1 to 35.
public CreateDBClusterRequest withBackupRetentionPeriod(Integer backupRetentionPeriod)
The number of days for which automated backups are retained. You must specify a minimum value of 1.
Default: 1
Constraints:
Must be a value from 1 to 35.
backupRetentionPeriod
- The number of days for which automated backups are retained. You must specify a minimum value of 1.
Default: 1
Constraints:
Must be a value from 1 to 35.
public void setDBClusterIdentifier(String dBClusterIdentifier)
The cluster identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster
dBClusterIdentifier
- The cluster identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster
public String getDBClusterIdentifier()
The cluster identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster
public CreateDBClusterRequest withDBClusterIdentifier(String dBClusterIdentifier)
The cluster identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster
dBClusterIdentifier
- The cluster identifier. This parameter is stored as a lowercase string.
Constraints:
Must contain from 1 to 63 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster
public void setDBClusterParameterGroupName(String dBClusterParameterGroupName)
The name of the cluster parameter group to associate with this cluster.
dBClusterParameterGroupName
- The name of the cluster parameter group to associate with this cluster.public String getDBClusterParameterGroupName()
The name of the cluster parameter group to associate with this cluster.
public CreateDBClusterRequest withDBClusterParameterGroupName(String dBClusterParameterGroupName)
The name of the cluster parameter group to associate with this cluster.
dBClusterParameterGroupName
- The name of the cluster parameter group to associate with this cluster.public List<String> getVpcSecurityGroupIds()
A list of EC2 VPC security groups to associate with this cluster.
public void setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with this cluster.
vpcSecurityGroupIds
- A list of EC2 VPC security groups to associate with this cluster.public CreateDBClusterRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with this 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 this cluster.public CreateDBClusterRequest withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with this cluster.
vpcSecurityGroupIds
- A list of EC2 VPC security groups to associate with this cluster.public void setDBSubnetGroupName(String dBSubnetGroupName)
A subnet group to associate with this cluster.
Constraints: Must match the name of an existing DBSubnetGroup
. Must not be default.
Example: mySubnetgroup
dBSubnetGroupName
- A subnet group to associate with this cluster.
Constraints: Must match the name of an existing DBSubnetGroup
. Must not be default.
Example: mySubnetgroup
public String getDBSubnetGroupName()
A subnet group to associate with this cluster.
Constraints: Must match the name of an existing DBSubnetGroup
. Must not be default.
Example: mySubnetgroup
Constraints: Must match the name of an existing DBSubnetGroup
. Must not be default.
Example: mySubnetgroup
public CreateDBClusterRequest withDBSubnetGroupName(String dBSubnetGroupName)
A subnet group to associate with this cluster.
Constraints: Must match the name of an existing DBSubnetGroup
. Must not be default.
Example: mySubnetgroup
dBSubnetGroupName
- A subnet group to associate with this cluster.
Constraints: Must match the name of an existing DBSubnetGroup
. Must not be default.
Example: mySubnetgroup
public void setEngine(String engine)
The name of the database engine to be used for this cluster.
Valid values: docdb
engine
- The name of the database engine to be used for this cluster.
Valid values: docdb
public String getEngine()
The name of the database engine to be used for this cluster.
Valid values: docdb
Valid values: docdb
public CreateDBClusterRequest withEngine(String engine)
The name of the database engine to be used for this cluster.
Valid values: docdb
engine
- The name of the database engine to be used for this cluster.
Valid values: docdb
public void setEngineVersion(String engineVersion)
The version number of the database engine to use. The --engine-version
will default to the latest
major engine version. For production workloads, we recommend explicitly declaring this parameter with the
intended major engine version.
engineVersion
- The version number of the database engine to use. The --engine-version
will default to the
latest major engine version. For production workloads, we recommend explicitly declaring this parameter
with the intended major engine version.public String getEngineVersion()
The version number of the database engine to use. The --engine-version
will default to the latest
major engine version. For production workloads, we recommend explicitly declaring this parameter with the
intended major engine version.
--engine-version
will default to the
latest major engine version. For production workloads, we recommend explicitly declaring this parameter
with the intended major engine version.public CreateDBClusterRequest withEngineVersion(String engineVersion)
The version number of the database engine to use. The --engine-version
will default to the latest
major engine version. For production workloads, we recommend explicitly declaring this parameter with the
intended major engine version.
engineVersion
- The version number of the database engine to use. The --engine-version
will default to the
latest major engine version. For production workloads, we recommend explicitly declaring this parameter
with the intended major engine version.public void setPort(Integer port)
The port number on which the instances in the cluster accept connections.
port
- The port number on which the instances in the cluster accept connections.public Integer getPort()
The port number on which the instances in the cluster accept connections.
public CreateDBClusterRequest withPort(Integer port)
The port number on which the instances in the cluster accept connections.
port
- The port number on which the instances in the cluster accept connections.public void setMasterUsername(String masterUsername)
The name of the master user for the cluster.
Constraints:
Must be from 1 to 63 letters or numbers.
The first character must be a letter.
Cannot be a reserved word for the chosen database engine.
masterUsername
- The name of the master user for the cluster.
Constraints:
Must be from 1 to 63 letters or numbers.
The first character must be a letter.
Cannot be a reserved word for the chosen database engine.
public String getMasterUsername()
The name of the master user for the cluster.
Constraints:
Must be from 1 to 63 letters or numbers.
The first character must be a letter.
Cannot be a reserved word for the chosen database engine.
Constraints:
Must be from 1 to 63 letters or numbers.
The first character must be a letter.
Cannot be a reserved word for the chosen database engine.
public CreateDBClusterRequest withMasterUsername(String masterUsername)
The name of the master user for the cluster.
Constraints:
Must be from 1 to 63 letters or numbers.
The first character must be a letter.
Cannot be a reserved word for the chosen database engine.
masterUsername
- The name of the master user for the cluster.
Constraints:
Must be from 1 to 63 letters or numbers.
The first character must be a letter.
Cannot be a reserved word for the chosen database engine.
public void setMasterUserPassword(String masterUserPassword)
The password for the master database user. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@).
Constraints: Must contain from 8 to 100 characters.
masterUserPassword
- The password for the master database user. This password can contain any printable ASCII character except
forward slash (/), double quote ("), or the "at" symbol (@).
Constraints: Must contain from 8 to 100 characters.
public String getMasterUserPassword()
The password for the master database user. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@).
Constraints: Must contain from 8 to 100 characters.
Constraints: Must contain from 8 to 100 characters.
public CreateDBClusterRequest withMasterUserPassword(String masterUserPassword)
The password for the master database user. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@).
Constraints: Must contain from 8 to 100 characters.
masterUserPassword
- The password for the master database user. This password can contain any printable ASCII character except
forward slash (/), double quote ("), or the "at" symbol (@).
Constraints: Must contain from 8 to 100 characters.
public void setPreferredBackupWindow(String preferredBackupWindow)
The daily time range during which automated backups are created if automated backups are enabled using the
BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region.
Constraints:
Must be in the format hh24:mi-hh24:mi
.
Must be in Universal Coordinated Time (UTC).
Must not conflict with the preferred maintenance window.
Must be at least 30 minutes.
preferredBackupWindow
- The daily time range during which automated backups are created if automated backups are enabled using the
BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region.
Constraints:
Must be in the format hh24:mi-hh24:mi
.
Must be in Universal Coordinated Time (UTC).
Must not conflict with the preferred maintenance window.
Must be at least 30 minutes.
public String getPreferredBackupWindow()
The daily time range during which automated backups are created if automated backups are enabled using the
BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region.
Constraints:
Must be in the format hh24:mi-hh24:mi
.
Must be in Universal Coordinated Time (UTC).
Must not conflict with the preferred maintenance window.
Must be at least 30 minutes.
BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region.
Constraints:
Must be in the format hh24:mi-hh24:mi
.
Must be in Universal Coordinated Time (UTC).
Must not conflict with the preferred maintenance window.
Must be at least 30 minutes.
public CreateDBClusterRequest withPreferredBackupWindow(String preferredBackupWindow)
The daily time range during which automated backups are created if automated backups are enabled using the
BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region.
Constraints:
Must be in the format hh24:mi-hh24:mi
.
Must be in Universal Coordinated Time (UTC).
Must not conflict with the preferred maintenance window.
Must be at least 30 minutes.
preferredBackupWindow
- The daily time range during which automated backups are created if automated backups are enabled using the
BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region.
Constraints:
Must be in the format hh24:mi-hh24:mi
.
Must be in Universal Coordinated Time (UTC).
Must not conflict with the preferred maintenance window.
Must be at least 30 minutes.
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
preferredMaintenanceWindow
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
public String getPreferredMaintenanceWindow()
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
public CreateDBClusterRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow)
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
preferredMaintenanceWindow
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
public List<Tag> getTags()
The tags to be assigned to the cluster.
public void setTags(Collection<Tag> tags)
The tags to be assigned to the cluster.
tags
- The tags to be assigned to the cluster.public CreateDBClusterRequest withTags(Tag... tags)
The tags to be assigned to the 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 cluster.public CreateDBClusterRequest withTags(Collection<Tag> tags)
The tags to be assigned to the cluster.
tags
- The tags to be assigned to the cluster.public void setStorageEncrypted(Boolean storageEncrypted)
Specifies whether the cluster is encrypted.
storageEncrypted
- Specifies whether the cluster is encrypted.public Boolean getStorageEncrypted()
Specifies whether the cluster is encrypted.
public CreateDBClusterRequest withStorageEncrypted(Boolean storageEncrypted)
Specifies whether the cluster is encrypted.
storageEncrypted
- Specifies whether the cluster is encrypted.public Boolean isStorageEncrypted()
Specifies whether the cluster is encrypted.
public void setKmsKeyId(String kmsKeyId)
The KMS key identifier for an encrypted 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 Web Services account that owns the KMS encryption key that is used to encrypt the new cluster, you can use the KMS key alias instead of the ARN for the KMS encryption key.
If an encryption key is not specified in KmsKeyId
:
If the StorageEncrypted
parameter is true
, Amazon DocumentDB uses your default
encryption key.
KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Regions.
kmsKeyId
- The KMS key identifier for an encrypted 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 Web Services account that owns the KMS encryption key that is used to encrypt the new cluster, you can use the KMS key alias instead of the ARN for the KMS encryption key.
If an encryption key is not specified in KmsKeyId
:
If the StorageEncrypted
parameter is true
, Amazon DocumentDB uses your default
encryption key.
KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Regions.
public String getKmsKeyId()
The KMS key identifier for an encrypted 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 Web Services account that owns the KMS encryption key that is used to encrypt the new cluster, you can use the KMS key alias instead of the ARN for the KMS encryption key.
If an encryption key is not specified in KmsKeyId
:
If the StorageEncrypted
parameter is true
, Amazon DocumentDB uses your default
encryption key.
KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Regions.
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 Web Services account that owns the KMS encryption key that is used to encrypt the new cluster, you can use the KMS key alias instead of the ARN for the KMS encryption key.
If an encryption key is not specified in KmsKeyId
:
If the StorageEncrypted
parameter is true
, Amazon DocumentDB uses your default
encryption key.
KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Regions.
public CreateDBClusterRequest withKmsKeyId(String kmsKeyId)
The KMS key identifier for an encrypted 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 Web Services account that owns the KMS encryption key that is used to encrypt the new cluster, you can use the KMS key alias instead of the ARN for the KMS encryption key.
If an encryption key is not specified in KmsKeyId
:
If the StorageEncrypted
parameter is true
, Amazon DocumentDB uses your default
encryption key.
KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Regions.
kmsKeyId
- The KMS key identifier for an encrypted 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 Web Services account that owns the KMS encryption key that is used to encrypt the new cluster, you can use the KMS key alias instead of the ARN for the KMS encryption key.
If an encryption key is not specified in KmsKeyId
:
If the StorageEncrypted
parameter is true
, Amazon DocumentDB uses your default
encryption key.
KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Regions.
public void setPreSignedUrl(String preSignedUrl)
Not currently supported.
preSignedUrl
- Not currently supported.public String getPreSignedUrl()
Not currently supported.
public CreateDBClusterRequest withPreSignedUrl(String preSignedUrl)
Not currently supported.
preSignedUrl
- Not currently supported.public List<String> getEnableCloudwatchLogsExports()
A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit logs or profiler logs. For more information, see Auditing Amazon DocumentDB Events and Profiling Amazon DocumentDB Operations.
public void setEnableCloudwatchLogsExports(Collection<String> enableCloudwatchLogsExports)
A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit logs or profiler logs. For more information, see Auditing Amazon DocumentDB Events and Profiling Amazon DocumentDB Operations.
enableCloudwatchLogsExports
- A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit
logs or profiler logs. For more information, see Auditing Amazon
DocumentDB Events and Profiling Amazon
DocumentDB Operations.public CreateDBClusterRequest withEnableCloudwatchLogsExports(String... enableCloudwatchLogsExports)
A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit logs or profiler logs. For more information, see Auditing Amazon DocumentDB Events and Profiling Amazon DocumentDB Operations.
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
- A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit
logs or profiler logs. For more information, see Auditing Amazon
DocumentDB Events and Profiling Amazon
DocumentDB Operations.public CreateDBClusterRequest withEnableCloudwatchLogsExports(Collection<String> enableCloudwatchLogsExports)
A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit logs or profiler logs. For more information, see Auditing Amazon DocumentDB Events and Profiling Amazon DocumentDB Operations.
enableCloudwatchLogsExports
- A list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit
logs or profiler logs. For more information, see Auditing Amazon
DocumentDB Events and Profiling Amazon
DocumentDB Operations.public void setDeletionProtection(Boolean deletionProtection)
Specifies whether this cluster can be deleted. If DeletionProtection
is enabled, the cluster cannot
be deleted unless it is modified and DeletionProtection
is disabled. DeletionProtection
protects clusters from being accidentally deleted.
deletionProtection
- Specifies whether this cluster can be deleted. If DeletionProtection
is enabled, the cluster
cannot be deleted unless it is modified and DeletionProtection
is disabled.
DeletionProtection
protects clusters from being accidentally deleted.public Boolean getDeletionProtection()
Specifies whether this cluster can be deleted. If DeletionProtection
is enabled, the cluster cannot
be deleted unless it is modified and DeletionProtection
is disabled. DeletionProtection
protects clusters from being accidentally deleted.
DeletionProtection
is enabled, the cluster
cannot be deleted unless it is modified and DeletionProtection
is disabled.
DeletionProtection
protects clusters from being accidentally deleted.public CreateDBClusterRequest withDeletionProtection(Boolean deletionProtection)
Specifies whether this cluster can be deleted. If DeletionProtection
is enabled, the cluster cannot
be deleted unless it is modified and DeletionProtection
is disabled. DeletionProtection
protects clusters from being accidentally deleted.
deletionProtection
- Specifies whether this cluster can be deleted. If DeletionProtection
is enabled, the cluster
cannot be deleted unless it is modified and DeletionProtection
is disabled.
DeletionProtection
protects clusters from being accidentally deleted.public Boolean isDeletionProtection()
Specifies whether this cluster can be deleted. If DeletionProtection
is enabled, the cluster cannot
be deleted unless it is modified and DeletionProtection
is disabled. DeletionProtection
protects clusters from being accidentally deleted.
DeletionProtection
is enabled, the cluster
cannot be deleted unless it is modified and DeletionProtection
is disabled.
DeletionProtection
protects clusters from being accidentally deleted.public void setGlobalClusterIdentifier(String globalClusterIdentifier)
The cluster identifier of the new global cluster.
globalClusterIdentifier
- The cluster identifier of the new global cluster.public String getGlobalClusterIdentifier()
The cluster identifier of the new global cluster.
public CreateDBClusterRequest withGlobalClusterIdentifier(String globalClusterIdentifier)
The cluster identifier of the new global cluster.
globalClusterIdentifier
- The cluster identifier of the new global cluster.public void setStorageType(String storageType)
The storage type to associate with the DB cluster.
For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the Amazon DocumentDB Developer Guide.
Valid values for storage type - standard | iopt1
Default value is standard
When you create a DocumentDB DB cluster with the storage type set to iopt1
, the storage type is
returned in the response. The storage type isn't returned when you set it to standard
.
storageType
- The storage type to associate with the DB cluster.
For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the Amazon DocumentDB Developer Guide.
Valid values for storage type - standard | iopt1
Default value is standard
When you create a DocumentDB DB cluster with the storage type set to iopt1
, the storage type
is returned in the response. The storage type isn't returned when you set it to standard
.
public String getStorageType()
The storage type to associate with the DB cluster.
For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the Amazon DocumentDB Developer Guide.
Valid values for storage type - standard | iopt1
Default value is standard
When you create a DocumentDB DB cluster with the storage type set to iopt1
, the storage type is
returned in the response. The storage type isn't returned when you set it to standard
.
For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the Amazon DocumentDB Developer Guide.
Valid values for storage type - standard | iopt1
Default value is standard
When you create a DocumentDB DB cluster with the storage type set to iopt1
, the storage type
is returned in the response. The storage type isn't returned when you set it to standard
.
public CreateDBClusterRequest withStorageType(String storageType)
The storage type to associate with the DB cluster.
For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the Amazon DocumentDB Developer Guide.
Valid values for storage type - standard | iopt1
Default value is standard
When you create a DocumentDB DB cluster with the storage type set to iopt1
, the storage type is
returned in the response. The storage type isn't returned when you set it to standard
.
storageType
- The storage type to associate with the DB cluster.
For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the Amazon DocumentDB Developer Guide.
Valid values for storage type - standard | iopt1
Default value is standard
When you create a DocumentDB DB cluster with the storage type set to iopt1
, the storage type
is returned in the response. The storage type isn't returned when you set it to standard
.
public void setSourceRegion(String sourceRegion)
sourceRegion
- The region where the source instance is located.public String getSourceRegion()
public CreateDBClusterRequest withSourceRegion(String sourceRegion)
sourceRegion
- The region where the source instance is located.public String toString()
toString
in class Object
Object.toString()
public CreateDBClusterRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()