All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.neptune.model.RestoreDBClusterToPointInTimeRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Neptune module holds the client classes that are used for communicating with Amazon Neptune Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.neptune.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 *

    *
  • *
  • *

    * Cannot 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. *

    *
  • *
*

* 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 is not provided *

    *
  • *
  • *

    * Cannot be specified if UseLatestRestorableTime parameter is true *

    *
  • *
  • *

    * Cannot be specified if RestoreType parameter is copy-on-write *

    *
  • *
*

* Example: 2015-03-07T23:45:00Z *

*/ private java.util.Date restoreToTime; /** *

* A value that is set to true to restore the DB cluster to the latest restorable backup time, and * false otherwise. *

*

* Default: false *

*

* Constraints: Cannot be specified if RestoreToTime parameter is provided. *

*/ private Boolean useLatestRestorableTime; /** *

* The port number on which the new DB cluster accepts connections. *

*

* Constraints: Value must be 1150-65535 *

*

* Default: The same port as the original DB cluster. *

*/ 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; /** *

* (Not supported by Neptune) *

*/ private String optionGroupName; /** *

* A list of VPC security groups that the new DB cluster belongs to. *

*/ private java.util.List vpcSecurityGroupIds; /** *

* The tags to be applied to the restored DB cluster. *

*/ private java.util.List tags; /** *

* The Amazon 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 Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then * you can use the KMS key alias instead of the ARN for the KMS encryption key. *

*

* 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 do not specify a value for the KmsKeyId parameter, then the following will occur: *

*
    *
  • *

    * 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 is not encrypted, then the restored DB cluster is not encrypted. *

    *
  • *
*

* If DBClusterIdentifier refers to a DB cluster that is not encrypted, then the restore request is * rejected. *

*/ private String kmsKeyId; /** *

* True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and * otherwise false. *

*

* Default: false *

*/ private Boolean enableIAMDatabaseAuthentication; /** *

* The list of logs that the restored DB cluster is to export to CloudWatch Logs. *

*/ private java.util.List enableCloudwatchLogsExports; /** *

* The name of the DB cluster parameter group to associate with the new DB cluster. *

*

* Constraints: *

*
    *
  • *

    * If supplied, must match the name of an existing DBClusterParameterGroup. *

    *
  • *
*/ 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; /** *

* Contains the scaling configuration of a Neptune Serverless DB cluster. *

*

* For more information, see Using Amazon Neptune * Serverless in the Amazon Neptune User Guide. *

*/ private ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration; /** *

* Specifies the storage type to be associated with the DB cluster. *

*

* Valid values: standard, iopt1 *

*

* Default: standard *

*/ private String storageType; /** *

* 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 *

    *
  • *
  • *

    * Cannot 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 *

    *
  • *
  • *

    * Cannot 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 *

      *
    • *
    • *

      * Cannot 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 *

      *
    • *
    • *

      * Cannot 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 *

        *
      • *
      • *

        * Cannot 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 *

        *
      • *
      • *

        * Cannot end with a hyphen or contain two consecutive hyphens *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public 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. *

          *
        • *
        *

        * 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. *

          *
        • *
        *

        * 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. *

          *
        • *
        *

        * 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. *

          *
        • *
        *

        * 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. *

          *
        • *
        *

        * 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. *

          *
        • *
        *

        * 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 is not provided *

                *
              • *
              • *

                * Cannot be specified if UseLatestRestorableTime parameter is true *

                *
              • *
              • *

                * Cannot be specified if 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 is not provided *

                *
              • *
              • *

                * Cannot be specified if UseLatestRestorableTime parameter is true *

                *
              • *
              • *

                * Cannot be specified if 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 is not provided *

                *
              • *
              • *

                * Cannot be specified if UseLatestRestorableTime parameter is true *

                *
              • *
              • *

                * Cannot be specified if 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 is not provided *

                *
              • *
              • *

                * Cannot be specified if UseLatestRestorableTime parameter is true *

                *
              • *
              • *

                * Cannot be specified if 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 is not provided *

                *
              • *
              • *

                * Cannot be specified if UseLatestRestorableTime parameter is true *

                *
              • *
              • *

                * Cannot be specified if 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 is not provided *

                *
              • *
              • *

                * Cannot be specified if UseLatestRestorableTime parameter is true *

                *
              • *
              • *

                * Cannot be specified if 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 is set to true to restore the DB cluster to the latest restorable backup time, and * false otherwise. *

              *

              * Default: false *

              *

              * Constraints: Cannot be specified if RestoreToTime parameter is provided. *

              * * @param useLatestRestorableTime * A value that is set to true to restore the DB cluster to the latest restorable backup time, * and false otherwise.

              *

              * Default: false *

              *

              * Constraints: Cannot be specified if RestoreToTime parameter is provided. */ public void setUseLatestRestorableTime(Boolean useLatestRestorableTime) { this.useLatestRestorableTime = useLatestRestorableTime; } /** *

              * A value that is set to true to restore the DB cluster to the latest restorable backup time, and * false otherwise. *

              *

              * Default: false *

              *

              * Constraints: Cannot be specified if RestoreToTime parameter is provided. *

              * * @return A value that is set to true to restore the DB cluster to the latest restorable backup time, * and false otherwise.

              *

              * Default: false *

              *

              * Constraints: Cannot be specified if RestoreToTime parameter is provided. */ public Boolean getUseLatestRestorableTime() { return this.useLatestRestorableTime; } /** *

              * A value that is set to true to restore the DB cluster to the latest restorable backup time, and * false otherwise. *

              *

              * Default: false *

              *

              * Constraints: Cannot be specified if RestoreToTime parameter is provided. *

              * * @param useLatestRestorableTime * A value that is set to true to restore the DB cluster to the latest restorable backup time, * and false otherwise.

              *

              * Default: false *

              *

              * Constraints: Cannot 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 is set to true to restore the DB cluster to the latest restorable backup time, and * false otherwise. *

              *

              * Default: false *

              *

              * Constraints: Cannot be specified if RestoreToTime parameter is provided. *

              * * @return A value that is set to true to restore the DB cluster to the latest restorable backup time, * and false otherwise.

              *

              * Default: false *

              *

              * Constraints: Cannot 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: Value must be 1150-65535 *

              *

              * Default: The same port as the original DB cluster. *

              * * @param port * The port number on which the new DB cluster accepts connections.

              *

              * Constraints: Value must be 1150-65535 *

              *

              * Default: The same port as the original DB cluster. */ public void setPort(Integer port) { this.port = port; } /** *

              * The port number on which the new DB cluster accepts connections. *

              *

              * Constraints: Value must be 1150-65535 *

              *

              * Default: The same port as the original DB cluster. *

              * * @return The port number on which the new DB cluster accepts connections.

              *

              * Constraints: Value must be 1150-65535 *

              *

              * Default: The same port as the original DB cluster. */ public Integer getPort() { return this.port; } /** *

              * The port number on which the new DB cluster accepts connections. *

              *

              * Constraints: Value must be 1150-65535 *

              *

              * Default: The same port as the original DB cluster. *

              * * @param port * The port number on which the new DB cluster accepts connections.

              *

              * Constraints: Value must be 1150-65535 *

              *

              * Default: The same port as the original DB cluster. * @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; } /** *

              * (Not supported by Neptune) *

              * * @param optionGroupName * (Not supported by Neptune) */ public void setOptionGroupName(String optionGroupName) { this.optionGroupName = optionGroupName; } /** *

              * (Not supported by Neptune) *

              * * @return (Not supported by Neptune) */ public String getOptionGroupName() { return this.optionGroupName; } /** *

              * (Not supported by Neptune) *

              * * @param optionGroupName * (Not supported by Neptune) * @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() { 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 java.util.ArrayList(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 java.util.ArrayList(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; } /** *

              * The tags to be applied to the restored DB cluster. *

              * * @return The tags to be applied to the restored DB cluster. */ public java.util.List getTags() { return tags; } /** *

              * The tags to be applied to the restored DB cluster. *

              * * @param tags * The tags to be applied to the restored DB cluster. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

              * The tags to be applied to the restored DB cluster. *

              *

              * 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 * The tags to be applied to the restored DB cluster. * @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 java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

              * The tags to be applied to the restored DB cluster. *

              * * @param tags * The tags to be applied to the restored DB cluster. * @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 Amazon 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 Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then * you can use the KMS key alias instead of the ARN for the KMS encryption key. *

              *

              * 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 do not specify a value for the KmsKeyId parameter, then the following will occur: *

              *
                *
              • *

                * 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 is not encrypted, then the restored DB cluster is not encrypted. *

                *
              • *
              *

              * If DBClusterIdentifier refers to a DB cluster that is not encrypted, then the restore request is * rejected. *

              * * @param kmsKeyId * The Amazon 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 Amazon account that owns the KMS encryption key used to encrypt the new DB * cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key. *

              *

              * 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 do not specify a value for the KmsKeyId parameter, then the following will occur: *

              *
                *
              • *

                * 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 is not encrypted, then the restored DB cluster is not encrypted. *

                *
              • *
              *

              * If DBClusterIdentifier refers to a DB cluster that is not encrypted, then the restore request * is rejected. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

              * The Amazon 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 Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then * you can use the KMS key alias instead of the ARN for the KMS encryption key. *

              *

              * 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 do not specify a value for the KmsKeyId parameter, then the following will occur: *

              *
                *
              • *

                * 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 is not encrypted, then the restored DB cluster is not encrypted. *

                *
              • *
              *

              * If DBClusterIdentifier refers to a DB cluster that is not encrypted, then the restore request is * rejected. *

              * * @return The Amazon 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 Amazon account that owns the KMS encryption key used to encrypt the new DB * cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key. *

              *

              * 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 do not specify a value for the KmsKeyId parameter, then the following will occur: *

              *
                *
              • *

                * 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 is not encrypted, then the restored DB cluster is not encrypted. *

                *
              • *
              *

              * If DBClusterIdentifier refers to a DB cluster that is not encrypted, then the restore * request is rejected. */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

              * The Amazon 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 Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then * you can use the KMS key alias instead of the ARN for the KMS encryption key. *

              *

              * 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 do not specify a value for the KmsKeyId parameter, then the following will occur: *

              *
                *
              • *

                * 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 is not encrypted, then the restored DB cluster is not encrypted. *

                *
              • *
              *

              * If DBClusterIdentifier refers to a DB cluster that is not encrypted, then the restore request is * rejected. *

              * * @param kmsKeyId * The Amazon 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 Amazon account that owns the KMS encryption key used to encrypt the new DB * cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key. *

              *

              * 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 do not specify a value for the KmsKeyId parameter, then the following will occur: *

              *
                *
              • *

                * 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 is not encrypted, then the restored DB cluster is not encrypted. *

                *
              • *
              *

              * If DBClusterIdentifier refers to a DB cluster that is not 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; } /** *

              * True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and * otherwise false. *

              *

              * Default: false *

              * * @param enableIAMDatabaseAuthentication * True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and * otherwise false.

              *

              * Default: false */ public void setEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication) { this.enableIAMDatabaseAuthentication = enableIAMDatabaseAuthentication; } /** *

              * True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and * otherwise false. *

              *

              * Default: false *

              * * @return True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and * otherwise false.

              *

              * Default: false */ public Boolean getEnableIAMDatabaseAuthentication() { return this.enableIAMDatabaseAuthentication; } /** *

              * True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and * otherwise false. *

              *

              * Default: false *

              * * @param enableIAMDatabaseAuthentication * True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and * otherwise false.

              *

              * Default: false * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterToPointInTimeRequest withEnableIAMDatabaseAuthentication(Boolean enableIAMDatabaseAuthentication) { setEnableIAMDatabaseAuthentication(enableIAMDatabaseAuthentication); return this; } /** *

              * True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and * otherwise false. *

              *

              * Default: false *

              * * @return True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and * otherwise false.

              *

              * Default: false */ public Boolean isEnableIAMDatabaseAuthentication() { return this.enableIAMDatabaseAuthentication; } /** *

              * The list of logs that the restored DB cluster is to export to CloudWatch Logs. *

              * * @return The list of logs that the restored DB cluster is to export to CloudWatch Logs. */ public java.util.List getEnableCloudwatchLogsExports() { return enableCloudwatchLogsExports; } /** *

              * The list of logs that the restored DB cluster is to export to CloudWatch Logs. *

              * * @param enableCloudwatchLogsExports * The list of logs that the restored DB cluster is to export to CloudWatch Logs. */ public void setEnableCloudwatchLogsExports(java.util.Collection enableCloudwatchLogsExports) { if (enableCloudwatchLogsExports == null) { this.enableCloudwatchLogsExports = null; return; } this.enableCloudwatchLogsExports = new java.util.ArrayList(enableCloudwatchLogsExports); } /** *

              * The list of logs that the restored DB cluster is to export to CloudWatch Logs. *

              *

              * 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. * @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 java.util.ArrayList(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. *

              * * @param enableCloudwatchLogsExports * The list of logs that the restored DB cluster is to export to CloudWatch Logs. * @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 the new DB cluster. *

              *

              * Constraints: *

              *
                *
              • *

                * If supplied, must match the name of an existing DBClusterParameterGroup. *

                *
              • *
              * * @param dBClusterParameterGroupName * The name of the DB cluster parameter group to associate with the new DB cluster.

              *

              * Constraints: *

              *
                *
              • *

                * If supplied, must match the name of an existing DBClusterParameterGroup. *

                *
              • */ public void setDBClusterParameterGroupName(String dBClusterParameterGroupName) { this.dBClusterParameterGroupName = dBClusterParameterGroupName; } /** *

                * The name of the DB cluster parameter group to associate with the new DB cluster. *

                *

                * Constraints: *

                *
                  *
                • *

                  * If supplied, must match the name of an existing DBClusterParameterGroup. *

                  *
                • *
                * * @return The name of the DB cluster parameter group to associate with the new DB cluster.

                *

                * Constraints: *

                *
                  *
                • *

                  * If supplied, must match the name of an existing DBClusterParameterGroup. *

                  *
                • */ public String getDBClusterParameterGroupName() { return this.dBClusterParameterGroupName; } /** *

                  * The name of the DB cluster parameter group to associate with the new DB cluster. *

                  *

                  * Constraints: *

                  *
                    *
                  • *

                    * If supplied, must match the name of an existing DBClusterParameterGroup. *

                    *
                  • *
                  * * @param dBClusterParameterGroupName * The name of the DB cluster parameter group to associate with the new DB cluster.

                  *

                  * Constraints: *

                  *
                    *
                  • *

                    * If supplied, must match the name of an existing DBClusterParameterGroup. *

                    *
                  • * @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; } /** *

                    * Contains the scaling configuration of a Neptune Serverless DB cluster. *

                    *

                    * For more information, see Using Amazon Neptune * Serverless in the Amazon Neptune User Guide. *

                    * * @param serverlessV2ScalingConfiguration * Contains the scaling configuration of a Neptune Serverless DB cluster.

                    *

                    * For more information, see Using Amazon * Neptune Serverless in the Amazon Neptune User Guide. */ public void setServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration) { this.serverlessV2ScalingConfiguration = serverlessV2ScalingConfiguration; } /** *

                    * Contains the scaling configuration of a Neptune Serverless DB cluster. *

                    *

                    * For more information, see Using Amazon Neptune * Serverless in the Amazon Neptune User Guide. *

                    * * @return Contains the scaling configuration of a Neptune Serverless DB cluster.

                    *

                    * For more information, see Using Amazon * Neptune Serverless in the Amazon Neptune User Guide. */ public ServerlessV2ScalingConfiguration getServerlessV2ScalingConfiguration() { return this.serverlessV2ScalingConfiguration; } /** *

                    * Contains the scaling configuration of a Neptune Serverless DB cluster. *

                    *

                    * For more information, see Using Amazon Neptune * Serverless in the Amazon Neptune User Guide. *

                    * * @param serverlessV2ScalingConfiguration * Contains the scaling configuration of a Neptune Serverless DB cluster.

                    *

                    * For more information, see Using Amazon * Neptune Serverless in the Amazon Neptune User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterToPointInTimeRequest withServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration serverlessV2ScalingConfiguration) { setServerlessV2ScalingConfiguration(serverlessV2ScalingConfiguration); return this; } /** *

                    * Specifies the storage type to be associated with the DB cluster. *

                    *

                    * Valid values: standard, iopt1 *

                    *

                    * Default: standard *

                    * * @param storageType * Specifies the storage type to be associated with the DB cluster.

                    *

                    * Valid values: standard, iopt1 *

                    *

                    * Default: standard */ public void setStorageType(String storageType) { this.storageType = storageType; } /** *

                    * Specifies the storage type to be associated with the DB cluster. *

                    *

                    * Valid values: standard, iopt1 *

                    *

                    * Default: standard *

                    * * @return Specifies the storage type to be associated with the DB cluster.

                    *

                    * Valid values: standard, iopt1 *

                    *

                    * Default: standard */ public String getStorageType() { return this.storageType; } /** *

                    * Specifies the storage type to be associated with the DB cluster. *

                    *

                    * Valid values: standard, iopt1 *

                    *

                    * Default: standard *

                    * * @param storageType * Specifies the storage type to be associated with the DB cluster.

                    *

                    * Valid values: standard, iopt1 *

                    *

                    * Default: standard * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterToPointInTimeRequest 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 (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 (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 (getServerlessV2ScalingConfiguration() != null) sb.append("ServerlessV2ScalingConfiguration: ").append(getServerlessV2ScalingConfiguration()).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 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.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.getServerlessV2ScalingConfiguration() == null ^ this.getServerlessV2ScalingConfiguration() == null) return false; if (other.getServerlessV2ScalingConfiguration() != null && other.getServerlessV2ScalingConfiguration().equals(this.getServerlessV2ScalingConfiguration()) == 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 + ((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 + ((getEnableCloudwatchLogsExports() == null) ? 0 : getEnableCloudwatchLogsExports().hashCode()); hashCode = prime * hashCode + ((getDBClusterParameterGroupName() == null) ? 0 : getDBClusterParameterGroupName().hashCode()); hashCode = prime * hashCode + ((getDeletionProtection() == null) ? 0 : getDeletionProtection().hashCode()); hashCode = prime * hashCode + ((getServerlessV2ScalingConfiguration() == null) ? 0 : getServerlessV2ScalingConfiguration().hashCode()); hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode()); return hashCode; } @Override public RestoreDBClusterToPointInTimeRequest clone() { return (RestoreDBClusterToPointInTimeRequest) super.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy