Class DatabaseProxyEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.rds.DatabaseProxyEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseProxyEndpointProps>
- Enclosing interface:
DatabaseProxyEndpointProps
@Stability(Stable)
public static final class DatabaseProxyEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseProxyEndpointProps>
A builder for
DatabaseProxyEndpointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dbProxy(IDatabaseProxy dbProxy) Sets the value ofDatabaseProxyEndpointProps.getDbProxy()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
-
dbProxy
Sets the value ofDatabaseProxyEndpointProps.getDbProxy()- Parameters:
dbProxy- The DB proxy associated with the DB proxy endpoint. This parameter is required.- Returns:
this
-
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 DatabaseProxyEndpointProps.Builder dbProxyEndpointName(String dbProxyEndpointName) Sets the value ofDatabaseProxyEndpointOptions.getDbProxyEndpointName()- Parameters:
dbProxyEndpointName- The name of the DB proxy endpoint.- Returns:
this
-
securityGroups
@Stability(Stable) public DatabaseProxyEndpointProps.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 DatabaseProxyEndpointProps.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
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<DatabaseProxyEndpointProps>- Returns:
- a new instance of
DatabaseProxyEndpointProps - Throws:
NullPointerException- if any required attribute was not provided
-