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

com.amazonaws.services.neptune.model.ModifyDBClusterEndpointRequest 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 ModifyDBClusterEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The identifier of the endpoint to modify. 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 identifier of the endpoint to modify. This parameter is stored as a lowercase string. *

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

* The identifier of the endpoint to modify. This parameter is stored as a lowercase string. *

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

* The identifier of the endpoint to modify. This parameter is stored as a lowercase string. *

* * @param dBClusterEndpointIdentifier * The identifier of the endpoint to modify. This parameter is stored as a lowercase string. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBClusterEndpointRequest 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 ModifyDBClusterEndpointRequest 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 ModifyDBClusterEndpointRequest 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 ModifyDBClusterEndpointRequest 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 ModifyDBClusterEndpointRequest 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 ModifyDBClusterEndpointRequest withExcludedMembers(java.util.Collection excludedMembers) { setExcludedMembers(excludedMembers); 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 (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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyDBClusterEndpointRequest == false) return false; ModifyDBClusterEndpointRequest other = (ModifyDBClusterEndpointRequest) obj; 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; 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()); return hashCode; } @Override public ModifyDBClusterEndpointRequest clone() { return (ModifyDBClusterEndpointRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy