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

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

Go to download

The AWS Java SDK for Amazon DocumentDB with MongoDB compatibility module holds the client classes that are used for communicating with Amazon DocumentDB with MongoDB compatibility 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.docdb.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Represents the input to CreateGlobalCluster. *

* * @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 of the new global cluster. *

*/ private String globalClusterIdentifier; /** *

* The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is optional. *

*/ private String sourceDBClusterIdentifier; /** *

* The name of the database engine to be used for this cluster. *

*/ private String engine; /** *

* The engine version of the global cluster. *

*/ private String engineVersion; /** *

* The deletion protection setting for the new global cluster. The global cluster can't be deleted when deletion * protection is enabled. *

*/ private Boolean deletionProtection; /** *

* The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon DocumentDB * will not create a database in the global cluster you are creating. *

*/ private String databaseName; /** *

* The storage encryption setting for the new global cluster. *

*/ private Boolean storageEncrypted; /** *

* The cluster identifier of the new global cluster. *

* * @param globalClusterIdentifier * The cluster identifier of the new global cluster. */ public void setGlobalClusterIdentifier(String globalClusterIdentifier) { this.globalClusterIdentifier = globalClusterIdentifier; } /** *

* The cluster identifier of the new global cluster. *

* * @return The cluster identifier of the new global cluster. */ public String getGlobalClusterIdentifier() { return this.globalClusterIdentifier; } /** *

* The cluster identifier of the new global cluster. *

* * @param globalClusterIdentifier * The cluster identifier of the new global cluster. * @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 cluster. This parameter is optional. *

* * @param sourceDBClusterIdentifier * The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is * optional. */ public void setSourceDBClusterIdentifier(String sourceDBClusterIdentifier) { this.sourceDBClusterIdentifier = sourceDBClusterIdentifier; } /** *

* The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is optional. *

* * @return The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is * optional. */ public String getSourceDBClusterIdentifier() { return this.sourceDBClusterIdentifier; } /** *

* The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is optional. *

* * @param sourceDBClusterIdentifier * The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is * optional. * @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 name of the database engine to be used for this cluster. *

* * @param engine * The name of the database engine to be used for this cluster. */ public void setEngine(String engine) { this.engine = engine; } /** *

* The name of the database engine to be used for this cluster. *

* * @return The name of the database engine to be used for this cluster. */ public String getEngine() { return this.engine; } /** *

* The name of the database engine to be used for this cluster. *

* * @param engine * The name of the database engine to be used for this 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 of the global cluster. *

* * @param engineVersion * The engine version of the global cluster. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* The engine version of the global cluster. *

* * @return The engine version of the global cluster. */ public String getEngineVersion() { return this.engineVersion; } /** *

* The engine version of the global cluster. *

* * @param engineVersion * The engine version of the global 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 deletion protection setting for the new global cluster. The global cluster can't be deleted when deletion * protection is enabled. *

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

* The deletion protection setting for the new global cluster. The global cluster can't be deleted when deletion * protection is enabled. *

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

* The deletion protection setting for the new global cluster. The global cluster can't be deleted when deletion * protection is enabled. *

* * @param deletionProtection * The deletion protection setting for the new global cluster. The global cluster 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; } /** *

* The deletion protection setting for the new global cluster. The global cluster can't be deleted when deletion * protection is enabled. *

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

* The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon DocumentDB * will not create a database in the global cluster you are creating. *

* * @param databaseName * The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon * DocumentDB will not create a database in the global cluster you are creating. */ public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } /** *

* The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon DocumentDB * will not create a database in the global cluster you are creating. *

* * @return The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon * DocumentDB will not create a database in the global cluster you are creating. */ public String getDatabaseName() { return this.databaseName; } /** *

* The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon DocumentDB * will not create a database in the global cluster you are creating. *

* * @param databaseName * The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon * DocumentDB will not create a database in the global cluster you are creating. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGlobalClusterRequest withDatabaseName(String databaseName) { setDatabaseName(databaseName); return this; } /** *

* The storage encryption setting for the new global cluster. *

* * @param storageEncrypted * The storage encryption setting for the new global cluster. */ public void setStorageEncrypted(Boolean storageEncrypted) { this.storageEncrypted = storageEncrypted; } /** *

* The storage encryption setting for the new global cluster. *

* * @return The storage encryption setting for the new global cluster. */ public Boolean getStorageEncrypted() { return this.storageEncrypted; } /** *

* The storage encryption setting for the new global cluster. *

* * @param storageEncrypted * The storage encryption setting for the new global 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; } /** *

* The storage encryption setting for the new global cluster. *

* * @return The storage encryption setting for the new global 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 (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.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 + ((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