Package org.jclouds.azureblob.options
Class CreateContainerOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.azure.storage.options.CreateOptions
org.jclouds.azureblob.options.CreateContainerOptions
- All Implemented Interfaces:
HttpRequestOptions
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));
*
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithMetadata
(com.google.common.collect.Multimap<String, String> metadata) A name-value pair to associate with the container as metadata.withPublicAccess
(PublicAccess access) Indicates whether a container may be accessed publiclyMethods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
Field Details
-
NONE
-
-
Constructor Details
-
CreateContainerOptions
public CreateContainerOptions()
-
-
Method Details
-
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 classCreateOptions
-
withPublicAccess
Indicates whether a container may be accessed publicly
-