org.jclouds.azure.storage.options
Class CreateOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.azure.storage.options.CreateOptions
All Implemented Interfaces:
HttpRequestOptions
Direct Known Subclasses:
CreateContainerOptions

public class CreateOptions
extends BaseHttpRequestOptions

Contains common options supported in the REST API for the Create operation.

Usage

The recommended way to instantiate a CreateOptions object is to statically import CreateOptions.* and invoke a static creation method followed by an instance mutator (if needed):

import static org.jclouds.azure.storage.options.CreateOptions.Builder.* import org.jclouds.azure.storage.queue.AzureQueueClient;

AzureQueueClient connection = // get connection Multimap metadata = // ... boolean createdWithPublicAcl = connection.createQueue("containerName", withMetdata(metadata)); *

Author:
Adrian Cole
See Also:

Nested Class Summary
static class CreateOptions.Builder
           
 
Field Summary
static CreateOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
CreateOptions()
           
 
Method Summary
 CreateOptions withMetadata(com.google.common.collect.Multimap<String,String> metadata)
          A name-value pair to associate with the container as metadata.
 
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final CreateOptions NONE
Constructor Detail

CreateOptions

public CreateOptions()
Method Detail

withMetadata

public CreateOptions withMetadata(com.google.common.collect.Multimap<String,String> metadata)
A name-value pair to associate with the container as metadata. Note that these are stored at the server under the prefix: x-ms-meta-



Copyright © 2009-2011 jclouds. All Rights Reserved.