Class CfnTransitGatewayVpcAttachment.Builder

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

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

    • create

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

      @Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder subnetIds(List<String> subnetIds)
      The IDs of the subnets.

      Parameters:
      subnetIds - The IDs of the subnets. This parameter is required.
      Returns:
      this
    • transitGatewayId

      @Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder transitGatewayId(String transitGatewayId)
      The ID of the transit gateway.

      Parameters:
      transitGatewayId - The ID of the transit gateway. This parameter is required.
      Returns:
      this
    • vpcId

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

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

      @Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder addSubnetIds(List<String> addSubnetIds)
      The IDs of one or more subnets to add.

      You can specify at most one subnet per Availability Zone.

      Parameters:
      addSubnetIds - The IDs of one or more subnets to add. This parameter is required.
      Returns:
      this
    • options

      @Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder options(Object options)
      The VPC attachment options, in JSON or YAML.

      • ApplianceModeSupport - Set to enable or disable . The default is disable .
      • DnsSupport - Set to enable or disable . The default is enable .
      • Ipv6Support - Set to enable or disable . The default is disable .

      Parameters:
      options - The VPC attachment options, in JSON or YAML. This parameter is required.
      Returns:
      this
    • removeSubnetIds

      @Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder removeSubnetIds(List<String> removeSubnetIds)
      The IDs of one or more subnets to remove.

      Parameters:
      removeSubnetIds - The IDs of one or more subnets to remove. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder tags(List<? extends CfnTag> tags)
      The tags for the VPC attachment.

      Parameters:
      tags - The tags for the VPC attachment. This parameter is required.
      Returns:
      this
    • build

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