Class Snapshot
- java.lang.Object
-
- org.jclouds.openstack.cinder.v1.domain.Snapshot
-
public class Snapshot extends Object
An Openstack Cinder Volume Snapshot.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Snapshot.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
Snapshot(String id, String volumeId, Volume.Status status, int size, Date created, String name, String description, SnapshotExtendedAttributes extendedAttributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Snapshot.Builder
builder()
boolean
equals(Object obj)
Date
getCreated()
String
getDescription()
com.google.common.base.Optional<SnapshotExtendedAttributes>
getExtendedAttributes()
String
getId()
String
getName()
int
getSize()
Volume.Status
getStatus()
String
getVolumeId()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Snapshot.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Snapshot
@ConstructorProperties({"id","volume_id","status","size","created_at","display_name","display_description","extendedAttributes"}) protected Snapshot(String id, String volumeId, Volume.Status status, int size, @Nullable Date created, @Nullable String name, @Nullable String description, @Nullable SnapshotExtendedAttributes extendedAttributes)
-
-
Method Detail
-
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
-
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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-