Class InternetGateway.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.InternetGateway.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InternetGateway>
- Enclosing class:
InternetGateway
@Stability(Experimental)
public static final class InternetGateway.Builder
extends Object
implements software.amazon.jsii.Builder<InternetGateway>
(experimental) A fluent builder for
InternetGateway
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static InternetGateway.Builder
internetGatewayName
(String internetGatewayName) (experimental) The resource name of the internet gateway.(experimental) The ID of the VPC for which to create the internet gateway.
-
Method Details
-
create
@Stability(Experimental) public static InternetGateway.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
InternetGateway.Builder
.
-
vpc
(experimental) The ID of the VPC for which to create the internet gateway.- Parameters:
vpc
- The ID of the VPC for which to create the internet gateway. This parameter is required.- Returns:
this
-
internetGatewayName
@Stability(Experimental) public InternetGateway.Builder internetGatewayName(String internetGatewayName) (experimental) The resource name of the internet gateway.Default: - provisioned without a resource name
- Parameters:
internetGatewayName
- The resource name of the internet gateway. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<InternetGateway>
- Returns:
- a newly built instance of
InternetGateway
.
-