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