/* * Copyright 2018-2023 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 javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RestoreDBClusterFromS3Request extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A list of Availability Zones (AZs) where instances in the restored DB cluster can be created. *
*/ private com.amazonaws.internal.SdkInternalList* The number of days for which automated backups of the restored DB cluster are retained. You must specify a * minimum value of 1. *
** Default: 1 *
** Constraints: *
** Must be a value from 1 to 35 *
** A value that indicates that the restored DB cluster should be associated with the specified CharacterSet. *
*/ private String characterSetName; /** ** The database name for the restored DB cluster. *
*/ private String databaseName; /** ** The name of the DB cluster to create from the source data in the Amazon S3 bucket. This parameter isn't * case-sensitive. *
** Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** First character must be a letter. *
** Can't end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster1
*
* The name of the DB cluster parameter group to associate with the restored DB cluster. If this argument is * omitted, the default parameter group for the engine version is used. *
** Constraints: *
** If supplied, must match the name of an existing DBClusterParameterGroup. *
** A list of EC2 VPC security groups to associate with the restored DB cluster. *
*/ private com.amazonaws.internal.SdkInternalList* A DB subnet group to associate with the restored DB cluster. *
** Constraints: If supplied, must match the name of an existing DBSubnetGroup. *
*
* Example: mydbsubnetgroup
*
* The name of the database engine to be used for this DB cluster. *
*
* Valid Values: aurora-mysql
(for Aurora MySQL)
*
* The version number of the database engine to use. *
*
* To list all of the available engine versions for aurora-mysql
(Aurora MySQL), use the following
* command:
*
* aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"
*
* Aurora MySQL *
*
* Examples: 5.7.mysql_aurora.2.07.1
, 8.0.mysql_aurora.3.02.0
*
* The port number on which the instances in the restored DB cluster accept connections. *
*
* Default: 3306
*
* The name of the master user for the restored DB cluster. *
** Constraints: *
** Must be 1 to 16 letters or numbers. *
** First character must be a letter. *
** Can't be a reserved word for the chosen database engine. *
** 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. *
*
* Can't be specified if ManageMasterUserPassword
is turned on.
*
* A value that indicates that the restored DB cluster should be associated with the specified option group. *
** Permanent options can't be removed from an option group. An option group can't 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.
*
* The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services * Region. To view the time blocks available, see Backup window in the Amazon Aurora User Guide. *
** 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. *
** 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. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Aurora User Guide. *
** Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. *
** Constraints: Minimum 30-minute window. *
*/ private String preferredMaintenanceWindow; private com.amazonaws.internal.SdkInternalList* A value that indicates whether the restored DB cluster is encrypted. *
*/ private Boolean storageEncrypted; /** ** The Amazon Web Services KMS key identifier for an encrypted DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To * use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If the StorageEncrypted parameter is enabled, and you do not specify a value for the KmsKeyId
* parameter, then Amazon RDS will use your default KMS key. There is a default KMS key for your Amazon Web Services
* account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
*
* A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) * accounts to database accounts. By default, mapping isn't enabled. *
** For more information, see IAM Database * Authentication in the Amazon Aurora User Guide. *
*/ private Boolean enableIAMDatabaseAuthentication; /** ** The identifier for the database engine that was backed up to create the files stored in the Amazon S3 bucket. *
*
* Valid values: mysql
*
* The version of the database that the backup files were created from. *
** MySQL versions 5.5, 5.6, and 5.7 are supported. *
*
* Example: 5.6.40
, 5.7.28
*
* The name of the Amazon S3 bucket that contains the data used to create the Amazon Aurora DB cluster. *
*/ private String s3BucketName; /** ** The prefix for all of the file names that contain the data used to create the Amazon Aurora DB cluster. If you do * not specify a SourceS3Prefix value, then the Amazon Aurora DB cluster is created by using all of the files * in the Amazon S3 bucket. *
*/ private String s3Prefix; /** ** The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that * authorizes Amazon RDS to access the Amazon S3 bucket on your behalf. *
*/ private String s3IngestionRoleArn; /** ** The target backtrack window, in seconds. To disable backtracking, set this value to 0. *
** Currently, Backtrack is only supported for Aurora MySQL DB clusters. *
** Default: 0 *
** Constraints: *
** If specified, this value must be set to a number from 0 to 259,200 (72 hours). *
** The list of logs that the restored DB cluster is to export to CloudWatch Logs. The values in the list depend on * the DB engine being used. *
** Aurora MySQL *
*
* Possible values are audit
, error
, general
, and slowquery
.
*
* For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide. *
*/ private com.amazonaws.internal.SdkInternalList* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when * deletion protection is enabled. By default, deletion protection isn't enabled. *
*/ private Boolean deletionProtection; /** ** A value that indicates whether to copy all tags from the restored DB cluster to snapshots of the restored DB * cluster. The default is not to copy them. *
*/ private Boolean copyTagsToSnapshot; /** ** Specify the Active Directory directory ID to restore the DB cluster in. The domain must be created prior to this * operation. *
** For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication to authenticate users that connect to * the DB cluster. For more information, see Kerberos * Authentication in the Amazon Aurora User Guide. *
*/ private String domain; /** ** Specify the name of the IAM role to be used when making API calls to the Directory Service. *
*/ private String domainIAMRoleName; private ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration; /** ** The network type of the DB cluster. *
** Valid values: *
*
* IPV4
*
* DUAL
*
* The network type is determined by the DBSubnetGroup
specified for the DB cluster. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see * Working with a DB instance in a VPC in the Amazon Aurora User Guide. *
*/ private String networkType; /** ** A value that indicates whether to manage the master user password with Amazon Web Services Secrets Manager. *
** For more information, see Password management with * Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password management * with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide. *
** Constraints: *
*
* Can't manage the master user password with Amazon Web Services Secrets Manager if MasterUserPassword
* is specified.
*
* The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in * Amazon Web Services Secrets Manager. *
** This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager * for the DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To * use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If you don't specify MasterUserSecretKmsKeyId
, then the aws/secretsmanager
KMS key is
* used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the
* aws/secretsmanager
KMS key to encrypt the secret, and you must use a customer managed KMS key.
*
* There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different * default KMS key for each Amazon Web Services Region. *
*/ private String masterUserSecretKmsKeyId; /** ** Specifies the storage type to be associated with the DB cluster. *
*
* Valid values: aurora
, aurora-iopt1
*
* Default: aurora
*
* Valid for: Aurora DB clusters only *
*/ private String storageType; /** ** A list of Availability Zones (AZs) where instances in the restored DB cluster can be created. *
* * @return A list of Availability Zones (AZs) where instances in the restored DB cluster can be created. */ public java.util.List* A list of Availability Zones (AZs) where instances in the restored DB cluster can be created. *
* * @param availabilityZones * A list of Availability Zones (AZs) where instances in the restored DB cluster can be created. */ public void setAvailabilityZones(java.util.Collection* A list of Availability Zones (AZs) where instances in the restored DB cluster can be created. *
** 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 Availability Zones (AZs) where instances in the restored DB cluster can be created. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withAvailabilityZones(String... availabilityZones) { if (this.availabilityZones == null) { setAvailabilityZones(new com.amazonaws.internal.SdkInternalList* A list of Availability Zones (AZs) where instances in the restored DB cluster can be created. *
* * @param availabilityZones * A list of Availability Zones (AZs) where instances in the restored DB cluster can be created. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withAvailabilityZones(java.util.Collection* The number of days for which automated backups of the restored DB cluster 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 *
** The number of days for which automated backups of the restored DB cluster 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 *
** The number of days for which automated backups of the restored DB cluster 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 *
** A value that indicates that the restored DB cluster should be associated with the specified CharacterSet. *
* * @param characterSetName * A value that indicates that the restored DB cluster should be associated with the specified CharacterSet. */ public void setCharacterSetName(String characterSetName) { this.characterSetName = characterSetName; } /** ** A value that indicates that the restored DB cluster should be associated with the specified CharacterSet. *
* * @return A value that indicates that the restored DB cluster should be associated with the specified CharacterSet. */ public String getCharacterSetName() { return this.characterSetName; } /** ** A value that indicates that the restored DB cluster should be associated with the specified CharacterSet. *
* * @param characterSetName * A value that indicates that the restored 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 RestoreDBClusterFromS3Request withCharacterSetName(String characterSetName) { setCharacterSetName(characterSetName); return this; } /** ** The database name for the restored DB cluster. *
* * @param databaseName * The database name for the restored DB cluster. */ public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } /** ** The database name for the restored DB cluster. *
* * @return The database name for the restored DB cluster. */ public String getDatabaseName() { return this.databaseName; } /** ** The database name for the restored DB cluster. *
* * @param databaseName * The database name for the restored DB cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withDatabaseName(String databaseName) { setDatabaseName(databaseName); return this; } /** ** The name of the DB cluster to create from the source data in the Amazon S3 bucket. This parameter isn't * case-sensitive. *
** Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** First character must be a letter. *
** Can't end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster1
*
* Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** First character must be a letter. *
** Can't end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster1
*/
public void setDBClusterIdentifier(String dBClusterIdentifier) {
this.dBClusterIdentifier = dBClusterIdentifier;
}
/**
*
* The name of the DB cluster to create from the source data in the Amazon S3 bucket. This parameter isn't * case-sensitive. *
** Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** First character must be a letter. *
** Can't end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster1
*
* Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** First character must be a letter. *
** Can't end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster1
*/
public String getDBClusterIdentifier() {
return this.dBClusterIdentifier;
}
/**
*
* The name of the DB cluster to create from the source data in the Amazon S3 bucket. This parameter isn't * case-sensitive. *
** Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** First character must be a letter. *
** Can't end with a hyphen or contain two consecutive hyphens. *
*
* Example: my-cluster1
*
* Constraints: *
** Must contain from 1 to 63 letters, numbers, or hyphens. *
** First character must be a letter. *
** Can't 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 RestoreDBClusterFromS3Request withDBClusterIdentifier(String dBClusterIdentifier) {
setDBClusterIdentifier(dBClusterIdentifier);
return this;
}
/**
*
* The name of the DB cluster parameter group to associate with the restored DB cluster. If this argument is * omitted, the default parameter group for the engine version is used. *
** Constraints: *
** If supplied, must match the name of an existing DBClusterParameterGroup. *
** Constraints: *
** If supplied, must match the name of an existing DBClusterParameterGroup. *
** The name of the DB cluster parameter group to associate with the restored DB cluster. If this argument is * omitted, the default parameter group for the engine version is used. *
** Constraints: *
** If supplied, must match the name of an existing DBClusterParameterGroup. *
** Constraints: *
** If supplied, must match the name of an existing DBClusterParameterGroup. *
** The name of the DB cluster parameter group to associate with the restored DB cluster. If this argument is * omitted, the default parameter group for the engine version is used. *
** Constraints: *
** If supplied, must match the name of an existing DBClusterParameterGroup. *
** Constraints: *
** If supplied, must match the name of an existing DBClusterParameterGroup. *
** A list of EC2 VPC security groups to associate with the restored DB cluster. *
* * @return A list of EC2 VPC security groups to associate with the restored DB cluster. */ public java.util.List* A list of EC2 VPC security groups to associate with the restored DB cluster. *
* * @param vpcSecurityGroupIds * A list of EC2 VPC security groups to associate with the restored DB cluster. */ public void setVpcSecurityGroupIds(java.util.Collection* A list of EC2 VPC security groups to associate with the restored 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 the restored DB cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new com.amazonaws.internal.SdkInternalList* A list of EC2 VPC security groups to associate with the restored DB cluster. *
* * @param vpcSecurityGroupIds * A list of EC2 VPC security groups to associate with the restored DB cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withVpcSecurityGroupIds(java.util.Collection* A DB subnet group to associate with the restored DB cluster. *
** Constraints: If supplied, must match the name of an existing DBSubnetGroup. *
*
* Example: mydbsubnetgroup
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup. *
*
* Example: mydbsubnetgroup
*/
public void setDBSubnetGroupName(String dBSubnetGroupName) {
this.dBSubnetGroupName = dBSubnetGroupName;
}
/**
*
* A DB subnet group to associate with the restored DB cluster. *
** Constraints: If supplied, must match the name of an existing DBSubnetGroup. *
*
* Example: mydbsubnetgroup
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup. *
*
* Example: mydbsubnetgroup
*/
public String getDBSubnetGroupName() {
return this.dBSubnetGroupName;
}
/**
*
* A DB subnet group to associate with the restored DB cluster. *
** Constraints: If supplied, must match the name of an existing DBSubnetGroup. *
*
* Example: mydbsubnetgroup
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup. *
*
* Example: mydbsubnetgroup
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterFromS3Request withDBSubnetGroupName(String dBSubnetGroupName) {
setDBSubnetGroupName(dBSubnetGroupName);
return this;
}
/**
*
* The name of the database engine to be used for this DB cluster. *
*
* Valid Values: aurora-mysql
(for Aurora MySQL)
*
* Valid Values: aurora-mysql
(for Aurora MySQL)
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The name of the database engine to be used for this DB cluster. *
*
* Valid Values: aurora-mysql
(for Aurora MySQL)
*
* Valid Values: aurora-mysql
(for Aurora MySQL)
*/
public String getEngine() {
return this.engine;
}
/**
*
* The name of the database engine to be used for this DB cluster. *
*
* Valid Values: aurora-mysql
(for Aurora MySQL)
*
* Valid Values: aurora-mysql
(for Aurora MySQL)
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterFromS3Request withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* The version number of the database engine to use. *
*
* To list all of the available engine versions for aurora-mysql
(Aurora MySQL), use the following
* command:
*
* aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"
*
* Aurora MySQL *
*
* Examples: 5.7.mysql_aurora.2.07.1
, 8.0.mysql_aurora.3.02.0
*
* To list all of the available engine versions for aurora-mysql
(Aurora MySQL), use the
* following command:
*
* aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"
*
* Aurora MySQL *
*
* Examples: 5.7.mysql_aurora.2.07.1
, 8.0.mysql_aurora.3.02.0
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The version number of the database engine to use. *
*
* To list all of the available engine versions for aurora-mysql
(Aurora MySQL), use the following
* command:
*
* aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"
*
* Aurora MySQL *
*
* Examples: 5.7.mysql_aurora.2.07.1
, 8.0.mysql_aurora.3.02.0
*
* To list all of the available engine versions for aurora-mysql
(Aurora MySQL), use the
* following command:
*
* aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"
*
* Aurora MySQL *
*
* Examples: 5.7.mysql_aurora.2.07.1
, 8.0.mysql_aurora.3.02.0
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The version number of the database engine to use. *
*
* To list all of the available engine versions for aurora-mysql
(Aurora MySQL), use the following
* command:
*
* aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"
*
* Aurora MySQL *
*
* Examples: 5.7.mysql_aurora.2.07.1
, 8.0.mysql_aurora.3.02.0
*
* To list all of the available engine versions for aurora-mysql
(Aurora MySQL), use the
* following command:
*
* aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"
*
* Aurora MySQL *
*
* Examples: 5.7.mysql_aurora.2.07.1
, 8.0.mysql_aurora.3.02.0
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterFromS3Request withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* The port number on which the instances in the restored DB cluster accept connections. *
*
* Default: 3306
*
* Default: 3306
*/
public void setPort(Integer port) {
this.port = port;
}
/**
*
* The port number on which the instances in the restored DB cluster accept connections. *
*
* Default: 3306
*
* Default: 3306
*/
public Integer getPort() {
return this.port;
}
/**
*
* The port number on which the instances in the restored DB cluster accept connections. *
*
* Default: 3306
*
* Default: 3306
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterFromS3Request withPort(Integer port) {
setPort(port);
return this;
}
/**
*
* The name of the master user for the restored DB cluster. *
** Constraints: *
** Must be 1 to 16 letters or numbers. *
** First character must be a letter. *
** Can't be a reserved word for the chosen database engine. *
** Constraints: *
** Must be 1 to 16 letters or numbers. *
** First character must be a letter. *
** Can't be a reserved word for the chosen database engine. *
** The name of the master user for the restored DB cluster. *
** Constraints: *
** Must be 1 to 16 letters or numbers. *
** First character must be a letter. *
** Can't be a reserved word for the chosen database engine. *
** Constraints: *
** Must be 1 to 16 letters or numbers. *
** First character must be a letter. *
** Can't be a reserved word for the chosen database engine. *
** The name of the master user for the restored DB cluster. *
** Constraints: *
** Must be 1 to 16 letters or numbers. *
** First character must be a letter. *
** Can't be a reserved word for the chosen database engine. *
** Constraints: *
** Must be 1 to 16 letters or numbers. *
** First character must be a letter. *
** Can't be a reserved word for the chosen database engine. *
** 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. *
*
* Can't be specified if ManageMasterUserPassword
is turned on.
*
* Constraints: *
** Must contain from 8 to 41 characters. *
*
* Can't be specified if ManageMasterUserPassword
is turned on.
*
* 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. *
*
* Can't be specified if ManageMasterUserPassword
is turned on.
*
* Constraints: *
** Must contain from 8 to 41 characters. *
*
* Can't be specified if ManageMasterUserPassword
is turned on.
*
* 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. *
*
* Can't be specified if ManageMasterUserPassword
is turned on.
*
* Constraints: *
** Must contain from 8 to 41 characters. *
*
* Can't be specified if ManageMasterUserPassword
is turned on.
*
* A value that indicates that the restored DB cluster should be associated with the specified option group. *
** Permanent options can't be removed from an option group. An option group can't be removed from a DB cluster once * it is associated with a DB cluster. *
* * @param optionGroupName * A value that indicates that the restored DB cluster should be associated with the specified option * group. ** Permanent options can't be removed from an option group. An option group can't 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 restored DB cluster should be associated with the specified option group. *
** Permanent options can't be removed from an option group. An option group can't be removed from a DB cluster once * it is associated with a DB cluster. *
* * @return A value that indicates that the restored DB cluster should be associated with the specified option * group. ** Permanent options can't be removed from an option group. An option group can't 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 restored DB cluster should be associated with the specified option group. *
** Permanent options can't be removed from an option group. An option group can't be removed from a DB cluster once * it is associated with a DB cluster. *
* * @param optionGroupName * A value that indicates that the restored DB cluster should be associated with the specified option * group. ** Permanent options can't be removed from an option group. An option group can't 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 RestoreDBClusterFromS3Request 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.
*
* The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services * Region. To view the time blocks available, see Backup window in the Amazon Aurora User Guide. *
** 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. To view the time blocks available, see Backup window in the Amazon Aurora User Guide. *
** 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. *
*
* 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. To view the time blocks available, see Backup window in the Amazon Aurora User Guide. *
** 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. To view the time blocks available, see Backup window in the Amazon Aurora User Guide. *
** 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. *
*
* 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. To view the time blocks available, see Backup window in the Amazon Aurora User Guide. *
** 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. To view the time blocks available, see Backup window in the Amazon Aurora User Guide. *
** 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. *
** 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. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Aurora 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
*
* 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. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Aurora 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
*
* 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. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Aurora 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
*
* 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. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Aurora 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
*
* 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. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Aurora 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
*
* 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. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Aurora 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 RestoreDBClusterFromS3Request withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
setPreferredMaintenanceWindow(preferredMaintenanceWindow);
return this;
}
/**
* @return
*/
public java.util.List
* 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.
*
* A value that indicates whether the restored DB cluster is encrypted.
*
* A value that indicates whether the restored DB cluster is encrypted.
*
* A value that indicates whether the restored DB cluster is encrypted.
*
* A value that indicates whether the restored DB cluster is encrypted.
*
* The Amazon Web Services KMS key identifier for an encrypted DB cluster.
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To
* use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.
*
* If the StorageEncrypted parameter is enabled, and you do not specify a value for the KmsKeyId
* parameter, then Amazon RDS will use your default KMS key. There is a default KMS key for your Amazon Web Services
* account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS * key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If the StorageEncrypted parameter is enabled, and you do not specify a value for the KmsKeyId
* parameter, then Amazon RDS will use your default KMS key. There is a default KMS key for your Amazon Web
* Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web
* Services Region.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* The Amazon Web Services KMS key identifier for an encrypted DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To * use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If the StorageEncrypted parameter is enabled, and you do not specify a value for the KmsKeyId
* parameter, then Amazon RDS will use your default KMS key. There is a default KMS key for your Amazon Web Services
* account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS * key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If the StorageEncrypted parameter is enabled, and you do not specify a value for the
* KmsKeyId
parameter, then Amazon RDS will use your default KMS key. There is a default KMS
* key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS
* key for each Amazon Web Services Region.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* The Amazon Web Services KMS key identifier for an encrypted DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To * use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If the StorageEncrypted parameter is enabled, and you do not specify a value for the KmsKeyId
* parameter, then Amazon RDS will use your default KMS key. There is a default KMS key for your Amazon Web Services
* account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS * key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If the StorageEncrypted parameter is enabled, and you do not specify a value for the KmsKeyId
* parameter, then Amazon RDS will use your default KMS key. There is a default KMS key for your Amazon Web
* Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web
* Services Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterFromS3Request withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) * accounts to database accounts. By default, mapping isn't enabled. *
** For more information, see IAM Database * Authentication in the Amazon Aurora User Guide. *
* * @param enableIAMDatabaseAuthentication * A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management * (IAM) accounts to database accounts. By default, mapping isn't enabled. ** For more information, see IAM * Database Authentication in the Amazon Aurora User Guide. */ public void setEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication) { this.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication; } /** *
* A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) * accounts to database accounts. By default, mapping isn't enabled. *
** For more information, see IAM Database * Authentication in the Amazon Aurora User Guide. *
* * @return A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management * (IAM) accounts to database accounts. By default, mapping isn't enabled. ** For more information, see IAM * Database Authentication in the Amazon Aurora User Guide. */ public Boolean getEnableIAMDatabaseAuthentication() { return this.enableIAMDatabaseAuthentication; } /** *
* A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) * accounts to database accounts. By default, mapping isn't enabled. *
** For more information, see IAM Database * Authentication in the Amazon Aurora User Guide. *
* * @param enableIAMDatabaseAuthentication * A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management * (IAM) accounts to database accounts. By default, mapping isn't enabled. ** For more information, see IAM * Database Authentication in the Amazon Aurora User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication) { setEnableIAMDatabaseAuthentication(enableIAMDatabaseAuthentication); return this; } /** *
* A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) * accounts to database accounts. By default, mapping isn't enabled. *
** For more information, see IAM Database * Authentication in the Amazon Aurora User Guide. *
* * @return A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management * (IAM) accounts to database accounts. By default, mapping isn't enabled. ** For more information, see IAM * Database Authentication in the Amazon Aurora User Guide. */ public Boolean isEnableIAMDatabaseAuthentication() { return this.enableIAMDatabaseAuthentication; } /** *
* The identifier for the database engine that was backed up to create the files stored in the Amazon S3 bucket. *
*
* Valid values: mysql
*
* Valid values: mysql
*/
public void setSourceEngine(String sourceEngine) {
this.sourceEngine = sourceEngine;
}
/**
*
* The identifier for the database engine that was backed up to create the files stored in the Amazon S3 bucket. *
*
* Valid values: mysql
*
* Valid values: mysql
*/
public String getSourceEngine() {
return this.sourceEngine;
}
/**
*
* The identifier for the database engine that was backed up to create the files stored in the Amazon S3 bucket. *
*
* Valid values: mysql
*
* Valid values: mysql
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterFromS3Request withSourceEngine(String sourceEngine) {
setSourceEngine(sourceEngine);
return this;
}
/**
*
* The version of the database that the backup files were created from. *
** MySQL versions 5.5, 5.6, and 5.7 are supported. *
*
* Example: 5.6.40
, 5.7.28
*
* MySQL versions 5.5, 5.6, and 5.7 are supported. *
*
* Example: 5.6.40
, 5.7.28
*/
public void setSourceEngineVersion(String sourceEngineVersion) {
this.sourceEngineVersion = sourceEngineVersion;
}
/**
*
* The version of the database that the backup files were created from. *
** MySQL versions 5.5, 5.6, and 5.7 are supported. *
*
* Example: 5.6.40
, 5.7.28
*
* MySQL versions 5.5, 5.6, and 5.7 are supported. *
*
* Example: 5.6.40
, 5.7.28
*/
public String getSourceEngineVersion() {
return this.sourceEngineVersion;
}
/**
*
* The version of the database that the backup files were created from. *
** MySQL versions 5.5, 5.6, and 5.7 are supported. *
*
* Example: 5.6.40
, 5.7.28
*
* MySQL versions 5.5, 5.6, and 5.7 are supported. *
*
* Example: 5.6.40
, 5.7.28
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterFromS3Request withSourceEngineVersion(String sourceEngineVersion) {
setSourceEngineVersion(sourceEngineVersion);
return this;
}
/**
*
* The name of the Amazon S3 bucket that contains the data used to create the Amazon Aurora DB cluster. *
* * @param s3BucketName * The name of the Amazon S3 bucket that contains the data used to create the Amazon Aurora DB cluster. */ public void setS3BucketName(String s3BucketName) { this.s3BucketName = s3BucketName; } /** ** The name of the Amazon S3 bucket that contains the data used to create the Amazon Aurora DB cluster. *
* * @return The name of the Amazon S3 bucket that contains the data used to create the Amazon Aurora DB cluster. */ public String getS3BucketName() { return this.s3BucketName; } /** ** The name of the Amazon S3 bucket that contains the data used to create the Amazon Aurora DB cluster. *
* * @param s3BucketName * The name of the Amazon S3 bucket that contains the data used to create the Amazon Aurora DB cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withS3BucketName(String s3BucketName) { setS3BucketName(s3BucketName); return this; } /** ** The prefix for all of the file names that contain the data used to create the Amazon Aurora DB cluster. If you do * not specify a SourceS3Prefix value, then the Amazon Aurora DB cluster is created by using all of the files * in the Amazon S3 bucket. *
* * @param s3Prefix * The prefix for all of the file names that contain the data used to create the Amazon Aurora DB cluster. If * you do not specify a SourceS3Prefix value, then the Amazon Aurora DB cluster is created by using * all of the files in the Amazon S3 bucket. */ public void setS3Prefix(String s3Prefix) { this.s3Prefix = s3Prefix; } /** ** The prefix for all of the file names that contain the data used to create the Amazon Aurora DB cluster. If you do * not specify a SourceS3Prefix value, then the Amazon Aurora DB cluster is created by using all of the files * in the Amazon S3 bucket. *
* * @return The prefix for all of the file names that contain the data used to create the Amazon Aurora DB cluster. * If you do not specify a SourceS3Prefix value, then the Amazon Aurora DB cluster is created by * using all of the files in the Amazon S3 bucket. */ public String getS3Prefix() { return this.s3Prefix; } /** ** The prefix for all of the file names that contain the data used to create the Amazon Aurora DB cluster. If you do * not specify a SourceS3Prefix value, then the Amazon Aurora DB cluster is created by using all of the files * in the Amazon S3 bucket. *
* * @param s3Prefix * The prefix for all of the file names that contain the data used to create the Amazon Aurora DB cluster. If * you do not specify a SourceS3Prefix value, then the Amazon Aurora DB cluster is created by using * all of the files in the Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withS3Prefix(String s3Prefix) { setS3Prefix(s3Prefix); return this; } /** ** The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that * authorizes Amazon RDS to access the Amazon S3 bucket on your behalf. *
* * @param s3IngestionRoleArn * The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that * authorizes Amazon RDS to access the Amazon S3 bucket on your behalf. */ public void setS3IngestionRoleArn(String s3IngestionRoleArn) { this.s3IngestionRoleArn = s3IngestionRoleArn; } /** ** The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that * authorizes Amazon RDS to access the Amazon S3 bucket on your behalf. *
* * @return The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that * authorizes Amazon RDS to access the Amazon S3 bucket on your behalf. */ public String getS3IngestionRoleArn() { return this.s3IngestionRoleArn; } /** ** The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that * authorizes Amazon RDS to access the Amazon S3 bucket on your behalf. *
* * @param s3IngestionRoleArn * The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that * authorizes Amazon RDS to access the Amazon S3 bucket on your behalf. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withS3IngestionRoleArn(String s3IngestionRoleArn) { setS3IngestionRoleArn(s3IngestionRoleArn); return this; } /** ** The target backtrack window, in seconds. To disable backtracking, set this value to 0. *
** Currently, Backtrack is only supported for Aurora MySQL DB clusters. *
** Default: 0 *
** Constraints: *
** If specified, this value must be set to a number from 0 to 259,200 (72 hours). *
** Currently, Backtrack is only supported for Aurora MySQL DB clusters. *
** Default: 0 *
** Constraints: *
** If specified, this value must be set to a number from 0 to 259,200 (72 hours). *
** The target backtrack window, in seconds. To disable backtracking, set this value to 0. *
** Currently, Backtrack is only supported for Aurora MySQL DB clusters. *
** Default: 0 *
** Constraints: *
** If specified, this value must be set to a number from 0 to 259,200 (72 hours). *
** Currently, Backtrack is only supported for Aurora MySQL DB clusters. *
** Default: 0 *
** Constraints: *
** If specified, this value must be set to a number from 0 to 259,200 (72 hours). *
** The target backtrack window, in seconds. To disable backtracking, set this value to 0. *
** Currently, Backtrack is only supported for Aurora MySQL DB clusters. *
** Default: 0 *
** Constraints: *
** If specified, this value must be set to a number from 0 to 259,200 (72 hours). *
** Currently, Backtrack is only supported for Aurora MySQL DB clusters. *
** Default: 0 *
** Constraints: *
** If specified, this value must be set to a number from 0 to 259,200 (72 hours). *
** The list of logs that the restored DB cluster is to export to CloudWatch Logs. The values in the list depend on * the DB engine being used. *
** Aurora MySQL *
*
* Possible values are audit
, error
, general
, and slowquery
.
*
* For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide. *
* * @return The list of logs that the restored DB cluster is to export to CloudWatch Logs. The values in the list * depend on the DB engine being used. ** Aurora MySQL *
*
* Possible values are audit
, error
, general
, and
* slowquery
.
*
* For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
*/
public java.util.List
* The list of logs that the restored DB cluster is to export to CloudWatch Logs. The values in the list depend on
* the DB engine being used.
*
* Aurora MySQL
*
* Possible values are
* For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
* audit
, error
, general
, and slowquery
.
*
* Aurora MySQL *
*
* Possible values are audit
, error
, general
, and
* slowquery
.
*
* For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
*/
public void setEnableCloudwatchLogsExports(java.util.Collection
* The list of logs that the restored DB cluster is to export to CloudWatch Logs. The values in the list depend on
* the DB engine being used.
*
* Aurora MySQL
*
* Possible values are
* For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setEnableCloudwatchLogsExports(java.util.Collection)} or
* {@link #withEnableCloudwatchLogsExports(java.util.Collection)} if you want to override the existing values.
* audit
, error
, general
, and slowquery
.
*
* Aurora MySQL *
*
* Possible values are audit
, error
, general
, and
* slowquery
.
*
* For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterFromS3Request withEnableCloudwatchLogsExports(String... enableCloudwatchLogsExports) {
if (this.enableCloudwatchLogsExports == null) {
setEnableCloudwatchLogsExports(new com.amazonaws.internal.SdkInternalList
* The list of logs that the restored DB cluster is to export to CloudWatch Logs. The values in the list depend on
* the DB engine being used.
*
* Aurora MySQL
*
* Possible values are
* For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
* audit
, error
, general
, and slowquery
.
*
* Aurora MySQL *
*
* Possible values are audit
, error
, general
, and
* slowquery
.
*
* For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterFromS3Request withEnableCloudwatchLogsExports(java.util.Collection
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection isn't enabled.
*
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection isn't enabled.
*
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection isn't enabled.
*
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection isn't enabled.
*
* A value that indicates whether to copy all tags from the restored DB cluster to snapshots of the restored DB
* cluster. The default is not to copy them.
*
* A value that indicates whether to copy all tags from the restored DB cluster to snapshots of the restored DB
* cluster. The default is not to copy them.
*
* A value that indicates whether to copy all tags from the restored DB cluster to snapshots of the restored DB
* cluster. The default is not to copy them.
*
* A value that indicates whether to copy all tags from the restored DB cluster to snapshots of the restored DB
* cluster. The default is not to copy them.
*
* Specify the Active Directory directory ID to restore the DB cluster in. The domain must be created prior to this
* operation.
*
* For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication to authenticate users that connect to
* the DB cluster. For more information, see Kerberos
* Authentication in the Amazon Aurora User Guide.
*
* For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication to authenticate users that * connect to the DB cluster. For more information, see Kerberos * Authentication in the Amazon Aurora User Guide. */ public void setDomain(String domain) { this.domain = domain; } /** *
* Specify the Active Directory directory ID to restore the DB cluster in. The domain must be created prior to this * operation. *
** For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication to authenticate users that connect to * the DB cluster. For more information, see Kerberos * Authentication in the Amazon Aurora User Guide. *
* * @return Specify the Active Directory directory ID to restore the DB cluster in. The domain must be created prior * to this operation. ** For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication to authenticate users that * connect to the DB cluster. For more information, see Kerberos * Authentication in the Amazon Aurora User Guide. */ public String getDomain() { return this.domain; } /** *
* Specify the Active Directory directory ID to restore the DB cluster in. The domain must be created prior to this * operation. *
** For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication to authenticate users that connect to * the DB cluster. For more information, see Kerberos * Authentication in the Amazon Aurora User Guide. *
* * @param domain * Specify the Active Directory directory ID to restore the DB cluster in. The domain must be created prior * to this operation. ** For Amazon Aurora DB clusters, Amazon RDS can use Kerberos Authentication to authenticate users that * connect to the DB cluster. For more information, see Kerberos * Authentication in the Amazon Aurora User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withDomain(String domain) { setDomain(domain); return this; } /** *
* Specify the name of the IAM role to be used when making API calls to the Directory Service. *
* * @param domainIAMRoleName * Specify the name of the IAM role to be used when making API calls to the Directory Service. */ public void setDomainIAMRoleName(String domainIAMRoleName) { this.domainIAMRoleName = domainIAMRoleName; } /** ** Specify the name of the IAM role to be used when making API calls to the Directory Service. *
* * @return Specify the name of the IAM role to be used when making API calls to the Directory Service. */ public String getDomainIAMRoleName() { return this.domainIAMRoleName; } /** ** Specify the name of the IAM role to be used when making API calls to the Directory Service. *
* * @param domainIAMRoleName * Specify the name of the IAM role to be used when making API calls to the Directory Service. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withDomainIAMRoleName(String domainIAMRoleName) { setDomainIAMRoleName(domainIAMRoleName); return this; } /** * @param serverlessV2ScalingConfiguration */ public void setServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration) { this.serverlessV2ScalingConfiguration = serverlessV2ScalingConfiguration; } /** * @return */ public ServerlessV2ScalingConfiguration getServerlessV2ScalingConfiguration() { return this.serverlessV2ScalingConfiguration; } /** * @param serverlessV2ScalingConfiguration * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration) { setServerlessV2ScalingConfiguration(serverlessV2ScalingConfiguration); return this; } /** ** The network type of the DB cluster. *
** Valid values: *
*
* IPV4
*
* DUAL
*
* The network type is determined by the DBSubnetGroup
specified for the DB cluster. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see * Working with a DB instance in a VPC in the Amazon Aurora User Guide. *
* * @param networkType * The network type of the DB cluster. ** Valid values: *
*
* IPV4
*
* DUAL
*
* The network type is determined by the DBSubnetGroup
specified for the DB cluster. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see * Working with a DB instance in a VPC in the Amazon Aurora User Guide. */ public void setNetworkType(String networkType) { this.networkType = networkType; } /** *
* The network type of the DB cluster. *
** Valid values: *
*
* IPV4
*
* DUAL
*
* The network type is determined by the DBSubnetGroup
specified for the DB cluster. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see * Working with a DB instance in a VPC in the Amazon Aurora User Guide. *
* * @return The network type of the DB cluster. ** Valid values: *
*
* IPV4
*
* DUAL
*
* The network type is determined by the DBSubnetGroup
specified for the DB cluster. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see Working with a DB instance in a VPC in the Amazon Aurora User Guide. */ public String getNetworkType() { return this.networkType; } /** *
* The network type of the DB cluster. *
** Valid values: *
*
* IPV4
*
* DUAL
*
* The network type is determined by the DBSubnetGroup
specified for the DB cluster. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see * Working with a DB instance in a VPC in the Amazon Aurora User Guide. *
* * @param networkType * The network type of the DB cluster. ** Valid values: *
*
* IPV4
*
* DUAL
*
* The network type is determined by the DBSubnetGroup
specified for the DB cluster. A
* DBSubnetGroup
can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (
* DUAL
).
*
* For more information, see * Working with a DB instance in a VPC in the Amazon Aurora User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withNetworkType(String networkType) { setNetworkType(networkType); return this; } /** *
* A value that indicates whether to manage the master user password with Amazon Web Services Secrets Manager. *
** For more information, see Password management with * Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password management * with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide. *
** Constraints: *
*
* Can't manage the master user password with Amazon Web Services Secrets Manager if MasterUserPassword
* is specified.
*
* For more information, see Password management * with Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password * management with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide. *
** Constraints: *
*
* Can't manage the master user password with Amazon Web Services Secrets Manager if
* MasterUserPassword
is specified.
*
* A value that indicates whether to manage the master user password with Amazon Web Services Secrets Manager. *
** For more information, see Password management with * Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password management * with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide. *
** Constraints: *
*
* Can't manage the master user password with Amazon Web Services Secrets Manager if MasterUserPassword
* is specified.
*
* For more information, see Password * management with Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password * management with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide. *
** Constraints: *
*
* Can't manage the master user password with Amazon Web Services Secrets Manager if
* MasterUserPassword
is specified.
*
* A value that indicates whether to manage the master user password with Amazon Web Services Secrets Manager. *
** For more information, see Password management with * Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password management * with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide. *
** Constraints: *
*
* Can't manage the master user password with Amazon Web Services Secrets Manager if MasterUserPassword
* is specified.
*
* For more information, see Password management * with Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password * management with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide. *
** Constraints: *
*
* Can't manage the master user password with Amazon Web Services Secrets Manager if
* MasterUserPassword
is specified.
*
* A value that indicates whether to manage the master user password with Amazon Web Services Secrets Manager. *
** For more information, see Password management with * Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password management * with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide. *
** Constraints: *
*
* Can't manage the master user password with Amazon Web Services Secrets Manager if MasterUserPassword
* is specified.
*
* For more information, see Password * management with Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password * management with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide. *
** Constraints: *
*
* Can't manage the master user password with Amazon Web Services Secrets Manager if
* MasterUserPassword
is specified.
*
* The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in * Amazon Web Services Secrets Manager. *
** This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager * for the DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To * use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If you don't specify MasterUserSecretKmsKeyId
, then the aws/secretsmanager
KMS key is
* used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the
* aws/secretsmanager
KMS key to encrypt the secret, and you must use a customer managed KMS key.
*
* There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different * default KMS key for each Amazon Web Services Region. *
* * @param masterUserSecretKmsKeyId * The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed * in Amazon Web Services Secrets Manager. ** This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets * Manager for the DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS * key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If you don't specify MasterUserSecretKmsKeyId
, then the aws/secretsmanager
KMS
* key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you
* can't use the aws/secretsmanager
KMS key to encrypt the secret, and you must use a customer
* managed KMS key.
*
* There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a * different default KMS key for each Amazon Web Services Region. */ public void setMasterUserSecretKmsKeyId(String masterUserSecretKmsKeyId) { this.masterUserSecretKmsKeyId = masterUserSecretKmsKeyId; } /** *
* The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in * Amazon Web Services Secrets Manager. *
** This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager * for the DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To * use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If you don't specify MasterUserSecretKmsKeyId
, then the aws/secretsmanager
KMS key is
* used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the
* aws/secretsmanager
KMS key to encrypt the secret, and you must use a customer managed KMS key.
*
* There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different * default KMS key for each Amazon Web Services Region. *
* * @return The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and * managed in Amazon Web Services Secrets Manager. ** This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets * Manager for the DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS * key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If you don't specify MasterUserSecretKmsKeyId
, then the aws/secretsmanager
KMS
* key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you
* can't use the aws/secretsmanager
KMS key to encrypt the secret, and you must use a customer
* managed KMS key.
*
* There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a * different default KMS key for each Amazon Web Services Region. */ public String getMasterUserSecretKmsKeyId() { return this.masterUserSecretKmsKeyId; } /** *
* The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in * Amazon Web Services Secrets Manager. *
** This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager * for the DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To * use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If you don't specify MasterUserSecretKmsKeyId
, then the aws/secretsmanager
KMS key is
* used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the
* aws/secretsmanager
KMS key to encrypt the secret, and you must use a customer managed KMS key.
*
* There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different * default KMS key for each Amazon Web Services Region. *
* * @param masterUserSecretKmsKeyId * The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed * in Amazon Web Services Secrets Manager. ** This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets * Manager for the DB cluster. *
** The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS * key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. *
*
* If you don't specify MasterUserSecretKmsKeyId
, then the aws/secretsmanager
KMS
* key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you
* can't use the aws/secretsmanager
KMS key to encrypt the secret, and you must use a customer
* managed KMS key.
*
* There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a * different default KMS key for each Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withMasterUserSecretKmsKeyId(String masterUserSecretKmsKeyId) { setMasterUserSecretKmsKeyId(masterUserSecretKmsKeyId); return this; } /** *
* Specifies the storage type to be associated with the DB cluster. *
*
* Valid values: aurora
, aurora-iopt1
*
* Default: aurora
*
* Valid for: Aurora DB clusters only *
* * @param storageType * Specifies the storage type to be associated with the DB cluster. *
* Valid values: aurora
, aurora-iopt1
*
* Default: aurora
*
* Valid for: Aurora DB clusters only */ public void setStorageType(String storageType) { this.storageType = storageType; } /** *
* Specifies the storage type to be associated with the DB cluster. *
*
* Valid values: aurora
, aurora-iopt1
*
* Default: aurora
*
* Valid for: Aurora DB clusters only *
* * @return Specifies the storage type to be associated with the DB cluster. *
* Valid values: aurora
, aurora-iopt1
*
* Default: aurora
*
* Valid for: Aurora DB clusters only */ public String getStorageType() { return this.storageType; } /** *
* Specifies the storage type to be associated with the DB cluster. *
*
* Valid values: aurora
, aurora-iopt1
*
* Default: aurora
*
* Valid for: Aurora DB clusters only *
* * @param storageType * Specifies the storage type to be associated with the DB cluster. *
* Valid values: aurora
, aurora-iopt1
*
* Default: aurora
*
* Valid for: Aurora DB clusters only * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterFromS3Request withStorageType(String storageType) { setStorageType(storageType); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @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: ").append(getAvailabilityZones()).append(","); if (getBackupRetentionPeriod() != null) sb.append("BackupRetentionPeriod: ").append(getBackupRetentionPeriod()).append(","); if (getCharacterSetName() != null) sb.append("CharacterSetName: ").append(getCharacterSetName()).append(","); if (getDatabaseName() != null) sb.append("DatabaseName: ").append(getDatabaseName()).append(","); if (getDBClusterIdentifier() != null) sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(","); if (getDBClusterParameterGroupName() != null) sb.append("DBClusterParameterGroupName: ").append(getDBClusterParameterGroupName()).append(","); if (getVpcSecurityGroupIds() != null) sb.append("VpcSecurityGroupIds: ").append(getVpcSecurityGroupIds()).append(","); if (getDBSubnetGroupName() != null) sb.append("DBSubnetGroupName: ").append(getDBSubnetGroupName()).append(","); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getPort() != null) sb.append("Port: ").append(getPort()).append(","); if (getMasterUsername() != null) sb.append("MasterUsername: ").append(getMasterUsername()).append(","); if (getMasterUserPassword() != null) sb.append("MasterUserPassword: ").append(getMasterUserPassword()).append(","); if (getOptionGroupName() != null) sb.append("OptionGroupName: ").append(getOptionGroupName()).append(","); if (getPreferredBackupWindow() != null) sb.append("PreferredBackupWindow: ").append(getPreferredBackupWindow()).append(","); if (getPreferredMaintenanceWindow() != null) sb.append("PreferredMaintenanceWindow: ").append(getPreferredMaintenanceWindow()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getStorageEncrypted() != null) sb.append("StorageEncrypted: ").append(getStorageEncrypted()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getEnableIAMDatabaseAuthentication() != null) sb.append("EnableIAMDatabaseAuthentication: ").append(getEnableIAMDatabaseAuthentication()).append(","); if (getSourceEngine() != null) sb.append("SourceEngine: ").append(getSourceEngine()).append(","); if (getSourceEngineVersion() != null) sb.append("SourceEngineVersion: ").append(getSourceEngineVersion()).append(","); if (getS3BucketName() != null) sb.append("S3BucketName: ").append(getS3BucketName()).append(","); if (getS3Prefix() != null) sb.append("S3Prefix: ").append(getS3Prefix()).append(","); if (getS3IngestionRoleArn() != null) sb.append("S3IngestionRoleArn: ").append(getS3IngestionRoleArn()).append(","); if (getBacktrackWindow() != null) sb.append("BacktrackWindow: ").append(getBacktrackWindow()).append(","); if (getEnableCloudwatchLogsExports() != null) sb.append("EnableCloudwatchLogsExports: ").append(getEnableCloudwatchLogsExports()).append(","); if (getDeletionProtection() != null) sb.append("DeletionProtection: ").append(getDeletionProtection()).append(","); if (getCopyTagsToSnapshot() != null) sb.append("CopyTagsToSnapshot: ").append(getCopyTagsToSnapshot()).append(","); if (getDomain() != null) sb.append("Domain: ").append(getDomain()).append(","); if (getDomainIAMRoleName() != null) sb.append("DomainIAMRoleName: ").append(getDomainIAMRoleName()).append(","); if (getServerlessV2ScalingConfiguration() != null) sb.append("ServerlessV2ScalingConfiguration: ").append(getServerlessV2ScalingConfiguration()).append(","); if (getNetworkType() != null) sb.append("NetworkType: ").append(getNetworkType()).append(","); if (getManageMasterUserPassword() != null) sb.append("ManageMasterUserPassword: ").append(getManageMasterUserPassword()).append(","); if (getMasterUserSecretKmsKeyId() != null) sb.append("MasterUserSecretKmsKeyId: ").append(getMasterUserSecretKmsKeyId()).append(","); if (getStorageType() != null) sb.append("StorageType: ").append(getStorageType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RestoreDBClusterFromS3Request == false) return false; RestoreDBClusterFromS3Request other = (RestoreDBClusterFromS3Request) 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.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; if (other.getEnableIAMDatabaseAuthentication() == null ^ this.getEnableIAMDatabaseAuthentication() == null) return false; if (other.getEnableIAMDatabaseAuthentication() != null && other.getEnableIAMDatabaseAuthentication().equals(this.getEnableIAMDatabaseAuthentication()) == false) return false; if (other.getSourceEngine() == null ^ this.getSourceEngine() == null) return false; if (other.getSourceEngine() != null && other.getSourceEngine().equals(this.getSourceEngine()) == false) return false; if (other.getSourceEngineVersion() == null ^ this.getSourceEngineVersion() == null) return false; if (other.getSourceEngineVersion() != null && other.getSourceEngineVersion().equals(this.getSourceEngineVersion()) == false) return false; if (other.getS3BucketName() == null ^ this.getS3BucketName() == null) return false; if (other.getS3BucketName() != null && other.getS3BucketName().equals(this.getS3BucketName()) == false) return false; if (other.getS3Prefix() == null ^ this.getS3Prefix() == null) return false; if (other.getS3Prefix() != null && other.getS3Prefix().equals(this.getS3Prefix()) == false) return false; if (other.getS3IngestionRoleArn() == null ^ this.getS3IngestionRoleArn() == null) return false; if (other.getS3IngestionRoleArn() != null && other.getS3IngestionRoleArn().equals(this.getS3IngestionRoleArn()) == false) return false; if (other.getBacktrackWindow() == null ^ this.getBacktrackWindow() == null) return false; if (other.getBacktrackWindow() != null && other.getBacktrackWindow().equals(this.getBacktrackWindow()) == false) return false; if (other.getEnableCloudwatchLogsExports() == null ^ this.getEnableCloudwatchLogsExports() == null) return false; if (other.getEnableCloudwatchLogsExports() != null && other.getEnableCloudwatchLogsExports().equals(this.getEnableCloudwatchLogsExports()) == false) return false; if (other.getDeletionProtection() == null ^ this.getDeletionProtection() == null) return false; if (other.getDeletionProtection() != null && other.getDeletionProtection().equals(this.getDeletionProtection()) == false) return false; if (other.getCopyTagsToSnapshot() == null ^ this.getCopyTagsToSnapshot() == null) return false; if (other.getCopyTagsToSnapshot() != null && other.getCopyTagsToSnapshot().equals(this.getCopyTagsToSnapshot()) == false) return false; if (other.getDomain() == null ^ this.getDomain() == null) return false; if (other.getDomain() != null && other.getDomain().equals(this.getDomain()) == false) return false; if (other.getDomainIAMRoleName() == null ^ this.getDomainIAMRoleName() == null) return false; if (other.getDomainIAMRoleName() != null && other.getDomainIAMRoleName().equals(this.getDomainIAMRoleName()) == false) return false; if (other.getServerlessV2ScalingConfiguration() == null ^ this.getServerlessV2ScalingConfiguration() == null) return false; if (other.getServerlessV2ScalingConfiguration() != null && other.getServerlessV2ScalingConfiguration().equals(this.getServerlessV2ScalingConfiguration()) == false) return false; if (other.getNetworkType() == null ^ this.getNetworkType() == null) return false; if (other.getNetworkType() != null && other.getNetworkType().equals(this.getNetworkType()) == false) return false; if (other.getManageMasterUserPassword() == null ^ this.getManageMasterUserPassword() == null) return false; if (other.getManageMasterUserPassword() != null && other.getManageMasterUserPassword().equals(this.getManageMasterUserPassword()) == false) return false; if (other.getMasterUserSecretKmsKeyId() == null ^ this.getMasterUserSecretKmsKeyId() == null) return false; if (other.getMasterUserSecretKmsKeyId() != null && other.getMasterUserSecretKmsKeyId().equals(this.getMasterUserSecretKmsKeyId()) == false) return false; if (other.getStorageType() == null ^ this.getStorageType() == null) return false; if (other.getStorageType() != null && other.getStorageType().equals(this.getStorageType()) == 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 + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getStorageEncrypted() == null) ? 0 : getStorageEncrypted().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getEnableIAMDatabaseAuthentication() == null) ? 0 : getEnableIAMDatabaseAuthentication().hashCode()); hashCode = prime * hashCode + ((getSourceEngine() == null) ? 0 : getSourceEngine().hashCode()); hashCode = prime * hashCode + ((getSourceEngineVersion() == null) ? 0 : getSourceEngineVersion().hashCode()); hashCode = prime * hashCode + ((getS3BucketName() == null) ? 0 : getS3BucketName().hashCode()); hashCode = prime * hashCode + ((getS3Prefix() == null) ? 0 : getS3Prefix().hashCode()); hashCode = prime * hashCode + ((getS3IngestionRoleArn() == null) ? 0 : getS3IngestionRoleArn().hashCode()); hashCode = prime * hashCode + ((getBacktrackWindow() == null) ? 0 : getBacktrackWindow().hashCode()); hashCode = prime * hashCode + ((getEnableCloudwatchLogsExports() == null) ? 0 : getEnableCloudwatchLogsExports().hashCode()); hashCode = prime * hashCode + ((getDeletionProtection() == null) ? 0 : getDeletionProtection().hashCode()); hashCode = prime * hashCode + ((getCopyTagsToSnapshot() == null) ? 0 : getCopyTagsToSnapshot().hashCode()); hashCode = prime * hashCode + ((getDomain() == null) ? 0 : getDomain().hashCode()); hashCode = prime * hashCode + ((getDomainIAMRoleName() == null) ? 0 : getDomainIAMRoleName().hashCode()); hashCode = prime * hashCode + ((getServerlessV2ScalingConfiguration() == null) ? 0 : getServerlessV2ScalingConfiguration().hashCode()); hashCode = prime * hashCode + ((getNetworkType() == null) ? 0 : getNetworkType().hashCode()); hashCode = prime * hashCode + ((getManageMasterUserPassword() == null) ? 0 : getManageMasterUserPassword().hashCode()); hashCode = prime * hashCode + ((getMasterUserSecretKmsKeyId() == null) ? 0 : getMasterUserSecretKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode()); return hashCode; } @Override public RestoreDBClusterFromS3Request clone() { return (RestoreDBClusterFromS3Request) super.clone(); } }