Class CfnVPCGatewayAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCGatewayAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCGatewayAttachmentProps>
- Enclosing interface:
- CfnVPCGatewayAttachmentProps
@Stability(Stable)
public static final class CfnVPCGatewayAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCGatewayAttachmentProps>
A builder for
CfnVPCGatewayAttachmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.internetGatewayId(String internetGatewayId) Sets the value ofCfnVPCGatewayAttachmentProps.getInternetGatewayId()Sets the value ofCfnVPCGatewayAttachmentProps.getVpcId()vpnGatewayId(String vpnGatewayId) Sets the value ofCfnVPCGatewayAttachmentProps.getVpnGatewayId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpcId
Sets the value ofCfnVPCGatewayAttachmentProps.getVpcId()- Parameters:
vpcId- The ID of the VPC. This parameter is required.- Returns:
this
-
internetGatewayId
@Stability(Stable) public CfnVPCGatewayAttachmentProps.Builder internetGatewayId(String internetGatewayId) Sets the value ofCfnVPCGatewayAttachmentProps.getInternetGatewayId()- Parameters:
internetGatewayId- The ID of the internet gateway. You must specify eitherInternetGatewayIdorVpnGatewayId, but not both.- Returns:
this
-
vpnGatewayId
Sets the value ofCfnVPCGatewayAttachmentProps.getVpnGatewayId()- Parameters:
vpnGatewayId- The ID of the virtual private gateway. You must specify eitherInternetGatewayIdorVpnGatewayId, but not both.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCGatewayAttachmentProps>- Returns:
- a new instance of
CfnVPCGatewayAttachmentProps - Throws:
NullPointerException- if any required attribute was not provided
-