Class CreateVolumeOptions
- java.lang.Object
-
- org.jclouds.openstack.cinder.v1.options.CreateVolumeOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateVolumeOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringavailabilityZoneprotected Stringdescriptionprotected Map<String,String>metadataprotected Stringnamestatic CreateVolumeOptionsNONEprotected StringsnapshotIdprotected StringvolumeType
-
Constructor Summary
Constructors Constructor Description CreateVolumeOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVolumeOptionsavailabilityZone(String availabilityZone)<R extends HttpRequest>
RbindToRequest(R request, Object toBind)<R extends HttpRequest>
RbindToRequest(R request, Map<String,Object> postParams)creates and binds the POST payload to the request using parameters specified.CreateVolumeOptionsdescription(String description)booleanequals(Object object)StringgetAvailabilityZone()StringgetDescription()Map<String,String>getMetadata()StringgetName()StringgetSnapshotId()StringgetVolumeType()inthashCode()CreateVolumeOptionsmetadata(Map<String,String> metadata)Custom cloud server metadata can also be supplied at launch time.CreateVolumeOptionsname(String name)CreateVolumeOptionssnapshotId(String snapshotId)protected com.google.common.base.MoreObjects.ToStringHelperstring()StringtoString()CreateVolumeOptionsvolumeType(String volumeType)
-
-
-
Method Detail
-
bindToRequest
public <R extends HttpRequest> R bindToRequest(R request, Map<String,Object> postParams)
Description copied from interface:MapBindercreates and binds the POST payload to the request using parameters specified.- Specified by:
bindToRequestin interfaceMapBinder- See Also:
PayloadParam
-
bindToRequest
public <R extends HttpRequest> R bindToRequest(R request, Object toBind)
- Specified by:
bindToRequestin interfaceBinder
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
metadata
public CreateVolumeOptions metadata(Map<String,String> metadata)
Custom cloud server metadata can also be supplied at launch time. This metadata is stored in the API system where it is retrievable by querying the API for server status. The maximum size of the metadata key and value is each 255 bytes and the maximum number of key-value pairs that can be supplied per volume is 5.
-
name
public CreateVolumeOptions name(String name)
- Parameters:
name- The name of the Volume
-
description
public CreateVolumeOptions description(String description)
- Parameters:
description- A description of the Volume
-
volumeType
public CreateVolumeOptions volumeType(String volumeType)
- Parameters:
volumeType- The type of Volume to create- See Also:
VolumeTypeApi#list()
-
availabilityZone
public CreateVolumeOptions availabilityZone(String availabilityZone)
- Parameters:
availabilityZone- The optional availability zone in which to create a Volume
-
snapshotId
public CreateVolumeOptions snapshotId(String snapshotId)
- Parameters:
snapshotId- The optional snapshot from which to create a Volume
-
getVolumeType
public String getVolumeType()
-
getAvailabilityZone
public String getAvailabilityZone()
-
getSnapshotId
public String getSnapshotId()
-
getName
public String getName()
-
getDescription
public String getDescription()
-
-