Class Volume
java.lang.Object
org.jclouds.openstack.nova.v2_0.domain.Volume
An OpenStack Nova Volume
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Volume.Builder<T extends Volume.Builder<T>>
static enum
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
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 Details
-
builder
-
toBuilder
-
getId
- Returns:
- the id of this volume
-
getStatus
- Returns:
- the status of this volume
-
getSize
public int getSize()- Returns:
- the size in GB of this volume
-
getZone
- Returns:
- the availabilityZone containing this volume
-
getCreated
- Returns:
- the time this volume was created
-
getAttachments
- Returns:
- the set of attachments (to Servers)
-
getVolumeType
- Returns:
- the type of this volume
-
getSnapshotId
-
getName
- Returns:
- the name of this volume - as displayed in the openstack console
-
getDescription
- Returns:
- the description of this volume - as displayed in the openstack console
-
getMetadata
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-