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