Class CfnClientVpnTargetNetworkAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnClientVpnTargetNetworkAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClientVpnTargetNetworkAssociationProps>
- Enclosing interface:
CfnClientVpnTargetNetworkAssociationProps
@Stability(Stable)
public static final class CfnClientVpnTargetNetworkAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClientVpnTargetNetworkAssociationProps>
A builder for
CfnClientVpnTargetNetworkAssociationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clientVpnEndpointId
(String clientVpnEndpointId) Sets the value ofCfnClientVpnTargetNetworkAssociationProps.getClientVpnEndpointId()
Sets the value ofCfnClientVpnTargetNetworkAssociationProps.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientVpnEndpointId
@Stability(Stable) public CfnClientVpnTargetNetworkAssociationProps.Builder clientVpnEndpointId(String clientVpnEndpointId) Sets the value ofCfnClientVpnTargetNetworkAssociationProps.getClientVpnEndpointId()
- Parameters:
clientVpnEndpointId
- The ID of the Client VPN endpoint. This parameter is required.- Returns:
this
-
subnetId
@Stability(Stable) public CfnClientVpnTargetNetworkAssociationProps.Builder subnetId(String subnetId) Sets the value ofCfnClientVpnTargetNetworkAssociationProps.getSubnetId()
- Parameters:
subnetId
- The ID of the subnet to associate with the Client VPN endpoint. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnClientVpnTargetNetworkAssociationProps>
- Returns:
- a new instance of
CfnClientVpnTargetNetworkAssociationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-