/* * 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.docdb.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* A data type representing an Amazon DocumentDB global cluster. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GlobalCluster implements Serializable, Cloneable { /** ** Contains a user-supplied global cluster identifier. This identifier is the unique key that identifies a global * cluster. *
*/ private String globalClusterIdentifier; /** ** The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This identifier is * found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster is accessed. *
*/ private String globalClusterResourceId; /** ** The Amazon Resource Name (ARN) for the global cluster. *
*/ private String globalClusterArn; /** ** Specifies the current state of this global cluster. *
*/ private String status; /** ** The Amazon DocumentDB database engine used by the global cluster. *
*/ private String engine; /** ** Indicates the database engine version. *
*/ private String engineVersion; /** ** The default database name within the new global cluster. *
*/ private String databaseName; /** ** The storage encryption setting for the global cluster. *
*/ private Boolean storageEncrypted; /** ** The deletion protection setting for the new global cluster. *
*/ private Boolean deletionProtection; /** ** The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. *
*/ private java.util.List* Contains a user-supplied global cluster identifier. This identifier is the unique key that identifies a global * cluster. *
* * @param globalClusterIdentifier * Contains a user-supplied global cluster identifier. This identifier is the unique key that identifies a * global cluster. */ public void setGlobalClusterIdentifier(String globalClusterIdentifier) { this.globalClusterIdentifier = globalClusterIdentifier; } /** ** Contains a user-supplied global cluster identifier. This identifier is the unique key that identifies a global * cluster. *
* * @return Contains a user-supplied global cluster identifier. This identifier is the unique key that identifies a * global cluster. */ public String getGlobalClusterIdentifier() { return this.globalClusterIdentifier; } /** ** Contains a user-supplied global cluster identifier. This identifier is the unique key that identifies a global * cluster. *
* * @param globalClusterIdentifier * Contains a user-supplied global cluster identifier. This identifier is the unique key that identifies a * global cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withGlobalClusterIdentifier(String globalClusterIdentifier) { setGlobalClusterIdentifier(globalClusterIdentifier); return this; } /** ** The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This identifier is * found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster is accessed. *
* * @param globalClusterResourceId * The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This * identifier is found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster * is accessed. */ public void setGlobalClusterResourceId(String globalClusterResourceId) { this.globalClusterResourceId = globalClusterResourceId; } /** ** The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This identifier is * found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster is accessed. *
* * @return The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This * identifier is found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster * is accessed. */ public String getGlobalClusterResourceId() { return this.globalClusterResourceId; } /** ** The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This identifier is * found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster is accessed. *
* * @param globalClusterResourceId * The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This * identifier is found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster * is accessed. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withGlobalClusterResourceId(String globalClusterResourceId) { setGlobalClusterResourceId(globalClusterResourceId); return this; } /** ** The Amazon Resource Name (ARN) for the global cluster. *
* * @param globalClusterArn * The Amazon Resource Name (ARN) for the global cluster. */ public void setGlobalClusterArn(String globalClusterArn) { this.globalClusterArn = globalClusterArn; } /** ** The Amazon Resource Name (ARN) for the global cluster. *
* * @return The Amazon Resource Name (ARN) for the global cluster. */ public String getGlobalClusterArn() { return this.globalClusterArn; } /** ** The Amazon Resource Name (ARN) for the global cluster. *
* * @param globalClusterArn * The Amazon Resource Name (ARN) for the global cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withGlobalClusterArn(String globalClusterArn) { setGlobalClusterArn(globalClusterArn); return this; } /** ** Specifies the current state of this global cluster. *
* * @param status * Specifies the current state of this global cluster. */ public void setStatus(String status) { this.status = status; } /** ** Specifies the current state of this global cluster. *
* * @return Specifies the current state of this global cluster. */ public String getStatus() { return this.status; } /** ** Specifies the current state of this global cluster. *
* * @param status * Specifies the current state of this global cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withStatus(String status) { setStatus(status); return this; } /** ** The Amazon DocumentDB database engine used by the global cluster. *
* * @param engine * The Amazon DocumentDB database engine used by the global cluster. */ public void setEngine(String engine) { this.engine = engine; } /** ** The Amazon DocumentDB database engine used by the global cluster. *
* * @return The Amazon DocumentDB database engine used by the global cluster. */ public String getEngine() { return this.engine; } /** ** The Amazon DocumentDB database engine used by the global cluster. *
* * @param engine * The Amazon DocumentDB database engine used by the global cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withEngine(String engine) { setEngine(engine); return this; } /** ** Indicates the database engine version. *
* * @param engineVersion * Indicates the database engine version. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** ** Indicates the database engine version. *
* * @return Indicates the database engine version. */ public String getEngineVersion() { return this.engineVersion; } /** ** Indicates the database engine version. *
* * @param engineVersion * Indicates the database engine version. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** ** The default database name within the new global cluster. *
* * @param databaseName * The default database name within the new global cluster. */ public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } /** ** The default database name within the new global cluster. *
* * @return The default database name within the new global cluster. */ public String getDatabaseName() { return this.databaseName; } /** ** The default database name within the new global cluster. *
* * @param databaseName * The default database name within the new global cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withDatabaseName(String databaseName) { setDatabaseName(databaseName); return this; } /** ** The storage encryption setting for the global cluster. *
* * @param storageEncrypted * The storage encryption setting for the global cluster. */ public void setStorageEncrypted(Boolean storageEncrypted) { this.storageEncrypted = storageEncrypted; } /** ** The storage encryption setting for the global cluster. *
* * @return The storage encryption setting for the global cluster. */ public Boolean getStorageEncrypted() { return this.storageEncrypted; } /** ** The storage encryption setting for the global cluster. *
* * @param storageEncrypted * The storage encryption setting for the global cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withStorageEncrypted(Boolean storageEncrypted) { setStorageEncrypted(storageEncrypted); return this; } /** ** The storage encryption setting for the global cluster. *
* * @return The storage encryption setting for the global cluster. */ public Boolean isStorageEncrypted() { return this.storageEncrypted; } /** ** The deletion protection setting for the new global cluster. *
* * @param deletionProtection * The deletion protection setting for the new global cluster. */ public void setDeletionProtection(Boolean deletionProtection) { this.deletionProtection = deletionProtection; } /** ** The deletion protection setting for the new global cluster. *
* * @return The deletion protection setting for the new global cluster. */ public Boolean getDeletionProtection() { return this.deletionProtection; } /** ** The deletion protection setting for the new global cluster. *
* * @param deletionProtection * The deletion protection setting for the new global cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withDeletionProtection(Boolean deletionProtection) { setDeletionProtection(deletionProtection); return this; } /** ** The deletion protection setting for the new global cluster. *
* * @return The deletion protection setting for the new global cluster. */ public Boolean isDeletionProtection() { return this.deletionProtection; } /** ** The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. *
* * @return The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. */ public java.util.List* The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. *
* * @param globalClusterMembers * The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. */ public void setGlobalClusterMembers(java.util.Collection* The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGlobalClusterMembers(java.util.Collection)} or {@link #withGlobalClusterMembers(java.util.Collection)} * if you want to override the existing values. *
* * @param globalClusterMembers * The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withGlobalClusterMembers(GlobalClusterMember... globalClusterMembers) { if (this.globalClusterMembers == null) { setGlobalClusterMembers(new java.util.ArrayList* The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. *
* * @param globalClusterMembers * The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withGlobalClusterMembers(java.util.Collection