public class NetworkInterfaceAttachment
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a network interface attachment.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attachmentId
The ID of the network interface attachment.
|
private java.util.Date |
attachTime
The timestamp indicating when the attachment initiated.
|
private java.lang.Boolean |
deleteOnTermination
Indicates whether the network interface is deleted when the instance is
terminated.
|
private java.lang.Integer |
deviceIndex
The device index of the network interface attachment on the instance.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.String |
instanceOwnerId
The AWS account ID of the owner of the instance.
|
private java.lang.String |
status
The attachment state.
|
Constructor and Description |
---|
NetworkInterfaceAttachment() |
Modifier and Type | Method and Description |
---|---|
NetworkInterfaceAttachment |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttachmentId()
The ID of the network interface attachment.
|
java.util.Date |
getAttachTime()
The timestamp indicating 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 device index of the network interface attachment on the instance.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getInstanceOwnerId()
The AWS account ID of the owner of the instance.
|
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 timestamp indicating 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 device index of the network interface attachment on the instance.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.
|
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.
|
NetworkInterfaceAttachment |
withAttachmentId(java.lang.String attachmentId)
The ID of the network interface attachment.
|
NetworkInterfaceAttachment |
withAttachTime(java.util.Date attachTime)
The timestamp indicating when the attachment initiated.
|
NetworkInterfaceAttachment |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is
terminated.
|
NetworkInterfaceAttachment |
withDeviceIndex(java.lang.Integer deviceIndex)
The device index of the network interface attachment on the instance.
|
NetworkInterfaceAttachment |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
NetworkInterfaceAttachment |
withInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.
|
NetworkInterfaceAttachment |
withStatus(AttachmentStatus status)
The attachment state.
|
NetworkInterfaceAttachment |
withStatus(java.lang.String status)
The attachment state.
|
private java.lang.String attachmentId
The ID of the network interface attachment.
private java.lang.String instanceId
The ID of the instance.
private java.lang.String instanceOwnerId
The AWS account ID of the owner of the instance.
private java.lang.Integer deviceIndex
The device index of the network interface attachment on the instance.
private java.lang.String status
The attachment state.
private java.util.Date attachTime
The timestamp indicating when the attachment initiated.
private java.lang.Boolean deleteOnTermination
Indicates whether the network interface is deleted when the instance is terminated.
public void setAttachmentId(java.lang.String attachmentId)
The ID of the network interface attachment.
attachmentId
- The ID of the network interface attachment.public java.lang.String getAttachmentId()
The ID of the network interface attachment.
public NetworkInterfaceAttachment withAttachmentId(java.lang.String attachmentId)
The ID of the network interface attachment.
attachmentId
- The ID of the network interface attachment.public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public NetworkInterfaceAttachment withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.
instanceOwnerId
- The AWS account ID of the owner of the instance.public java.lang.String getInstanceOwnerId()
The AWS account ID of the owner of the instance.
public NetworkInterfaceAttachment withInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.
instanceOwnerId
- The AWS account ID of the owner of the instance.public void setDeviceIndex(java.lang.Integer deviceIndex)
The device index of the network interface attachment on the instance.
deviceIndex
- The device index of the network interface attachment on the
instance.public java.lang.Integer getDeviceIndex()
The device index of the network interface attachment on the instance.
public NetworkInterfaceAttachment withDeviceIndex(java.lang.Integer deviceIndex)
The device index of the network interface attachment on the instance.
deviceIndex
- The device index of the network interface attachment on the
instance.public void setStatus(java.lang.String status)
The attachment state.
status
- The attachment state.AttachmentStatus
public java.lang.String getStatus()
The attachment state.
AttachmentStatus
public NetworkInterfaceAttachment withStatus(java.lang.String status)
The attachment state.
status
- The attachment state.AttachmentStatus
public void setStatus(AttachmentStatus status)
The attachment state.
status
- The attachment state.AttachmentStatus
public NetworkInterfaceAttachment withStatus(AttachmentStatus status)
The attachment state.
status
- The attachment state.AttachmentStatus
public void setAttachTime(java.util.Date attachTime)
The timestamp indicating when the attachment initiated.
attachTime
- The timestamp indicating when the attachment initiated.public java.util.Date getAttachTime()
The timestamp indicating when the attachment initiated.
public NetworkInterfaceAttachment withAttachTime(java.util.Date attachTime)
The timestamp indicating when the attachment initiated.
attachTime
- The timestamp indicating when the attachment initiated.public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
deleteOnTermination
- Indicates whether the network interface is deleted when the
instance is terminated.public java.lang.Boolean getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public NetworkInterfaceAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
deleteOnTermination
- Indicates whether the network interface is deleted when the
instance is terminated.public java.lang.Boolean isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public NetworkInterfaceAttachment clone()
clone
in class java.lang.Object