Class DatabaseProxyEndpointOptions.Builder
java.lang.Object
software.amazon.awscdk.services.rds.DatabaseProxyEndpointOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseProxyEndpointOptions>
- Enclosing interface:
DatabaseProxyEndpointOptions
@Stability(Stable)
public static final class DatabaseProxyEndpointOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseProxyEndpointOptions>
A builder for
DatabaseProxyEndpointOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dbProxyEndpointName(String dbProxyEndpointName) Sets the value ofDatabaseProxyEndpointOptions.getDbProxyEndpointName()securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofDatabaseProxyEndpointOptions.getSecurityGroups()targetRole(ProxyEndpointTargetRole targetRole) Sets the value ofDatabaseProxyEndpointOptions.getTargetRole()Sets the value ofDatabaseProxyEndpointOptions.getVpc()vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofDatabaseProxyEndpointOptions.getVpcSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofDatabaseProxyEndpointOptions.getVpc()- Parameters:
vpc- The VPC of the DB proxy endpoint. This parameter is required.- Returns:
this
-
dbProxyEndpointName
@Stability(Stable) public DatabaseProxyEndpointOptions.Builder dbProxyEndpointName(String dbProxyEndpointName) Sets the value ofDatabaseProxyEndpointOptions.getDbProxyEndpointName()- Parameters:
dbProxyEndpointName- The name of the DB proxy endpoint.- Returns:
this
-
securityGroups
@Stability(Stable) public DatabaseProxyEndpointOptions.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofDatabaseProxyEndpointOptions.getSecurityGroups()- Parameters:
securityGroups- The VPC security groups to associate with the new proxy endpoint.- Returns:
this
-
targetRole
@Stability(Stable) public DatabaseProxyEndpointOptions.Builder targetRole(ProxyEndpointTargetRole targetRole) Sets the value ofDatabaseProxyEndpointOptions.getTargetRole()- Parameters:
targetRole- A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.- Returns:
this
-
vpcSubnets
@Stability(Stable) public DatabaseProxyEndpointOptions.Builder vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofDatabaseProxyEndpointOptions.getVpcSubnets()- Parameters:
vpcSubnets- The subnets of DB proxy endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatabaseProxyEndpointOptions>- Returns:
- a new instance of
DatabaseProxyEndpointOptions - Throws:
NullPointerException- if any required attribute was not provided
-