com.amazonaws.services.ec2.model
Class VolumeAttachment

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

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

Describes volume attachment details.

See Also:
Serialized Form

Constructor Summary
VolumeAttachment()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Date getAttachTime()
          The time stamp when the attachment initiated.
 java.lang.Boolean getDeleteOnTermination()
          Indicates whether the Amazon EBS volume is deleted on instance termination.
 java.lang.String getDevice()
          The device name.
 java.lang.String getInstanceId()
          The ID of the instance.
 java.lang.String getState()
          The attachment state of the volume.
 java.lang.String getVolumeId()
          The ID of the volume.
 int hashCode()
           
 java.lang.Boolean isDeleteOnTermination()
          Indicates whether the Amazon EBS volume is deleted on instance termination.
 void setAttachTime(java.util.Date attachTime)
          The time stamp when the attachment initiated.
 void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          Indicates whether the Amazon EBS volume is deleted on instance termination.
 void setDevice(java.lang.String device)
          The device name.
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance.
 void setState(java.lang.String state)
          The attachment state of the volume.
 void setState(VolumeAttachmentState state)
          The attachment state of the volume.
 void setVolumeId(java.lang.String volumeId)
          The ID of the volume.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 VolumeAttachment withAttachTime(java.util.Date attachTime)
          The time stamp when the attachment initiated.
 VolumeAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          Indicates whether the Amazon EBS volume is deleted on instance termination.
 VolumeAttachment withDevice(java.lang.String device)
          The device name.
 VolumeAttachment withInstanceId(java.lang.String instanceId)
          The ID of the instance.
 VolumeAttachment withState(java.lang.String state)
          The attachment state of the volume.
 VolumeAttachment withState(VolumeAttachmentState state)
          The attachment state of the volume.
 VolumeAttachment withVolumeId(java.lang.String volumeId)
          The ID of the volume.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VolumeAttachment

public VolumeAttachment()
Method Detail

getVolumeId

public java.lang.String getVolumeId()
The ID of the volume.

Returns:
The ID of the volume.

setVolumeId

public void setVolumeId(java.lang.String volumeId)
The ID of the volume.

Parameters:
volumeId - The ID of the volume.

withVolumeId

public VolumeAttachment withVolumeId(java.lang.String volumeId)
The ID of the volume.

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

Parameters:
volumeId - The ID of the volume.
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 VolumeAttachment 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.

getDevice

public java.lang.String getDevice()
The device name.

Returns:
The device name.

setDevice

public void setDevice(java.lang.String device)
The device name.

Parameters:
device - The device name.

withDevice

public VolumeAttachment withDevice(java.lang.String device)
The device name.

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

Parameters:
device - The device name.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public java.lang.String getState()
The attachment state of the volume.

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

Returns:
The attachment state of the volume.
See Also:
VolumeAttachmentState

setState

public void setState(java.lang.String state)
The attachment state of the volume.

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

Parameters:
state - The attachment state of the volume.
See Also:
VolumeAttachmentState

withState

public VolumeAttachment withState(java.lang.String state)
The attachment state of the volume.

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

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

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

setState

public void setState(VolumeAttachmentState state)
The attachment state of the volume.

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

Parameters:
state - The attachment state of the volume.
See Also:
VolumeAttachmentState

withState

public VolumeAttachment withState(VolumeAttachmentState state)
The attachment state of the volume.

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

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

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

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 VolumeAttachment 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 Amazon EBS volume is deleted on instance termination.

Returns:
Indicates whether the Amazon EBS volume is deleted on instance termination.

setDeleteOnTermination

public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the Amazon EBS volume is deleted on instance termination.

Parameters:
deleteOnTermination - Indicates whether the Amazon EBS volume is deleted on instance termination.

withDeleteOnTermination

public VolumeAttachment withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the Amazon EBS volume is deleted on instance termination.

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

Parameters:
deleteOnTermination - Indicates whether the Amazon EBS volume is deleted on instance termination.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeleteOnTermination

public java.lang.Boolean getDeleteOnTermination()
Indicates whether the Amazon EBS volume is deleted on instance termination.

Returns:
Indicates whether the Amazon EBS volume is deleted on instance termination.

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.