public class NetworkInterfaceAttachment
extends java.lang.Object
implements java.io.Serializable
Describes a network interface attachment.
Constructor and Description |
---|
NetworkInterfaceAttachment() |
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 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.
|
public java.lang.String getAttachmentId()
public void setAttachmentId(java.lang.String attachmentId)
attachmentId
- The ID of the network interface attachment.public NetworkInterfaceAttachment 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.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the instance.public NetworkInterfaceAttachment withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance.public java.lang.String getInstanceOwnerId()
public void setInstanceOwnerId(java.lang.String instanceOwnerId)
instanceOwnerId
- The AWS account ID of the owner of the instance.public NetworkInterfaceAttachment withInstanceOwnerId(java.lang.String instanceOwnerId)
Returns a reference to this object so that method calls can be chained together.
instanceOwnerId
- The AWS account ID of the owner of the instance.public java.lang.Integer getDeviceIndex()
public void setDeviceIndex(java.lang.Integer deviceIndex)
deviceIndex
- The device index of the network interface attachment on the instance.public NetworkInterfaceAttachment withDeviceIndex(java.lang.Integer deviceIndex)
Returns a reference to this object so that method calls can be chained together.
deviceIndex
- The device index of the network interface attachment on the instance.public java.lang.String getStatus()
Constraints:
Allowed Values: attaching, attached, detaching, detached
AttachmentStatus
public void setStatus(java.lang.String status)
Constraints:
Allowed Values: attaching, attached, detaching, detached
status
- The attachment state.AttachmentStatus
public NetworkInterfaceAttachment 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.AttachmentStatus
public void setStatus(AttachmentStatus status)
Constraints:
Allowed Values: attaching, attached, detaching, detached
status
- The attachment state.AttachmentStatus
public NetworkInterfaceAttachment 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.AttachmentStatus
public java.util.Date getAttachTime()
public void setAttachTime(java.util.Date attachTime)
attachTime
- The timestamp indicating when the attachment initiated.public NetworkInterfaceAttachment withAttachTime(java.util.Date attachTime)
Returns a reference to this object so that method calls can be chained together.
attachTime
- The timestamp indicating 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 NetworkInterfaceAttachment 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.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.