Modifier and Type | Class and Description |
---|---|
static class |
CreateVolumeOptions.Builder |
Modifier and Type | Field and Description |
---|---|
protected String |
availabilityZone |
protected String |
description |
protected Map<String,String> |
metadata |
protected String |
name |
static CreateVolumeOptions |
NONE |
protected String |
snapshotId |
protected String |
volumeType |
Constructor and Description |
---|
CreateVolumeOptions() |
Modifier and Type | Method and Description |
---|---|
CreateVolumeOptions |
availabilityZone(String availabilityZone) |
<R extends HttpRequest> |
bindToRequest(R request,
Map<String,Object> postParams)
creates and binds the POST payload to the request using parameters specified.
|
<R extends HttpRequest> |
bindToRequest(R request,
Object toBind) |
CreateVolumeOptions |
description(String description) |
boolean |
equals(Object object) |
String |
getAvailabilityZone() |
String |
getDescription() |
Map<String,String> |
getMetadata() |
String |
getName() |
String |
getSnapshotId() |
String |
getVolumeType() |
int |
hashCode() |
CreateVolumeOptions |
metadata(Map<String,String> metadata)
Custom cloud server metadata can also be supplied at launch time.
|
CreateVolumeOptions |
name(String name) |
CreateVolumeOptions |
snapshotId(String snapshotId) |
protected com.google.common.base.Objects.ToStringHelper |
string() |
String |
toString() |
CreateVolumeOptions |
volumeType(String volumeType) |
public static final CreateVolumeOptions NONE
protected String name
protected String description
protected String volumeType
protected String availabilityZone
protected String snapshotId
public <R extends HttpRequest> R bindToRequest(R request, Map<String,Object> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
public <R extends HttpRequest> R bindToRequest(R request, Object toBind)
bindToRequest
in interface Binder
protected com.google.common.base.Objects.ToStringHelper string()
public CreateVolumeOptions metadata(Map<String,String> metadata)
public CreateVolumeOptions name(String name)
name
- The name of the Volumepublic CreateVolumeOptions description(String description)
description
- A description of the Volumepublic CreateVolumeOptions volumeType(String volumeType)
volumeType
- The type of Volume to createVolumeTypeApi#list()
public CreateVolumeOptions availabilityZone(String availabilityZone)
availabilityZone
- The optional availability zone in which to create a Volumepublic CreateVolumeOptions snapshotId(String snapshotId)
snapshotId
- The optional snapshot from which to create a Volumepublic String getVolumeType()
public String getAvailabilityZone()
public String getSnapshotId()
public String getName()
public String getDescription()
Copyright © 2009-2013 jclouds. All Rights Reserved.