com.amazonaws.services.rds.model.CreateDBClusterRequest Maven / Gradle / Ivy
/*
* Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
* use this file except in compliance with the License. A copy of the License is
* located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.rds.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
*/
public class CreateDBClusterRequest extends
com.amazonaws.AmazonWebServiceRequest implements Serializable,
Cloneable {
/**
*
* A list of EC2 Availability Zones that instances in the DB cluster can be
* created in. For information on regions and Availability Zones, see Regions and Availability Zones.
*
*/
private com.amazonaws.internal.SdkInternalList availabilityZones;
/**
*
* 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
*
*
*
*/
private Integer backupRetentionPeriod;
/**
*
* A value that indicates that the DB cluster should be associated with the
* specified CharacterSet.
*
*/
private String characterSetName;
/**
*
* The name for your database of up to 8 alpha-numeric characters. If you do
* not provide a name, Amazon RDS will not create a database in the DB
* cluster you are creating.
*
*/
private String databaseName;
/**
*
* The DB cluster identifier. This parameter is stored as a lowercase
* string.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*
*/
private String dBClusterIdentifier;
/**
*
* The name of the DB cluster parameter group to associate with this DB
* cluster. If this argument is omitted, default.aurora5.6
will
* be used.
*
*
* Constraints:
*
*
* -
*
* Must be 1 to 255 alphanumeric characters
*
*
* -
*
* First character must be a letter
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens
*
*
*
*/
private String dBClusterParameterGroupName;
/**
*
* A list of EC2 VPC security groups to associate with this DB cluster.
*
*/
private com.amazonaws.internal.SdkInternalList vpcSecurityGroupIds;
/**
*
* A DB subnet group to associate with this DB cluster.
*
*
* Constraints: Must contain no more than 255 alphanumeric characters,
* periods, underscores, spaces, or hyphens. Must not be default.
*
*
* Example: mySubnetgroup
*
*/
private String dBSubnetGroupName;
/**
*
* The name of the database engine to be used for this DB cluster.
*
*
* Valid Values: aurora
*
*/
private String engine;
/**
*
* The version number of the database engine to use.
*
*
* Aurora
*
*
* Example: 5.6.10a
*
*/
private String engineVersion;
/**
*
* The port number on which the instances in the DB cluster accept
* connections.
*
*
* Default: 3306
*
*/
private Integer port;
/**
*
* The name of the master user for the DB cluster.
*
*
* Constraints:
*
*
* -
*
* Must be 1 to 16 alphanumeric characters.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot be a reserved word for the chosen database engine.
*
*
*
*/
private String masterUsername;
/**
*
* The password for the master database user. This password can contain any
* printable ASCII character except "/", """, or "@".
*
*
* Constraints: Must contain from 8 to 41 characters.
*
*/
private String masterUserPassword;
/**
*
* A value that indicates that the DB cluster should be associated with the
* specified option group.
*
*
* Permanent options cannot be removed from an option group. The option
* group cannot be removed from a DB cluster once it is associated with a DB
* cluster.
*
*/
private String optionGroupName;
/**
*
* The daily time range during which automated backups are created if
* automated backups are enabled using the
* BackupRetentionPeriod
parameter.
*
*
* Default: A 30-minute window selected at random from an 8-hour block of
* time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS
* User Guide.
*
*
* Constraints:
*
*
* -
*
* Must be in the format hh24:mi-hh24:mi
.
*
*
* -
*
* Times should be in Universal Coordinated Time (UTC).
*
*
* -
*
* Must not conflict with the preferred maintenance window.
*
*
* -
*
* Must be at least 30 minutes.
*
*
*
*/
private String preferredBackupWindow;
/**
*
* The weekly time range during which system maintenance can occur, in
* Universal Coordinated Time (UTC).
*
*
* Format: ddd:hh24:mi-ddd:hh24:mi
*
*
* Default: A 30-minute window selected at random from an 8-hour block of
* time per region, occurring on a random day of the week. To see the time
* blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS
* User Guide.
*
*
* Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
*
*
* Constraints: Minimum 30-minute window.
*
*/
private String preferredMaintenanceWindow;
/**
*
* The Amazon Resource Name (ARN) of the source DB cluster if this DB
* cluster is created as a Read Replica.
*
*/
private String replicationSourceIdentifier;
private com.amazonaws.internal.SdkInternalList tags;
/**
*
* Specifies whether the DB cluster is encrypted.
*
*/
private Boolean storageEncrypted;
/**
*
* The KMS key identifier for an encrypted DB cluster.
*
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS
* encryption key. If you are creating a DB cluster with the same AWS
* 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 KM
* encryption key.
*
*
* If the StorageEncrypted
parameter is true, and you do not
* specify a value for the KmsKeyId
parameter, then Amazon RDS
* will use your default encryption key. AWS KMS creates the default
* encryption key for your AWS account. Your AWS account has a different
* default encryption key for each AWS region.
*
*/
private String kmsKeyId;
/**
*
* A list of EC2 Availability Zones that instances in the DB cluster can be
* created in. For information on regions and Availability Zones, see Regions and Availability Zones.
*
*
* @return A list of EC2 Availability Zones that instances in the DB cluster
* can be created in. For information on regions and Availability
* Zones, see Regions and Availability Zones.
*/
public java.util.List getAvailabilityZones() {
if (availabilityZones == null) {
availabilityZones = new com.amazonaws.internal.SdkInternalList();
}
return availabilityZones;
}
/**
*
* A list of EC2 Availability Zones that instances in the DB cluster can be
* created in. For information on regions and Availability Zones, see Regions and Availability Zones.
*
*
* @param availabilityZones
* A list of EC2 Availability Zones that instances in the DB cluster
* can be created in. For information on regions and Availability
* Zones, see Regions and Availability Zones.
*/
public void setAvailabilityZones(
java.util.Collection availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null;
return;
}
this.availabilityZones = new com.amazonaws.internal.SdkInternalList(
availabilityZones);
}
/**
*
* A list of EC2 Availability Zones that instances in the DB cluster can be
* created in. For information on regions and Availability Zones, see Regions and Availability Zones.
*
*
* NOTE: This method appends the values to the existing list (if
* any). Use {@link #setAvailabilityZones(java.util.Collection)} or
* {@link #withAvailabilityZones(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param availabilityZones
* A list of EC2 Availability Zones that instances in the DB cluster
* can be created in. For information on regions and Availability
* Zones, see Regions and Availability Zones.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withAvailabilityZones(
String... availabilityZones) {
if (this.availabilityZones == null) {
setAvailabilityZones(new com.amazonaws.internal.SdkInternalList(
availabilityZones.length));
}
for (String ele : availabilityZones) {
this.availabilityZones.add(ele);
}
return this;
}
/**
*
* A list of EC2 Availability Zones that instances in the DB cluster can be
* created in. For information on regions and Availability Zones, see Regions and Availability Zones.
*
*
* @param availabilityZones
* A list of EC2 Availability Zones that instances in the DB cluster
* can be created in. For information on regions and Availability
* Zones, see Regions and Availability Zones.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withAvailabilityZones(
java.util.Collection availabilityZones) {
setAvailabilityZones(availabilityZones);
return this;
}
/**
*
* 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
*
*
*
*
* @param 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 setBackupRetentionPeriod(Integer backupRetentionPeriod) {
this.backupRetentionPeriod = 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
*
*
*
*
* @return 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() {
return this.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
*
*
*
*
* @param 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
*
*
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withBackupRetentionPeriod(
Integer backupRetentionPeriod) {
setBackupRetentionPeriod(backupRetentionPeriod);
return this;
}
/**
*
* A value that indicates that the DB cluster should be associated with the
* specified CharacterSet.
*
*
* @param characterSetName
* A value that indicates that the DB cluster should be associated
* with the specified CharacterSet.
*/
public void setCharacterSetName(String characterSetName) {
this.characterSetName = characterSetName;
}
/**
*
* A value that indicates that the DB cluster should be associated with the
* specified CharacterSet.
*
*
* @return A value that indicates that the DB cluster should be associated
* with the specified CharacterSet.
*/
public String getCharacterSetName() {
return this.characterSetName;
}
/**
*
* A value that indicates that the DB cluster should be associated with the
* specified CharacterSet.
*
*
* @param characterSetName
* A value that indicates that the DB cluster should be associated
* with the specified CharacterSet.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withCharacterSetName(String characterSetName) {
setCharacterSetName(characterSetName);
return this;
}
/**
*
* The name for your database of up to 8 alpha-numeric characters. If you do
* not provide a name, Amazon RDS will not create a database in the DB
* cluster you are creating.
*
*
* @param databaseName
* The name for your database of up to 8 alpha-numeric characters. If
* you do not provide a name, Amazon RDS will not create a database
* in the DB cluster you are creating.
*/
public void setDatabaseName(String databaseName) {
this.databaseName = databaseName;
}
/**
*
* The name for your database of up to 8 alpha-numeric characters. If you do
* not provide a name, Amazon RDS will not create a database in the DB
* cluster you are creating.
*
*
* @return The name for your database of up to 8 alpha-numeric characters.
* If you do not provide a name, Amazon RDS will not create a
* database in the DB cluster you are creating.
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
*
* The name for your database of up to 8 alpha-numeric characters. If you do
* not provide a name, Amazon RDS will not create a database in the DB
* cluster you are creating.
*
*
* @param databaseName
* The name for your database of up to 8 alpha-numeric characters. If
* you do not provide a name, Amazon RDS will not create a database
* in the DB cluster you are creating.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withDatabaseName(String databaseName) {
setDatabaseName(databaseName);
return this;
}
/**
*
* The DB cluster identifier. This parameter is stored as a lowercase
* string.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*
*
* @param dBClusterIdentifier
* The DB cluster identifier. This parameter is stored as a lowercase
* string.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*/
public void setDBClusterIdentifier(String dBClusterIdentifier) {
this.dBClusterIdentifier = dBClusterIdentifier;
}
/**
*
* The DB cluster identifier. This parameter is stored as a lowercase
* string.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*
*
* @return The DB cluster identifier. This parameter is stored as a
* lowercase string.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*/
public String getDBClusterIdentifier() {
return this.dBClusterIdentifier;
}
/**
*
* The DB cluster identifier. This parameter is stored as a lowercase
* string.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*
*
* @param dBClusterIdentifier
* The DB cluster identifier. This parameter is stored as a lowercase
* string.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withDBClusterIdentifier(
String dBClusterIdentifier) {
setDBClusterIdentifier(dBClusterIdentifier);
return this;
}
/**
*
* The name of the DB cluster parameter group to associate with this DB
* cluster. If this argument is omitted, default.aurora5.6
will
* be used.
*
*
* Constraints:
*
*
* -
*
* Must be 1 to 255 alphanumeric characters
*
*
* -
*
* First character must be a letter
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens
*
*
*
*
* @param dBClusterParameterGroupName
* The name of the DB cluster parameter group to associate with this
* DB cluster. If this argument is omitted,
* default.aurora5.6
will be used.
*
* Constraints:
*
*
* -
*
* Must be 1 to 255 alphanumeric characters
*
*
* -
*
* First character must be a letter
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens
*
*
*/
public void setDBClusterParameterGroupName(
String dBClusterParameterGroupName) {
this.dBClusterParameterGroupName = dBClusterParameterGroupName;
}
/**
*
* The name of the DB cluster parameter group to associate with this DB
* cluster. If this argument is omitted, default.aurora5.6
will
* be used.
*
*
* Constraints:
*
*
* -
*
* Must be 1 to 255 alphanumeric characters
*
*
* -
*
* First character must be a letter
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens
*
*
*
*
* @return The name of the DB cluster parameter group to associate with this
* DB cluster. If this argument is omitted,
* default.aurora5.6
will be used.
*
* Constraints:
*
*
* -
*
* Must be 1 to 255 alphanumeric characters
*
*
* -
*
* First character must be a letter
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens
*
*
*/
public String getDBClusterParameterGroupName() {
return this.dBClusterParameterGroupName;
}
/**
*
* The name of the DB cluster parameter group to associate with this DB
* cluster. If this argument is omitted, default.aurora5.6
will
* be used.
*
*
* Constraints:
*
*
* -
*
* Must be 1 to 255 alphanumeric characters
*
*
* -
*
* First character must be a letter
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens
*
*
*
*
* @param dBClusterParameterGroupName
* The name of the DB cluster parameter group to associate with this
* DB cluster. If this argument is omitted,
* default.aurora5.6
will be used.
*
* Constraints:
*
*
* -
*
* Must be 1 to 255 alphanumeric characters
*
*
* -
*
* First character must be a letter
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens
*
*
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withDBClusterParameterGroupName(
String dBClusterParameterGroupName) {
setDBClusterParameterGroupName(dBClusterParameterGroupName);
return this;
}
/**
*
* A list of EC2 VPC security groups to associate with this DB cluster.
*
*
* @return A list of EC2 VPC security groups to associate with this DB
* cluster.
*/
public java.util.List getVpcSecurityGroupIds() {
if (vpcSecurityGroupIds == null) {
vpcSecurityGroupIds = new com.amazonaws.internal.SdkInternalList();
}
return vpcSecurityGroupIds;
}
/**
*
* A list of EC2 VPC security groups to associate with this DB cluster.
*
*
* @param vpcSecurityGroupIds
* A list of EC2 VPC security groups to associate with this DB
* cluster.
*/
public void setVpcSecurityGroupIds(
java.util.Collection vpcSecurityGroupIds) {
if (vpcSecurityGroupIds == null) {
this.vpcSecurityGroupIds = null;
return;
}
this.vpcSecurityGroupIds = new com.amazonaws.internal.SdkInternalList(
vpcSecurityGroupIds);
}
/**
*
* A list of EC2 VPC security groups to associate with this DB cluster.
*
*
* NOTE: This method appends the values to the existing list (if
* any). Use {@link #setVpcSecurityGroupIds(java.util.Collection)} or
* {@link #withVpcSecurityGroupIds(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param vpcSecurityGroupIds
* A list of EC2 VPC security groups to associate with this DB
* cluster.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withVpcSecurityGroupIds(
String... vpcSecurityGroupIds) {
if (this.vpcSecurityGroupIds == null) {
setVpcSecurityGroupIds(new com.amazonaws.internal.SdkInternalList(
vpcSecurityGroupIds.length));
}
for (String ele : vpcSecurityGroupIds) {
this.vpcSecurityGroupIds.add(ele);
}
return this;
}
/**
*
* A list of EC2 VPC security groups to associate with this DB cluster.
*
*
* @param vpcSecurityGroupIds
* A list of EC2 VPC security groups to associate with this DB
* cluster.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withVpcSecurityGroupIds(
java.util.Collection vpcSecurityGroupIds) {
setVpcSecurityGroupIds(vpcSecurityGroupIds);
return this;
}
/**
*
* A DB subnet group to associate with this DB cluster.
*
*
* Constraints: Must contain no more than 255 alphanumeric characters,
* periods, underscores, spaces, or hyphens. Must not be default.
*
*
* Example: mySubnetgroup
*
*
* @param dBSubnetGroupName
* A DB subnet group to associate with this DB cluster.
*
* Constraints: Must contain no more than 255 alphanumeric
* characters, periods, underscores, spaces, or hyphens. Must not be
* default.
*
*
* Example: mySubnetgroup
*/
public void setDBSubnetGroupName(String dBSubnetGroupName) {
this.dBSubnetGroupName = dBSubnetGroupName;
}
/**
*
* A DB subnet group to associate with this DB cluster.
*
*
* Constraints: Must contain no more than 255 alphanumeric characters,
* periods, underscores, spaces, or hyphens. Must not be default.
*
*
* Example: mySubnetgroup
*
*
* @return A DB subnet group to associate with this DB cluster.
*
* Constraints: Must contain no more than 255 alphanumeric
* characters, periods, underscores, spaces, or hyphens. Must not be
* default.
*
*
* Example: mySubnetgroup
*/
public String getDBSubnetGroupName() {
return this.dBSubnetGroupName;
}
/**
*
* A DB subnet group to associate with this DB cluster.
*
*
* Constraints: Must contain no more than 255 alphanumeric characters,
* periods, underscores, spaces, or hyphens. Must not be default.
*
*
* Example: mySubnetgroup
*
*
* @param dBSubnetGroupName
* A DB subnet group to associate with this DB cluster.
*
* Constraints: Must contain no more than 255 alphanumeric
* characters, periods, underscores, spaces, or hyphens. Must not be
* default.
*
*
* Example: mySubnetgroup
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withDBSubnetGroupName(String dBSubnetGroupName) {
setDBSubnetGroupName(dBSubnetGroupName);
return this;
}
/**
*
* The name of the database engine to be used for this DB cluster.
*
*
* Valid Values: aurora
*
*
* @param engine
* The name of the database engine to be used for this DB
* cluster.
*
* Valid Values: aurora
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The name of the database engine to be used for this DB cluster.
*
*
* Valid Values: aurora
*
*
* @return The name of the database engine to be used for this DB
* cluster.
*
* Valid Values: aurora
*/
public String getEngine() {
return this.engine;
}
/**
*
* The name of the database engine to be used for this DB cluster.
*
*
* Valid Values: aurora
*
*
* @param engine
* The name of the database engine to be used for this DB
* cluster.
*
* Valid Values: aurora
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* The version number of the database engine to use.
*
*
* Aurora
*
*
* Example: 5.6.10a
*
*
* @param engineVersion
* The version number of the database engine to use.
*
* Aurora
*
*
* Example: 5.6.10a
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The version number of the database engine to use.
*
*
* Aurora
*
*
* Example: 5.6.10a
*
*
* @return The version number of the database engine to use.
*
* Aurora
*
*
* Example: 5.6.10a
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The version number of the database engine to use.
*
*
* Aurora
*
*
* Example: 5.6.10a
*
*
* @param engineVersion
* The version number of the database engine to use.
*
* Aurora
*
*
* Example: 5.6.10a
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* The port number on which the instances in the DB cluster accept
* connections.
*
*
* Default: 3306
*
*
* @param port
* The port number on which the instances in the DB cluster accept
* connections.
*
* Default: 3306
*/
public void setPort(Integer port) {
this.port = port;
}
/**
*
* The port number on which the instances in the DB cluster accept
* connections.
*
*
* Default: 3306
*
*
* @return The port number on which the instances in the DB cluster accept
* connections.
*
* Default: 3306
*/
public Integer getPort() {
return this.port;
}
/**
*
* The port number on which the instances in the DB cluster accept
* connections.
*
*
* Default: 3306
*
*
* @param port
* The port number on which the instances in the DB cluster accept
* connections.
*
* Default: 3306
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withPort(Integer port) {
setPort(port);
return this;
}
/**
*
* The name of the master user for the DB cluster.
*
*
* Constraints:
*
*
* -
*
* Must be 1 to 16 alphanumeric characters.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot be a reserved word for the chosen database engine.
*
*
*
*
* @param masterUsername
* The name of the master user for the DB cluster.
*
* Constraints:
*
*
* -
*
* Must be 1 to 16 alphanumeric characters.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot be a reserved word for the chosen database engine.
*
*
*/
public void setMasterUsername(String masterUsername) {
this.masterUsername = masterUsername;
}
/**
*
* The name of the master user for the DB cluster.
*
*
* Constraints:
*
*
* -
*
* Must be 1 to 16 alphanumeric characters.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot be a reserved word for the chosen database engine.
*
*
*
*
* @return The name of the master user for the DB cluster.
*
* Constraints:
*
*
* -
*
* Must be 1 to 16 alphanumeric characters.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot be a reserved word for the chosen database engine.
*
*
*/
public String getMasterUsername() {
return this.masterUsername;
}
/**
*
* The name of the master user for the DB cluster.
*
*
* Constraints:
*
*
* -
*
* Must be 1 to 16 alphanumeric characters.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot be a reserved word for the chosen database engine.
*
*
*
*
* @param masterUsername
* The name of the master user for the DB cluster.
*
* Constraints:
*
*
* -
*
* Must be 1 to 16 alphanumeric characters.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot be a reserved word for the chosen database engine.
*
*
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withMasterUsername(String masterUsername) {
setMasterUsername(masterUsername);
return this;
}
/**
*
* The password for the master database user. This password can contain any
* printable ASCII character except "/", """, or "@".
*
*
* Constraints: Must contain from 8 to 41 characters.
*
*
* @param masterUserPassword
* The password for the master database user. This password can
* contain any printable ASCII character except "/", """, or "@".
*
* Constraints: Must contain from 8 to 41 characters.
*/
public void setMasterUserPassword(String masterUserPassword) {
this.masterUserPassword = masterUserPassword;
}
/**
*
* The password for the master database user. This password can contain any
* printable ASCII character except "/", """, or "@".
*
*
* Constraints: Must contain from 8 to 41 characters.
*
*
* @return The password for the master database user. This password can
* contain any printable ASCII character except "/",
* """, or "@".
*
* Constraints: Must contain from 8 to 41 characters.
*/
public String getMasterUserPassword() {
return this.masterUserPassword;
}
/**
*
* The password for the master database user. This password can contain any
* printable ASCII character except "/", """, or "@".
*
*
* Constraints: Must contain from 8 to 41 characters.
*
*
* @param masterUserPassword
* The password for the master database user. This password can
* contain any printable ASCII character except "/", """, or "@".
*
* Constraints: Must contain from 8 to 41 characters.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withMasterUserPassword(
String masterUserPassword) {
setMasterUserPassword(masterUserPassword);
return this;
}
/**
*
* A value that indicates that the DB cluster should be associated with the
* specified option group.
*
*
* Permanent options cannot be removed from an option group. The option
* group cannot be removed from a DB cluster once it is associated with a DB
* cluster.
*
*
* @param optionGroupName
* A value that indicates that the DB cluster should be associated
* with the specified option group.
*
* Permanent options cannot be removed from an option group. The
* option group cannot be removed from a DB cluster once it is
* associated with a DB cluster.
*/
public void setOptionGroupName(String optionGroupName) {
this.optionGroupName = optionGroupName;
}
/**
*
* A value that indicates that the DB cluster should be associated with the
* specified option group.
*
*
* Permanent options cannot be removed from an option group. The option
* group cannot be removed from a DB cluster once it is associated with a DB
* cluster.
*
*
* @return A value that indicates that the DB cluster should be associated
* with the specified option group.
*
* Permanent options cannot be removed from an option group. The
* option group cannot be removed from a DB cluster once it is
* associated with a DB cluster.
*/
public String getOptionGroupName() {
return this.optionGroupName;
}
/**
*
* A value that indicates that the DB cluster should be associated with the
* specified option group.
*
*
* Permanent options cannot be removed from an option group. The option
* group cannot be removed from a DB cluster once it is associated with a DB
* cluster.
*
*
* @param optionGroupName
* A value that indicates that the DB cluster should be associated
* with the specified option group.
*
* Permanent options cannot be removed from an option group. The
* option group cannot be removed from a DB cluster once it is
* associated with a DB cluster.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withOptionGroupName(String optionGroupName) {
setOptionGroupName(optionGroupName);
return this;
}
/**
*
* The daily time range during which automated backups are created if
* automated backups are enabled using the
* BackupRetentionPeriod
parameter.
*
*
* Default: A 30-minute window selected at random from an 8-hour block of
* time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS
* User Guide.
*
*
* Constraints:
*
*
* -
*
* Must be in the format hh24:mi-hh24:mi
.
*
*
* -
*
* Times should be in Universal Coordinated Time (UTC).
*
*
* -
*
* Must not conflict with the preferred maintenance window.
*
*
* -
*
* Must be at least 30 minutes.
*
*
*
*
* @param preferredBackupWindow
* The daily time range during which automated backups are created if
* automated backups are enabled using the
* BackupRetentionPeriod
parameter.
*
* Default: A 30-minute window selected at random from an 8-hour
* block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon
* RDS User Guide.
*
*
* Constraints:
*
*
* -
*
* Must be in the format hh24:mi-hh24:mi
.
*
*
* -
*
* Times should be in Universal Coordinated Time (UTC).
*
*
* -
*
* Must not conflict with the preferred maintenance window.
*
*
* -
*
* Must be at least 30 minutes.
*
*
*/
public void setPreferredBackupWindow(String preferredBackupWindow) {
this.preferredBackupWindow = preferredBackupWindow;
}
/**
*
* The daily time range during which automated backups are created if
* automated backups are enabled using the
* BackupRetentionPeriod
parameter.
*
*
* Default: A 30-minute window selected at random from an 8-hour block of
* time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS
* User Guide.
*
*
* Constraints:
*
*
* -
*
* Must be in the format hh24:mi-hh24:mi
.
*
*
* -
*
* Times should be in Universal Coordinated Time (UTC).
*
*
* -
*
* Must not conflict with the preferred maintenance window.
*
*
* -
*
* Must be at least 30 minutes.
*
*
*
*
* @return The daily time range during which automated backups are created
* if automated backups are enabled using the
* BackupRetentionPeriod
parameter.
*
* Default: A 30-minute window selected at random from an 8-hour
* block of time per region. To see the time blocks available, see
* Adjusting the Preferred Maintenance Window in the Amazon
* RDS User Guide.
*
*
* Constraints:
*
*
* -
*
* Must be in the format hh24:mi-hh24:mi
.
*
*
* -
*
* Times should be in Universal Coordinated Time (UTC).
*
*
* -
*
* Must not conflict with the preferred maintenance window.
*
*
* -
*
* Must be at least 30 minutes.
*
*
*/
public String getPreferredBackupWindow() {
return this.preferredBackupWindow;
}
/**
*
* The daily time range during which automated backups are created if
* automated backups are enabled using the
* BackupRetentionPeriod
parameter.
*
*
* Default: A 30-minute window selected at random from an 8-hour block of
* time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS
* User Guide.
*
*
* Constraints:
*
*
* -
*
* Must be in the format hh24:mi-hh24:mi
.
*
*
* -
*
* Times should be in Universal Coordinated Time (UTC).
*
*
* -
*
* Must not conflict with the preferred maintenance window.
*
*
* -
*
* Must be at least 30 minutes.
*
*
*
*
* @param preferredBackupWindow
* The daily time range during which automated backups are created if
* automated backups are enabled using the
* BackupRetentionPeriod
parameter.
*
* Default: A 30-minute window selected at random from an 8-hour
* block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon
* RDS User Guide.
*
*
* Constraints:
*
*
* -
*
* Must be in the format hh24:mi-hh24:mi
.
*
*
* -
*
* Times should be in Universal Coordinated Time (UTC).
*
*
* -
*
* Must not conflict with the preferred maintenance window.
*
*
* -
*
* Must be at least 30 minutes.
*
*
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withPreferredBackupWindow(
String preferredBackupWindow) {
setPreferredBackupWindow(preferredBackupWindow);
return this;
}
/**
*
* The weekly time range during which system maintenance can occur, in
* Universal Coordinated Time (UTC).
*
*
* Format: ddd:hh24:mi-ddd:hh24:mi
*
*
* Default: A 30-minute window selected at random from an 8-hour block of
* time per region, occurring on a random day of the week. To see the time
* blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS
* User Guide.
*
*
* Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
*
*
* Constraints: Minimum 30-minute window.
*
*
* @param preferredMaintenanceWindow
* The weekly time range during which system maintenance can occur,
* in Universal Coordinated Time (UTC).
*
* Format: ddd:hh24:mi-ddd:hh24:mi
*
*
* Default: A 30-minute window selected at random from an 8-hour
* block of time per region, occurring on a random day of the week.
* To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon
* RDS User Guide.
*
*
* Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
*
*
* Constraints: Minimum 30-minute window.
*/
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
}
/**
*
* The weekly time range during which system maintenance can occur, in
* Universal Coordinated Time (UTC).
*
*
* Format: ddd:hh24:mi-ddd:hh24:mi
*
*
* Default: A 30-minute window selected at random from an 8-hour block of
* time per region, occurring on a random day of the week. To see the time
* blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS
* User Guide.
*
*
* Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
*
*
* Constraints: Minimum 30-minute window.
*
*
* @return The weekly time range during which system maintenance can occur,
* in Universal Coordinated Time (UTC).
*
* Format: ddd:hh24:mi-ddd:hh24:mi
*
*
* Default: A 30-minute window selected at random from an 8-hour
* block of time per region, occurring on a random day of the week.
* To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon
* RDS User Guide.
*
*
* Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
*
*
* Constraints: Minimum 30-minute window.
*/
public String getPreferredMaintenanceWindow() {
return this.preferredMaintenanceWindow;
}
/**
*
* The weekly time range during which system maintenance can occur, in
* Universal Coordinated Time (UTC).
*
*
* Format: ddd:hh24:mi-ddd:hh24:mi
*
*
* Default: A 30-minute window selected at random from an 8-hour block of
* time per region, occurring on a random day of the week. To see the time
* blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS
* User Guide.
*
*
* Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
*
*
* Constraints: Minimum 30-minute window.
*
*
* @param preferredMaintenanceWindow
* The weekly time range during which system maintenance can occur,
* in Universal Coordinated Time (UTC).
*
* Format: ddd:hh24:mi-ddd:hh24:mi
*
*
* Default: A 30-minute window selected at random from an 8-hour
* block of time per region, occurring on a random day of the week.
* To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon
* RDS User Guide.
*
*
* Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
*
*
* Constraints: Minimum 30-minute window.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withPreferredMaintenanceWindow(
String preferredMaintenanceWindow) {
setPreferredMaintenanceWindow(preferredMaintenanceWindow);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the source DB cluster if this DB
* cluster is created as a Read Replica.
*
*
* @param replicationSourceIdentifier
* The Amazon Resource Name (ARN) of the source DB cluster if this DB
* cluster is created as a Read Replica.
*/
public void setReplicationSourceIdentifier(
String replicationSourceIdentifier) {
this.replicationSourceIdentifier = replicationSourceIdentifier;
}
/**
*
* The Amazon Resource Name (ARN) of the source DB cluster if this DB
* cluster is created as a Read Replica.
*
*
* @return The Amazon Resource Name (ARN) of the source DB cluster if this
* DB cluster is created as a Read Replica.
*/
public String getReplicationSourceIdentifier() {
return this.replicationSourceIdentifier;
}
/**
*
* The Amazon Resource Name (ARN) of the source DB cluster if this DB
* cluster is created as a Read Replica.
*
*
* @param replicationSourceIdentifier
* The Amazon Resource Name (ARN) of the source DB cluster if this DB
* cluster is created as a Read Replica.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withReplicationSourceIdentifier(
String replicationSourceIdentifier) {
setReplicationSourceIdentifier(replicationSourceIdentifier);
return this;
}
/**
* @return
*/
public java.util.List getTags() {
if (tags == null) {
tags = new com.amazonaws.internal.SdkInternalList();
}
return tags;
}
/**
* @param tags
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new com.amazonaws.internal.SdkInternalList(tags);
}
/**
*
* NOTE: This method appends the values to the existing list (if
* any). Use {@link #setTags(java.util.Collection)} or
* {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
* @param tags
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* Specifies whether the DB cluster is encrypted.
*
*
* @param storageEncrypted
* Specifies whether the DB cluster is encrypted.
*/
public void setStorageEncrypted(Boolean storageEncrypted) {
this.storageEncrypted = storageEncrypted;
}
/**
*
* Specifies whether the DB cluster is encrypted.
*
*
* @return Specifies whether the DB cluster is encrypted.
*/
public Boolean getStorageEncrypted() {
return this.storageEncrypted;
}
/**
*
* Specifies whether the DB cluster is encrypted.
*
*
* @param storageEncrypted
* Specifies whether the DB cluster is encrypted.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withStorageEncrypted(Boolean storageEncrypted) {
setStorageEncrypted(storageEncrypted);
return this;
}
/**
*
* Specifies whether the DB cluster is encrypted.
*
*
* @return Specifies whether the DB cluster is encrypted.
*/
public Boolean isStorageEncrypted() {
return this.storageEncrypted;
}
/**
*
* The KMS key identifier for an encrypted DB cluster.
*
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS
* encryption key. If you are creating a DB cluster with the same AWS
* 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 KM
* encryption key.
*
*
* If the StorageEncrypted
parameter is true, and you do not
* specify a value for the KmsKeyId
parameter, then Amazon RDS
* will use your default encryption key. AWS KMS creates the default
* encryption key for your AWS account. Your AWS account has a different
* default encryption key for each AWS region.
*
*
* @param kmsKeyId
* The KMS key identifier for an encrypted DB cluster.
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the
* KMS encryption key. If you are creating a DB cluster with the same
* AWS 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 KM encryption key.
*
*
* If the StorageEncrypted
parameter is true, and you do
* not specify a value for the KmsKeyId
parameter, then
* Amazon RDS will use your default encryption key. AWS KMS creates
* the default encryption key for your AWS account. Your AWS account
* has a different default encryption key for each AWS region.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* The KMS key identifier for an encrypted DB cluster.
*
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS
* encryption key. If you are creating a DB cluster with the same AWS
* 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 KM
* encryption key.
*
*
* If the StorageEncrypted
parameter is true, and you do not
* specify a value for the KmsKeyId
parameter, then Amazon RDS
* will use your default encryption key. AWS KMS creates the default
* encryption key for your AWS account. Your AWS account has a different
* default encryption key for each AWS region.
*
*
* @return The KMS key identifier for an encrypted DB cluster.
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the
* KMS encryption key. If you are creating a DB cluster with the
* same AWS 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 KM encryption key.
*
*
* If the StorageEncrypted
parameter is true, and you
* do not specify a value for the KmsKeyId
parameter,
* then Amazon RDS will use your default encryption key. AWS KMS
* creates the default encryption key for your AWS account. Your AWS
* account has a different default encryption key for each AWS
* region.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* The KMS key identifier for an encrypted DB cluster.
*
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS
* encryption key. If you are creating a DB cluster with the same AWS
* 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 KM
* encryption key.
*
*
* If the StorageEncrypted
parameter is true, and you do not
* specify a value for the KmsKeyId
parameter, then Amazon RDS
* will use your default encryption key. AWS KMS creates the default
* encryption key for your AWS account. Your AWS account has a different
* default encryption key for each AWS region.
*
*
* @param kmsKeyId
* The KMS key identifier for an encrypted DB cluster.
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the
* KMS encryption key. If you are creating a DB cluster with the same
* AWS 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 KM encryption key.
*
*
* If the StorageEncrypted
parameter is true, and you do
* not specify a value for the KmsKeyId
parameter, then
* Amazon RDS will use your default encryption key. AWS KMS creates
* the default encryption key for your AWS account. Your AWS account
* has a different default encryption key for each AWS region.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateDBClusterRequest withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAvailabilityZones() != null)
sb.append("AvailabilityZones: " + getAvailabilityZones() + ",");
if (getBackupRetentionPeriod() != null)
sb.append("BackupRetentionPeriod: " + getBackupRetentionPeriod()
+ ",");
if (getCharacterSetName() != null)
sb.append("CharacterSetName: " + getCharacterSetName() + ",");
if (getDatabaseName() != null)
sb.append("DatabaseName: " + getDatabaseName() + ",");
if (getDBClusterIdentifier() != null)
sb.append("DBClusterIdentifier: " + getDBClusterIdentifier() + ",");
if (getDBClusterParameterGroupName() != null)
sb.append("DBClusterParameterGroupName: "
+ getDBClusterParameterGroupName() + ",");
if (getVpcSecurityGroupIds() != null)
sb.append("VpcSecurityGroupIds: " + getVpcSecurityGroupIds() + ",");
if (getDBSubnetGroupName() != null)
sb.append("DBSubnetGroupName: " + getDBSubnetGroupName() + ",");
if (getEngine() != null)
sb.append("Engine: " + getEngine() + ",");
if (getEngineVersion() != null)
sb.append("EngineVersion: " + getEngineVersion() + ",");
if (getPort() != null)
sb.append("Port: " + getPort() + ",");
if (getMasterUsername() != null)
sb.append("MasterUsername: " + getMasterUsername() + ",");
if (getMasterUserPassword() != null)
sb.append("MasterUserPassword: " + getMasterUserPassword() + ",");
if (getOptionGroupName() != null)
sb.append("OptionGroupName: " + getOptionGroupName() + ",");
if (getPreferredBackupWindow() != null)
sb.append("PreferredBackupWindow: " + getPreferredBackupWindow()
+ ",");
if (getPreferredMaintenanceWindow() != null)
sb.append("PreferredMaintenanceWindow: "
+ getPreferredMaintenanceWindow() + ",");
if (getReplicationSourceIdentifier() != null)
sb.append("ReplicationSourceIdentifier: "
+ getReplicationSourceIdentifier() + ",");
if (getTags() != null)
sb.append("Tags: " + getTags() + ",");
if (getStorageEncrypted() != null)
sb.append("StorageEncrypted: " + getStorageEncrypted() + ",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: " + getKmsKeyId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateDBClusterRequest == false)
return false;
CreateDBClusterRequest other = (CreateDBClusterRequest) obj;
if (other.getAvailabilityZones() == null
^ this.getAvailabilityZones() == null)
return false;
if (other.getAvailabilityZones() != null
&& other.getAvailabilityZones().equals(
this.getAvailabilityZones()) == false)
return false;
if (other.getBackupRetentionPeriod() == null
^ this.getBackupRetentionPeriod() == null)
return false;
if (other.getBackupRetentionPeriod() != null
&& other.getBackupRetentionPeriod().equals(
this.getBackupRetentionPeriod()) == false)
return false;
if (other.getCharacterSetName() == null
^ this.getCharacterSetName() == null)
return false;
if (other.getCharacterSetName() != null
&& other.getCharacterSetName().equals(
this.getCharacterSetName()) == false)
return false;
if (other.getDatabaseName() == null ^ this.getDatabaseName() == null)
return false;
if (other.getDatabaseName() != null
&& other.getDatabaseName().equals(this.getDatabaseName()) == false)
return false;
if (other.getDBClusterIdentifier() == null
^ this.getDBClusterIdentifier() == null)
return false;
if (other.getDBClusterIdentifier() != null
&& other.getDBClusterIdentifier().equals(
this.getDBClusterIdentifier()) == false)
return false;
if (other.getDBClusterParameterGroupName() == null
^ this.getDBClusterParameterGroupName() == null)
return false;
if (other.getDBClusterParameterGroupName() != null
&& other.getDBClusterParameterGroupName().equals(
this.getDBClusterParameterGroupName()) == false)
return false;
if (other.getVpcSecurityGroupIds() == null
^ this.getVpcSecurityGroupIds() == null)
return false;
if (other.getVpcSecurityGroupIds() != null
&& other.getVpcSecurityGroupIds().equals(
this.getVpcSecurityGroupIds()) == false)
return false;
if (other.getDBSubnetGroupName() == null
^ this.getDBSubnetGroupName() == null)
return false;
if (other.getDBSubnetGroupName() != null
&& other.getDBSubnetGroupName().equals(
this.getDBSubnetGroupName()) == false)
return false;
if (other.getEngine() == null ^ this.getEngine() == null)
return false;
if (other.getEngine() != null
&& other.getEngine().equals(this.getEngine()) == false)
return false;
if (other.getEngineVersion() == null ^ this.getEngineVersion() == null)
return false;
if (other.getEngineVersion() != null
&& other.getEngineVersion().equals(this.getEngineVersion()) == false)
return false;
if (other.getPort() == null ^ this.getPort() == null)
return false;
if (other.getPort() != null
&& other.getPort().equals(this.getPort()) == false)
return false;
if (other.getMasterUsername() == null
^ this.getMasterUsername() == null)
return false;
if (other.getMasterUsername() != null
&& other.getMasterUsername().equals(this.getMasterUsername()) == false)
return false;
if (other.getMasterUserPassword() == null
^ this.getMasterUserPassword() == null)
return false;
if (other.getMasterUserPassword() != null
&& other.getMasterUserPassword().equals(
this.getMasterUserPassword()) == false)
return false;
if (other.getOptionGroupName() == null
^ this.getOptionGroupName() == null)
return false;
if (other.getOptionGroupName() != null
&& other.getOptionGroupName().equals(this.getOptionGroupName()) == false)
return false;
if (other.getPreferredBackupWindow() == null
^ this.getPreferredBackupWindow() == null)
return false;
if (other.getPreferredBackupWindow() != null
&& other.getPreferredBackupWindow().equals(
this.getPreferredBackupWindow()) == false)
return false;
if (other.getPreferredMaintenanceWindow() == null
^ this.getPreferredMaintenanceWindow() == null)
return false;
if (other.getPreferredMaintenanceWindow() != null
&& other.getPreferredMaintenanceWindow().equals(
this.getPreferredMaintenanceWindow()) == false)
return false;
if (other.getReplicationSourceIdentifier() == null
^ this.getReplicationSourceIdentifier() == null)
return false;
if (other.getReplicationSourceIdentifier() != null
&& other.getReplicationSourceIdentifier().equals(
this.getReplicationSourceIdentifier()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null
&& other.getTags().equals(this.getTags()) == false)
return false;
if (other.getStorageEncrypted() == null
^ this.getStorageEncrypted() == null)
return false;
if (other.getStorageEncrypted() != null
&& other.getStorageEncrypted().equals(
this.getStorageEncrypted()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null
&& other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime
* hashCode
+ ((getAvailabilityZones() == null) ? 0
: getAvailabilityZones().hashCode());
hashCode = prime
* hashCode
+ ((getBackupRetentionPeriod() == null) ? 0
: getBackupRetentionPeriod().hashCode());
hashCode = prime
* hashCode
+ ((getCharacterSetName() == null) ? 0 : getCharacterSetName()
.hashCode());
hashCode = prime
* hashCode
+ ((getDatabaseName() == null) ? 0 : getDatabaseName()
.hashCode());
hashCode = prime
* hashCode
+ ((getDBClusterIdentifier() == null) ? 0
: getDBClusterIdentifier().hashCode());
hashCode = prime
* hashCode
+ ((getDBClusterParameterGroupName() == null) ? 0
: getDBClusterParameterGroupName().hashCode());
hashCode = prime
* hashCode
+ ((getVpcSecurityGroupIds() == null) ? 0
: getVpcSecurityGroupIds().hashCode());
hashCode = prime
* hashCode
+ ((getDBSubnetGroupName() == null) ? 0
: getDBSubnetGroupName().hashCode());
hashCode = prime * hashCode
+ ((getEngine() == null) ? 0 : getEngine().hashCode());
hashCode = prime
* hashCode
+ ((getEngineVersion() == null) ? 0 : getEngineVersion()
.hashCode());
hashCode = prime * hashCode
+ ((getPort() == null) ? 0 : getPort().hashCode());
hashCode = prime
* hashCode
+ ((getMasterUsername() == null) ? 0 : getMasterUsername()
.hashCode());
hashCode = prime
* hashCode
+ ((getMasterUserPassword() == null) ? 0
: getMasterUserPassword().hashCode());
hashCode = prime
* hashCode
+ ((getOptionGroupName() == null) ? 0 : getOptionGroupName()
.hashCode());
hashCode = prime
* hashCode
+ ((getPreferredBackupWindow() == null) ? 0
: getPreferredBackupWindow().hashCode());
hashCode = prime
* hashCode
+ ((getPreferredMaintenanceWindow() == null) ? 0
: getPreferredMaintenanceWindow().hashCode());
hashCode = prime
* hashCode
+ ((getReplicationSourceIdentifier() == null) ? 0
: getReplicationSourceIdentifier().hashCode());
hashCode = prime * hashCode
+ ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime
* hashCode
+ ((getStorageEncrypted() == null) ? 0 : getStorageEncrypted()
.hashCode());
hashCode = prime * hashCode
+ ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
return hashCode;
}
@Override
public CreateDBClusterRequest clone() {
return (CreateDBClusterRequest) super.clone();
}
}