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