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