/* * 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 CreateDBProxyEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the DB proxy associated with the DB proxy endpoint that you create. *
*/ private String dBProxyName; /** ** The name of the DB proxy endpoint to create. *
*/ private String dBProxyEndpointName; /** ** The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet IDs than * for the original DB proxy. *
*/ private com.amazonaws.internal.SdkInternalList* The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of security * group IDs than for the original DB proxy. The default is the default security group for the VPC. *
*/ private com.amazonaws.internal.SdkInternalList
* A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations. The
* default is READ_WRITE
. The only role that proxies for RDS for Microsoft SQL Server support is
* READ_WRITE
.
*
* The name of the DB proxy associated with the DB proxy endpoint that you create. *
* * @param dBProxyName * The name of the DB proxy associated with the DB proxy endpoint that you create. */ public void setDBProxyName(String dBProxyName) { this.dBProxyName = dBProxyName; } /** ** The name of the DB proxy associated with the DB proxy endpoint that you create. *
* * @return The name of the DB proxy associated with the DB proxy endpoint that you create. */ public String getDBProxyName() { return this.dBProxyName; } /** ** The name of the DB proxy associated with the DB proxy endpoint that you create. *
* * @param dBProxyName * The name of the DB proxy associated with the DB proxy endpoint that you create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBProxyEndpointRequest withDBProxyName(String dBProxyName) { setDBProxyName(dBProxyName); return this; } /** ** The name of the DB proxy endpoint to create. *
* * @param dBProxyEndpointName * The name of the DB proxy endpoint to create. */ public void setDBProxyEndpointName(String dBProxyEndpointName) { this.dBProxyEndpointName = dBProxyEndpointName; } /** ** The name of the DB proxy endpoint to create. *
* * @return The name of the DB proxy endpoint to create. */ public String getDBProxyEndpointName() { return this.dBProxyEndpointName; } /** ** The name of the DB proxy endpoint to create. *
* * @param dBProxyEndpointName * The name of the DB proxy endpoint to create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBProxyEndpointRequest withDBProxyEndpointName(String dBProxyEndpointName) { setDBProxyEndpointName(dBProxyEndpointName); return this; } /** ** The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet IDs than * for the original DB proxy. *
* * @return The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet * IDs than for the original DB proxy. */ public java.util.List* The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet IDs than * for the original DB proxy. *
* * @param vpcSubnetIds * The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet * IDs than for the original DB proxy. */ public void setVpcSubnetIds(java.util.Collection* The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet IDs than * for the original DB proxy. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcSubnetIds(java.util.Collection)} or {@link #withVpcSubnetIds(java.util.Collection)} if you want to * override the existing values. *
* * @param vpcSubnetIds * The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet * IDs than for the original DB proxy. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBProxyEndpointRequest withVpcSubnetIds(String... vpcSubnetIds) { if (this.vpcSubnetIds == null) { setVpcSubnetIds(new com.amazonaws.internal.SdkInternalList* The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet IDs than * for the original DB proxy. *
* * @param vpcSubnetIds * The VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet * IDs than for the original DB proxy. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBProxyEndpointRequest withVpcSubnetIds(java.util.Collection* The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of security * group IDs than for the original DB proxy. The default is the default security group for the VPC. *
* * @return The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of * security group IDs than for the original DB proxy. The default is the default security group for the VPC. */ public java.util.List* The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of security * group IDs than for the original DB proxy. The default is the default security group for the VPC. *
* * @param vpcSecurityGroupIds * The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of * security group IDs than for the original DB proxy. The default is the default security group for the VPC. */ public void setVpcSecurityGroupIds(java.util.Collection* The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of security * group IDs than for the original DB proxy. The default is the default security group for the VPC. *
** 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 that you create. You can specify a different set of * security group IDs than for the original DB proxy. The default is the default security group for the VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBProxyEndpointRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new com.amazonaws.internal.SdkInternalList* The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of security * group IDs than for the original DB proxy. The default is the default security group for the VPC. *
* * @param vpcSecurityGroupIds * The VPC security group IDs for the DB proxy endpoint that you create. You can specify a different set of * security group IDs than for the original DB proxy. The default is the default security group for the VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBProxyEndpointRequest withVpcSecurityGroupIds(java.util.Collection
* A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations. The
* default is READ_WRITE
. The only role that proxies for RDS for Microsoft SQL Server support is
* READ_WRITE
.
*
READ_WRITE
. The only role that proxies for RDS for Microsoft SQL Server
* support is READ_WRITE
.
* @see DBProxyEndpointTargetRole
*/
public void setTargetRole(String targetRole) {
this.targetRole = targetRole;
}
/**
*
* A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations. The
* default is READ_WRITE
. The only role that proxies for RDS for Microsoft SQL Server support is
* READ_WRITE
.
*
READ_WRITE
. The only role that proxies for RDS for Microsoft SQL Server
* support is READ_WRITE
.
* @see DBProxyEndpointTargetRole
*/
public String getTargetRole() {
return this.targetRole;
}
/**
*
* A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations. The
* default is READ_WRITE
. The only role that proxies for RDS for Microsoft SQL Server support is
* READ_WRITE
.
*
READ_WRITE
. The only role that proxies for RDS for Microsoft SQL Server
* support is READ_WRITE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DBProxyEndpointTargetRole
*/
public CreateDBProxyEndpointRequest withTargetRole(String targetRole) {
setTargetRole(targetRole);
return this;
}
/**
*
* A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations. The
* default is READ_WRITE
. The only role that proxies for RDS for Microsoft SQL Server support is
* READ_WRITE
.
*
READ_WRITE
. The only role that proxies for RDS for Microsoft SQL Server
* support is READ_WRITE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DBProxyEndpointTargetRole
*/
public CreateDBProxyEndpointRequest withTargetRole(DBProxyEndpointTargetRole targetRole) {
this.targetRole = targetRole.toString();
return this;
}
/**
* @return
*/
public java.util.List* 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 * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDBProxyEndpointRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList