org.jclouds.openstack.nova.v2_0.domain
Class VolumeSnapshot

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.domain.VolumeSnapshot

public class VolumeSnapshot
extends Object

An Openstack Nova Volume Snapshot


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

Constructor Detail

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

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.