Interface InstanceNetworkInterfaceAttachment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceNetworkInterfaceAttachment.Builder,
,InstanceNetworkInterfaceAttachment> SdkBuilder<InstanceNetworkInterfaceAttachment.Builder,
,InstanceNetworkInterfaceAttachment> SdkPojo
- Enclosing class:
InstanceNetworkInterfaceAttachment
public static interface InstanceNetworkInterfaceAttachment.Builder
extends SdkPojo, CopyableBuilder<InstanceNetworkInterfaceAttachment.Builder,InstanceNetworkInterfaceAttachment>
-
Method Summary
Modifier and TypeMethodDescriptionattachmentId
(String attachmentId) The ID of the network interface attachment.attachTime
(Instant attachTime) The time stamp when the attachment initiated.deleteOnTermination
(Boolean deleteOnTermination) Indicates whether the network interface is deleted when the instance is terminated.deviceIndex
(Integer deviceIndex) The index of the device on the instance for the network interface attachment.enaSrdSpecification
(Consumer<InstanceAttachmentEnaSrdSpecification.Builder> enaSrdSpecification) Contains the ENA Express settings for the network interface that's attached to the instance.enaSrdSpecification
(InstanceAttachmentEnaSrdSpecification enaSrdSpecification) Contains the ENA Express settings for the network interface that's attached to the instance.networkCardIndex
(Integer networkCardIndex) The index of the network card.The attachment state.status
(AttachmentStatus status) The attachment state.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
-
attachTime
The time stamp when the attachment initiated.
- Parameters:
attachTime
- The time stamp when the attachment initiated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachmentId
The ID of the network interface attachment.
- Parameters:
attachmentId
- The ID of the network interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteOnTermination
Indicates whether the network interface is deleted when the instance is terminated.
- Parameters:
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceIndex
The index of the device on the instance for the network interface attachment.
- Parameters:
deviceIndex
- The index of the device on the instance for the network interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The attachment state.
- Parameters:
status
- The attachment state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The attachment state.
- Parameters:
status
- The attachment state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkCardIndex
The index of the network card.
- Parameters:
networkCardIndex
- The index of the network card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enaSrdSpecification
InstanceNetworkInterfaceAttachment.Builder enaSrdSpecification(InstanceAttachmentEnaSrdSpecification enaSrdSpecification) Contains the ENA Express settings for the network interface that's attached to the instance.
- Parameters:
enaSrdSpecification
- Contains the ENA Express settings for the network interface that's attached to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enaSrdSpecification
default InstanceNetworkInterfaceAttachment.Builder enaSrdSpecification(Consumer<InstanceAttachmentEnaSrdSpecification.Builder> enaSrdSpecification) Contains the ENA Express settings for the network interface that's attached to the instance.
This is a convenience method that creates an instance of theInstanceAttachmentEnaSrdSpecification.Builder
avoiding the need to create one manually viaInstanceAttachmentEnaSrdSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenaSrdSpecification(InstanceAttachmentEnaSrdSpecification)
.- Parameters:
enaSrdSpecification
- a consumer that will call methods onInstanceAttachmentEnaSrdSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-