Class CfnDBProxyEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBProxyEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBProxyEndpointProps>
- Enclosing interface:
- CfnDBProxyEndpointProps
@Stability(Stable)
public static final class CfnDBProxyEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBProxyEndpointProps>
A builder for
CfnDBProxyEndpointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dbProxyEndpointName(String dbProxyEndpointName) Sets the value ofCfnDBProxyEndpointProps.getDbProxyEndpointName()dbProxyName(String dbProxyName) Sets the value ofCfnDBProxyEndpointProps.getDbProxyName()tags(List<? extends CfnDBProxyEndpoint.TagFormatProperty> tags) Sets the value ofCfnDBProxyEndpointProps.getTags()targetRole(String targetRole) Sets the value ofCfnDBProxyEndpointProps.getTargetRole()vpcSecurityGroupIds(List<String> vpcSecurityGroupIds) Sets the value ofCfnDBProxyEndpointProps.getVpcSecurityGroupIds()vpcSubnetIds(List<String> vpcSubnetIds) Sets the value ofCfnDBProxyEndpointProps.getVpcSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dbProxyEndpointName
@Stability(Stable) public CfnDBProxyEndpointProps.Builder dbProxyEndpointName(String dbProxyEndpointName) Sets the value ofCfnDBProxyEndpointProps.getDbProxyEndpointName()- Parameters:
dbProxyEndpointName- The name of the DB proxy endpoint to create. This parameter is required.- Returns:
this
-
dbProxyName
Sets the value ofCfnDBProxyEndpointProps.getDbProxyName()- Parameters:
dbProxyName- The name of the DB proxy associated with the DB proxy endpoint that you create. This parameter is required.- Returns:
this
-
vpcSubnetIds
Sets the value ofCfnDBProxyEndpointProps.getVpcSubnetIds()- Parameters:
vpcSubnetIds- The VPC subnet IDs for the DB proxy endpoint that you create. This parameter is required. You can specify a different set of subnet IDs than for the original DB proxy.- Returns:
this
-
tags
@Stability(Stable) public CfnDBProxyEndpointProps.Builder tags(List<? extends CfnDBProxyEndpoint.TagFormatProperty> tags) Sets the value ofCfnDBProxyEndpointProps.getTags()- Parameters:
tags- An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.- Returns:
this
-
targetRole
Sets the value ofCfnDBProxyEndpointProps.getTargetRole()- Parameters:
targetRole- A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations. Valid Values:READ_WRITE | READ_ONLY- Returns:
this
-
vpcSecurityGroupIds
@Stability(Stable) public CfnDBProxyEndpointProps.Builder vpcSecurityGroupIds(List<String> vpcSecurityGroupIds) Sets the value ofCfnDBProxyEndpointProps.getVpcSecurityGroupIds()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBProxyEndpointProps>- Returns:
- a new instance of
CfnDBProxyEndpointProps - Throws:
NullPointerException- if any required attribute was not provided
-