Class Snapshot

java.lang.Object
org.jclouds.cloudstack.domain.Snapshot

public class Snapshot extends Object
Class Snapshot
  • Constructor Details

  • Method Details

    • builder

      public static Snapshot.Builder<?> builder()
    • toBuilder

      public Snapshot.Builder<?> toBuilder()
    • getId

      public String getId()
      Returns:
      ID of the snapshot
    • getAccount

      @Nullable public String getAccount()
      Returns:
      the account associated with the snapshot
    • getCreated

      @Nullable public Date getCreated()
      Returns:
      the date the snapshot was created
    • getDomain

      @Nullable public String getDomain()
      Returns:
      the domain name of the snapshot's account
    • getDomainId

      @Nullable public String getDomainId()
      Returns:
      the domain ID of the snapshot's account
    • getInterval

      @Nullable public Snapshot.Interval getInterval()
      Returns:
      valid types are hourly, daily, weekly, monthly, template, and none.
    • getJobId

      @Nullable public String getJobId()
      Returns:
      the job ID associated with the snapshot. This is only displayed if the snapshot listed is part of a currently running asynchronous job.
    • getJobStatus

      @Nullable public String getJobStatus()
      Returns:
      the job status associated with the snapshot. This is only displayed if the snapshot listed is part of a currently running asynchronous job.
    • getName

      @Nullable public String getName()
      Returns:
      name of the snapshot
    • getSnapshotType

      @Nullable public Snapshot.Type getSnapshotType()
      Returns:
      the type of the snapshot
    • getState

      @Nullable public Snapshot.State getState()
      Returns:
      the state of the snapshot. BackedUp means that snapshot is ready to be used; Creating - the snapshot is being allocated on the primary storage; BackingUp - the snapshot is being backed up on secondary storage
    • getVolumeId

      @Nullable public String getVolumeId()
      Returns:
      ID of the disk volume
    • getVolumeName

      @Nullable public String getVolumeName()
      Returns:
      name of the disk volume
    • getVolumeType

      @Nullable public Volume.Type getVolumeType()
      Returns:
      type of the disk volume
    • getTags

      public Set<Tag> getTags()
      Returns:
      the tags for the snapshot
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      protected com.google.common.base.MoreObjects.ToStringHelper string()
    • toString

      public String toString()
      Overrides:
      toString in class Object