com.amazonaws.services.ec2.model
Class EbsInstanceBlockDevice

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

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

Describes a parameter used to set up an Amazon EBS volume in a block device mapping.

See Also:
Serialized Form

Constructor Summary
EbsInstanceBlockDevice()
           
 
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 volume is deleted on instance termination.
 java.lang.String getStatus()
          The attachment state.
 java.lang.String getVolumeId()
          The ID of the Amazon EBS volume.
 int hashCode()
           
 java.lang.Boolean isDeleteOnTermination()
          Indicates whether the 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 volume is deleted on instance termination.
 void setStatus(AttachmentStatus status)
          The attachment state.
 void setStatus(java.lang.String status)
          The attachment state.
 void setVolumeId(java.lang.String volumeId)
          The ID of the Amazon EBS volume.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 EbsInstanceBlockDevice withAttachTime(java.util.Date attachTime)
          The time stamp when the attachment initiated.
 EbsInstanceBlockDevice withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
          Indicates whether the volume is deleted on instance termination.
 EbsInstanceBlockDevice withStatus(AttachmentStatus status)
          The attachment state.
 EbsInstanceBlockDevice withStatus(java.lang.String status)
          The attachment state.
 EbsInstanceBlockDevice withVolumeId(java.lang.String volumeId)
          The ID of the Amazon EBS volume.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EbsInstanceBlockDevice

public EbsInstanceBlockDevice()
Method Detail

getVolumeId

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

Returns:
The ID of the Amazon EBS volume.

setVolumeId

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

Parameters:
volumeId - The ID of the Amazon EBS volume.

withVolumeId

public EbsInstanceBlockDevice withVolumeId(java.lang.String volumeId)
The ID of the Amazon EBS volume.

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

Parameters:
volumeId - The ID of the Amazon EBS volume.
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 EbsInstanceBlockDevice 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 EbsInstanceBlockDevice 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 EbsInstanceBlockDevice 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 volume is deleted on instance termination.

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

setDeleteOnTermination

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

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

withDeleteOnTermination

public EbsInstanceBlockDevice withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the 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 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 volume is deleted on instance termination.

Returns:
Indicates whether the 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.