Class CfnVPNConnectionRoute.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPNConnectionRoute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPNConnectionRoute>
- Enclosing class:
CfnVPNConnectionRoute
@Stability(Stable)
public static final class CfnVPNConnectionRoute.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPNConnectionRoute>
A fluent builder for
CfnVPNConnectionRoute
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
destinationCidrBlock
(String destinationCidrBlock) The CIDR block associated with the local subnet of the customer network.vpnConnectionId
(String vpnConnectionId) The ID of the VPN connection.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnVPNConnectionRoute.Builder
.
-
destinationCidrBlock
@Stability(Stable) public CfnVPNConnectionRoute.Builder destinationCidrBlock(String destinationCidrBlock) The CIDR block associated with the local subnet of the customer network.- Parameters:
destinationCidrBlock
- The CIDR block associated with the local subnet of the customer network. This parameter is required.- Returns:
this
-
vpnConnectionId
The ID of the VPN connection.- Parameters:
vpnConnectionId
- The ID of the VPN connection. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPNConnectionRoute>
- Returns:
- a newly built instance of
CfnVPNConnectionRoute
.
-