Class VolumeSnapshot
java.lang.Object
org.jclouds.openstack.nova.v2_0.domain.VolumeSnapshot
An OpenStack Nova Volume Snapshot
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
VolumeSnapshot.Builder<T extends VolumeSnapshot.Builder<T>>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
VolumeSnapshot
(String id, String volumeId, Volume.Status status, int size, Date created, String name, String description) -
Method Summary
-
Constructor Details
-
VolumeSnapshot
@ConstructorProperties({"id","volumeId","status","size","createdAt","displayName","displayDescription"}) protected VolumeSnapshot(String id, String volumeId, Volume.Status status, int size, @Nullable Date created, @Nullable String name, @Nullable String description)
-
-
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
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-