Class CfnVerifiedAccessEndpoint.RdsOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVerifiedAccessEndpoint.RdsOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVerifiedAccessEndpoint.RdsOptionsProperty>
- Enclosing interface:
CfnVerifiedAccessEndpoint.RdsOptionsProperty
@Stability(Stable)
public static final class CfnVerifiedAccessEndpoint.RdsOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVerifiedAccessEndpoint.RdsOptionsProperty>
A builder for
CfnVerifiedAccessEndpoint.RdsOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getPort()Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getProtocol()rdsDbClusterArn(String rdsDbClusterArn) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getRdsDbClusterArn()rdsDbInstanceArn(String rdsDbInstanceArn) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getRdsDbInstanceArn()rdsDbProxyArn(String rdsDbProxyArn) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getRdsDbProxyArn()rdsEndpoint(String rdsEndpoint) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getRdsEndpoint()Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
port
Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getPort()- Parameters:
port- The port.- Returns:
this
-
protocol
@Stability(Stable) public CfnVerifiedAccessEndpoint.RdsOptionsProperty.Builder protocol(String protocol) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getProtocol()- Parameters:
protocol- The protocol.- Returns:
this
-
rdsDbClusterArn
@Stability(Stable) public CfnVerifiedAccessEndpoint.RdsOptionsProperty.Builder rdsDbClusterArn(String rdsDbClusterArn) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getRdsDbClusterArn()- Parameters:
rdsDbClusterArn- The ARN of the DB cluster.- Returns:
this
-
rdsDbInstanceArn
@Stability(Stable) public CfnVerifiedAccessEndpoint.RdsOptionsProperty.Builder rdsDbInstanceArn(String rdsDbInstanceArn) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getRdsDbInstanceArn()- Parameters:
rdsDbInstanceArn- The ARN of the RDS instance.- Returns:
this
-
rdsDbProxyArn
@Stability(Stable) public CfnVerifiedAccessEndpoint.RdsOptionsProperty.Builder rdsDbProxyArn(String rdsDbProxyArn) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getRdsDbProxyArn()- Parameters:
rdsDbProxyArn- The ARN of the RDS proxy.- Returns:
this
-
rdsEndpoint
@Stability(Stable) public CfnVerifiedAccessEndpoint.RdsOptionsProperty.Builder rdsEndpoint(String rdsEndpoint) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getRdsEndpoint()- Parameters:
rdsEndpoint- The RDS endpoint.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnVerifiedAccessEndpoint.RdsOptionsProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnVerifiedAccessEndpoint.RdsOptionsProperty.getSubnetIds()- Parameters:
subnetIds- The IDs of the subnets. You can specify only one subnet per Availability Zone.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVerifiedAccessEndpoint.RdsOptionsProperty>- Returns:
- a new instance of
CfnVerifiedAccessEndpoint.RdsOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-