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