Class Volume
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.domain.Volume
-
public class Volume extends Object
An OpenStack Nova Volume
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVolume.Builder<T extends Volume.Builder<T>>static classVolume.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Volume.Builder<?>builder()booleanequals(Object obj)Set<VolumeAttachment>getAttachments()DategetCreated()StringgetDescription()StringgetId()Map<String,String>getMetadata()StringgetName()intgetSize()StringgetSnapshotId()Volume.StatusgetStatus()StringgetVolumeType()StringgetZone()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()Volume.Builder<?>toBuilder()StringtoString()
-
-
-
Constructor Detail
-
Volume
@ConstructorProperties({"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)
-
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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-