/* * 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.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 ModifyDBProxyEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. *
*/ private String dBProxyEndpointName; /** *
* The new identifier for the DBProxyEndpoint
. An identifier must begin with a letter and must contain
* only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*
* The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. *
* * @param dBProxyEndpointName * The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. */ public void setDBProxyEndpointName(String dBProxyEndpointName) { this.dBProxyEndpointName = dBProxyEndpointName; } /** ** The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. *
* * @return The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. */ public String getDBProxyEndpointName() { return this.dBProxyEndpointName; } /** ** The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. *
* * @param dBProxyEndpointName * The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyEndpointRequest withDBProxyEndpointName(String dBProxyEndpointName) { setDBProxyEndpointName(dBProxyEndpointName); return this; } /** *
* The new identifier for the DBProxyEndpoint
. An identifier must begin with a letter and must contain
* only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*
DBProxyEndpoint
. An identifier must begin with a letter and must
* contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive
* hyphens.
*/
public void setNewDBProxyEndpointName(String newDBProxyEndpointName) {
this.newDBProxyEndpointName = newDBProxyEndpointName;
}
/**
*
* The new identifier for the DBProxyEndpoint
. An identifier must begin with a letter and must contain
* only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*
DBProxyEndpoint
. An identifier must begin with a letter and must
* contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive
* hyphens.
*/
public String getNewDBProxyEndpointName() {
return this.newDBProxyEndpointName;
}
/**
*
* The new identifier for the DBProxyEndpoint
. An identifier must begin with a letter and must contain
* only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*
DBProxyEndpoint
. An identifier must begin with a letter and must
* contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive
* hyphens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyDBProxyEndpointRequest withNewDBProxyEndpointName(String newDBProxyEndpointName) {
setNewDBProxyEndpointName(newDBProxyEndpointName);
return this;
}
/**
* * The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *
* * @return The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC * than the original proxy, you also specify a different set of security group IDs than for the original * proxy. */ public java.util.List* The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *
* * @param vpcSecurityGroupIds * The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than * the original proxy, you also specify a different set of security group IDs than for the original proxy. */ public void setVpcSecurityGroupIds(java.util.Collection* The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcSecurityGroupIds(java.util.Collection)} or {@link #withVpcSecurityGroupIds(java.util.Collection)} * if you want to override the existing values. *
* * @param vpcSecurityGroupIds * The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than * the original proxy, you also specify a different set of security group IDs than for the original proxy. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyEndpointRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new com.amazonaws.internal.SdkInternalList* The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *
* * @param vpcSecurityGroupIds * The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than * the original proxy, you also specify a different set of security group IDs than for the original proxy. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyEndpointRequest withVpcSecurityGroupIds(java.util.Collection