org.jclouds.openstack.cinder.v1.domain
Class Snapshot
java.lang.Object
org.jclouds.openstack.cinder.v1.domain.Snapshot
public class Snapshot
- extends Object
An Openstack Cinder Volume Snapshot.
Snapshot
@ConstructorProperties(value={"id","volume_id","status","size","created_at","display_name","display_description"})
protected Snapshot(String id,
String volumeId,
Volume.Status status,
int size,
@Nullable
Date created,
@Nullable
String name,
@Nullable
String description)
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
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-2014 The Apache Software Foundation. All Rights Reserved.