
com.amazonaws.services.rds.model.RestoreDBClusterToPointInTimeRequest Maven / Gradle / Ivy
/*
* Copyright 2015-2020 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 RestoreDBClusterToPointInTimeRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the new DB cluster to be created.
*
*
* 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
*
*
*
*/
private String dBClusterIdentifier;
/**
*
* The type of restore to be performed. You can specify one of the following values:
*
*
* -
*
* full-copy
- The new DB cluster is restored as a full copy of the source DB cluster.
*
*
* -
*
* copy-on-write
- The new DB cluster is restored as a clone of the source DB cluster.
*
*
*
*
* Constraints: You can't specify copy-on-write
if the engine version of the source DB cluster is
* earlier than 1.11.
*
*
* If you don't specify a RestoreType
value, then the new DB cluster is restored as a full copy of the
* source DB cluster.
*
*/
private String restoreType;
/**
*
* The identifier of the source DB cluster from which to restore.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DBCluster.
*
*
*
*/
private String sourceDBClusterIdentifier;
/**
*
* The date and time to restore the DB cluster to.
*
*
* Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
*
*
* Constraints:
*
*
* -
*
* Must be before the latest restorable time for the DB instance
*
*
* -
*
* Must be specified if UseLatestRestorableTime
parameter isn't provided
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled
*
*
* -
*
* Can't be specified if the RestoreType
parameter is copy-on-write
*
*
*
*
* Example: 2015-03-07T23:45:00Z
*
*/
private java.util.Date restoreToTime;
/**
*
* A value that indicates whether to restore the DB cluster to the latest restorable backup time. By default, the DB
* cluster isn't restored to the latest restorable backup time.
*
*
* Constraints: Can't be specified if RestoreToTime
parameter is provided.
*
*/
private Boolean useLatestRestorableTime;
/**
*
* The port number on which the new DB cluster accepts connections.
*
*
* Constraints: A value from 1150-65535
.
*
*
* Default: The default port for the engine.
*
*/
private Integer port;
/**
*
* The DB subnet group name to use for the new DB cluster.
*
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup.
*
*
* Example: mySubnetgroup
*
*/
private String dBSubnetGroupName;
/**
*
* The name of the option group for the new DB cluster.
*
*/
private String optionGroupName;
/**
*
* A list of VPC security groups that the new DB cluster belongs to.
*
*/
private com.amazonaws.internal.SdkInternalList vpcSecurityGroupIds;
private com.amazonaws.internal.SdkInternalList tags;
/**
*
* The AWS KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.
*
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB
* cluster with the same 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 KMS encryption key.
*
*
* You can restore to a new DB cluster and encrypt the new DB cluster with a KMS key that is different than the KMS
* key used to encrypt the source DB cluster. The new DB cluster is encrypted with the KMS key identified by the
* KmsKeyId
parameter.
*
*
* If you don't specify a value for the KmsKeyId
parameter, then the following occurs:
*
*
* -
*
* If the DB cluster is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to
* encrypt the source DB cluster.
*
*
* -
*
* If the DB cluster isn't encrypted, then the restored DB cluster isn't encrypted.
*
*
*
*
* If DBClusterIdentifier
refers to a DB cluster that isn't encrypted, then the restore request is
* rejected.
*
*/
private String kmsKeyId;
/**
*
* A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database
* accounts. By default, mapping is disabled.
*
*
* For more information, see IAM Database
* Authentication in the Amazon Aurora User Guide.
*
*/
private Boolean enableIAMDatabaseAuthentication;
/**
*
* 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).
*
*
*
*/
private Long backtrackWindow;
/**
*
* 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. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
*
*/
private com.amazonaws.internal.SdkInternalList enableCloudwatchLogsExports;
/**
*
* The name of the DB cluster parameter group to associate with this DB cluster. If this argument is omitted, the
* default DB cluster parameter group for the specified engine is used.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB cluster parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*/
private String dBClusterParameterGroupName;
/**
*
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection is disabled.
*
*/
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;
/**
*
* The name of the new DB cluster to be created.
*
*
* 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
*
*
*
*
* @param dBClusterIdentifier
* The name of the new DB cluster to be created.
*
* 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
*
*
*/
public void setDBClusterIdentifier(String dBClusterIdentifier) {
this.dBClusterIdentifier = dBClusterIdentifier;
}
/**
*
* The name of the new DB cluster to be created.
*
*
* 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
*
*
*
*
* @return The name of the new DB cluster to be created.
*
* 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
*
*
*/
public String getDBClusterIdentifier() {
return this.dBClusterIdentifier;
}
/**
*
* The name of the new DB cluster to be created.
*
*
* 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
*
*
*
*
* @param dBClusterIdentifier
* The name of the new DB cluster to be created.
*
* 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
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withDBClusterIdentifier(String dBClusterIdentifier) {
setDBClusterIdentifier(dBClusterIdentifier);
return this;
}
/**
*
* The type of restore to be performed. You can specify one of the following values:
*
*
* -
*
* full-copy
- The new DB cluster is restored as a full copy of the source DB cluster.
*
*
* -
*
* copy-on-write
- The new DB cluster is restored as a clone of the source DB cluster.
*
*
*
*
* Constraints: You can't specify copy-on-write
if the engine version of the source DB cluster is
* earlier than 1.11.
*
*
* If you don't specify a RestoreType
value, then the new DB cluster is restored as a full copy of the
* source DB cluster.
*
*
* @param restoreType
* The type of restore to be performed. You can specify one of the following values:
*
* -
*
* full-copy
- The new DB cluster is restored as a full copy of the source DB cluster.
*
*
* -
*
* copy-on-write
- The new DB cluster is restored as a clone of the source DB cluster.
*
*
*
*
* Constraints: You can't specify copy-on-write
if the engine version of the source DB cluster
* is earlier than 1.11.
*
*
* If you don't specify a RestoreType
value, then the new DB cluster is restored as a full copy
* of the source DB cluster.
*/
public void setRestoreType(String restoreType) {
this.restoreType = restoreType;
}
/**
*
* The type of restore to be performed. You can specify one of the following values:
*
*
* -
*
* full-copy
- The new DB cluster is restored as a full copy of the source DB cluster.
*
*
* -
*
* copy-on-write
- The new DB cluster is restored as a clone of the source DB cluster.
*
*
*
*
* Constraints: You can't specify copy-on-write
if the engine version of the source DB cluster is
* earlier than 1.11.
*
*
* If you don't specify a RestoreType
value, then the new DB cluster is restored as a full copy of the
* source DB cluster.
*
*
* @return The type of restore to be performed. You can specify one of the following values:
*
* -
*
* full-copy
- The new DB cluster is restored as a full copy of the source DB cluster.
*
*
* -
*
* copy-on-write
- The new DB cluster is restored as a clone of the source DB cluster.
*
*
*
*
* Constraints: You can't specify copy-on-write
if the engine version of the source DB cluster
* is earlier than 1.11.
*
*
* If you don't specify a RestoreType
value, then the new DB cluster is restored as a full copy
* of the source DB cluster.
*/
public String getRestoreType() {
return this.restoreType;
}
/**
*
* The type of restore to be performed. You can specify one of the following values:
*
*
* -
*
* full-copy
- The new DB cluster is restored as a full copy of the source DB cluster.
*
*
* -
*
* copy-on-write
- The new DB cluster is restored as a clone of the source DB cluster.
*
*
*
*
* Constraints: You can't specify copy-on-write
if the engine version of the source DB cluster is
* earlier than 1.11.
*
*
* If you don't specify a RestoreType
value, then the new DB cluster is restored as a full copy of the
* source DB cluster.
*
*
* @param restoreType
* The type of restore to be performed. You can specify one of the following values:
*
* -
*
* full-copy
- The new DB cluster is restored as a full copy of the source DB cluster.
*
*
* -
*
* copy-on-write
- The new DB cluster is restored as a clone of the source DB cluster.
*
*
*
*
* Constraints: You can't specify copy-on-write
if the engine version of the source DB cluster
* is earlier than 1.11.
*
*
* If you don't specify a RestoreType
value, then the new DB cluster is restored as a full copy
* of the source DB cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withRestoreType(String restoreType) {
setRestoreType(restoreType);
return this;
}
/**
*
* The identifier of the source DB cluster from which to restore.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DBCluster.
*
*
*
*
* @param sourceDBClusterIdentifier
* The identifier of the source DB cluster from which to restore.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DBCluster.
*
*
*/
public void setSourceDBClusterIdentifier(String sourceDBClusterIdentifier) {
this.sourceDBClusterIdentifier = sourceDBClusterIdentifier;
}
/**
*
* The identifier of the source DB cluster from which to restore.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DBCluster.
*
*
*
*
* @return The identifier of the source DB cluster from which to restore.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DBCluster.
*
*
*/
public String getSourceDBClusterIdentifier() {
return this.sourceDBClusterIdentifier;
}
/**
*
* The identifier of the source DB cluster from which to restore.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DBCluster.
*
*
*
*
* @param sourceDBClusterIdentifier
* The identifier of the source DB cluster from which to restore.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DBCluster.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withSourceDBClusterIdentifier(String sourceDBClusterIdentifier) {
setSourceDBClusterIdentifier(sourceDBClusterIdentifier);
return this;
}
/**
*
* The date and time to restore the DB cluster to.
*
*
* Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
*
*
* Constraints:
*
*
* -
*
* Must be before the latest restorable time for the DB instance
*
*
* -
*
* Must be specified if UseLatestRestorableTime
parameter isn't provided
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled
*
*
* -
*
* Can't be specified if the RestoreType
parameter is copy-on-write
*
*
*
*
* Example: 2015-03-07T23:45:00Z
*
*
* @param restoreToTime
* The date and time to restore the DB cluster to.
*
* Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
*
*
* Constraints:
*
*
* -
*
* Must be before the latest restorable time for the DB instance
*
*
* -
*
* Must be specified if UseLatestRestorableTime
parameter isn't provided
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled
*
*
* -
*
* Can't be specified if the RestoreType
parameter is copy-on-write
*
*
*
*
* Example: 2015-03-07T23:45:00Z
*/
public void setRestoreToTime(java.util.Date restoreToTime) {
this.restoreToTime = restoreToTime;
}
/**
*
* The date and time to restore the DB cluster to.
*
*
* Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
*
*
* Constraints:
*
*
* -
*
* Must be before the latest restorable time for the DB instance
*
*
* -
*
* Must be specified if UseLatestRestorableTime
parameter isn't provided
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled
*
*
* -
*
* Can't be specified if the RestoreType
parameter is copy-on-write
*
*
*
*
* Example: 2015-03-07T23:45:00Z
*
*
* @return The date and time to restore the DB cluster to.
*
* Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
*
*
* Constraints:
*
*
* -
*
* Must be before the latest restorable time for the DB instance
*
*
* -
*
* Must be specified if UseLatestRestorableTime
parameter isn't provided
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled
*
*
* -
*
* Can't be specified if the RestoreType
parameter is copy-on-write
*
*
*
*
* Example: 2015-03-07T23:45:00Z
*/
public java.util.Date getRestoreToTime() {
return this.restoreToTime;
}
/**
*
* The date and time to restore the DB cluster to.
*
*
* Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
*
*
* Constraints:
*
*
* -
*
* Must be before the latest restorable time for the DB instance
*
*
* -
*
* Must be specified if UseLatestRestorableTime
parameter isn't provided
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled
*
*
* -
*
* Can't be specified if the RestoreType
parameter is copy-on-write
*
*
*
*
* Example: 2015-03-07T23:45:00Z
*
*
* @param restoreToTime
* The date and time to restore the DB cluster to.
*
* Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
*
*
* Constraints:
*
*
* -
*
* Must be before the latest restorable time for the DB instance
*
*
* -
*
* Must be specified if UseLatestRestorableTime
parameter isn't provided
*
*
* -
*
* Can't be specified if the UseLatestRestorableTime
parameter is enabled
*
*
* -
*
* Can't be specified if the RestoreType
parameter is copy-on-write
*
*
*
*
* Example: 2015-03-07T23:45:00Z
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withRestoreToTime(java.util.Date restoreToTime) {
setRestoreToTime(restoreToTime);
return this;
}
/**
*
* A value that indicates whether to restore the DB cluster to the latest restorable backup time. By default, the DB
* cluster isn't restored to the latest restorable backup time.
*
*
* Constraints: Can't be specified if RestoreToTime
parameter is provided.
*
*
* @param useLatestRestorableTime
* A value that indicates whether to restore the DB cluster to the latest restorable backup time. By default,
* the DB cluster isn't restored to the latest restorable backup time.
*
* Constraints: Can't be specified if RestoreToTime
parameter is provided.
*/
public void setUseLatestRestorableTime(Boolean useLatestRestorableTime) {
this.useLatestRestorableTime = useLatestRestorableTime;
}
/**
*
* A value that indicates whether to restore the DB cluster to the latest restorable backup time. By default, the DB
* cluster isn't restored to the latest restorable backup time.
*
*
* Constraints: Can't be specified if RestoreToTime
parameter is provided.
*
*
* @return A value that indicates whether to restore the DB cluster to the latest restorable backup time. By
* default, the DB cluster isn't restored to the latest restorable backup time.
*
* Constraints: Can't be specified if RestoreToTime
parameter is provided.
*/
public Boolean getUseLatestRestorableTime() {
return this.useLatestRestorableTime;
}
/**
*
* A value that indicates whether to restore the DB cluster to the latest restorable backup time. By default, the DB
* cluster isn't restored to the latest restorable backup time.
*
*
* Constraints: Can't be specified if RestoreToTime
parameter is provided.
*
*
* @param useLatestRestorableTime
* A value that indicates whether to restore the DB cluster to the latest restorable backup time. By default,
* the DB cluster isn't restored to the latest restorable backup time.
*
* Constraints: Can't be specified if RestoreToTime
parameter is provided.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withUseLatestRestorableTime(Boolean useLatestRestorableTime) {
setUseLatestRestorableTime(useLatestRestorableTime);
return this;
}
/**
*
* A value that indicates whether to restore the DB cluster to the latest restorable backup time. By default, the DB
* cluster isn't restored to the latest restorable backup time.
*
*
* Constraints: Can't be specified if RestoreToTime
parameter is provided.
*
*
* @return A value that indicates whether to restore the DB cluster to the latest restorable backup time. By
* default, the DB cluster isn't restored to the latest restorable backup time.
*
* Constraints: Can't be specified if RestoreToTime
parameter is provided.
*/
public Boolean isUseLatestRestorableTime() {
return this.useLatestRestorableTime;
}
/**
*
* The port number on which the new DB cluster accepts connections.
*
*
* Constraints: A value from 1150-65535
.
*
*
* Default: The default port for the engine.
*
*
* @param port
* The port number on which the new DB cluster accepts connections.
*
* Constraints: A value from 1150-65535
.
*
*
* Default: The default port for the engine.
*/
public void setPort(Integer port) {
this.port = port;
}
/**
*
* The port number on which the new DB cluster accepts connections.
*
*
* Constraints: A value from 1150-65535
.
*
*
* Default: The default port for the engine.
*
*
* @return The port number on which the new DB cluster accepts connections.
*
* Constraints: A value from 1150-65535
.
*
*
* Default: The default port for the engine.
*/
public Integer getPort() {
return this.port;
}
/**
*
* The port number on which the new DB cluster accepts connections.
*
*
* Constraints: A value from 1150-65535
.
*
*
* Default: The default port for the engine.
*
*
* @param port
* The port number on which the new DB cluster accepts connections.
*
* Constraints: A value from 1150-65535
.
*
*
* Default: The default port for the engine.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withPort(Integer port) {
setPort(port);
return this;
}
/**
*
* The DB subnet group name to use for the new DB cluster.
*
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup.
*
*
* Example: mySubnetgroup
*
*
* @param dBSubnetGroupName
* The DB subnet group name to use for the new DB cluster.
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup.
*
*
* Example: mySubnetgroup
*/
public void setDBSubnetGroupName(String dBSubnetGroupName) {
this.dBSubnetGroupName = dBSubnetGroupName;
}
/**
*
* The DB subnet group name to use for the new DB cluster.
*
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup.
*
*
* Example: mySubnetgroup
*
*
* @return The DB subnet group name to use for the new DB cluster.
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup.
*
*
* Example: mySubnetgroup
*/
public String getDBSubnetGroupName() {
return this.dBSubnetGroupName;
}
/**
*
* The DB subnet group name to use for the new DB cluster.
*
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup.
*
*
* Example: mySubnetgroup
*
*
* @param dBSubnetGroupName
* The DB subnet group name to use for the new DB cluster.
*
* Constraints: If supplied, must match the name of an existing DBSubnetGroup.
*
*
* Example: mySubnetgroup
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withDBSubnetGroupName(String dBSubnetGroupName) {
setDBSubnetGroupName(dBSubnetGroupName);
return this;
}
/**
*
* The name of the option group for the new DB cluster.
*
*
* @param optionGroupName
* The name of the option group for the new DB cluster.
*/
public void setOptionGroupName(String optionGroupName) {
this.optionGroupName = optionGroupName;
}
/**
*
* The name of the option group for the new DB cluster.
*
*
* @return The name of the option group for the new DB cluster.
*/
public String getOptionGroupName() {
return this.optionGroupName;
}
/**
*
* The name of the option group for the new DB cluster.
*
*
* @param optionGroupName
* The name of the option group for the new DB cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withOptionGroupName(String optionGroupName) {
setOptionGroupName(optionGroupName);
return this;
}
/**
*
* A list of VPC security groups that the new DB cluster belongs to.
*
*
* @return A list of VPC security groups that the new DB cluster belongs to.
*/
public java.util.List getVpcSecurityGroupIds() {
if (vpcSecurityGroupIds == null) {
vpcSecurityGroupIds = new com.amazonaws.internal.SdkInternalList();
}
return vpcSecurityGroupIds;
}
/**
*
* A list of VPC security groups that the new DB cluster belongs to.
*
*
* @param vpcSecurityGroupIds
* A list of VPC security groups that the new DB cluster belongs to.
*/
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 VPC security groups that the new DB cluster belongs to.
*
*
* 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 VPC security groups that the new DB cluster belongs to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest 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 VPC security groups that the new DB cluster belongs to.
*
*
* @param vpcSecurityGroupIds
* A list of VPC security groups that the new DB cluster belongs to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withVpcSecurityGroupIds(java.util.Collection vpcSecurityGroupIds) {
setVpcSecurityGroupIds(vpcSecurityGroupIds);
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 RestoreDBClusterToPointInTimeRequest 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 RestoreDBClusterToPointInTimeRequest withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* The AWS KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.
*
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB
* cluster with the same 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 KMS encryption key.
*
*
* You can restore to a new DB cluster and encrypt the new DB cluster with a KMS key that is different than the KMS
* key used to encrypt the source DB cluster. The new DB cluster is encrypted with the KMS key identified by the
* KmsKeyId
parameter.
*
*
* If you don't specify a value for the KmsKeyId
parameter, then the following occurs:
*
*
* -
*
* If the DB cluster is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to
* encrypt the source DB cluster.
*
*
* -
*
* If the DB cluster isn't encrypted, then the restored DB cluster isn't encrypted.
*
*
*
*
* If DBClusterIdentifier
refers to a DB cluster that isn't encrypted, then the restore request is
* rejected.
*
*
* @param kmsKeyId
* The AWS KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring
* a DB cluster with the same 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 KMS encryption key.
*
*
* You can restore to a new DB cluster and encrypt the new DB cluster with a KMS key that is different than
* the KMS key used to encrypt the source DB cluster. The new DB cluster is encrypted with the KMS key
* identified by the KmsKeyId
parameter.
*
*
* If you don't specify a value for the KmsKeyId
parameter, then the following occurs:
*
*
* -
*
* If the DB cluster is encrypted, then the restored DB cluster is encrypted using the KMS key that was used
* to encrypt the source DB cluster.
*
*
* -
*
* If the DB cluster isn't encrypted, then the restored DB cluster isn't encrypted.
*
*
*
*
* If DBClusterIdentifier
refers to a DB cluster that isn't encrypted, then the restore request
* is rejected.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* The AWS KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.
*
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB
* cluster with the same 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 KMS encryption key.
*
*
* You can restore to a new DB cluster and encrypt the new DB cluster with a KMS key that is different than the KMS
* key used to encrypt the source DB cluster. The new DB cluster is encrypted with the KMS key identified by the
* KmsKeyId
parameter.
*
*
* If you don't specify a value for the KmsKeyId
parameter, then the following occurs:
*
*
* -
*
* If the DB cluster is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to
* encrypt the source DB cluster.
*
*
* -
*
* If the DB cluster isn't encrypted, then the restored DB cluster isn't encrypted.
*
*
*
*
* If DBClusterIdentifier
refers to a DB cluster that isn't encrypted, then the restore request is
* rejected.
*
*
* @return The AWS KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB
* cluster.
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring
* a DB cluster with the same 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 KMS encryption key.
*
*
* You can restore to a new DB cluster and encrypt the new DB cluster with a KMS key that is different than
* the KMS key used to encrypt the source DB cluster. The new DB cluster is encrypted with the KMS key
* identified by the KmsKeyId
parameter.
*
*
* If you don't specify a value for the KmsKeyId
parameter, then the following occurs:
*
*
* -
*
* If the DB cluster is encrypted, then the restored DB cluster is encrypted using the KMS key that was used
* to encrypt the source DB cluster.
*
*
* -
*
* If the DB cluster isn't encrypted, then the restored DB cluster isn't encrypted.
*
*
*
*
* If DBClusterIdentifier
refers to a DB cluster that isn't encrypted, then the restore request
* is rejected.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* The AWS KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.
*
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB
* cluster with the same 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 KMS encryption key.
*
*
* You can restore to a new DB cluster and encrypt the new DB cluster with a KMS key that is different than the KMS
* key used to encrypt the source DB cluster. The new DB cluster is encrypted with the KMS key identified by the
* KmsKeyId
parameter.
*
*
* If you don't specify a value for the KmsKeyId
parameter, then the following occurs:
*
*
* -
*
* If the DB cluster is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to
* encrypt the source DB cluster.
*
*
* -
*
* If the DB cluster isn't encrypted, then the restored DB cluster isn't encrypted.
*
*
*
*
* If DBClusterIdentifier
refers to a DB cluster that isn't encrypted, then the restore request is
* rejected.
*
*
* @param kmsKeyId
* The AWS KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.
*
* The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring
* a DB cluster with the same 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 KMS encryption key.
*
*
* You can restore to a new DB cluster and encrypt the new DB cluster with a KMS key that is different than
* the KMS key used to encrypt the source DB cluster. The new DB cluster is encrypted with the KMS key
* identified by the KmsKeyId
parameter.
*
*
* If you don't specify a value for the KmsKeyId
parameter, then the following occurs:
*
*
* -
*
* If the DB cluster is encrypted, then the restored DB cluster is encrypted using the KMS key that was used
* to encrypt the source DB cluster.
*
*
* -
*
* If the DB cluster isn't encrypted, then the restored DB cluster isn't encrypted.
*
*
*
*
* If DBClusterIdentifier
refers to a DB cluster that isn't encrypted, then the restore request
* is rejected.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database
* accounts. By default, mapping is disabled.
*
*
* For more information, see IAM Database
* Authentication in the Amazon Aurora User Guide.
*
*
* @param enableIAMDatabaseAuthentication
* A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to
* database accounts. By default, mapping is disabled.
*
* 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 AWS Identity and Access Management (IAM) accounts to database
* accounts. By default, mapping is disabled.
*
*
* For more information, see IAM Database
* Authentication in the Amazon Aurora User Guide.
*
*
* @return A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to
* database accounts. By default, mapping is disabled.
*
* 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 AWS Identity and Access Management (IAM) accounts to database
* accounts. By default, mapping is disabled.
*
*
* For more information, see IAM Database
* Authentication in the Amazon Aurora User Guide.
*
*
* @param enableIAMDatabaseAuthentication
* A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to
* database accounts. By default, mapping is disabled.
*
* 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 RestoreDBClusterToPointInTimeRequest withEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication) {
setEnableIAMDatabaseAuthentication(enableIAMDatabaseAuthentication);
return this;
}
/**
*
* A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database
* accounts. By default, mapping is disabled.
*
*
* For more information, see IAM Database
* Authentication in the Amazon Aurora User Guide.
*
*
* @return A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to
* database accounts. By default, mapping is disabled.
*
* For more information, see IAM
* Database Authentication in the Amazon Aurora User Guide.
*/
public Boolean isEnableIAMDatabaseAuthentication() {
return this.enableIAMDatabaseAuthentication;
}
/**
*
* 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).
*
*
*
*
* @param backtrackWindow
* 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).
*
*
*/
public void setBacktrackWindow(Long backtrackWindow) {
this.backtrackWindow = backtrackWindow;
}
/**
*
* 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).
*
*
*
*
* @return 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).
*
*
*/
public Long getBacktrackWindow() {
return this.backtrackWindow;
}
/**
*
* 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).
*
*
*
*
* @param backtrackWindow
* 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).
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withBacktrackWindow(Long backtrackWindow) {
setBacktrackWindow(backtrackWindow);
return this;
}
/**
*
* 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. For more information, 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. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
*/
public java.util.List getEnableCloudwatchLogsExports() {
if (enableCloudwatchLogsExports == null) {
enableCloudwatchLogsExports = new com.amazonaws.internal.SdkInternalList();
}
return enableCloudwatchLogsExports;
}
/**
*
* 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. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
*
*
* @param enableCloudwatchLogsExports
* 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. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
*/
public void setEnableCloudwatchLogsExports(java.util.Collection enableCloudwatchLogsExports) {
if (enableCloudwatchLogsExports == null) {
this.enableCloudwatchLogsExports = null;
return;
}
this.enableCloudwatchLogsExports = new com.amazonaws.internal.SdkInternalList(enableCloudwatchLogsExports);
}
/**
*
* 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. For more information, 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.
*
*
* @param enableCloudwatchLogsExports
* 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. For more information, 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 RestoreDBClusterToPointInTimeRequest withEnableCloudwatchLogsExports(String... enableCloudwatchLogsExports) {
if (this.enableCloudwatchLogsExports == null) {
setEnableCloudwatchLogsExports(new com.amazonaws.internal.SdkInternalList(enableCloudwatchLogsExports.length));
}
for (String ele : enableCloudwatchLogsExports) {
this.enableCloudwatchLogsExports.add(ele);
}
return this;
}
/**
*
* 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. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
*
*
* @param enableCloudwatchLogsExports
* 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. For more information, 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 RestoreDBClusterToPointInTimeRequest withEnableCloudwatchLogsExports(java.util.Collection enableCloudwatchLogsExports) {
setEnableCloudwatchLogsExports(enableCloudwatchLogsExports);
return this;
}
/**
*
* The name of the DB cluster parameter group to associate with this DB cluster. If this argument is omitted, the
* default DB cluster parameter group for the specified engine is used.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB cluster parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't 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,
* the default DB cluster parameter group for the specified engine is used.
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB cluster parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't 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, the
* default DB cluster parameter group for the specified engine is used.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB cluster parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't 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, the default DB cluster parameter group for the specified engine is used.
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB cluster parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't 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, the
* default DB cluster parameter group for the specified engine is used.
*
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB cluster parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't 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,
* the default DB cluster parameter group for the specified engine is used.
*
* Constraints:
*
*
* -
*
* If supplied, must match the name of an existing DB cluster parameter group.
*
*
* -
*
* Must be 1 to 255 letters, numbers, or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't 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 RestoreDBClusterToPointInTimeRequest withDBClusterParameterGroupName(String dBClusterParameterGroupName) {
setDBClusterParameterGroupName(dBClusterParameterGroupName);
return this;
}
/**
*
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection is disabled.
*
*
* @param deletionProtection
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be
* deleted when deletion protection is enabled. By default, deletion protection is disabled.
*/
public void setDeletionProtection(Boolean deletionProtection) {
this.deletionProtection = deletionProtection;
}
/**
*
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection is disabled.
*
*
* @return A value that indicates whether the DB cluster has deletion protection enabled. The database can't be
* deleted when deletion protection is enabled. By default, deletion protection is disabled.
*/
public Boolean getDeletionProtection() {
return this.deletionProtection;
}
/**
*
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection is disabled.
*
*
* @param deletionProtection
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be
* deleted when deletion protection is enabled. By default, deletion protection is disabled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withDeletionProtection(Boolean deletionProtection) {
setDeletionProtection(deletionProtection);
return this;
}
/**
*
* A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when
* deletion protection is enabled. By default, deletion protection is disabled.
*
*
* @return A value that indicates whether the DB cluster has deletion protection enabled. The database can't be
* deleted when deletion protection is enabled. By default, deletion protection is disabled.
*/
public Boolean isDeletionProtection() {
return this.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.
*
*
* @param copyTagsToSnapshot
* 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.
*/
public void setCopyTagsToSnapshot(Boolean copyTagsToSnapshot) {
this.copyTagsToSnapshot = copyTagsToSnapshot;
}
/**
*
* 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.
*
*
* @return 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.
*/
public Boolean getCopyTagsToSnapshot() {
return this.copyTagsToSnapshot;
}
/**
*
* 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.
*
*
* @param copyTagsToSnapshot
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreDBClusterToPointInTimeRequest withCopyTagsToSnapshot(Boolean copyTagsToSnapshot) {
setCopyTagsToSnapshot(copyTagsToSnapshot);
return this;
}
/**
*
* 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.
*
*
* @return 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.
*/
public Boolean isCopyTagsToSnapshot() {
return this.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.
*
*
* @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.
*/
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 RestoreDBClusterToPointInTimeRequest 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 RestoreDBClusterToPointInTimeRequest withDomainIAMRoleName(String domainIAMRoleName) {
setDomainIAMRoleName(domainIAMRoleName);
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 (getDBClusterIdentifier() != null)
sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(",");
if (getRestoreType() != null)
sb.append("RestoreType: ").append(getRestoreType()).append(",");
if (getSourceDBClusterIdentifier() != null)
sb.append("SourceDBClusterIdentifier: ").append(getSourceDBClusterIdentifier()).append(",");
if (getRestoreToTime() != null)
sb.append("RestoreToTime: ").append(getRestoreToTime()).append(",");
if (getUseLatestRestorableTime() != null)
sb.append("UseLatestRestorableTime: ").append(getUseLatestRestorableTime()).append(",");
if (getPort() != null)
sb.append("Port: ").append(getPort()).append(",");
if (getDBSubnetGroupName() != null)
sb.append("DBSubnetGroupName: ").append(getDBSubnetGroupName()).append(",");
if (getOptionGroupName() != null)
sb.append("OptionGroupName: ").append(getOptionGroupName()).append(",");
if (getVpcSecurityGroupIds() != null)
sb.append("VpcSecurityGroupIds: ").append(getVpcSecurityGroupIds()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getEnableIAMDatabaseAuthentication() != null)
sb.append("EnableIAMDatabaseAuthentication: ").append(getEnableIAMDatabaseAuthentication()).append(",");
if (getBacktrackWindow() != null)
sb.append("BacktrackWindow: ").append(getBacktrackWindow()).append(",");
if (getEnableCloudwatchLogsExports() != null)
sb.append("EnableCloudwatchLogsExports: ").append(getEnableCloudwatchLogsExports()).append(",");
if (getDBClusterParameterGroupName() != null)
sb.append("DBClusterParameterGroupName: ").append(getDBClusterParameterGroupName()).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());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof RestoreDBClusterToPointInTimeRequest == false)
return false;
RestoreDBClusterToPointInTimeRequest other = (RestoreDBClusterToPointInTimeRequest) obj;
if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null)
return false;
if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false)
return false;
if (other.getRestoreType() == null ^ this.getRestoreType() == null)
return false;
if (other.getRestoreType() != null && other.getRestoreType().equals(this.getRestoreType()) == false)
return false;
if (other.getSourceDBClusterIdentifier() == null ^ this.getSourceDBClusterIdentifier() == null)
return false;
if (other.getSourceDBClusterIdentifier() != null && other.getSourceDBClusterIdentifier().equals(this.getSourceDBClusterIdentifier()) == false)
return false;
if (other.getRestoreToTime() == null ^ this.getRestoreToTime() == null)
return false;
if (other.getRestoreToTime() != null && other.getRestoreToTime().equals(this.getRestoreToTime()) == false)
return false;
if (other.getUseLatestRestorableTime() == null ^ this.getUseLatestRestorableTime() == null)
return false;
if (other.getUseLatestRestorableTime() != null && other.getUseLatestRestorableTime().equals(this.getUseLatestRestorableTime()) == 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.getDBSubnetGroupName() == null ^ this.getDBSubnetGroupName() == null)
return false;
if (other.getDBSubnetGroupName() != null && other.getDBSubnetGroupName().equals(this.getDBSubnetGroupName()) == 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.getVpcSecurityGroupIds() == null ^ this.getVpcSecurityGroupIds() == null)
return false;
if (other.getVpcSecurityGroupIds() != null && other.getVpcSecurityGroupIds().equals(this.getVpcSecurityGroupIds()) == 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.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.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.getDBClusterParameterGroupName() == null ^ this.getDBClusterParameterGroupName() == null)
return false;
if (other.getDBClusterParameterGroupName() != null && other.getDBClusterParameterGroupName().equals(this.getDBClusterParameterGroupName()) == 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;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode());
hashCode = prime * hashCode + ((getRestoreType() == null) ? 0 : getRestoreType().hashCode());
hashCode = prime * hashCode + ((getSourceDBClusterIdentifier() == null) ? 0 : getSourceDBClusterIdentifier().hashCode());
hashCode = prime * hashCode + ((getRestoreToTime() == null) ? 0 : getRestoreToTime().hashCode());
hashCode = prime * hashCode + ((getUseLatestRestorableTime() == null) ? 0 : getUseLatestRestorableTime().hashCode());
hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode());
hashCode = prime * hashCode + ((getDBSubnetGroupName() == null) ? 0 : getDBSubnetGroupName().hashCode());
hashCode = prime * hashCode + ((getOptionGroupName() == null) ? 0 : getOptionGroupName().hashCode());
hashCode = prime * hashCode + ((getVpcSecurityGroupIds() == null) ? 0 : getVpcSecurityGroupIds().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getEnableIAMDatabaseAuthentication() == null) ? 0 : getEnableIAMDatabaseAuthentication().hashCode());
hashCode = prime * hashCode + ((getBacktrackWindow() == null) ? 0 : getBacktrackWindow().hashCode());
hashCode = prime * hashCode + ((getEnableCloudwatchLogsExports() == null) ? 0 : getEnableCloudwatchLogsExports().hashCode());
hashCode = prime * hashCode + ((getDBClusterParameterGroupName() == null) ? 0 : getDBClusterParameterGroupName().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());
return hashCode;
}
@Override
public RestoreDBClusterToPointInTimeRequest clone() {
return (RestoreDBClusterToPointInTimeRequest) super.clone();
}
}