Class CfnLocalGatewayRoute.Builder

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

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

    • create

      @Stability(Stable) public static CfnLocalGatewayRoute.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 CfnLocalGatewayRoute.Builder.
    • destinationCidrBlock

      @Stability(Stable) public CfnLocalGatewayRoute.Builder destinationCidrBlock(String destinationCidrBlock)
      The CIDR block used for destination matches.

      Parameters:
      destinationCidrBlock - The CIDR block used for destination matches. This parameter is required.
      Returns:
      this
    • localGatewayRouteTableId

      @Stability(Stable) public CfnLocalGatewayRoute.Builder localGatewayRouteTableId(String localGatewayRouteTableId)
      The ID of the local gateway route table.

      Parameters:
      localGatewayRouteTableId - The ID of the local gateway route table. This parameter is required.
      Returns:
      this
    • localGatewayVirtualInterfaceGroupId

      @Stability(Stable) public CfnLocalGatewayRoute.Builder localGatewayVirtualInterfaceGroupId(String localGatewayVirtualInterfaceGroupId)
      The ID of the virtual interface group.

      Parameters:
      localGatewayVirtualInterfaceGroupId - The ID of the virtual interface group. This parameter is required.
      Returns:
      this
    • networkInterfaceId

      @Stability(Stable) public CfnLocalGatewayRoute.Builder networkInterfaceId(String networkInterfaceId)
      The ID of the network interface.

      Parameters:
      networkInterfaceId - The ID of the network interface. This parameter is required.
      Returns:
      this
    • build

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