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