Class NetworkInterfaceAttachment
- java.lang.Object
-
- com.amazonaws.services.ec2.model.NetworkInterfaceAttachment
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class NetworkInterfaceAttachment extends Object implements Serializable, Cloneable
Describes a network interface attachment.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkInterfaceAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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 NetworkInterfaceAttachment 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.
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public NetworkInterfaceAttachment withInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceOwnerId
public void setInstanceOwnerId(String instanceOwnerId)
The AWS account ID of the owner of the instance.
- Parameters:
instanceOwnerId
- The AWS account ID of the owner of the instance.
-
getInstanceOwnerId
public String getInstanceOwnerId()
The AWS account ID of the owner of the instance.
- Returns:
- The AWS account ID of the owner of the instance.
-
withInstanceOwnerId
public NetworkInterfaceAttachment withInstanceOwnerId(String instanceOwnerId)
The AWS account ID of the owner of the instance.
- Parameters:
instanceOwnerId
- The AWS account ID of the owner of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeviceIndex
public void setDeviceIndex(Integer deviceIndex)
The device index of the network interface attachment on the instance.
- Parameters:
deviceIndex
- The device index of the network interface attachment on the instance.
-
getDeviceIndex
public Integer getDeviceIndex()
The device index of the network interface attachment on the instance.
- Returns:
- The device index of the network interface attachment on the instance.
-
withDeviceIndex
public NetworkInterfaceAttachment withDeviceIndex(Integer deviceIndex)
The device index of the network interface attachment on the instance.
- Parameters:
deviceIndex
- The device index of the network interface attachment on the instance.- 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 NetworkInterfaceAttachment 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 NetworkInterfaceAttachment 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 timestamp indicating when the attachment initiated.
- Parameters:
attachTime
- The timestamp indicating when the attachment initiated.
-
getAttachTime
public Date getAttachTime()
The timestamp indicating when the attachment initiated.
- Returns:
- The timestamp indicating when the attachment initiated.
-
withAttachTime
public NetworkInterfaceAttachment withAttachTime(Date attachTime)
The timestamp indicating when the attachment initiated.
- Parameters:
attachTime
- The timestamp indicating 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 NetworkInterfaceAttachment 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 NetworkInterfaceAttachment clone()
-
-