Class CfnVPNConnectionRouteProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPNConnectionRouteProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPNConnectionRouteProps>
- Enclosing interface:
CfnVPNConnectionRouteProps
@Stability(Stable)
public static final class CfnVPNConnectionRouteProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPNConnectionRouteProps>
A builder for
CfnVPNConnectionRouteProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destinationCidrBlock
(String destinationCidrBlock) Sets the value ofCfnVPNConnectionRouteProps.getDestinationCidrBlock()
vpnConnectionId
(String vpnConnectionId) Sets the value ofCfnVPNConnectionRouteProps.getVpnConnectionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationCidrBlock
@Stability(Stable) public CfnVPNConnectionRouteProps.Builder destinationCidrBlock(String destinationCidrBlock) Sets the value ofCfnVPNConnectionRouteProps.getDestinationCidrBlock()
- Parameters:
destinationCidrBlock
- The CIDR block associated with the local subnet of the customer network. This parameter is required.- Returns:
this
-
vpnConnectionId
@Stability(Stable) public CfnVPNConnectionRouteProps.Builder vpnConnectionId(String vpnConnectionId) Sets the value ofCfnVPNConnectionRouteProps.getVpnConnectionId()
- Parameters:
vpnConnectionId
- The ID of the VPN connection. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPNConnectionRouteProps>
- Returns:
- a new instance of
CfnVPNConnectionRouteProps
- Throws:
NullPointerException
- if any required attribute was not provided
-