org.jclouds.openstack.nova.v2_0.options
Class CreateVolumeOptions
java.lang.Object
org.jclouds.openstack.nova.v2_0.options.CreateVolumeOptions
- All Implemented Interfaces:
- Binder, MapBinder
public class CreateVolumeOptions
- extends Object
- implements MapBinder
- Author:
- Adam Lowe
NONE
public static final CreateVolumeOptions NONE
CreateVolumeOptions
public CreateVolumeOptions()
bindToRequest
public <R extends HttpRequest> R bindToRequest(R request,
Map<String,Object> postParams)
- Description copied from interface:
MapBinder
- creates and binds the POST payload to the request using parameters specified.
- Specified by:
bindToRequest in interface MapBinder
- See Also:
PayloadParam
bindToRequest
public <R extends HttpRequest> R bindToRequest(R request,
Object toBind)
- Specified by:
bindToRequest in interface Binder
equals
public boolean equals(Object object)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
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)
description
public CreateVolumeOptions description(String description)
volumeType
public CreateVolumeOptions volumeType(String volumeType)
availabilityZone
public CreateVolumeOptions availabilityZone(String availabilityZone)
snapshotId
public CreateVolumeOptions snapshotId(String snapshotId)
getVolumeType
public String getVolumeType()
getAvailabilityZone
public String getAvailabilityZone()
getSnapshotId
public String getSnapshotId()
getName
public String getName()
getDescription
public String getDescription()
getMetadata
public Map<String,String> getMetadata()
Copyright © 2009-2012 jclouds. All Rights Reserved.