public class InstanceNetworkInterfaceAttachment extends Object implements Serializable
Describes a network interface attachment.
Constructor and Description |
---|
InstanceNetworkInterfaceAttachment() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAttachmentId()
The ID of the network interface attachment.
|
Date |
getAttachTime()
The time stamp when the attachment initiated.
|
Boolean |
getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance
is terminated.
|
Integer |
getDeviceIndex()
The index of the device on the instance for the network interface
attachment.
|
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 time stamp 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 index of the device on the instance for the network interface
attachment.
|
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.
|
InstanceNetworkInterfaceAttachment |
withAttachmentId(String attachmentId)
The ID of the network interface attachment.
|
InstanceNetworkInterfaceAttachment |
withAttachTime(Date attachTime)
The time stamp when the attachment initiated.
|
InstanceNetworkInterfaceAttachment |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance
is terminated.
|
InstanceNetworkInterfaceAttachment |
withDeviceIndex(Integer deviceIndex)
The index of the device on the instance for the network interface
attachment.
|
InstanceNetworkInterfaceAttachment |
withStatus(AttachmentStatus status)
The attachment state.
|
InstanceNetworkInterfaceAttachment |
withStatus(String status)
The attachment state.
|
public String getAttachmentId()
public void setAttachmentId(String attachmentId)
attachmentId
- The ID of the network interface attachment.public InstanceNetworkInterfaceAttachment 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 Integer getDeviceIndex()
public void setDeviceIndex(Integer deviceIndex)
deviceIndex
- The index of the device on the instance for the network interface
attachment.public InstanceNetworkInterfaceAttachment withDeviceIndex(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 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 InstanceNetworkInterfaceAttachment 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 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.AttachmentStatus
public Date getAttachTime()
public void setAttachTime(Date attachTime)
attachTime
- The time stamp when the attachment initiated.public InstanceNetworkInterfaceAttachment withAttachTime(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 Boolean isDeleteOnTermination()
public void setDeleteOnTermination(Boolean deleteOnTermination)
deleteOnTermination
- Indicates whether the network interface is deleted when the instance
is terminated.public InstanceNetworkInterfaceAttachment 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.