@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceNetworkInterfaceAttachment extends Object implements Serializable, Cloneable
Describes a network interface attachment.
Constructor and Description |
---|
InstanceNetworkInterfaceAttachment() |
Modifier and Type | Method and Description |
---|---|
InstanceNetworkInterfaceAttachment |
clone() |
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.
|
InstanceAttachmentEnaSrdSpecification |
getEnaSrdSpecification()
Contains the ENA Express settings for the network interface that's attached to 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 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 |
setEnaSrdSpecification(InstanceAttachmentEnaSrdSpecification enaSrdSpecification)
Contains the ENA Express settings for the network interface that's attached to 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.
|
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 |
withEnaSrdSpecification(InstanceAttachmentEnaSrdSpecification enaSrdSpecification)
Contains the ENA Express settings for the network interface that's attached to the instance.
|
InstanceNetworkInterfaceAttachment |
withNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
|
InstanceNetworkInterfaceAttachment |
withStatus(AttachmentStatus status)
The attachment state.
|
InstanceNetworkInterfaceAttachment |
withStatus(String status)
The attachment state.
|
public void setAttachTime(Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public Date getAttachTime()
The time stamp when the attachment initiated.
public InstanceNetworkInterfaceAttachment withAttachTime(Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp 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 InstanceNetworkInterfaceAttachment 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 InstanceNetworkInterfaceAttachment 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 index of the device on the instance for the network interface attachment.
deviceIndex
- The index of the device on the instance for the network interface attachment.public Integer getDeviceIndex()
The index of the device on the instance for the network interface attachment.
public InstanceNetworkInterfaceAttachment withDeviceIndex(Integer deviceIndex)
The index of the device on the instance for the network interface attachment.
deviceIndex
- The index of the device on the instance for the network interface attachment.public void setStatus(String status)
The attachment state.
status
- The attachment state.AttachmentStatus
public String getStatus()
The attachment state.
AttachmentStatus
public InstanceNetworkInterfaceAttachment 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 InstanceNetworkInterfaceAttachment withStatus(AttachmentStatus status)
The attachment state.
status
- The attachment state.AttachmentStatus
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 InstanceNetworkInterfaceAttachment withNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
networkCardIndex
- The index of the network card.public void setEnaSrdSpecification(InstanceAttachmentEnaSrdSpecification enaSrdSpecification)
Contains the ENA Express settings for the network interface that's attached to the instance.
enaSrdSpecification
- Contains the ENA Express settings for the network interface that's attached to the instance.public InstanceAttachmentEnaSrdSpecification getEnaSrdSpecification()
Contains the ENA Express settings for the network interface that's attached to the instance.
public InstanceNetworkInterfaceAttachment withEnaSrdSpecification(InstanceAttachmentEnaSrdSpecification enaSrdSpecification)
Contains the ENA Express settings for the network interface that's attached to the instance.
enaSrdSpecification
- Contains the ENA Express settings for the network interface that's attached to the instance.public String toString()
toString
in class Object
Object.toString()
public InstanceNetworkInterfaceAttachment clone()