Class CfnVPCGatewayAttachment.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCGatewayAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCGatewayAttachment>
- Enclosing class:
CfnVPCGatewayAttachment
@Stability(Stable)
public static final class CfnVPCGatewayAttachment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCGatewayAttachment>
A fluent builder for
CfnVPCGatewayAttachment.-
Method Summary
Modifier and TypeMethodDescriptionbuild()internetGatewayId(String internetGatewayId) The ID of the internet gateway.internetGatewayId(IInternetGatewayRef internetGatewayId) The ID of the internet gateway.The ID of the VPC.The ID of the VPC.vpnGatewayId(String vpnGatewayId) The ID of the virtual private gateway.vpnGatewayId(IVPNGatewayRef vpnGatewayId) The ID of the virtual private gateway.
-
Method Details
-
create
@Stability(Stable) public static CfnVPCGatewayAttachment.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnVPCGatewayAttachment.Builder.
-
vpcId
The ID of the VPC.- Parameters:
vpcId- The ID of the VPC. This parameter is required.- Returns:
this- See Also:
-
vpcId
The ID of the VPC.- Parameters:
vpcId- The ID of the VPC. This parameter is required.- Returns:
this- See Also:
-
internetGatewayId
@Stability(Stable) public CfnVPCGatewayAttachment.Builder internetGatewayId(String internetGatewayId) The ID of the internet gateway.You must specify either
InternetGatewayIdorVpnGatewayId, but not both.- Parameters:
internetGatewayId- The ID of the internet gateway. This parameter is required.- Returns:
this- See Also:
-
internetGatewayId
@Stability(Stable) public CfnVPCGatewayAttachment.Builder internetGatewayId(IInternetGatewayRef internetGatewayId) The ID of the internet gateway.You must specify either
InternetGatewayIdorVpnGatewayId, but not both.- Parameters:
internetGatewayId- The ID of the internet gateway. This parameter is required.- Returns:
this- See Also:
-
vpnGatewayId
The ID of the virtual private gateway.You must specify either
InternetGatewayIdorVpnGatewayId, but not both.- Parameters:
vpnGatewayId- The ID of the virtual private gateway. This parameter is required.- Returns:
this- See Also:
-
vpnGatewayId
The ID of the virtual private gateway.You must specify either
InternetGatewayIdorVpnGatewayId, but not both.- Parameters:
vpnGatewayId- The ID of the virtual private gateway. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCGatewayAttachment>- Returns:
- a newly built instance of
CfnVPCGatewayAttachment.
-