com.amazonaws.services.ec2.model
Class NetworkInterfaceAttachment

java.lang.Object
  extended by com.amazonaws.services.ec2.model.NetworkInterfaceAttachment
All Implemented Interfaces:
java.io.Serializable

public class NetworkInterfaceAttachment
extends java.lang.Object
implements java.io.Serializable

Describes a network interface attachment.

See Also:
Serialized Form

Constructor Summary
NetworkInterfaceAttachment()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttachmentId()
          The ID of the network interface attachment.
 java.util.Date getAttachTime()
          The timestamp indicating when the attachment initiated.
 java.lang.Boolean getDeleteOnTermination()
          Indicates whether the network interface is deleted when the instance is terminated.
 java.lang.Integer getDeviceIndex()
          The device index of the network interface attachment on the instance.
 java.lang.String getInstanceId()
          The ID of the instance.
 java.lang.String getInstanceOwnerId()
          The AWS account ID of the owner of the instance.
 java.lang.String getStatus()
          The attachment state.
 int hashCode()
           
 java.lang.Boolean isDeleteOnTermination()
          Indicates whether the network interface is deleted when the instance is terminated.
 void setAttachmentId(java.lang.String attachmentId)
          The ID of the network interface attachment.
 void setAttachTime(java.util.Date attachTime)
          The timestamp indicating when the attachment initiated.
 void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          Indicates whether the network interface is deleted when the instance is terminated.
 void setDeviceIndex(java.lang.Integer deviceIndex)
          The device index of the network interface attachment on the instance.
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance.
 void setInstanceOwnerId(java.lang.String instanceOwnerId)
          The AWS account ID of the owner of the instance.
 void setStatus(AttachmentStatus status)
          The attachment state.
 void setStatus(java.lang.String status)
          The attachment state.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 NetworkInterfaceAttachment withAttachmentId(java.lang.String attachmentId)
          The ID of the network interface attachment.
 NetworkInterfaceAttachment withAttachTime(java.util.Date attachTime)
          The timestamp indicating when the attachment initiated.
 NetworkInterfaceAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          Indicates whether the network interface is deleted when the instance is terminated.
 NetworkInterfaceAttachment withDeviceIndex(java.lang.Integer deviceIndex)
          The device index of the network interface attachment on the instance.
 NetworkInterfaceAttachment withInstanceId(java.lang.String instanceId)
          The ID of the instance.
 NetworkInterfaceAttachment withInstanceOwnerId(java.lang.String instanceOwnerId)
          The AWS account ID of the owner of the instance.
 NetworkInterfaceAttachment withStatus(AttachmentStatus status)
          The attachment state.
 NetworkInterfaceAttachment withStatus(java.lang.String status)
          The attachment state.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkInterfaceAttachment

public NetworkInterfaceAttachment()
Method Detail

getAttachmentId

public java.lang.String getAttachmentId()
The ID of the network interface attachment.

Returns:
The ID of the network interface attachment.

setAttachmentId

public void setAttachmentId(java.lang.String attachmentId)
The ID of the network interface attachment.

Parameters:
attachmentId - The ID of the network interface attachment.

withAttachmentId

public NetworkInterfaceAttachment withAttachmentId(java.lang.String attachmentId)
The ID of the network interface attachment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attachmentId - The ID of the network interface attachment.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public java.lang.String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public NetworkInterfaceAttachment withInstanceId(java.lang.String instanceId)
The ID of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The ID of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceOwnerId

public java.lang.String getInstanceOwnerId()
The AWS account ID of the owner of the instance.

Returns:
The AWS account ID of the owner of the instance.

setInstanceOwnerId

public void setInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.

Parameters:
instanceOwnerId - The AWS account ID of the owner of the instance.

withInstanceOwnerId

public NetworkInterfaceAttachment withInstanceOwnerId(java.lang.String instanceOwnerId)
The AWS account ID of the owner of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceOwnerId - The AWS account ID of the owner of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeviceIndex

public java.lang.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.

setDeviceIndex

public void setDeviceIndex(java.lang.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.

withDeviceIndex

public NetworkInterfaceAttachment withDeviceIndex(java.lang.Integer deviceIndex)
The device index of the network interface attachment on the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deviceIndex - The device index of the network interface attachment on the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public java.lang.String getStatus()
The attachment state.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Returns:
The attachment state.
See Also:
AttachmentStatus

setStatus

public void setStatus(java.lang.String status)
The attachment state.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
status - The attachment state.
See Also:
AttachmentStatus

withStatus

public NetworkInterfaceAttachment withStatus(java.lang.String status)
The attachment state.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
status - The attachment state.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AttachmentStatus

setStatus

public void setStatus(AttachmentStatus status)
The attachment state.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
status - The attachment state.
See Also:
AttachmentStatus

withStatus

public NetworkInterfaceAttachment withStatus(AttachmentStatus status)
The attachment state.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: attaching, attached, detaching, detached

Parameters:
status - The attachment state.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AttachmentStatus

getAttachTime

public java.util.Date getAttachTime()
The timestamp indicating when the attachment initiated.

Returns:
The timestamp indicating when the attachment initiated.

setAttachTime

public void setAttachTime(java.util.Date attachTime)
The timestamp indicating when the attachment initiated.

Parameters:
attachTime - The timestamp indicating when the attachment initiated.

withAttachTime

public NetworkInterfaceAttachment withAttachTime(java.util.Date attachTime)
The timestamp indicating when the attachment initiated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attachTime - The timestamp indicating when the attachment initiated.
Returns:
A reference to this updated object so that method calls can be chained together.

isDeleteOnTermination

public java.lang.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.

setDeleteOnTermination

public void setDeleteOnTermination(java.lang.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.

withDeleteOnTermination

public NetworkInterfaceAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deleteOnTermination - Indicates whether the network interface is deleted when the instance is terminated.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeleteOnTermination

public java.lang.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.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.