Interface Attachment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Attachment.Builder,
,Attachment> SdkBuilder<Attachment.Builder,
,Attachment> SdkPojo
- Enclosing class:
Attachment
-
Method Summary
Modifier and TypeMethodDescriptiondetails
(Collection<KeyValuePair> details) Details of the attachment.details
(Consumer<KeyValuePair.Builder>... details) Details of the attachment.details
(KeyValuePair... details) Details of the attachment.The unique identifier for the attachment.The status of the attachment.The type of the attachment, such asElasticNetworkInterface
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
id
The unique identifier for the attachment.
- Parameters:
id
- The unique identifier for the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the attachment, such as
ElasticNetworkInterface
.- Parameters:
type
- The type of the attachment, such asElasticNetworkInterface
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the attachment. Valid values are
PRECREATED
,CREATED
,ATTACHING
,ATTACHED
,DETACHING
,DETACHED
,DELETED
, andFAILED
.- Parameters:
status
- The status of the attachment. Valid values arePRECREATED
,CREATED
,ATTACHING
,ATTACHED
,DETACHING
,DETACHED
,DELETED
, andFAILED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
details
Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.
- Parameters:
details
- Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
details
Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.
- Parameters:
details
- Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
details
Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.
This is a convenience method that creates an instance of theKeyValuePair.Builder
avoiding the need to create one manually viaKeyValuePair.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todetails(List<KeyValuePair>)
.- Parameters:
details
- a consumer that will call methods onKeyValuePair.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-