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