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

* */ private String sourceDBClusterIdentifier; /** *

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

*

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

*

* Constraints: *

* */ private String engine; /** *

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

*

* Constraints: *

* */ private String engineVersion; /** *

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

* */ private String databaseName; /** *

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

*

* Constraints: *

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

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

*