org.jclouds.ec2.domain
Class Volume

java.lang.Object
  extended by org.jclouds.ec2.domain.Volume
All Implemented Interfaces:
Comparable<Volume>

public class Volume
extends Object
implements Comparable<Volume>

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Volume.InstanceInitiatedShutdownBehavior
          Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.
static class Volume.Status
           
 
Constructor Summary
Volume(String region, String id, int size, String snapshotId, String availabilityZone, Volume.Status status, Date createTime, Iterable<Attachment> attachments)
           
 
Method Summary
 int compareTo(Volume that)
           
 boolean equals(Object obj)
           
 Set<Attachment> getAttachments()
           
 String getAvailabilityZone()
           
 Date getCreateTime()
           
 String getId()
           
 String getRegion()
          An Amazon EBS volume must be located within the same Availability Zone as the instance to which it attaches.
 int getSize()
           
 String getSnapshotId()
           
 Volume.Status getStatus()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Volume

public Volume(String region,
              String id,
              int size,
              String snapshotId,
              String availabilityZone,
              Volume.Status status,
              Date createTime,
              Iterable<Attachment> attachments)
Method Detail

getRegion

public String getRegion()
An Amazon EBS volume must be located within the same Availability Zone as the instance to which it attaches.


getId

public String getId()

getSize

public int getSize()

getSnapshotId

public String getSnapshotId()

getAvailabilityZone

public String getAvailabilityZone()

getStatus

public Volume.Status getStatus()

getCreateTime

public Date getCreateTime()

getAttachments

public Set<Attachment> getAttachments()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(Volume that)
Specified by:
compareTo in interface Comparable<Volume>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.