org.jclouds.openstack.cinder.v1.domain
Class Snapshot

java.lang.Object
  extended by org.jclouds.openstack.cinder.v1.domain.Snapshot

public class Snapshot
extends Object

An Openstack Cinder Volume Snapshot.


Nested Class Summary
static class Snapshot.Builder<T extends Snapshot.Builder<T>>
           
 
Constructor Summary
protected Snapshot(String id, String volumeId, Volume.Status status, int size, Date created, String name, String description)
           
 
Method Summary
static Snapshot.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.Objects.ToStringHelper string()
           
 Snapshot.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.