Interface Attachment.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Attachment.Builder,Attachment>,SdkBuilder<Attachment.Builder,Attachment>,SdkPojo
- Enclosing class:
- Attachment
public static interface Attachment.Builder extends SdkPojo, CopyableBuilder<Attachment.Builder,Attachment>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attachment.Builderdetails(Collection<KeyValuePair> details)Details of the attachment.Attachment.Builderdetails(Consumer<KeyValuePair.Builder>... details)Details of the attachment.Attachment.Builderdetails(KeyValuePair... details)Details of the attachment.Attachment.Builderid(String id)The unique identifier for the attachment.Attachment.Builderstatus(String status)The status of the attachment.Attachment.Buildertype(String type)The type of the attachment, such asElasticNetworkInterface,Service Connect, andAmazonElasticBlockStorage.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
id
Attachment.Builder id(String 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
Attachment.Builder type(String type)
The type of the attachment, such as
ElasticNetworkInterface,Service Connect, andAmazonElasticBlockStorage.- Parameters:
type- The type of the attachment, such asElasticNetworkInterface,Service Connect, andAmazonElasticBlockStorage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Attachment.Builder status(String 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
Attachment.Builder details(Collection<KeyValuePair> 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.
For Service Connect services, this includes
portName,clientAliases,discoveryName, andingressPortOverride.For Elastic Block Storage, this includes
roleArn,deleteOnTermination,volumeName,volumeId, andstatusReason(only when the attachment fails to create or attach).- 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.
For Service Connect services, this includes
portName,clientAliases,discoveryName, andingressPortOverride.For Elastic Block Storage, this includes
roleArn,deleteOnTermination,volumeName,volumeId, andstatusReason(only when the attachment fails to create or attach).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
details
Attachment.Builder details(KeyValuePair... 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.
For Service Connect services, this includes
portName,clientAliases,discoveryName, andingressPortOverride.For Elastic Block Storage, this includes
roleArn,deleteOnTermination,volumeName,volumeId, andstatusReason(only when the attachment fails to create or attach).- 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.
For Service Connect services, this includes
portName,clientAliases,discoveryName, andingressPortOverride.For Elastic Block Storage, this includes
roleArn,deleteOnTermination,volumeName,volumeId, andstatusReason(only when the attachment fails to create or attach).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
details
Attachment.Builder details(Consumer<KeyValuePair.Builder>... 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.
For Service Connect services, this includes
portName,clientAliases,discoveryName, andingressPortOverride.For Elastic Block Storage, this includes
This is a convenience method that creates an instance of theroleArn,deleteOnTermination,volumeName,volumeId, andstatusReason(only when the attachment fails to create or attach).KeyValuePair.Builderavoiding the need to create one manually viaKeyValuePair.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#details(List.) - 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:
#details(java.util.Collection)
-
-