org.jclouds.azureblob.options
Class CreateContainerOptions

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

public class CreateContainerOptions
extends CreateOptions

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

Usage

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

import static org.jclouds.azureblob.options.CreateContainerOptions.Builder.* import org.jclouds.azureblob.AzureBlobClient;

AzureBlobClient connection = // get connection boolean createdWithPublicAccess = connection.createContainer("containerName", withPublicAccess(PublicAccess.BLOB)); *

Author:
Adrian Cole
See Also:

Nested Class Summary
static class CreateContainerOptions.Builder
           
 
Field Summary
static CreateContainerOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
CreateContainerOptions()
           
 
Method Summary
 CreateContainerOptions withMetadata(com.google.common.collect.Multimap<String,String> metadata)
          A name-value pair to associate with the container as metadata.
 CreateContainerOptions withPublicAccess(PublicAccess access)
          Indicates whether a container may be accessed publicly
 
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 CreateContainerOptions NONE
Constructor Detail

CreateContainerOptions

public CreateContainerOptions()
Method Detail

withMetadata

public CreateContainerOptions withMetadata(com.google.common.collect.Multimap<String,String> metadata)
Description copied from class: CreateOptions
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-

Overrides:
withMetadata in class CreateOptions

withPublicAccess

public CreateContainerOptions withPublicAccess(PublicAccess access)
Indicates whether a container may be accessed publicly



Copyright © 2009-2011 jclouds. All Rights Reserved.