Package 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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVolume.Builderstatic classVolume.InstanceInitiatedShutdownBehaviorSpecifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.static classVolume.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Volume.Builderbuilder()intcompareTo(Volume that)booleanequals(Object obj)Set<Attachment>getAttachments()StringgetAvailabilityZone()DategetCreateTime()booleangetEncrypted()StringgetId()IntegergetIops()StringgetRegion()Deprecated.intgetSize()StringgetSnapshotId()Volume.StatusgetStatus()StringgetVolumeType()inthashCode()Volume.BuildertoBuilder()StringtoString()
-
-
-
Constructor Detail
-
Volume
public Volume(String region, String id, int size, String snapshotId, String availabilityZone, Volume.Status status, Date createTime, String volumeType, Integer iops, boolean encrypted, Iterable<Attachment> attachments)
-
-
Method Detail
-
toBuilder
public Volume.Builder toBuilder()
-
builder
public static Volume.Builder builder()
-
getRegion
@Deprecated public String getRegion()
Deprecated.To be removed in jclouds 1.6Warning
Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.
-
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()
-
getVolumeType
public String getVolumeType()
-
getIops
public Integer getIops()
-
getEncrypted
public boolean getEncrypted()
-
getAttachments
public Set<Attachment> getAttachments()
-
compareTo
public int compareTo(Volume that)
- Specified by:
compareToin interfaceComparable<Volume>
-
-