public class CommitBlobBlocksOptions extends BlobServiceOptions
commitBlobBlocks request. These options include an optional server timeout
for the operation, the MIME content type and content encoding for the blob,
the content language, the MD5 hash, a cache control value, blob metadata, a
blob lease ID, and any access conditions for the operation.| Constructor and Description |
|---|
CommitBlobBlocksOptions() |
| Modifier and Type | Method and Description |
|---|---|
CommitBlobBlocksOptions |
addMetadata(String key,
String value)
Adds a name-value pair to the blob metadata collection associated with
this
CommitBlobBlocksOptions instance. |
com.microsoft.windowsazure.core.utils.AccessConditionHeader |
getAccessCondition()
Gets the access conditions set in this
CommitBlobBlocksOptions
instance. |
String |
getBlobCacheControl()
Gets the HTTP cache control value set in this
CommitBlobBlocksOptions instance. |
String |
getBlobContentEncoding()
Gets the HTTP content encoding value set in this
CommitBlobBlocksOptions instance. |
String |
getBlobContentLanguage()
Gets the HTTP content language header value set in this
CommitBlobBlocksOptions instance. |
String |
getBlobContentMD5()
Gets the MD5 hash value for the blob content set in this
CommitBlobBlocksOptions instance. |
String |
getBlobContentType()
Gets the MIME content type value set in this
CommitBlobBlocksOptions instance. |
String |
getLeaseId()
Gets the lease ID for the blob set in this
CommitBlobBlocksOptions instance. |
HashMap<String,String> |
getMetadata()
Gets the blob metadata collection set in this
CommitBlobBlocksOptions instance. |
CommitBlobBlocksOptions |
setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Sets the access conditions for updating a blob.
|
CommitBlobBlocksOptions |
setBlobCacheControl(String blobCacheControl)
Sets the optional HTTP cache control value for the blob content.
|
CommitBlobBlocksOptions |
setBlobContentEncoding(String blobContentEncoding)
Sets the optional HTTP content encoding value for the blob content.
|
CommitBlobBlocksOptions |
setBlobContentLanguage(String blobContentLanguage)
Sets the optional HTTP content language header value for the blob
content.
|
CommitBlobBlocksOptions |
setBlobContentMD5(String blobContentMD5)
Sets the optional MD5 hash value for the blob content.
|
CommitBlobBlocksOptions |
setBlobContentType(String blobContentType)
Sets the optional MIME content type for the blob content.
|
CommitBlobBlocksOptions |
setLeaseId(String leaseId)
Sets a lease ID value to match when updating the blob.
|
CommitBlobBlocksOptions |
setMetadata(HashMap<String,String> metadata)
Sets the blob metadata collection to associate with the created blob.
|
CommitBlobBlocksOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
CommitBlobBlocksOptions instance. |
getTimeoutpublic CommitBlobBlocksOptions setTimeout(Integer timeout)
CommitBlobBlocksOptions instance.
The timeout value only affects calls made on methods where this
CommitBlobBlocksOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.CommitBlobBlocksOptions instance.public String getBlobContentType()
CommitBlobBlocksOptions instance.String containing the MIME content type value set, if
any.public CommitBlobBlocksOptions setBlobContentType(String blobContentType)
Content-Type header of the
response when the blob data or blob properties are requested. If no
content type is specified, the default content type is
application/octet-stream.
Note that this value only affects calls made on methods where this
CommitBlobBlocksOptions instance is passed as a parameter.
blobContentType - A String containing the MIME content type value to
set.CommitBlobBlocksOptions instance.public String getBlobContentEncoding()
CommitBlobBlocksOptions instance.String containing the HTTP content encoding value set,
if any.public CommitBlobBlocksOptions setBlobContentEncoding(String blobContentEncoding)
x-ms-blob-content-encoding header value to the
server. This value will be returned to clients in the headers of the
response when the blob data or blob properties are requested. Pass an
empty value to update a blob to the default value, which will cause no
content encoding header to be returned with the blob.
Note that this value only affects calls made on methods where this
CommitBlobBlocksOptions instance is passed as a parameter.
blobContentEncoding - A String containing the
x-ms-blob-content-encoding header value to set.CommitBlobBlocksOptions instance.public String getBlobContentLanguage()
CommitBlobBlocksOptions instance.String containing the HTTP content language header
value set, if any.public CommitBlobBlocksOptions setBlobContentLanguage(String blobContentLanguage)
x-ms-blob-content-language header of the response when the
blob data or blob properties are requested.
Note that this value only affects calls made on methods where this
CommitBlobBlocksOptions instance is passed as a parameter.
blobContentLanguage - A String containing the
x-ms-blob-content-language header value to set.CommitBlobBlocksOptions instance.public String getBlobContentMD5()
CommitBlobBlocksOptions instance.String containing the MD5 hash value for the blob
content set, if any.public CommitBlobBlocksOptions setBlobContentMD5(String blobContentMD5)
x-ms-blob-content-md5 header
value of the response when the blob data or blob properties are
requested. This hash is used to verify the integrity of the blob during
transport. When this header is specified, the storage service checks the
hash of the content that has arrived with the one that was sent. If the
two hashes do not match, the operation will fail with error code 400 (Bad
Request), which will cause a ServiceException to be thrown.
Note that this value only affects calls made on methods where this
CommitBlobBlocksOptions instance is passed as a parameter.
blobContentMD5 - A String containing the MD5 hash value for the blob
content to set.CommitBlobBlocksOptions instance.public String getBlobCacheControl()
CommitBlobBlocksOptions instance.String containing the HTTP cache control value set, if
any.public CommitBlobBlocksOptions setBlobCacheControl(String blobCacheControl)
Note that this value only affects calls made on methods where this
CommitBlobBlocksOptions instance is passed as a parameter.
blobCacheControl - A String containing the HTTP cache control value to
set.CommitBlobBlocksOptions instance.public HashMap<String,String> getMetadata()
CommitBlobBlocksOptions instance.public CommitBlobBlocksOptions setMetadata(HashMap<String,String> metadata)
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
CommitBlobBlocksOptions instance is passed as a parameter.
metadata - A HashMap of name-value pairs of String
containing the blob metadata to set.CommitBlobBlocksOptions instance.public CommitBlobBlocksOptions addMetadata(String key, String value)
CommitBlobBlocksOptions 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.CommitBlobBlocksOptions instance.public String getLeaseId()
CommitBlobBlocksOptions instance.String containing the lease ID set, if any.public CommitBlobBlocksOptions setLeaseId(String leaseId)
The leaseId value only affects calls made on methods where this
CommitBlobBlocksOptions instance is passed as a parameter.
leaseId - A String containing the lease ID to set.CommitBlobBlocksOptions instance.public com.microsoft.windowsazure.core.utils.AccessConditionHeader getAccessCondition()
CommitBlobBlocksOptions
instance.AccessCondition containing the access conditions set,
if any.public CommitBlobBlocksOptions setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
The accessCondition value only affects calls made on methods
where this CommitBlobBlocksOptions instance is passed as a
parameter.
accessCondition - An AccessCondition containing the access conditions to
set.CommitBlobBlocksOptions 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.
*/