Class CfnVPNGatewayRoutePropagationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPNGatewayRoutePropagationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPNGatewayRoutePropagationProps>
- Enclosing interface:
CfnVPNGatewayRoutePropagationProps
@Stability(Stable)
public static final class CfnVPNGatewayRoutePropagationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPNGatewayRoutePropagationProps>
A builder for
CfnVPNGatewayRoutePropagationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.routeTableIds(List<String> routeTableIds) Sets the value ofCfnVPNGatewayRoutePropagationProps.getRouteTableIds()vpnGatewayId(String vpnGatewayId) Sets the value ofCfnVPNGatewayRoutePropagationProps.getVpnGatewayId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
routeTableIds
@Stability(Stable) public CfnVPNGatewayRoutePropagationProps.Builder routeTableIds(List<String> routeTableIds) Sets the value ofCfnVPNGatewayRoutePropagationProps.getRouteTableIds()- Parameters:
routeTableIds- The ID of the route table. This parameter is required. The routing table must be associated with the same VPC that the virtual private gateway is attached to.- Returns:
this
-
vpnGatewayId
@Stability(Stable) public CfnVPNGatewayRoutePropagationProps.Builder vpnGatewayId(String vpnGatewayId) Sets the value ofCfnVPNGatewayRoutePropagationProps.getVpnGatewayId()- Parameters:
vpnGatewayId- The ID of the virtual private gateway that is attached to a VPC. This parameter is required. The virtual private gateway must be attached to the same VPC that the routing tables are associated with.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPNGatewayRoutePropagationProps>- Returns:
- a new instance of
CfnVPNGatewayRoutePropagationProps - Throws:
NullPointerException- if any required attribute was not provided
-