Class VolumeSnapshot
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.domain.VolumeSnapshot
-
public class VolumeSnapshot extends Object
An OpenStack Nova Volume Snapshot
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VolumeSnapshot.Builder<T extends VolumeSnapshot.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
VolumeSnapshot(String id, String volumeId, Volume.Status status, int size, Date created, String name, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VolumeSnapshot.Builder<?>
builder()
boolean
equals(Object obj)
Date
getCreated()
String
getDescription()
String
getId()
String
getName()
int
getSize()
Volume.Status
getStatus()
String
getVolumeId()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
VolumeSnapshot.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
builder
public static VolumeSnapshot.Builder<?> builder()
-
toBuilder
public VolumeSnapshot.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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-