Class InternetGatewayProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.InternetGatewayProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InternetGatewayProps>
- Enclosing interface:
InternetGatewayProps
@Stability(Experimental)
public static final class InternetGatewayProps.Builder
extends Object
implements software.amazon.jsii.Builder<InternetGatewayProps>
A builder for
InternetGatewayProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.internetGatewayName(String internetGatewayName) Sets the value ofInternetGatewayProps.getInternetGatewayName()Sets the value ofInternetGatewayProps.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofInternetGatewayProps.getVpc()- Parameters:
vpc- The ID of the VPC for which to create the internet gateway. This parameter is required.- Returns:
this
-
internetGatewayName
@Stability(Experimental) public InternetGatewayProps.Builder internetGatewayName(String internetGatewayName) Sets the value ofInternetGatewayProps.getInternetGatewayName()- Parameters:
internetGatewayName- The resource name of the internet gateway.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InternetGatewayProps>- Returns:
- a new instance of
InternetGatewayProps - Throws:
NullPointerException- if any required attribute was not provided
-