Class SecondaryInterfaceAttachment
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.SecondaryInterfaceAttachment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SecondaryInterfaceAttachment.Builder,SecondaryInterfaceAttachment>
@Generated("software.amazon.awssdk:codegen") public final class SecondaryInterfaceAttachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SecondaryInterfaceAttachment.Builder,SecondaryInterfaceAttachment>
Describes the attachment of a secondary interface to an instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSecondaryInterfaceAttachment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringattachmentId()The ID of the attachment.InstantattachTime()The timestamp when the attachment was created.static SecondaryInterfaceAttachment.Builderbuilder()BooleandeleteOnTermination()Indicates whether the secondary interface is deleted when the instance is terminated.IntegerdeviceIndex()The device index of the secondary interface.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceId()The ID of the instance to which the secondary interface is attached.StringinstanceOwnerId()The Amazon Web Services account ID of the owner of the instance.IntegernetworkCardIndex()The index of the network card.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SecondaryInterfaceAttachment.Builder>serializableBuilderClass()AttachmentStatusstatus()The attachment state.StringstatusAsString()The attachment state.SecondaryInterfaceAttachment.BuildertoBuilder()StringtoString()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
-
attachmentId
public final String attachmentId()
The ID of the attachment.
- Returns:
- The ID of the attachment.
-
attachTime
public final Instant attachTime()
The timestamp when the attachment was created.
- Returns:
- The timestamp when the attachment was created.
-
deleteOnTermination
public final Boolean deleteOnTermination()
Indicates whether the secondary interface is deleted when the instance is terminated.
The only supported value for this field is
true.- Returns:
- Indicates whether the secondary interface is deleted when the instance is terminated.
The only supported value for this field is
true.
-
deviceIndex
public final Integer deviceIndex()
The device index of the secondary interface.
- Returns:
- The device index of the secondary interface.
-
instanceId
public final String instanceId()
The ID of the instance to which the secondary interface is attached.
- Returns:
- The ID of the instance to which the secondary interface is attached.
-
instanceOwnerId
public final String instanceOwnerId()
The Amazon Web Services account ID of the owner of the instance.
- Returns:
- The Amazon Web Services account ID of the owner of the instance.
-
networkCardIndex
public final Integer networkCardIndex()
The index of the network card.
- Returns:
- The index of the network card.
-
status
public final AttachmentStatus status()
The attachment state.
If the service returns an enum value that is not available in the current SDK version,
statuswill 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,
statuswill returnAttachmentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The attachment state.
- See Also:
AttachmentStatus
-
toBuilder
public SecondaryInterfaceAttachment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SecondaryInterfaceAttachment.Builder,SecondaryInterfaceAttachment>
-
builder
public static SecondaryInterfaceAttachment.Builder builder()
-
serializableBuilderClass
public static Class<? extends SecondaryInterfaceAttachment.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-