org.jclouds.openstack.glance.v1_0.options
Class CreateImageOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.openstack.glance.v1_0.options.UpdateImageOptions
          extended by org.jclouds.openstack.glance.v1_0.options.CreateImageOptions
All Implemented Interfaces:
org.jclouds.http.options.HttpRequestOptions

public class CreateImageOptions
extends UpdateImageOptions

Usage The recommended way to instantiate a CreateImageOptions object is to statically import CreateImageOptions.Builder.* and invoke a static creation method for each option as needed:

import static org.jclouds.openstack.glance.v1_0.options.CreateImageOptions.Builder.* // this will create an image with the name "imageName", minimum required disk of 10GB, etc. details = api.create("imageName", minDisk(10), isPublic(true), property("mykey", "somevalue"));

Author:
Adam Lowe
See Also:

Nested Class Summary
static class CreateImageOptions.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
 
Constructor Summary
CreateImageOptions()
           
 
Method Summary
 CreateImageOptions id(String id)
          When present, Glance will use the supplied identifier for the image instead of generating one.
 
Methods inherited from class org.jclouds.openstack.glance.v1_0.options.UpdateImageOptions
checksum, containerFormat, diskFormat, isProtected, isPublic, location, minDisk, minRam, name, owner, property, size, storeType
 
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateImageOptions

public CreateImageOptions()
Method Detail

id

public CreateImageOptions id(String id)
When present, Glance will use the supplied identifier for the image instead of generating one. If the identifier already exists in that Glance node, then a 409 Conflict will be returned by Glance. The value of the header must be a uuid in hexadecimal string notation (i.e. 71c675ab-d94f-49cd-a114-e12490b328d9).



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