com.amazonaws.services.ec2.model
Class Volume

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Volume

public class Volume
extends java.lang.Object

Represents an Amazon Elastic Block Storage (EBS) volume.


Constructor Summary
Volume()
           
 
Method Summary
 java.util.List<VolumeAttachment> getAttachments()
          Information on what this volume is attached to.
 java.lang.String getAvailabilityZone()
          Availability zone in which this volume was created.
 java.util.Date getCreateTime()
          Timestamp when volume creation was initiated.
 java.lang.Integer getSize()
          The size of this volume, in gigabytes.
 java.lang.String getSnapshotId()
          Optional snapshot from which this volume was created.
 java.lang.String getState()
          State of this volume (e.g., creating, available).
 java.util.List<Tag> getTags()
          A list of tags for the Volume.
 java.lang.String getVolumeId()
          The unique ID of this volume.
 void setAttachments(java.util.Collection<VolumeAttachment> attachments)
          Information on what this volume is attached to.
 void setAvailabilityZone(java.lang.String availabilityZone)
          Availability zone in which this volume was created.
 void setCreateTime(java.util.Date createTime)
          Timestamp when volume creation was initiated.
 void setSize(java.lang.Integer size)
          The size of this volume, in gigabytes.
 void setSnapshotId(java.lang.String snapshotId)
          Optional snapshot from which this volume was created.
 void setState(java.lang.String state)
          State of this volume (e.g., creating, available).
 void setTags(java.util.Collection<Tag> tags)
          A list of tags for the Volume.
 void setVolumeId(java.lang.String volumeId)
          The unique ID of this volume.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Volume withAttachments(java.util.Collection<VolumeAttachment> attachments)
          Information on what this volume is attached to.
 Volume withAttachments(VolumeAttachment... attachments)
          Information on what this volume is attached to.
 Volume withAvailabilityZone(java.lang.String availabilityZone)
          Availability zone in which this volume was created.
 Volume withCreateTime(java.util.Date createTime)
          Timestamp when volume creation was initiated.
 Volume withSize(java.lang.Integer size)
          The size of this volume, in gigabytes.
 Volume withSnapshotId(java.lang.String snapshotId)
          Optional snapshot from which this volume was created.
 Volume withState(java.lang.String state)
          State of this volume (e.g., creating, available).
 Volume withTags(java.util.Collection<Tag> tags)
          A list of tags for the Volume.
 Volume withTags(Tag... tags)
          A list of tags for the Volume.
 Volume withVolumeId(java.lang.String volumeId)
          The unique ID of this volume.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Volume

public Volume()
Method Detail

getVolumeId

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

Returns:
The unique ID of this volume.

setVolumeId

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

Parameters:
volumeId - The unique ID of this volume.

withVolumeId

public Volume withVolumeId(java.lang.String volumeId)
The unique ID of this volume.

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

Parameters:
volumeId - The unique ID of this volume.
Returns:
A reference to this updated object so that method calls can be chained together.

getSize

public java.lang.Integer getSize()
The size of this volume, in gigabytes.

Returns:
The size of this volume, in gigabytes.

setSize

public void setSize(java.lang.Integer size)
The size of this volume, in gigabytes.

Parameters:
size - The size of this volume, in gigabytes.

withSize

public Volume withSize(java.lang.Integer size)
The size of this volume, in gigabytes.

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

Parameters:
size - The size of this volume, in gigabytes.
Returns:
A reference to this updated object so that method calls can be chained together.

getSnapshotId

public java.lang.String getSnapshotId()
Optional snapshot from which this volume was created.

Returns:
Optional snapshot from which this volume was created.

setSnapshotId

public void setSnapshotId(java.lang.String snapshotId)
Optional snapshot from which this volume was created.

Parameters:
snapshotId - Optional snapshot from which this volume was created.

withSnapshotId

public Volume withSnapshotId(java.lang.String snapshotId)
Optional snapshot from which this volume was created.

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

Parameters:
snapshotId - Optional snapshot from which this volume was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public java.lang.String getAvailabilityZone()
Availability zone in which this volume was created.

Returns:
Availability zone in which this volume was created.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
Availability zone in which this volume was created.

Parameters:
availabilityZone - Availability zone in which this volume was created.

withAvailabilityZone

public Volume withAvailabilityZone(java.lang.String availabilityZone)
Availability zone in which this volume was created.

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

Parameters:
availabilityZone - Availability zone in which this volume was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public java.lang.String getState()
State of this volume (e.g., creating, available).

Constraints:
Allowed Values: creating, available, in-use, deleting, error

Returns:
State of this volume (e.g., creating, available).
See Also:
VolumeState

setState

public void setState(java.lang.String state)
State of this volume (e.g., creating, available).

Constraints:
Allowed Values: creating, available, in-use, deleting, error

Parameters:
state - State of this volume (e.g., creating, available).
See Also:
VolumeState

withState

public Volume withState(java.lang.String state)
State of this volume (e.g., creating, available).

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

Constraints:
Allowed Values: creating, available, in-use, deleting, error

Parameters:
state - State of this volume (e.g., creating, available).
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VolumeState

getCreateTime

public java.util.Date getCreateTime()
Timestamp when volume creation was initiated.

Returns:
Timestamp when volume creation was initiated.

setCreateTime

public void setCreateTime(java.util.Date createTime)
Timestamp when volume creation was initiated.

Parameters:
createTime - Timestamp when volume creation was initiated.

withCreateTime

public Volume withCreateTime(java.util.Date createTime)
Timestamp when volume creation was initiated.

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

Parameters:
createTime - Timestamp when volume creation was initiated.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttachments

public java.util.List<VolumeAttachment> getAttachments()
Information on what this volume is attached to.

Returns:
Information on what this volume is attached to.

setAttachments

public void setAttachments(java.util.Collection<VolumeAttachment> attachments)
Information on what this volume is attached to.

Parameters:
attachments - Information on what this volume is attached to.

withAttachments

public Volume withAttachments(VolumeAttachment... attachments)
Information on what this volume is attached to.

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

Parameters:
attachments - Information on what this volume is attached to.
Returns:
A reference to this updated object so that method calls can be chained together.

withAttachments

public Volume withAttachments(java.util.Collection<VolumeAttachment> attachments)
Information on what this volume is attached to.

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

Parameters:
attachments - Information on what this volume is attached to.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.List<Tag> getTags()
A list of tags for the Volume.

Returns:
A list of tags for the Volume.

setTags

public void setTags(java.util.Collection<Tag> tags)
A list of tags for the Volume.

Parameters:
tags - A list of tags for the Volume.

withTags

public Volume withTags(Tag... tags)
A list of tags for the Volume.

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

Parameters:
tags - A list of tags for the Volume.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public Volume withTags(java.util.Collection<Tag> tags)
A list of tags for the Volume.

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

Parameters:
tags - A list of tags for the Volume.
Returns:
A reference to this updated object so that method calls can be chained together.

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()


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