/* * 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; 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
.
*
* List of DB instance identifiers that are part of the custom endpoint group. *
*/ private java.util.List* 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* The tags to be assigned to the Amazon Neptune resource. *
*/ private java.util.List* 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
.
*
READER
, WRITER
, ANY
.
*/
public void setEndpointType(String endpointType) {
this.endpointType = endpointType;
}
/**
*
* The type of the endpoint. One of: READER
, WRITER
, ANY
.
*
READER
, WRITER
, ANY
.
*/
public String getEndpointType() {
return this.endpointType;
}
/**
*
* The type of the endpoint. One of: READER
, WRITER
, ANY
.
*
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* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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* 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