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