public class Volume extends DomainWrapper<com.abiquo.server.core.infrastructure.storage.VolumeManagementDto>
VolumeManagementDto
.
http://community.abiquo.com/display/ABI20/Volume+Resource
Modifier and Type | Class and Description |
---|---|
static class |
Volume.Builder |
Modifier and Type | Field and Description |
---|---|
static com.abiquo.model.enumerator.VolumeState |
DEFAULT_STATE
The default state for folumes.
|
context, target
Modifier | Constructor and Description |
---|---|
protected |
Volume(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.infrastructure.storage.VolumeManagementDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
static Volume.Builder |
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context,
VirtualDatacenter virtualDatacenter,
Tier tier) |
void |
delete() |
String |
getDescription() |
Integer |
getId() |
String |
getName() |
long |
getSizeInMB() |
String |
getState() |
Tier |
getTier()
TODO javadoc link
|
VirtualDatacenter |
getVirtualDatacenter() |
void |
moveTo(VirtualDatacenter newVirtualDatacenter)
Move the volume to the given virtual datacenter.
|
void |
save() |
void |
setDescription(String description) |
void |
setName(String name) |
void |
setSizeInMB(long sizeInMB) |
String |
toString() |
AsyncTask |
update() |
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
public static final com.abiquo.model.enumerator.VolumeState DEFAULT_STATE
protected Volume(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.infrastructure.storage.VolumeManagementDto target)
public void delete()
public void save()
public AsyncTask update()
public VirtualDatacenter getVirtualDatacenter()
public Tier getTier()
public void moveTo(VirtualDatacenter newVirtualDatacenter)
newVirtualDatacenter
- The destination virtual datacenter.public static Volume.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context, VirtualDatacenter virtualDatacenter, Tier tier)
public Integer getId()
public String getState()
public String getName()
public void setName(String name)
public long getSizeInMB()
public void setSizeInMB(long sizeInMB)
public String getDescription()
public void setDescription(String description)
Copyright © 2009-2013 jclouds. All Rights Reserved.