Class DatabaseProxyAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.rds.DatabaseProxyAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseProxyAttributes>
- Enclosing interface:
- DatabaseProxyAttributes
@Stability(Stable)
public static final class DatabaseProxyAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseProxyAttributes>
A builder for
DatabaseProxyAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dbProxyArn
(String dbProxyArn) Sets the value ofDatabaseProxyAttributes.getDbProxyArn()
dbProxyName
(String dbProxyName) Sets the value ofDatabaseProxyAttributes.getDbProxyName()
Sets the value ofDatabaseProxyAttributes.getEndpoint()
securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofDatabaseProxyAttributes.getSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dbProxyArn
Sets the value ofDatabaseProxyAttributes.getDbProxyArn()
- Parameters:
dbProxyArn
- DB Proxy ARN. This parameter is required.- Returns:
this
-
dbProxyName
Sets the value ofDatabaseProxyAttributes.getDbProxyName()
- Parameters:
dbProxyName
- DB Proxy Name. This parameter is required.- Returns:
this
-
endpoint
Sets the value ofDatabaseProxyAttributes.getEndpoint()
- Parameters:
endpoint
- Endpoint. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Stable) public DatabaseProxyAttributes.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofDatabaseProxyAttributes.getSecurityGroups()
- Parameters:
securityGroups
- The security groups of the instance. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DatabaseProxyAttributes>
- Returns:
- a new instance of
DatabaseProxyAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-