Class VPCGatewayAttachmentReference.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VPCGatewayAttachmentReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VPCGatewayAttachmentReference>
- Enclosing interface:
VPCGatewayAttachmentReference
@Stability(Stable)
public static final class VPCGatewayAttachmentReference.Builder
extends Object
implements software.amazon.jsii.Builder<VPCGatewayAttachmentReference>
A builder for
VPCGatewayAttachmentReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachmentType
(String attachmentType) Sets the value ofVPCGatewayAttachmentReference.getAttachmentType()
build()
Builds the configured instance.Sets the value ofVPCGatewayAttachmentReference.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachmentType
@Stability(Stable) public VPCGatewayAttachmentReference.Builder attachmentType(String attachmentType) Sets the value ofVPCGatewayAttachmentReference.getAttachmentType()
- Parameters:
attachmentType
- The AttachmentType of the VPCGatewayAttachment resource. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofVPCGatewayAttachmentReference.getVpcId()
- Parameters:
vpcId
- The VpcId of the VPCGatewayAttachment resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VPCGatewayAttachmentReference>
- Returns:
- a new instance of
VPCGatewayAttachmentReference
- Throws:
NullPointerException
- if any required attribute was not provided
-