org.jclouds.openstack.nova.v2_0.domain
Class VolumeSnapshot
java.lang.Object
org.jclouds.openstack.nova.v2_0.domain.VolumeSnapshot
public class VolumeSnapshot
- extends Object
An Openstack Nova Volume Snapshot
VolumeSnapshot
@ConstructorProperties(value={"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)
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
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
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.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.