org.jclouds.ec2.domain
Class Volume
java.lang.Object
org.jclouds.ec2.domain.Volume
- All Implemented Interfaces:
- Comparable<Volume>
public class Volume
- extends Object
- implements Comparable<Volume>
- Author:
- Adrian Cole
- See Also:
Volume
public Volume(String region,
String id,
int size,
String snapshotId,
String availabilityZone,
Volume.Status status,
Date createTime,
Iterable<Attachment> attachments)
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.