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 class
Volume.Builder
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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Volume.Builder
builder()
int
compareTo(Volume that)
boolean
equals(Object obj)
Set<Attachment>
getAttachments()
String
getAvailabilityZone()
Date
getCreateTime()
boolean
getEncrypted()
String
getId()
Integer
getIops()
String
getRegion()
Deprecated.int
getSize()
String
getSnapshotId()
Volume.Status
getStatus()
String
getVolumeType()
int
hashCode()
Volume.Builder
toBuilder()
String
toString()
-
-
-
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:
compareTo
in interfaceComparable<Volume>
-
-