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>

See Also:

Nested Class Summary
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
           
 
Constructor Summary
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 Summary
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()
           
 
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,
              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.6

Warning

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

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-2014 The Apache Software Foundation. All Rights Reserved.