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

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

/*
 * Copyright 2015-2020 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 of the new global database cluster. *

*/ private String globalClusterIdentifier; /** *

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

*/ private String sourceDBClusterIdentifier; /** *

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

*/ private String engine; /** *

* The engine version of the Aurora global database. *

*/ private String engineVersion; /** *

* The deletion protection setting for the new global database. The global database 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 Aurora will * not create a database in the global database cluster you are creating. *

*/ private String databaseName; /** *

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

*/ private Boolean storageEncrypted; /** *

* The cluster identifier of the new global database cluster. *

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

* The cluster identifier of the new global database cluster. *

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

* The cluster identifier of the new global database cluster. *

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

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

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

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

* * @param sourceDBClusterIdentifier * The Amazon Resource Name (ARN) to use as the primary cluster of the global database. 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 DB cluster. *

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

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

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

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

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

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

* The engine version of the Aurora global database. *

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

* The engine version of the Aurora global database. *

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

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

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

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

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

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

* * @return The deletion protection setting for the new global database. 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 alpha-numeric characters. If you do not provide a name, Amazon Aurora will * not create a database in the global database 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 * Aurora will not create a database in the global database 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 Aurora will * not create a database in the global database 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 * Aurora will not create a database in the global database 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 Aurora will * not create a database in the global database 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 * Aurora will not create a database in the global database 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 database cluster. *

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

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

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

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

* * @param storageEncrypted * The storage encryption setting for the new global database 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 database cluster. *

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