public class Volume extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Volume.Builder |
static class |
Volume.Status |
Modifier | Constructor and Description |
---|---|
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,
String tenantId) |
Modifier and Type | Method and Description |
---|---|
static Volume.Builder |
builder() |
boolean |
equals(Object obj) |
static Volume |
forId(String volumeId)
Creates a dummy Volume when you need a Volume with just the volumeId.
|
Set<VolumeAttachment> |
getAttachments() |
Date |
getCreated() |
String |
getDescription() |
String |
getId() |
Map<String,String> |
getMetadata() |
String |
getName() |
int |
getSize() |
String |
getSnapshotId() |
Volume.Status |
getStatus() |
String |
getTenantId() |
String |
getVolumeType() |
String |
getZone() |
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
Volume.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"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)
public static Volume.Builder builder()
public Volume.Builder toBuilder()
public static Volume forId(String volumeId)
public String getId()
public Volume.Status getStatus()
public int getSize()
public Date getCreated()
public Set<VolumeAttachment> getAttachments()
@Nullable public String getName()
@Nullable public String getDescription()
protected com.google.common.base.Objects.ToStringHelper string()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.