Class Snapshot
java.lang.Object
org.jclouds.openstack.cinder.v1.domain.Snapshot
An Openstack Cinder Volume Snapshot.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Snapshot
(String id, String volumeId, Volume.Status status, int size, Date created, String name, String description, SnapshotExtendedAttributes extendedAttributes) -
Method Summary
Modifier and TypeMethodDescriptionstatic Snapshot.Builder
builder()
boolean
com.google.common.base.Optional
<SnapshotExtendedAttributes> getId()
getName()
int
getSize()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
toString()
-
Constructor Details
-
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 Details
-
builder
-
toBuilder
-
getId
- Returns:
- The id of this snapshot
-
getVolumeId
- Returns:
- The id of the Volume this snapshot was taken from
-
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
- Returns:
- The data the snapshot was taken
-
getName
- Returns:
- The name of this snapshot - as displayed in the openstack console
-
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() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-