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