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 NetworkInterfaceAttachmentclone()booleanequals(Object obj)StringgetAttachmentId()The ID of the network interface attachment.DategetAttachTime()The timestamp indicating when the attachment initiated.BooleangetDeleteOnTermination()Indicates whether the network interface is deleted when the instance is terminated.IntegergetDeviceIndex()The device index of the network interface attachment on the instance.StringgetInstanceId()The ID of the instance.StringgetInstanceOwnerId()The AWS account ID of the owner of the instance.StringgetStatus()The attachment state.inthashCode()BooleanisDeleteOnTermination()Indicates whether the network interface is deleted when the instance is terminated.voidsetAttachmentId(String attachmentId)The ID of the network interface attachment.voidsetAttachTime(Date attachTime)The timestamp indicating when the attachment initiated.voidsetDeleteOnTermination(Boolean deleteOnTermination)Indicates whether the network interface is deleted when the instance is terminated.voidsetDeviceIndex(Integer deviceIndex)The device index of the network interface attachment on the instance.voidsetInstanceId(String instanceId)The ID of the instance.voidsetInstanceOwnerId(String instanceOwnerId)The AWS account ID of the owner of the instance.voidsetStatus(AttachmentStatus status)The attachment state.voidsetStatus(String status)The attachment state.StringtoString()Returns a string representation of this object; useful for testing and debugging.NetworkInterfaceAttachmentwithAttachmentId(String attachmentId)The ID of the network interface attachment.NetworkInterfaceAttachmentwithAttachTime(Date attachTime)The timestamp indicating when the attachment initiated.NetworkInterfaceAttachmentwithDeleteOnTermination(Boolean deleteOnTermination)Indicates whether the network interface is deleted when the instance is terminated.NetworkInterfaceAttachmentwithDeviceIndex(Integer deviceIndex)The device index of the network interface attachment on the instance.NetworkInterfaceAttachmentwithInstanceId(String instanceId)The ID of the instance.NetworkInterfaceAttachmentwithInstanceOwnerId(String instanceOwnerId)The AWS account ID of the owner of the instance.NetworkInterfaceAttachmentwithStatus(AttachmentStatus status)The attachment state.NetworkInterfaceAttachmentwithStatus(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public NetworkInterfaceAttachment clone()
-
-