Class CfnRouteTable.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.CfnRouteTable.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRouteTable>
Enclosing class:
CfnRouteTable

@Stability(Stable) public static final class CfnRouteTable.Builder extends Object implements software.amazon.jsii.Builder<CfnRouteTable>
A fluent builder for CfnRouteTable.
  • Method Details

    • create

      @Stability(Stable) public static CfnRouteTable.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnRouteTable.Builder.
    • vpcId

      @Stability(Stable) public CfnRouteTable.Builder vpcId(String vpcId)
      The ID of the VPC.

      Parameters:
      vpcId - The ID of the VPC. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnRouteTable.Builder tags(List<? extends CfnTag> tags)
      Any tags assigned to the route table.

      Parameters:
      tags - Any tags assigned to the route table. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnRouteTable build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRouteTable>
      Returns:
      a newly built instance of CfnRouteTable.