Class Snapshot

java.lang.Object
org.jclouds.openstack.cinder.v1.domain.Snapshot

public class Snapshot extends Object
An Openstack Cinder Volume Snapshot.
  • Constructor Details

  • Method Details

    • builder

      public static Snapshot.Builder builder()
    • toBuilder

      public Snapshot.Builder toBuilder()
    • getId

      public String getId()
      Returns:
      The id of this snapshot
    • getVolumeId

      public String getVolumeId()
      Returns:
      The id of the Volume this snapshot was taken from
    • getStatus

      public Volume.Status getStatus()
      Returns:
      The status of this snapshot
    • getSize

      public int getSize()
      Returns:
      The size in GB of the volume this snapshot was taken from
    • getCreated

      @Nullable public Date getCreated()
      Returns:
      The data the snapshot was taken
    • getName

      @Nullable public String getName()
      Returns:
      The name of this snapshot - as displayed in the openstack console
    • getDescription

      @Nullable public String getDescription()
      Returns:
      The description of this snapshot - as displayed in the openstack console
    • getExtendedAttributes

      @Nullable public com.google.common.base.Optional<SnapshotExtendedAttributes> getExtendedAttributes()
      Returns:
      Extended attributes for this snapshot. Only present when the os-extended-snapshot-attributes extension is installed
    • 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