org.jclouds.ec2.domain
Class Snapshot

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

public class Snapshot
extends Object
implements Comparable<Snapshot>

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Snapshot.Status
           
 
Constructor Summary
Snapshot(String region, String id, String volumeId, int volumeSize, Snapshot.Status status, Date startTime, int progress, String ownerId, String description, String ownerAlias)
           
 
Method Summary
 int compareTo(Snapshot o)
           
 boolean equals(Object obj)
           
 String getDescription()
          Description of the snapshot.
 String getId()
          The ID of the snapshot.
 String getOwnerAlias()
          The AWS identity alias (e.g., "amazon", "redhat", "self", etc.) or AWS identity ID that owns the AMI.
 String getOwnerId()
          AWS Access Key ID of the user who owns the snapshot.
 int getProgress()
          The progress of the snapshot, in percentage.
 String getRegion()
          Snapshots are tied to Regions and can only be used for volumes within the same Region.
 Date getStartTime()
          Time stamp when the snapshot was initiated.
 Snapshot.Status getStatus()
          Snapshot state (e.g., pending, completed, or error)
 String getVolumeId()
          The ID of the volume.
 int getVolumeSize()
          The size of the volume, in GiB.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Snapshot

public Snapshot(String region,
                String id,
                String volumeId,
                int volumeSize,
                Snapshot.Status status,
                Date startTime,
                int progress,
                String ownerId,
                String description,
                String ownerAlias)
Method Detail

getRegion

public String getRegion()
Snapshots are tied to Regions and can only be used for volumes within the same Region.


getId

public String getId()
The ID of the snapshot.


getVolumeId

public String getVolumeId()
The ID of the volume.


getVolumeSize

public int getVolumeSize()
The size of the volume, in GiB.


getStatus

public Snapshot.Status getStatus()
Snapshot state (e.g., pending, completed, or error)


getStartTime

public Date getStartTime()
Time stamp when the snapshot was initiated.


getProgress

public int getProgress()
The progress of the snapshot, in percentage.


getOwnerId

public String getOwnerId()
AWS Access Key ID of the user who owns the snapshot.


getDescription

public String getDescription()
Description of the snapshot.


getOwnerAlias

public String getOwnerAlias()
The AWS identity alias (e.g., "amazon", "redhat", "self", etc.) or AWS identity ID that owns the AMI.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Snapshot o)
Specified by:
compareTo in interface Comparable<Snapshot>


Copyright © 2009-2012 jclouds. All Rights Reserved.