com.amazonaws.services.ec2.model
Class InstanceNetworkInterfaceAttachment

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

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

Describes a network interface attachment.

See Also:
Serialized Form

Constructor Summary
InstanceNetworkInterfaceAttachment()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttachmentId()
          The ID of the network interface attachment.
 java.util.Date getAttachTime()
          The time stamp 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 index of the device on the instance for the network interface attachment.
 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 time stamp 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 index of the device on the instance for the network interface attachment.
 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.
 InstanceNetworkInterfaceAttachment withAttachmentId(java.lang.String attachmentId)
          The ID of the network interface attachment.
 InstanceNetworkInterfaceAttachment withAttachTime(java.util.Date attachTime)
          The time stamp when the attachment initiated.
 InstanceNetworkInterfaceAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          Indicates whether the network interface is deleted when the instance is terminated.
 InstanceNetworkInterfaceAttachment withDeviceIndex(java.lang.Integer deviceIndex)
          The index of the device on the instance for the network interface attachment.
 InstanceNetworkInterfaceAttachment withStatus(AttachmentStatus status)
          The attachment state.
 InstanceNetworkInterfaceAttachment withStatus(java.lang.String status)
          The attachment state.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceNetworkInterfaceAttachment

public InstanceNetworkInterfaceAttachment()
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 InstanceNetworkInterfaceAttachment 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.

getDeviceIndex

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

setDeviceIndex

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

withDeviceIndex

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

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

Parameters:
deviceIndex - The index of the device on the instance for the network interface attachment.
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 InstanceNetworkInterfaceAttachment 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 InstanceNetworkInterfaceAttachment 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 time stamp when the attachment initiated.

Returns:
The time stamp when the attachment initiated.

setAttachTime

public void setAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.

Parameters:
attachTime - The time stamp when the attachment initiated.

withAttachTime

public InstanceNetworkInterfaceAttachment withAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.

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

Parameters:
attachTime - The time stamp 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 InstanceNetworkInterfaceAttachment 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.