public class InstanceNetworkInterfaceAttachment
extends java.lang.Object
implements java.io.Serializable
Describes a network interface attachment.
| Constructor and Description |
|---|
InstanceNetworkInterfaceAttachment() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttachmentId()
The ID of the network interface attachment.
|
java.util.Date |
getAttachTime()
The time stamp when the attachment initiated.
|
java.lang.Boolean |
getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance
is terminated.
|
java.lang.Integer |
getDeviceIndex()
The index of the device on the instance for the network interface
attachment.
|
java.lang.String |
getStatus()
The attachment state.
|
int |
hashCode() |
java.lang.Boolean |
isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance
is terminated.
|
void |
setAttachmentId(java.lang.String attachmentId)
The ID of the network interface attachment.
|
void |
setAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
|
void |
setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance
is terminated.
|
void |
setDeviceIndex(java.lang.Integer deviceIndex)
The index of the device on the instance for the network interface
attachment.
|
void |
setStatus(AttachmentStatus status)
The attachment state.
|
void |
setStatus(java.lang.String status)
The attachment state.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceNetworkInterfaceAttachment |
withAttachmentId(java.lang.String attachmentId)
The ID of the network interface attachment.
|
InstanceNetworkInterfaceAttachment |
withAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
|
InstanceNetworkInterfaceAttachment |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance
is terminated.
|
InstanceNetworkInterfaceAttachment |
withDeviceIndex(java.lang.Integer deviceIndex)
The index of the device on the instance for the network interface
attachment.
|
InstanceNetworkInterfaceAttachment |
withStatus(AttachmentStatus status)
The attachment state.
|
InstanceNetworkInterfaceAttachment |
withStatus(java.lang.String status)
The attachment state.
|
public java.lang.String getAttachmentId()
public void setAttachmentId(java.lang.String attachmentId)
attachmentId - The ID of the network interface attachment.public InstanceNetworkInterfaceAttachment withAttachmentId(java.lang.String attachmentId)
Returns a reference to this object so that method calls can be chained together.
attachmentId - The ID of the network interface attachment.public java.lang.Integer getDeviceIndex()
public void setDeviceIndex(java.lang.Integer deviceIndex)
deviceIndex - The index of the device on the instance for the network interface
attachment.public InstanceNetworkInterfaceAttachment withDeviceIndex(java.lang.Integer deviceIndex)
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.public java.lang.String getStatus()
Constraints:
Allowed Values: attaching, attached, detaching, detached
AttachmentStatuspublic void setStatus(java.lang.String status)
Constraints:
Allowed Values: attaching, attached, detaching, detached
status - The attachment state.AttachmentStatuspublic InstanceNetworkInterfaceAttachment withStatus(java.lang.String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
status - The attachment state.AttachmentStatuspublic void setStatus(AttachmentStatus status)
Constraints:
Allowed Values: attaching, attached, detaching, detached
status - The attachment state.AttachmentStatuspublic InstanceNetworkInterfaceAttachment withStatus(AttachmentStatus status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
status - The attachment state.AttachmentStatuspublic java.util.Date getAttachTime()
public void setAttachTime(java.util.Date attachTime)
attachTime - The time stamp when the attachment initiated.public InstanceNetworkInterfaceAttachment withAttachTime(java.util.Date attachTime)
Returns a reference to this object so that method calls can be chained together.
attachTime - The time stamp when the attachment initiated.public java.lang.Boolean isDeleteOnTermination()
public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
deleteOnTermination - Indicates whether the network interface is deleted when the instance
is terminated.public InstanceNetworkInterfaceAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
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.public java.lang.Boolean getDeleteOnTermination()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.