Class CfnVPNGateway.Builder

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

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

    • create

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

      @Stability(Stable) public CfnVPNGateway.Builder type(String type)
      The type of VPN connection the virtual private gateway supports.

      Parameters:
      type - The type of VPN connection the virtual private gateway supports. This parameter is required.
      Returns:
      this
    • amazonSideAsn

      @Stability(Stable) public CfnVPNGateway.Builder amazonSideAsn(Number amazonSideAsn)
      The private Autonomous System Number (ASN) for the Amazon side of a BGP session.

      Parameters:
      amazonSideAsn - The private Autonomous System Number (ASN) for the Amazon side of a BGP session. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnVPNGateway.Builder tags(List<? extends CfnTag> tags)
      Any tags assigned to the virtual private gateway.

      Parameters:
      tags - Any tags assigned to the virtual private gateway. This parameter is required.
      Returns:
      this
    • build

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