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

com.amazonaws.services.rds.model.CreateGlobalClusterRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon RDS module holds the client classes that are used for communicating with Amazon Relational Database 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.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 CreateGlobalClusterRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The cluster identifier for this global database cluster. This parameter is stored as a lowercase string. *

*/ private String globalClusterIdentifier; /** *

* The Amazon Resource Name (ARN) to use as the primary cluster of the global database. *

*

* If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora * uses the values from the specified source DB cluster: *

*
    *
  • *

    * DatabaseName *

    *
  • *
  • *

    * Engine *

    *
  • *
  • *

    * EngineVersion *

    *
  • *
  • *

    * StorageEncrypted *

    *
  • *
*/ private String sourceDBClusterIdentifier; /** *

* The database engine to use for this global database cluster. *

*

* Valid Values: aurora-mysql | aurora-postgresql *

*

* Constraints: *

*
    *
  • *

    * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * engine of the source DB cluster. *

    *
  • *
*/ private String engine; /** *

* The engine version to use for this global database cluster. *

*

* Constraints: *

*
    *
  • *

    * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * engine version of the source DB cluster. *

    *
  • *
*/ private String engineVersion; /** *

* The life cycle type for this global database cluster. *

* *

* By default, this value is set to open-source-rds-extended-support, which enrolls your global cluster * into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by * setting the value to open-source-rds-extended-support-disabled. In this case, creating the global * cluster will fail if the DB major version is past its end of standard support date. *

*
*

* This setting only applies to Aurora PostgreSQL-based global databases. *

*

* You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended * Support, you can run the selected major engine version on your global cluster past the end of standard support * for that engine version. For more information, see Using Amazon RDS * Extended Support in the Amazon Aurora User Guide. *

*

* Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled *

*

* Default: open-source-rds-extended-support *

*/ private String engineLifecycleSupport; /** *

* Specifies whether to enable deletion protection for the new global database cluster. The global database can't be * deleted when deletion protection is enabled. *

*/ private Boolean deletionProtection; /** *

* The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon Aurora * doesn't create a database in the global database cluster. *

*

* Constraints: *

*
    *
  • *

    * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * database name from the source DB cluster. *

    *
  • *
*/ private String databaseName; /** *

* Specifies whether to enable storage encryption for the new global database cluster. *

*

* Constraints: *

*
    *
  • *

    * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * setting from the source DB cluster. *

    *
  • *
*/ private Boolean storageEncrypted; /** *

* The cluster identifier for this global database cluster. This parameter is stored as a lowercase string. *

* * @param globalClusterIdentifier * The cluster identifier for this global database cluster. This parameter is stored as a lowercase string. */ public void setGlobalClusterIdentifier(String globalClusterIdentifier) { this.globalClusterIdentifier = globalClusterIdentifier; } /** *

* The cluster identifier for this global database cluster. This parameter is stored as a lowercase string. *

* * @return The cluster identifier for this global database cluster. This parameter is stored as a lowercase string. */ public String getGlobalClusterIdentifier() { return this.globalClusterIdentifier; } /** *

* The cluster identifier for this global database cluster. This parameter is stored as a lowercase string. *

* * @param globalClusterIdentifier * The cluster identifier for this global database cluster. This parameter is stored as a lowercase string. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGlobalClusterRequest withGlobalClusterIdentifier(String globalClusterIdentifier) { setGlobalClusterIdentifier(globalClusterIdentifier); return this; } /** *

* The Amazon Resource Name (ARN) to use as the primary cluster of the global database. *

*

* If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora * uses the values from the specified source DB cluster: *

*
    *
  • *

    * DatabaseName *

    *
  • *
  • *

    * Engine *

    *
  • *
  • *

    * EngineVersion *

    *
  • *
  • *

    * StorageEncrypted *

    *
  • *
* * @param sourceDBClusterIdentifier * The Amazon Resource Name (ARN) to use as the primary cluster of the global database.

*

* If you provide a value for this parameter, don't specify values for the following settings because Amazon * Aurora uses the values from the specified source DB cluster: *

*
    *
  • *

    * DatabaseName *

    *
  • *
  • *

    * Engine *

    *
  • *
  • *

    * EngineVersion *

    *
  • *
  • *

    * StorageEncrypted *

    *
  • */ public void setSourceDBClusterIdentifier(String sourceDBClusterIdentifier) { this.sourceDBClusterIdentifier = sourceDBClusterIdentifier; } /** *

    * The Amazon Resource Name (ARN) to use as the primary cluster of the global database. *

    *

    * If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora * uses the values from the specified source DB cluster: *

    *
      *
    • *

      * DatabaseName *

      *
    • *
    • *

      * Engine *

      *
    • *
    • *

      * EngineVersion *

      *
    • *
    • *

      * StorageEncrypted *

      *
    • *
    * * @return The Amazon Resource Name (ARN) to use as the primary cluster of the global database.

    *

    * If you provide a value for this parameter, don't specify values for the following settings because Amazon * Aurora uses the values from the specified source DB cluster: *

    *
      *
    • *

      * DatabaseName *

      *
    • *
    • *

      * Engine *

      *
    • *
    • *

      * EngineVersion *

      *
    • *
    • *

      * StorageEncrypted *

      *
    • */ public String getSourceDBClusterIdentifier() { return this.sourceDBClusterIdentifier; } /** *

      * The Amazon Resource Name (ARN) to use as the primary cluster of the global database. *

      *

      * If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora * uses the values from the specified source DB cluster: *

      *
        *
      • *

        * DatabaseName *

        *
      • *
      • *

        * Engine *

        *
      • *
      • *

        * EngineVersion *

        *
      • *
      • *

        * StorageEncrypted *

        *
      • *
      * * @param sourceDBClusterIdentifier * The Amazon Resource Name (ARN) to use as the primary cluster of the global database.

      *

      * If you provide a value for this parameter, don't specify values for the following settings because Amazon * Aurora uses the values from the specified source DB cluster: *

      *
        *
      • *

        * DatabaseName *

        *
      • *
      • *

        * Engine *

        *
      • *
      • *

        * EngineVersion *

        *
      • *
      • *

        * StorageEncrypted *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGlobalClusterRequest withSourceDBClusterIdentifier(String sourceDBClusterIdentifier) { setSourceDBClusterIdentifier(sourceDBClusterIdentifier); return this; } /** *

        * The database engine to use for this global database cluster. *

        *

        * Valid Values: aurora-mysql | aurora-postgresql *

        *

        * Constraints: *

        *
          *
        • *

          * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * engine of the source DB cluster. *

          *
        • *
        * * @param engine * The database engine to use for this global database cluster.

        *

        * Valid Values: aurora-mysql | aurora-postgresql *

        *

        * Constraints: *

        *
          *
        • *

          * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine of the source DB cluster. *

          *
        • */ public void setEngine(String engine) { this.engine = engine; } /** *

          * The database engine to use for this global database cluster. *

          *

          * Valid Values: aurora-mysql | aurora-postgresql *

          *

          * Constraints: *

          *
            *
          • *

            * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * engine of the source DB cluster. *

            *
          • *
          * * @return The database engine to use for this global database cluster.

          *

          * Valid Values: aurora-mysql | aurora-postgresql *

          *

          * Constraints: *

          *
            *
          • *

            * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine of the source DB cluster. *

            *
          • */ public String getEngine() { return this.engine; } /** *

            * The database engine to use for this global database cluster. *

            *

            * Valid Values: aurora-mysql | aurora-postgresql *

            *

            * Constraints: *

            *
              *
            • *

              * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * engine of the source DB cluster. *

              *
            • *
            * * @param engine * The database engine to use for this global database cluster.

            *

            * Valid Values: aurora-mysql | aurora-postgresql *

            *

            * Constraints: *

            *
              *
            • *

              * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine of the source DB cluster. *

              *
            • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGlobalClusterRequest withEngine(String engine) { setEngine(engine); return this; } /** *

              * The engine version to use for this global database cluster. *

              *

              * Constraints: *

              *
                *
              • *

                * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * engine version of the source DB cluster. *

                *
              • *
              * * @param engineVersion * The engine version to use for this global database cluster.

              *

              * Constraints: *

              *
                *
              • *

                * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster. *

                *
              • */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

                * The engine version to use for this global database cluster. *

                *

                * Constraints: *

                *
                  *
                • *

                  * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * engine version of the source DB cluster. *

                  *
                • *
                * * @return The engine version to use for this global database cluster.

                *

                * Constraints: *

                *
                  *
                • *

                  * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster. *

                  *
                • */ public String getEngineVersion() { return this.engineVersion; } /** *

                  * The engine version to use for this global database cluster. *

                  *

                  * Constraints: *

                  *
                    *
                  • *

                    * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * engine version of the source DB cluster. *

                    *
                  • *
                  * * @param engineVersion * The engine version to use for this global database cluster.

                  *

                  * Constraints: *

                  *
                    *
                  • *

                    * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the engine version of the source DB cluster. *

                    *
                  • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGlobalClusterRequest withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *

                    * The life cycle type for this global database cluster. *

                    * *

                    * By default, this value is set to open-source-rds-extended-support, which enrolls your global cluster * into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by * setting the value to open-source-rds-extended-support-disabled. In this case, creating the global * cluster will fail if the DB major version is past its end of standard support date. *

                    *
                    *

                    * This setting only applies to Aurora PostgreSQL-based global databases. *

                    *

                    * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended * Support, you can run the selected major engine version on your global cluster past the end of standard support * for that engine version. For more information, see Using Amazon RDS * Extended Support in the Amazon Aurora User Guide. *

                    *

                    * Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled *

                    *

                    * Default: open-source-rds-extended-support *

                    * * @param engineLifecycleSupport * The life cycle type for this global database cluster.

                    *

                    * By default, this value is set to open-source-rds-extended-support, which enrolls your global * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for * Extended Support by setting the value to open-source-rds-extended-support-disabled. In this * case, creating the global cluster will fail if the DB major version is past its end of standard support * date. *

                    *
                    *

                    * This setting only applies to Aurora PostgreSQL-based global databases. *

                    *

                    * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended * Support, you can run the selected major engine version on your global cluster past the end of standard * support for that engine version. For more information, see Using Amazon RDS * Extended Support in the Amazon Aurora User Guide. *

                    *

                    * Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled *

                    *

                    * Default: open-source-rds-extended-support */ public void setEngineLifecycleSupport(String engineLifecycleSupport) { this.engineLifecycleSupport = engineLifecycleSupport; } /** *

                    * The life cycle type for this global database cluster. *

                    * *

                    * By default, this value is set to open-source-rds-extended-support, which enrolls your global cluster * into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by * setting the value to open-source-rds-extended-support-disabled. In this case, creating the global * cluster will fail if the DB major version is past its end of standard support date. *

                    *
                    *

                    * This setting only applies to Aurora PostgreSQL-based global databases. *

                    *

                    * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended * Support, you can run the selected major engine version on your global cluster past the end of standard support * for that engine version. For more information, see Using Amazon RDS * Extended Support in the Amazon Aurora User Guide. *

                    *

                    * Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled *

                    *

                    * Default: open-source-rds-extended-support *

                    * * @return The life cycle type for this global database cluster.

                    *

                    * By default, this value is set to open-source-rds-extended-support, which enrolls your global * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for * Extended Support by setting the value to open-source-rds-extended-support-disabled. In this * case, creating the global cluster will fail if the DB major version is past its end of standard support * date. *

                    *
                    *

                    * This setting only applies to Aurora PostgreSQL-based global databases. *

                    *

                    * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS * Extended Support, you can run the selected major engine version on your global cluster past the end of * standard support for that engine version. For more information, see Using Amazon * RDS Extended Support in the Amazon Aurora User Guide. *

                    *

                    * Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled *

                    *

                    * Default: open-source-rds-extended-support */ public String getEngineLifecycleSupport() { return this.engineLifecycleSupport; } /** *

                    * The life cycle type for this global database cluster. *

                    * *

                    * By default, this value is set to open-source-rds-extended-support, which enrolls your global cluster * into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by * setting the value to open-source-rds-extended-support-disabled. In this case, creating the global * cluster will fail if the DB major version is past its end of standard support date. *

                    *
                    *

                    * This setting only applies to Aurora PostgreSQL-based global databases. *

                    *

                    * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended * Support, you can run the selected major engine version on your global cluster past the end of standard support * for that engine version. For more information, see Using Amazon RDS * Extended Support in the Amazon Aurora User Guide. *

                    *

                    * Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled *

                    *

                    * Default: open-source-rds-extended-support *

                    * * @param engineLifecycleSupport * The life cycle type for this global database cluster.

                    *

                    * By default, this value is set to open-source-rds-extended-support, which enrolls your global * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for * Extended Support by setting the value to open-source-rds-extended-support-disabled. In this * case, creating the global cluster will fail if the DB major version is past its end of standard support * date. *

                    *
                    *

                    * This setting only applies to Aurora PostgreSQL-based global databases. *

                    *

                    * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended * Support, you can run the selected major engine version on your global cluster past the end of standard * support for that engine version. For more information, see Using Amazon RDS * Extended Support in the Amazon Aurora User Guide. *

                    *

                    * Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled *

                    *

                    * Default: open-source-rds-extended-support * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGlobalClusterRequest withEngineLifecycleSupport(String engineLifecycleSupport) { setEngineLifecycleSupport(engineLifecycleSupport); return this; } /** *

                    * Specifies whether to enable deletion protection for the new global database cluster. The global database can't be * deleted when deletion protection is enabled. *

                    * * @param deletionProtection * Specifies whether to enable deletion protection for the new global database cluster. The global database * can't be deleted when deletion protection is enabled. */ public void setDeletionProtection(Boolean deletionProtection) { this.deletionProtection = deletionProtection; } /** *

                    * Specifies whether to enable deletion protection for the new global database cluster. The global database can't be * deleted when deletion protection is enabled. *

                    * * @return Specifies whether to enable deletion protection for the new global database cluster. The global database * can't be deleted when deletion protection is enabled. */ public Boolean getDeletionProtection() { return this.deletionProtection; } /** *

                    * Specifies whether to enable deletion protection for the new global database cluster. The global database can't be * deleted when deletion protection is enabled. *

                    * * @param deletionProtection * Specifies whether to enable deletion protection for the new global database cluster. The global database * can't be deleted when deletion protection is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGlobalClusterRequest withDeletionProtection(Boolean deletionProtection) { setDeletionProtection(deletionProtection); return this; } /** *

                    * Specifies whether to enable deletion protection for the new global database cluster. The global database can't be * deleted when deletion protection is enabled. *

                    * * @return Specifies whether to enable deletion protection for the new global database cluster. The global database * can't be deleted when deletion protection is enabled. */ public Boolean isDeletionProtection() { return this.deletionProtection; } /** *

                    * The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon Aurora * doesn't create a database in the global database cluster. *

                    *

                    * Constraints: *

                    *
                      *
                    • *

                      * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * database name from the source DB cluster. *

                      *
                    • *
                    * * @param databaseName * The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon Aurora * doesn't create a database in the global database cluster.

                    *

                    * Constraints: *

                    *
                      *
                    • *

                      * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster. *

                      *
                    • */ public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } /** *

                      * The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon Aurora * doesn't create a database in the global database cluster. *

                      *

                      * Constraints: *

                      *
                        *
                      • *

                        * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * database name from the source DB cluster. *

                        *
                      • *
                      * * @return The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon * Aurora doesn't create a database in the global database cluster.

                      *

                      * Constraints: *

                      *
                        *
                      • *

                        * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster. *

                        *
                      • */ public String getDatabaseName() { return this.databaseName; } /** *

                        * The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon Aurora * doesn't create a database in the global database cluster. *

                        *

                        * Constraints: *

                        *
                          *
                        • *

                          * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * database name from the source DB cluster. *

                          *
                        • *
                        * * @param databaseName * The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon Aurora * doesn't create a database in the global database cluster.

                        *

                        * Constraints: *

                        *
                          *
                        • *

                          * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the database name from the source DB cluster. *

                          *
                        • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGlobalClusterRequest withDatabaseName(String databaseName) { setDatabaseName(databaseName); return this; } /** *

                          * Specifies whether to enable storage encryption for the new global database cluster. *

                          *

                          * Constraints: *

                          *
                            *
                          • *

                            * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * setting from the source DB cluster. *

                            *
                          • *
                          * * @param storageEncrypted * Specifies whether to enable storage encryption for the new global database cluster.

                          *

                          * Constraints: *

                          *
                            *
                          • *

                            * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the setting from the source DB cluster. *

                            *
                          • */ public void setStorageEncrypted(Boolean storageEncrypted) { this.storageEncrypted = storageEncrypted; } /** *

                            * Specifies whether to enable storage encryption for the new global database cluster. *

                            *

                            * Constraints: *

                            *
                              *
                            • *

                              * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * setting from the source DB cluster. *

                              *
                            • *
                            * * @return Specifies whether to enable storage encryption for the new global database cluster.

                            *

                            * Constraints: *

                            *
                              *
                            • *

                              * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the setting from the source DB cluster. *

                              *
                            • */ public Boolean getStorageEncrypted() { return this.storageEncrypted; } /** *

                              * Specifies whether to enable storage encryption for the new global database cluster. *

                              *

                              * Constraints: *

                              *
                                *
                              • *

                                * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * setting from the source DB cluster. *

                                *
                              • *
                              * * @param storageEncrypted * Specifies whether to enable storage encryption for the new global database cluster.

                              *

                              * Constraints: *

                              *
                                *
                              • *

                                * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the setting from the source DB cluster. *

                                *
                              • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGlobalClusterRequest withStorageEncrypted(Boolean storageEncrypted) { setStorageEncrypted(storageEncrypted); return this; } /** *

                                * Specifies whether to enable storage encryption for the new global database cluster. *

                                *

                                * Constraints: *

                                *
                                  *
                                • *

                                  * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the * setting from the source DB cluster. *

                                  *
                                • *
                                * * @return Specifies whether to enable storage encryption for the new global database cluster.

                                *

                                * Constraints: *

                                *
                                  *
                                • *

                                  * Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora * uses the setting from the source DB cluster. *

                                  *
                                • */ public Boolean isStorageEncrypted() { return this.storageEncrypted; } /** * 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 (getGlobalClusterIdentifier() != null) sb.append("GlobalClusterIdentifier: ").append(getGlobalClusterIdentifier()).append(","); if (getSourceDBClusterIdentifier() != null) sb.append("SourceDBClusterIdentifier: ").append(getSourceDBClusterIdentifier()).append(","); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getEngineLifecycleSupport() != null) sb.append("EngineLifecycleSupport: ").append(getEngineLifecycleSupport()).append(","); if (getDeletionProtection() != null) sb.append("DeletionProtection: ").append(getDeletionProtection()).append(","); if (getDatabaseName() != null) sb.append("DatabaseName: ").append(getDatabaseName()).append(","); if (getStorageEncrypted() != null) sb.append("StorageEncrypted: ").append(getStorageEncrypted()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateGlobalClusterRequest == false) return false; CreateGlobalClusterRequest other = (CreateGlobalClusterRequest) obj; if (other.getGlobalClusterIdentifier() == null ^ this.getGlobalClusterIdentifier() == null) return false; if (other.getGlobalClusterIdentifier() != null && other.getGlobalClusterIdentifier().equals(this.getGlobalClusterIdentifier()) == 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.getEngine() == null ^ this.getEngine() == null) return false; if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getEngineLifecycleSupport() == null ^ this.getEngineLifecycleSupport() == null) return false; if (other.getEngineLifecycleSupport() != null && other.getEngineLifecycleSupport().equals(this.getEngineLifecycleSupport()) == 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.getDatabaseName() == null ^ this.getDatabaseName() == null) return false; if (other.getDatabaseName() != null && other.getDatabaseName().equals(this.getDatabaseName()) == false) return false; if (other.getStorageEncrypted() == null ^ this.getStorageEncrypted() == null) return false; if (other.getStorageEncrypted() != null && other.getStorageEncrypted().equals(this.getStorageEncrypted()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGlobalClusterIdentifier() == null) ? 0 : getGlobalClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getSourceDBClusterIdentifier() == null) ? 0 : getSourceDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getEngineLifecycleSupport() == null) ? 0 : getEngineLifecycleSupport().hashCode()); hashCode = prime * hashCode + ((getDeletionProtection() == null) ? 0 : getDeletionProtection().hashCode()); hashCode = prime * hashCode + ((getDatabaseName() == null) ? 0 : getDatabaseName().hashCode()); hashCode = prime * hashCode + ((getStorageEncrypted() == null) ? 0 : getStorageEncrypted().hashCode()); return hashCode; } @Override public CreateGlobalClusterRequest clone() { return (CreateGlobalClusterRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy