@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkInterfaceAttachment extends Object implements Serializable, Cloneable
Describes a network interface attachment.
Constructor and Description |
---|
NetworkInterfaceAttachment() |
Modifier and Type | Method and Description |
---|---|
NetworkInterfaceAttachment |
clone() |
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 void setAttachTime(Date attachTime)
The timestamp indicating when the attachment initiated.
attachTime
- The timestamp indicating when the attachment initiated.public Date getAttachTime()
The timestamp indicating when the attachment initiated.
public NetworkInterfaceAttachment withAttachTime(Date attachTime)
The timestamp indicating when the attachment initiated.
attachTime
- The timestamp indicating when the attachment initiated.public void setAttachmentId(String attachmentId)
The ID of the network interface attachment.
attachmentId
- The ID of the network interface attachment.public String getAttachmentId()
The ID of the network interface attachment.
public NetworkInterfaceAttachment withAttachmentId(String attachmentId)
The ID of the network interface attachment.
attachmentId
- The ID of the network interface attachment.public void setDeleteOnTermination(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 Boolean getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public NetworkInterfaceAttachment withDeleteOnTermination(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 Boolean isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public void setDeviceIndex(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 Integer getDeviceIndex()
The device index of the network interface attachment on the instance.
public NetworkInterfaceAttachment withDeviceIndex(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 setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public NetworkInterfaceAttachment withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setInstanceOwnerId(String instanceOwnerId)
The AWS account ID of the owner of the instance.
instanceOwnerId
- The AWS account ID of the owner of the instance.public String getInstanceOwnerId()
The AWS account ID of the owner of the instance.
public NetworkInterfaceAttachment withInstanceOwnerId(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 setStatus(String status)
The attachment state.
status
- The attachment state.AttachmentStatus
public String getStatus()
The attachment state.
AttachmentStatus
public NetworkInterfaceAttachment withStatus(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 String toString()
toString
in class Object
Object.toString()
public NetworkInterfaceAttachment clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.