Class CfnRouteTableProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnRouteTableProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRouteTableProps>
- Enclosing interface:
CfnRouteTableProps
@Stability(Stable)
public static final class CfnRouteTableProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRouteTableProps>
A builder for
CfnRouteTableProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRouteTableProps.getTags()
Sets the value ofCfnRouteTableProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpcId
Sets the value ofCfnRouteTableProps.getVpcId()
- Parameters:
vpcId
- The ID of the VPC. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnRouteTableProps.getTags()
- Parameters:
tags
- Any tags assigned to the route table.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRouteTableProps>
- Returns:
- a new instance of
CfnRouteTableProps
- Throws:
NullPointerException
- if any required attribute was not provided
-