public class CreateContainerOptions extends BlobServiceOptions
createContainer request. These options include a server response timeout for
the request, metadata to set on the container, and the public access level
for container and blob data. Options that are not set will not be passed to
the server with a request.| Constructor and Description |
|---|
CreateContainerOptions() |
| Modifier and Type | Method and Description |
|---|---|
CreateContainerOptions |
addMetadata(String key,
String value)
Adds a metadata name-value pair to the metadata collection associated
with this
CreateContainerOptions instance. |
HashMap<String,String> |
getMetadata()
Gets the metadata collection associated with this
CreateContainerOptions instance. |
String |
getPublicAccess()
Gets the public access level value associated with this
CreateContainerOptions instance. |
CreateContainerOptions |
setMetadata(HashMap<String,String> metadata)
Sets the metadata collection associated with this
CreateContainerOptions instance. |
CreateContainerOptions |
setPublicAccess(String publicAccess)
Sets the public access level value associated with this
CreateContainerOptions instance. |
CreateContainerOptions |
setTimeout(Integer timeout)
Sets the server request timeout value associated with this
CreateContainerOptions instance. |
getTimeoutpublic CreateContainerOptions setTimeout(Integer timeout)
CreateContainerOptions instance.
The timeout value only affects calls made on methods where this
CreateContainerOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.CreateContainerOptions instance.public HashMap<String,String> getMetadata()
CreateContainerOptions instance.public CreateContainerOptions setMetadata(HashMap<String,String> metadata)
CreateContainerOptions instance. Metadata is a collection of
name-value String pairs for client use and is opaque to the
server. Metadata names must adhere to the naming rules for C#
identifiers.
The metadata value only affects calls made on methods where this
CreateContainerOptions instance is passed as a parameter.
metadata - A HashMap of name-value pairs of
String containing the names and values of the
container metadata to set.CreateContainerOptions instance.public CreateContainerOptions addMetadata(String key, String value)
CreateContainerOptions instance.key - A String containing the name portion of the name-value
pair to add to the metadata collection.value - A String containing the value portion of the
name-value pair to add to the metadata collection.CreateContainerOptions instance.public String getPublicAccess()
CreateContainerOptions instance. The public access level
specifies whether data in the container may be accessed publicly and the
level of access. Possible values include:
null sets the container data private to
the storage account owner.String containing the public access level value to set,
or null.public CreateContainerOptions setPublicAccess(String publicAccess)
CreateContainerOptions instance. The public access level
specifies whether data in the container may be accessed publicly and the
level of access. Possible values include:
null sets the container data private to
the storage account owner.
The publicAccess value only affects calls made on methods where
this CreateContainerOptions instance is passed as a parameter.
publicAccess - A String containing the public access level value to
set, or null to set the container data private to
the storage account owner.CreateContainerOptions instance./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/