Class Snapshot

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

public class Snapshot extends Object implements Comparable<Snapshot>
See Also:
  • Constructor Details

  • Method Details

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