Class CfnClientVpnRouteMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnClientVpnRouteMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClientVpnRouteMixinProps>
- Enclosing interface:
CfnClientVpnRouteMixinProps
@Stability(Stable)
public static final class CfnClientVpnRouteMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClientVpnRouteMixinProps>
A builder for
CfnClientVpnRouteMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientVpnEndpointId(String clientVpnEndpointId) Sets the value ofCfnClientVpnRouteMixinProps.getClientVpnEndpointId()description(String description) Sets the value ofCfnClientVpnRouteMixinProps.getDescription()destinationCidrBlock(String destinationCidrBlock) Sets the value ofCfnClientVpnRouteMixinProps.getDestinationCidrBlock()targetVpcSubnetId(String targetVpcSubnetId) Sets the value ofCfnClientVpnRouteMixinProps.getTargetVpcSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientVpnEndpointId
@Stability(Stable) public CfnClientVpnRouteMixinProps.Builder clientVpnEndpointId(String clientVpnEndpointId) Sets the value ofCfnClientVpnRouteMixinProps.getClientVpnEndpointId()- Parameters:
clientVpnEndpointId- The ID of the Client VPN endpoint to which to add the route.- Returns:
this
-
description
Sets the value ofCfnClientVpnRouteMixinProps.getDescription()- Parameters:
description- A brief description of the route.- Returns:
this
-
destinationCidrBlock
@Stability(Stable) public CfnClientVpnRouteMixinProps.Builder destinationCidrBlock(String destinationCidrBlock) Sets the value ofCfnClientVpnRouteMixinProps.getDestinationCidrBlock()- Parameters:
destinationCidrBlock- The IPv4 address range, in CIDR notation, of the route destination. For example:.- To add a route for Internet access, enter
0.0.0.0/0 - To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
- To add a route for an on-premises network, enter the AWS Site-to-Site VPN connection's IPv4 CIDR range
- To add a route for the local network, enter the client CIDR range
- To add a route for Internet access, enter
- Returns:
this
-
targetVpcSubnetId
@Stability(Stable) public CfnClientVpnRouteMixinProps.Builder targetVpcSubnetId(String targetVpcSubnetId) Sets the value ofCfnClientVpnRouteMixinProps.getTargetVpcSubnetId()- Parameters:
targetVpcSubnetId- The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target network of the Client VPN endpoint.Alternatively, if you're adding a route for the local network, specify
local.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClientVpnRouteMixinProps>- Returns:
- a new instance of
CfnClientVpnRouteMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-