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

com.amazonaws.services.neptune.model.CreateDBClusterEndpointRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Neptune module holds the client classes that are used for communicating with Amazon Neptune Service

The 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.neptune.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 CreateDBClusterEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase * string. *

*/ private String dBClusterIdentifier; /** *

* The identifier to use for the new endpoint. This parameter is stored as a lowercase string. *

*/ private String dBClusterEndpointIdentifier; /** *

* The type of the endpoint. One of: READER, WRITER, ANY. *

*/ private String endpointType; /** *

* List of DB instance identifiers that are part of the custom endpoint group. *

*/ private java.util.List staticMembers; /** *

* List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are * reachable through the custom endpoint. Only relevant if the list of static members is empty. *

*/ private java.util.List excludedMembers; /** *

* The tags to be assigned to the Amazon Neptune resource. *

*/ private java.util.List tags; /** *

* The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase * string. *

* * @param dBClusterIdentifier * The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a * lowercase string. */ public void setDBClusterIdentifier(String dBClusterIdentifier) { this.dBClusterIdentifier = dBClusterIdentifier; } /** *

* The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase * string. *

* * @return The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a * lowercase string. */ public String getDBClusterIdentifier() { return this.dBClusterIdentifier; } /** *

* The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase * string. *

* * @param dBClusterIdentifier * The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a * lowercase string. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterEndpointRequest withDBClusterIdentifier(String dBClusterIdentifier) { setDBClusterIdentifier(dBClusterIdentifier); return this; } /** *

* The identifier to use for the new endpoint. This parameter is stored as a lowercase string. *

* * @param dBClusterEndpointIdentifier * The identifier to use for the new endpoint. This parameter is stored as a lowercase string. */ public void setDBClusterEndpointIdentifier(String dBClusterEndpointIdentifier) { this.dBClusterEndpointIdentifier = dBClusterEndpointIdentifier; } /** *

* The identifier to use for the new endpoint. This parameter is stored as a lowercase string. *

* * @return The identifier to use for the new endpoint. This parameter is stored as a lowercase string. */ public String getDBClusterEndpointIdentifier() { return this.dBClusterEndpointIdentifier; } /** *

* The identifier to use for the new endpoint. This parameter is stored as a lowercase string. *

* * @param dBClusterEndpointIdentifier * The identifier to use for the new endpoint. This parameter is stored as a lowercase string. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterEndpointRequest withDBClusterEndpointIdentifier(String dBClusterEndpointIdentifier) { setDBClusterEndpointIdentifier(dBClusterEndpointIdentifier); return this; } /** *

* The type of the endpoint. One of: READER, WRITER, ANY. *

* * @param endpointType * The type of the endpoint. One of: READER, WRITER, ANY. */ public void setEndpointType(String endpointType) { this.endpointType = endpointType; } /** *

* The type of the endpoint. One of: READER, WRITER, ANY. *

* * @return The type of the endpoint. One of: READER, WRITER, ANY. */ public String getEndpointType() { return this.endpointType; } /** *

* The type of the endpoint. One of: READER, WRITER, ANY. *

* * @param endpointType * The type of the endpoint. One of: READER, WRITER, ANY. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterEndpointRequest withEndpointType(String endpointType) { setEndpointType(endpointType); return this; } /** *

* List of DB instance identifiers that are part of the custom endpoint group. *

* * @return List of DB instance identifiers that are part of the custom endpoint group. */ public java.util.List getStaticMembers() { return staticMembers; } /** *

* List of DB instance identifiers that are part of the custom endpoint group. *

* * @param staticMembers * List of DB instance identifiers that are part of the custom endpoint group. */ public void setStaticMembers(java.util.Collection staticMembers) { if (staticMembers == null) { this.staticMembers = null; return; } this.staticMembers = new java.util.ArrayList(staticMembers); } /** *

* List of DB instance identifiers that are part of the custom endpoint group. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setStaticMembers(java.util.Collection)} or {@link #withStaticMembers(java.util.Collection)} if you want * to override the existing values. *

* * @param staticMembers * List of DB instance identifiers that are part of the custom endpoint group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterEndpointRequest withStaticMembers(String... staticMembers) { if (this.staticMembers == null) { setStaticMembers(new java.util.ArrayList(staticMembers.length)); } for (String ele : staticMembers) { this.staticMembers.add(ele); } return this; } /** *

* List of DB instance identifiers that are part of the custom endpoint group. *

* * @param staticMembers * List of DB instance identifiers that are part of the custom endpoint group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterEndpointRequest withStaticMembers(java.util.Collection staticMembers) { setStaticMembers(staticMembers); return this; } /** *

* List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are * reachable through the custom endpoint. Only relevant if the list of static members is empty. *

* * @return List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible * instances are reachable through the custom endpoint. Only relevant if the list of static members is * empty. */ public java.util.List getExcludedMembers() { return excludedMembers; } /** *

* List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are * reachable through the custom endpoint. Only relevant if the list of static members is empty. *

* * @param excludedMembers * List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible * instances are reachable through the custom endpoint. Only relevant if the list of static members is empty. */ public void setExcludedMembers(java.util.Collection excludedMembers) { if (excludedMembers == null) { this.excludedMembers = null; return; } this.excludedMembers = new java.util.ArrayList(excludedMembers); } /** *

* List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are * reachable through the custom endpoint. Only relevant if the list of static members is empty. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setExcludedMembers(java.util.Collection)} or {@link #withExcludedMembers(java.util.Collection)} if you * want to override the existing values. *

* * @param excludedMembers * List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible * instances are reachable through the custom endpoint. Only relevant if the list of static members is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterEndpointRequest withExcludedMembers(String... excludedMembers) { if (this.excludedMembers == null) { setExcludedMembers(new java.util.ArrayList(excludedMembers.length)); } for (String ele : excludedMembers) { this.excludedMembers.add(ele); } return this; } /** *

* List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are * reachable through the custom endpoint. Only relevant if the list of static members is empty. *

* * @param excludedMembers * List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible * instances are reachable through the custom endpoint. Only relevant if the list of static members is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterEndpointRequest withExcludedMembers(java.util.Collection excludedMembers) { setExcludedMembers(excludedMembers); return this; } /** *

* The tags to be assigned to the Amazon Neptune resource. *

* * @return The tags to be assigned to the Amazon Neptune resource. */ public java.util.List getTags() { return tags; } /** *

* The tags to be assigned to the Amazon Neptune resource. *

* * @param tags * The tags to be assigned to the Amazon Neptune resource. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* The tags to be assigned to the Amazon Neptune resource. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * The tags to be assigned to the Amazon Neptune resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterEndpointRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* The tags to be assigned to the Amazon Neptune resource. *

* * @param tags * The tags to be assigned to the Amazon Neptune resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBClusterEndpointRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** * 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 (getDBClusterIdentifier() != null) sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(","); if (getDBClusterEndpointIdentifier() != null) sb.append("DBClusterEndpointIdentifier: ").append(getDBClusterEndpointIdentifier()).append(","); if (getEndpointType() != null) sb.append("EndpointType: ").append(getEndpointType()).append(","); if (getStaticMembers() != null) sb.append("StaticMembers: ").append(getStaticMembers()).append(","); if (getExcludedMembers() != null) sb.append("ExcludedMembers: ").append(getExcludedMembers()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDBClusterEndpointRequest == false) return false; CreateDBClusterEndpointRequest other = (CreateDBClusterEndpointRequest) obj; if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null) return false; if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false) return false; if (other.getDBClusterEndpointIdentifier() == null ^ this.getDBClusterEndpointIdentifier() == null) return false; if (other.getDBClusterEndpointIdentifier() != null && other.getDBClusterEndpointIdentifier().equals(this.getDBClusterEndpointIdentifier()) == false) return false; if (other.getEndpointType() == null ^ this.getEndpointType() == null) return false; if (other.getEndpointType() != null && other.getEndpointType().equals(this.getEndpointType()) == false) return false; if (other.getStaticMembers() == null ^ this.getStaticMembers() == null) return false; if (other.getStaticMembers() != null && other.getStaticMembers().equals(this.getStaticMembers()) == false) return false; if (other.getExcludedMembers() == null ^ this.getExcludedMembers() == null) return false; if (other.getExcludedMembers() != null && other.getExcludedMembers().equals(this.getExcludedMembers()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getDBClusterEndpointIdentifier() == null) ? 0 : getDBClusterEndpointIdentifier().hashCode()); hashCode = prime * hashCode + ((getEndpointType() == null) ? 0 : getEndpointType().hashCode()); hashCode = prime * hashCode + ((getStaticMembers() == null) ? 0 : getStaticMembers().hashCode()); hashCode = prime * hashCode + ((getExcludedMembers() == null) ? 0 : getExcludedMembers().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateDBClusterEndpointRequest clone() { return (CreateDBClusterEndpointRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy