/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.rds.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class 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
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the engine version of the source DB cluster.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the engine version of the source DB cluster.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the engine version of the source DB cluster.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the database name from the source DB cluster.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the database name from the source DB cluster.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the database name from the source DB cluster.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the setting from the source DB cluster.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the setting from the source DB cluster.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the setting from the source DB cluster.
*
* 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.
*
* Constraints: *
*
* Can't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora
* uses the setting from the source DB cluster.
*