Class CfnVPNGatewayRoutePropagation.Builder

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

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

    • create

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

      @Stability(Stable) public CfnVPNGatewayRoutePropagation.Builder routeTableIds(List<String> routeTableIds)
      The ID of the route table.

      The routing table must be associated with the same VPC that the virtual private gateway is attached to.

      Parameters:
      routeTableIds - The ID of the route table. This parameter is required.
      Returns:
      this
    • vpnGatewayId

      @Stability(Stable) public CfnVPNGatewayRoutePropagation.Builder vpnGatewayId(String vpnGatewayId)
      The ID of the virtual private gateway that is attached to a VPC.

      The virtual private gateway must be attached to the same VPC that the routing tables are associated with.

      Parameters:
      vpnGatewayId - The ID of the virtual private gateway that is attached to a VPC. This parameter is required.
      Returns:
      this
    • build

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