Class CfnSubnetRouteTableAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSubnetRouteTableAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetRouteTableAssociationProps>
- Enclosing interface:
CfnSubnetRouteTableAssociationProps
@Stability(Stable)
public static final class CfnSubnetRouteTableAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetRouteTableAssociationProps>
A builder for
CfnSubnetRouteTableAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.routeTableId(String routeTableId) Sets the value ofCfnSubnetRouteTableAssociationProps.getRouteTableId()Sets the value ofCfnSubnetRouteTableAssociationProps.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
routeTableId
@Stability(Stable) public CfnSubnetRouteTableAssociationProps.Builder routeTableId(String routeTableId) Sets the value ofCfnSubnetRouteTableAssociationProps.getRouteTableId()- Parameters:
routeTableId- The ID of the route table. This parameter is required. The physical ID changes when the route table ID is changed.- Returns:
this
-
subnetId
Sets the value ofCfnSubnetRouteTableAssociationProps.getSubnetId()- Parameters:
subnetId- The ID of the subnet. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetRouteTableAssociationProps>- Returns:
- a new instance of
CfnSubnetRouteTableAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-