@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.
|
AttachmentEnaSrdSpecification |
getEnaSrdSpecification()
Configures ENA Express for the network interface that this action attaches to the instance.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getInstanceOwnerId()
The Amazon Web Services account ID of the owner of the instance.
|
Integer |
getNetworkCardIndex()
The index of the network card.
|
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 |
setEnaSrdSpecification(AttachmentEnaSrdSpecification enaSrdSpecification)
Configures ENA Express for the network interface that this action attaches to the instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setInstanceOwnerId(String instanceOwnerId)
The Amazon Web Services account ID of the owner of the instance.
|
void |
setNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
|
void |
setStatus(AttachmentStatus status)
The attachment state.
|
void |
setStatus(String status)
The attachment state.
|
String |
toString()
Returns a string representation of this object.
|
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 |
withEnaSrdSpecification(AttachmentEnaSrdSpecification enaSrdSpecification)
Configures ENA Express for the network interface that this action attaches to the instance.
|
NetworkInterfaceAttachment |
withInstanceId(String instanceId)
The ID of the instance.
|
NetworkInterfaceAttachment |
withInstanceOwnerId(String instanceOwnerId)
The Amazon Web Services account ID of the owner of the instance.
|
NetworkInterfaceAttachment |
withNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
|
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 setNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
networkCardIndex
- The index of the network card.public Integer getNetworkCardIndex()
The index of the network card.
public NetworkInterfaceAttachment withNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
networkCardIndex
- The index of the network card.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 Amazon Web Services account ID of the owner of the instance.
instanceOwnerId
- The Amazon Web Services account ID of the owner of the instance.public String getInstanceOwnerId()
The Amazon Web Services account ID of the owner of the instance.
public NetworkInterfaceAttachment withInstanceOwnerId(String instanceOwnerId)
The Amazon Web Services account ID of the owner of the instance.
instanceOwnerId
- The Amazon Web Services 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 void setEnaSrdSpecification(AttachmentEnaSrdSpecification enaSrdSpecification)
Configures ENA Express for the network interface that this action attaches to the instance.
enaSrdSpecification
- Configures ENA Express for the network interface that this action attaches to the instance.public AttachmentEnaSrdSpecification getEnaSrdSpecification()
Configures ENA Express for the network interface that this action attaches to the instance.
public NetworkInterfaceAttachment withEnaSrdSpecification(AttachmentEnaSrdSpecification enaSrdSpecification)
Configures ENA Express for the network interface that this action attaches to the instance.
enaSrdSpecification
- Configures ENA Express for the network interface that this action attaches to the instance.public String toString()
toString
in class Object
Object.toString()
public NetworkInterfaceAttachment clone()