org.jclouds.openstack.cinder.v1.options
Class CreateVolumeOptions

java.lang.Object
  extended by org.jclouds.openstack.cinder.v1.options.CreateVolumeOptions
All Implemented Interfaces:
org.jclouds.rest.Binder, org.jclouds.rest.MapBinder

public class CreateVolumeOptions
extends Object
implements org.jclouds.rest.MapBinder


Nested Class Summary
static class CreateVolumeOptions.Builder
           
 
Field Summary
protected  String availabilityZone
           
protected  String description
           
protected  Map<String,String> metadata
           
protected  String name
           
static CreateVolumeOptions NONE
           
protected  String snapshotId
           
protected  String volumeType
           
 
Constructor Summary
CreateVolumeOptions()
           
 
Method Summary
 CreateVolumeOptions availabilityZone(String availabilityZone)
           
<R extends org.jclouds.http.HttpRequest>
R
bindToRequest(R request, Map<String,Object> postParams)
           
<R extends org.jclouds.http.HttpRequest>
R
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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final CreateVolumeOptions NONE

name

protected String name

description

protected String description

volumeType

protected String volumeType

availabilityZone

protected String availabilityZone

snapshotId

protected String snapshotId

metadata

protected Map<String,String> metadata
Constructor Detail

CreateVolumeOptions

public CreateVolumeOptions()
Method Detail

bindToRequest

public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
                                                                Map<String,Object> postParams)
Specified by:
bindToRequest in interface org.jclouds.rest.MapBinder

bindToRequest

public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
                                                                Object toBind)
Specified by:
bindToRequest in interface org.jclouds.rest.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)
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()

getMetadata

public Map<String,String> getMetadata()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.