Class InstanceNetworkInterfaceAttachment
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceNetworkInterfaceAttachment
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceNetworkInterfaceAttachment extends Object implements Serializable, Cloneable
Describes a network interface attachment.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceNetworkInterfaceAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.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.
-
-
-
Method Detail
-
setAttachmentId
public void setAttachmentId(String attachmentId)
The ID of the network interface attachment.
- Parameters:
attachmentId
- The ID of the network interface attachment.
-
getAttachmentId
public String getAttachmentId()
The ID of the network interface attachment.
- Returns:
- The ID of the network interface attachment.
-
withAttachmentId
public InstanceNetworkInterfaceAttachment withAttachmentId(String attachmentId)
The ID of the network interface attachment.
- Parameters:
attachmentId
- The ID of the network interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeviceIndex
public void setDeviceIndex(Integer deviceIndex)
The index of the device on the instance for the network interface attachment.
- Parameters:
deviceIndex
- The index of the device on the instance for the network interface attachment.
-
getDeviceIndex
public Integer getDeviceIndex()
The index of the device on the instance for the network interface attachment.
- Returns:
- The index of the device on the instance for the network interface attachment.
-
withDeviceIndex
public InstanceNetworkInterfaceAttachment withDeviceIndex(Integer deviceIndex)
The index of the device on the instance for the network interface attachment.
- Parameters:
deviceIndex
- The index of the device on the instance for the network interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The attachment state.
- Parameters:
status
- The attachment state.- See Also:
AttachmentStatus
-
getStatus
public String getStatus()
The attachment state.
- Returns:
- The attachment state.
- See Also:
AttachmentStatus
-
withStatus
public InstanceNetworkInterfaceAttachment withStatus(String status)
The attachment state.
- Parameters:
status
- The attachment state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttachmentStatus
-
setStatus
public void setStatus(AttachmentStatus status)
The attachment state.
- Parameters:
status
- The attachment state.- See Also:
AttachmentStatus
-
withStatus
public InstanceNetworkInterfaceAttachment withStatus(AttachmentStatus status)
The attachment state.
- Parameters:
status
- The attachment state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttachmentStatus
-
setAttachTime
public void setAttachTime(Date attachTime)
The time stamp when the attachment initiated.
- Parameters:
attachTime
- The time stamp when the attachment initiated.
-
getAttachTime
public Date getAttachTime()
The time stamp when the attachment initiated.
- Returns:
- The time stamp when the attachment initiated.
-
withAttachTime
public InstanceNetworkInterfaceAttachment withAttachTime(Date attachTime)
The time stamp when the attachment initiated.
- Parameters:
attachTime
- The time stamp when the attachment initiated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeleteOnTermination
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
- Parameters:
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.
-
getDeleteOnTermination
public Boolean getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
- Returns:
- Indicates whether the network interface is deleted when the instance is terminated.
-
withDeleteOnTermination
public InstanceNetworkInterfaceAttachment withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
- Parameters:
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDeleteOnTermination
public Boolean isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
- Returns:
- Indicates whether the network interface is deleted when the instance is terminated.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceNetworkInterfaceAttachment clone()
-
-