/* * 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.neptune.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Contains the details of an Amazon Neptune global database. *
** This data type is used as a response element for the CreateGlobalCluster, DescribeGlobalClusters, * ModifyGlobalCluster, DeleteGlobalCluster, FailoverGlobalCluster, and * RemoveFromGlobalCluster actions. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GlobalCluster implements Serializable, Cloneable { /** ** Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a * global database. *
*/ private String globalClusterIdentifier; /** ** An immutable identifier for the global database that is unique within in all regions. This identifier is found in * CloudTrail log entries whenever the KMS key for the DB cluster is accessed. *
*/ private String globalClusterResourceId; /** ** The Amazon Resource Name (ARN) for the global database. *
*/ private String globalClusterArn; /** ** Specifies the current state of this global database. *
*/ private String status; /** *
* The Neptune database engine used by the global database ("neptune"
).
*
* The Neptune engine version used by the global database. *
*/ private String engineVersion; /** ** The storage encryption setting for the global database. *
*/ private Boolean storageEncrypted; /** ** The deletion protection setting for the global database. *
*/ private Boolean deletionProtection; /** ** A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database. *
*/ private java.util.List* Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a * global database. *
* * @param globalClusterIdentifier * Contains a user-supplied global database cluster identifier. This identifier is the unique key that * identifies a global database. */ public void setGlobalClusterIdentifier(String globalClusterIdentifier) { this.globalClusterIdentifier = globalClusterIdentifier; } /** ** Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a * global database. *
* * @return Contains a user-supplied global database cluster identifier. This identifier is the unique key that * identifies a global database. */ public String getGlobalClusterIdentifier() { return this.globalClusterIdentifier; } /** ** Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a * global database. *
* * @param globalClusterIdentifier * Contains a user-supplied global database cluster identifier. This identifier is the unique key that * identifies a global database. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withGlobalClusterIdentifier(String globalClusterIdentifier) { setGlobalClusterIdentifier(globalClusterIdentifier); return this; } /** ** An immutable identifier for the global database that is unique within in all regions. This identifier is found in * CloudTrail log entries whenever the KMS key for the DB cluster is accessed. *
* * @param globalClusterResourceId * An immutable identifier for the global database that is unique within in all regions. This identifier is * found in CloudTrail log entries whenever the KMS key for the DB cluster is accessed. */ public void setGlobalClusterResourceId(String globalClusterResourceId) { this.globalClusterResourceId = globalClusterResourceId; } /** ** An immutable identifier for the global database that is unique within in all regions. This identifier is found in * CloudTrail log entries whenever the KMS key for the DB cluster is accessed. *
* * @return An immutable identifier for the global database that is unique within in all regions. This identifier is * found in CloudTrail log entries whenever the KMS key for the DB cluster is accessed. */ public String getGlobalClusterResourceId() { return this.globalClusterResourceId; } /** ** An immutable identifier for the global database that is unique within in all regions. This identifier is found in * CloudTrail log entries whenever the KMS key for the DB cluster is accessed. *
* * @param globalClusterResourceId * An immutable identifier for the global database that is unique within in all regions. This identifier is * found in CloudTrail log entries whenever the KMS key for the DB 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 database. *
* * @param globalClusterArn * The Amazon Resource Name (ARN) for the global database. */ public void setGlobalClusterArn(String globalClusterArn) { this.globalClusterArn = globalClusterArn; } /** ** The Amazon Resource Name (ARN) for the global database. *
* * @return The Amazon Resource Name (ARN) for the global database. */ public String getGlobalClusterArn() { return this.globalClusterArn; } /** ** The Amazon Resource Name (ARN) for the global database. *
* * @param globalClusterArn * The Amazon Resource Name (ARN) for the global database. * @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 database. *
* * @param status * Specifies the current state of this global database. */ public void setStatus(String status) { this.status = status; } /** ** Specifies the current state of this global database. *
* * @return Specifies the current state of this global database. */ public String getStatus() { return this.status; } /** ** Specifies the current state of this global database. *
* * @param status * Specifies the current state of this global database. * @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 Neptune database engine used by the global database ("neptune"
).
*
"neptune"
).
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The Neptune database engine used by the global database ("neptune"
).
*
"neptune"
).
*/
public String getEngine() {
return this.engine;
}
/**
*
* The Neptune database engine used by the global database ("neptune"
).
*
"neptune"
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalCluster withEngine(String engine) {
setEngine(engine);
return this;
}
/**
* * The Neptune engine version used by the global database. *
* * @param engineVersion * The Neptune engine version used by the global database. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** ** The Neptune engine version used by the global database. *
* * @return The Neptune engine version used by the global database. */ public String getEngineVersion() { return this.engineVersion; } /** ** The Neptune engine version used by the global database. *
* * @param engineVersion * The Neptune engine version used by the global database. * @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 storage encryption setting for the global database. *
* * @param storageEncrypted * The storage encryption setting for the global database. */ public void setStorageEncrypted(Boolean storageEncrypted) { this.storageEncrypted = storageEncrypted; } /** ** The storage encryption setting for the global database. *
* * @return The storage encryption setting for the global database. */ public Boolean getStorageEncrypted() { return this.storageEncrypted; } /** ** The storage encryption setting for the global database. *
* * @param storageEncrypted * The storage encryption setting for the global database. * @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 database. *
* * @return The storage encryption setting for the global database. */ public Boolean isStorageEncrypted() { return this.storageEncrypted; } /** ** The deletion protection setting for the global database. *
* * @param deletionProtection * The deletion protection setting for the global database. */ public void setDeletionProtection(Boolean deletionProtection) { this.deletionProtection = deletionProtection; } /** ** The deletion protection setting for the global database. *
* * @return The deletion protection setting for the global database. */ public Boolean getDeletionProtection() { return this.deletionProtection; } /** ** The deletion protection setting for the global database. *
* * @param deletionProtection * The deletion protection setting for the global database. * @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 global database. *
* * @return The deletion protection setting for the global database. */ public Boolean isDeletionProtection() { return this.deletionProtection; } /** ** A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database. *
* * @return A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database. */ public java.util.List* A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database. *
* * @param globalClusterMembers * A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database. */ public void setGlobalClusterMembers(java.util.Collection* A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database. *
** 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 * A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database. * @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* A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database. *
* * @param globalClusterMembers * A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database. * @return Returns a reference to this object so that method calls can be chained together. */ public GlobalCluster withGlobalClusterMembers(java.util.Collection