public static final class CfnVPCGatewayAttachmentProps.Builder
extends java.lang.Object
CfnVPCGatewayAttachmentProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnVPCGatewayAttachmentProps |
build()
Builds the configured instance.
|
CfnVPCGatewayAttachmentProps.Builder |
internetGatewayId(java.lang.String internetGatewayId)
Sets the value of
CfnVPCGatewayAttachmentProps.getInternetGatewayId() |
CfnVPCGatewayAttachmentProps.Builder |
vpcId(java.lang.String vpcId)
Sets the value of
CfnVPCGatewayAttachmentProps.getVpcId() |
CfnVPCGatewayAttachmentProps.Builder |
vpnGatewayId(java.lang.String vpnGatewayId)
Sets the value of
CfnVPCGatewayAttachmentProps.getVpnGatewayId() |
public CfnVPCGatewayAttachmentProps.Builder vpcId(java.lang.String vpcId)
CfnVPCGatewayAttachmentProps.getVpcId()
vpcId
- The ID of the VPC. This parameter is required.this
public CfnVPCGatewayAttachmentProps.Builder internetGatewayId(java.lang.String internetGatewayId)
CfnVPCGatewayAttachmentProps.getInternetGatewayId()
internetGatewayId
- The ID of the internet gateway.
You must specify either InternetGatewayId
or VpnGatewayId
, but not both.this
public CfnVPCGatewayAttachmentProps.Builder vpnGatewayId(java.lang.String vpnGatewayId)
CfnVPCGatewayAttachmentProps.getVpnGatewayId()
vpnGatewayId
- The ID of the virtual private gateway.
You must specify either InternetGatewayId
or VpnGatewayId
, but not both.this
public CfnVPCGatewayAttachmentProps build()
CfnVPCGatewayAttachmentProps
java.lang.NullPointerException
- if any required attribute was not provided