Class CfnVPCGatewayAttachment.Builder

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

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

    • create

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

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

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

      @Stability(Stable) public CfnVPCGatewayAttachment.Builder internetGatewayId(String internetGatewayId)
      The ID of the internet gateway.

      You must specify either InternetGatewayId or VpnGatewayId , but not both.

      Parameters:
      internetGatewayId - The ID of the internet gateway. This parameter is required.
      Returns:
      this
    • vpnGatewayId

      @Stability(Stable) public CfnVPCGatewayAttachment.Builder vpnGatewayId(String vpnGatewayId)
      The ID of the virtual private gateway.

      You must specify either InternetGatewayId or VpnGatewayId , but not both.

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

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