Class InstanceNetworkInterfaceAttachment
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.InstanceNetworkInterfaceAttachment
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<InstanceNetworkInterfaceAttachment.Builder,InstanceNetworkInterfaceAttachment>
@Generated("software.amazon.awssdk:codegen") public final class InstanceNetworkInterfaceAttachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceNetworkInterfaceAttachment.Builder,InstanceNetworkInterfaceAttachment>
Describes a network interface attachment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
InstanceNetworkInterfaceAttachment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
attachmentId()
The ID of the network interface attachment.Instant
attachTime()
The time stamp when the attachment initiated.static InstanceNetworkInterfaceAttachment.Builder
builder()
Boolean
deleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.Integer
deviceIndex()
The index of the device on the instance for the network interface attachment.InstanceAttachmentEnaSrdSpecification
enaSrdSpecification()
Contains the ENA Express settings for the network interface that's attached to the instance.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
networkCardIndex()
The index of the network card.List<SdkField<?>>
sdkFields()
static Class<? extends InstanceNetworkInterfaceAttachment.Builder>
serializableBuilderClass()
AttachmentStatus
status()
The attachment state.String
statusAsString()
The attachment state.InstanceNetworkInterfaceAttachment.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
attachTime
public final Instant attachTime()
The time stamp when the attachment initiated.
- Returns:
- The time stamp when the attachment initiated.
-
attachmentId
public final String attachmentId()
The ID of the network interface attachment.
- Returns:
- The ID of the network interface attachment.
-
deleteOnTermination
public final Boolean deleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
- Returns:
- Indicates whether the network interface is deleted when the instance is terminated.
-
deviceIndex
public final Integer deviceIndex()
The index of the device on the instance for the network interface attachment.
- Returns:
- The index of the device on the instance for the network interface attachment.
-
status
public final AttachmentStatus status()
The attachment state.
If the service returns an enum value that is not available in the current SDK version,
status
will returnAttachmentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The attachment state.
- See Also:
AttachmentStatus
-
statusAsString
public final String statusAsString()
The attachment state.
If the service returns an enum value that is not available in the current SDK version,
status
will returnAttachmentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The attachment state.
- See Also:
AttachmentStatus
-
networkCardIndex
public final Integer networkCardIndex()
The index of the network card.
- Returns:
- The index of the network card.
-
enaSrdSpecification
public final InstanceAttachmentEnaSrdSpecification enaSrdSpecification()
Contains the ENA Express settings for the network interface that's attached to the instance.
- Returns:
- Contains the ENA Express settings for the network interface that's attached to the instance.
-
toBuilder
public InstanceNetworkInterfaceAttachment.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<InstanceNetworkInterfaceAttachment.Builder,InstanceNetworkInterfaceAttachment>
-
builder
public static InstanceNetworkInterfaceAttachment.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceNetworkInterfaceAttachment.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-