public class InstanceNetworkInterfaceAttachment
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 time stamp 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 index of the device on the instance for the network interface
attachment.
|
private java.lang.String |
status
The attachment state.
|
Constructor and Description |
---|
InstanceNetworkInterfaceAttachment() |
Modifier and Type | Method and Description |
---|---|
InstanceNetworkInterfaceAttachment |
clone() |
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.
|
private java.lang.String attachmentId
The ID of the network interface attachment.
private java.lang.Integer deviceIndex
The index of the device on the instance for the network interface attachment.
private java.lang.String status
The attachment state.
private java.util.Date attachTime
The time stamp 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 InstanceNetworkInterfaceAttachment withAttachmentId(java.lang.String attachmentId)
The ID of the network interface attachment.
attachmentId
- The ID of the network interface attachment.public void setDeviceIndex(java.lang.Integer deviceIndex)
The index of the device on the instance for the network interface attachment.
deviceIndex
- The index of the device on the instance for the network interface
attachment.public java.lang.Integer getDeviceIndex()
The index of the device on the instance for the network interface attachment.
public InstanceNetworkInterfaceAttachment withDeviceIndex(java.lang.Integer deviceIndex)
The index of the device on the instance for the network interface attachment.
deviceIndex
- The index of the device on the instance for the network interface
attachment.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 InstanceNetworkInterfaceAttachment 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 InstanceNetworkInterfaceAttachment withStatus(AttachmentStatus status)
The attachment state.
status
- The attachment state.AttachmentStatus
public void setAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public java.util.Date getAttachTime()
The time stamp when the attachment initiated.
public InstanceNetworkInterfaceAttachment withAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp 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 InstanceNetworkInterfaceAttachment 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 InstanceNetworkInterfaceAttachment clone()
clone
in class java.lang.Object