Class VpnGateway.Builder

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

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

    • create

      @Stability(Stable) public static VpnGateway.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of VpnGateway.Builder.
    • type

      @Stability(Stable) public VpnGateway.Builder type(String type)
      Default type ipsec.1.

      Parameters:
      type - Default type ipsec.1. This parameter is required.
      Returns:
      this
    • amazonSideAsn

      @Stability(Stable) public VpnGateway.Builder amazonSideAsn(Number amazonSideAsn)
      Explicitly specify an Asn or let aws pick an Asn for you.

      Default: 65000

      Parameters:
      amazonSideAsn - Explicitly specify an Asn or let aws pick an Asn for you. This parameter is required.
      Returns:
      this
    • build

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