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

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

public class Volume
extends Object

An Openstack Nova Volume


Nested Class Summary
static class Volume.Builder<T extends Volume.Builder<T>>
           
static class Volume.Status
           
 
Constructor Summary
protected Volume(String id, Volume.Status status, int size, String zone, Date created, Set<VolumeAttachment> attachments, String volumeType, String snapshotId, String name, String description, Map<String,String> metadata)
           
 
Method Summary
static Volume.Builder<?> builder()
           
 boolean equals(Object obj)
           
 Set<VolumeAttachment> getAttachments()
           
 Date getCreated()
           
 String getDescription()
           
 String getId()
           
 Map<String,String> getMetadata()
           
 String getName()
           
 int getSize()
           
 String getSnapshotId()
           
 Volume.Status getStatus()
           
 String getVolumeType()
           
 String getZone()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Volume.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Volume

@ConstructorProperties(value={"id","status","size","availabilityZone","createdAt","attachments","volumeType","snapshotId","displayName","displayDescription","metadata"})
protected Volume(String id,
                                            Volume.Status status,
                                            int size,
                                            String zone,
                                            Date created,
                                            @Nullable
                                            Set<VolumeAttachment> attachments,
                                            @Nullable
                                            String volumeType,
                                            @Nullable
                                            String snapshotId,
                                            @Nullable
                                            String name,
                                            @Nullable
                                            String description,
                                            @Nullable
                                            Map<String,String> metadata)
Method Detail

builder

public static Volume.Builder<?> builder()

toBuilder

public Volume.Builder<?> toBuilder()

getId

public String getId()
Returns:
the id of this volume

getStatus

public Volume.Status getStatus()
Returns:
the status of this volume

getSize

public int getSize()
Returns:
the size in GB of this volume

getZone

public String getZone()
Returns:
the availabilityZone containing this volume

getCreated

public Date getCreated()
Returns:
the time this volume was created

getAttachments

public Set<VolumeAttachment> getAttachments()
Returns:
the set of attachments (to Servers)

getVolumeType

@Nullable
public String getVolumeType()
Returns:
the type of this volume

getSnapshotId

@Nullable
public String getSnapshotId()

getName

@Nullable
public String getName()
Returns:
the name of this volume - as displayed in the openstack console

getDescription

@Nullable
public String getDescription()
Returns:
the description of this volume - as displayed in the openstack console

getMetadata

public Map<String,String> getMetadata()

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.