Class Volume
java.lang.Object
org.jclouds.openstack.cinder.v1.domain.Volume
An Openstack Cinder Volume.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Volume
@ConstructorProperties({"id","status","size","availability_zone","created_at","attachments","volume_type","snapshot_id","display_name","display_description","metadata","os-vol-tenant-attr:tenant_id"}) 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, @Nullable String tenantId)
-
-
Method Details
-
builder
-
toBuilder
-
forId
Creates a dummy Volume when you need a Volume with just the volumeId. Several fields must be set in the returned Volume: 1. status=Status.UNRECOGNIZED 2. zone="nova" 3. created=[The Date the method was called] -
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
-
getTenantId
- Returns:
- the tenant id of this volume
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-