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