public class SetBlobPropertiesOptions extends BlobServiceOptions
setBlobProperties request. These options include an optional server timeout
for the operation, the MIME content type and content encoding for the blob,
the content length, the content language, the MD5 hash, a cache control
value, a blob lease ID, a sequence number and sequence number action value,
and any access conditions for the operation.| Constructor and Description |
|---|
SetBlobPropertiesOptions() |
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.windowsazure.core.utils.AccessConditionHeader |
getAccessCondition()
Gets the access conditions set in this
SetBlobPropertiesOptions
instance. |
String |
getCacheControl()
Gets the HTTP cache control value set in this
SetBlobPropertiesOptions instance. |
String |
getContentEncoding()
Gets the HTTP content encoding value set in this
SetBlobPropertiesOptions instance. |
String |
getContentLanguage()
Gets the HTTP content language header value set in this
SetBlobPropertiesOptions instance. |
Long |
getContentLength()
Gets the new page blob size set in this
SetBlobPropertiesOptions
instance. |
String |
getContentMD5()
Gets the MD5 hash value for the blob content set in this
SetBlobPropertiesOptions instance. |
String |
getContentType()
Gets the MIME content type value set in this
SetBlobPropertiesOptions instance. |
String |
getLeaseId()
Gets the lease ID to match for the blob set in this
SetBlobPropertiesOptions instance. |
Long |
getSequenceNumber()
Gets the sequence number value set in this
SetBlobPropertiesOptions instance. |
String |
getSequenceNumberAction()
Gets the sequence number action set in this
SetBlobPropertiesOptions instance. |
SetBlobPropertiesOptions |
setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Sets the access conditions for setting the properties of a blob.
|
SetBlobPropertiesOptions |
setCacheControl(String cacheControl)
Sets the optional HTTP cache control value for the blob content.
|
SetBlobPropertiesOptions |
setContentEncoding(String contentEncoding)
Sets the optional HTML content encoding value for the blob content.
|
SetBlobPropertiesOptions |
setContentLanguage(String contentLanguage)
Sets the optional HTTP content language header value for the blob
content.
|
SetBlobPropertiesOptions |
setContentLength(Long contentLength)
Sets the size of a page blob to the specified size.
|
SetBlobPropertiesOptions |
setContentMD5(String contentMD5)
Sets the optional MD5 hash value for the blob content.
|
SetBlobPropertiesOptions |
setContentType(String contentType)
Sets the optional MIME content type for the blob content.
|
SetBlobPropertiesOptions |
setLeaseId(String leaseId)
Sets an optional lease ID value to match when setting properties of the
blob.
|
SetBlobPropertiesOptions |
setSequenceNumber(Long sequenceNumber)
Sets the page blob sequence number.
|
SetBlobPropertiesOptions |
setSequenceNumberAction(String sequenceNumberAction)
Sets an optional sequence number action for a page blob.
|
SetBlobPropertiesOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
SetBlobPropertiesOptions instance. |
getTimeoutpublic SetBlobPropertiesOptions setTimeout(Integer timeout)
SetBlobPropertiesOptions instance.
The timeout value only affects calls made on methods where this
SetBlobPropertiesOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.SetBlobPropertiesOptions instance.public String getContentType()
SetBlobPropertiesOptions instance.String containing the MIME content type value set, if
any.public SetBlobPropertiesOptions setContentType(String contentType)
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
SetBlobPropertiesOptions instance is passed as a parameter.
contentType - A String containing the MIME content type value to
set.SetBlobPropertiesOptions instance.public Long getContentLength()
SetBlobPropertiesOptions
instance.public SetBlobPropertiesOptions setContentLength(Long contentLength)
This property cannot be used to change the size of a block blob. Setting
this property for a block blob causes a ServiceException to be
thrown.
Note that this value only affects calls made on methods where this
SetBlobPropertiesOptions instance is passed as a parameter.
contentLength - The new size to set for a page blob.SetBlobPropertiesOptions instance.public String getContentEncoding()
SetBlobPropertiesOptions instance.String containing the HTTP content encoding value set,
if any.public SetBlobPropertiesOptions setContentEncoding(String contentEncoding)
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
SetBlobPropertiesOptions instance is passed as a parameter.
contentEncoding - A String containing the
x-ms-blob-content-encoding header value to set.SetBlobPropertiesOptions instance.public String getContentLanguage()
SetBlobPropertiesOptions instance.String containing the HTTP content language header
value set, if any.public SetBlobPropertiesOptions setContentLanguage(String contentLanguage)
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
SetBlobPropertiesOptions instance is passed as a parameter.
contentLanguage - A String containing the
x-ms-blob-content-language header value to set.SetBlobPropertiesOptions instance.public String getContentMD5()
SetBlobPropertiesOptions instance.String containing the MD5 hash value for the blob
content set, if any.public SetBlobPropertiesOptions setContentMD5(String contentMD5)
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
SetBlobPropertiesOptions instance is passed as a parameter.
contentMD5 - A String containing the MD5 hash value for the blob
content to set.SetBlobPropertiesOptions instance.public String getCacheControl()
SetBlobPropertiesOptions instance.String containing the HTTP cache control value set, if
any.public SetBlobPropertiesOptions setCacheControl(String cacheControl)
Note that this value only affects calls made on methods where this
SetBlobPropertiesOptions instance is passed as a parameter.
cacheControl - A String containing the HTTP cache control value to
set.SetBlobPropertiesOptions instance.public Long getSequenceNumber()
SetBlobPropertiesOptions instance.public SetBlobPropertiesOptions setSequenceNumber(Long sequenceNumber)
max or
update.
Use the sequenceNumber parameter together with the sequence
number action to update the blob's sequence number, either to the
specified value or to the higher of the values specified with the request
or currently stored with the blob. This header should not be specified if
the sequence number action is set to increment; in this case
the service automatically increments the sequence number by one.
To set the sequence number to a value of your choosing, this property
must be specified on the request together with a sequence number action
value of update.
Note that this value only affects calls made on methods where this
SetBlobPropertiesOptions instance is passed as a parameter.
sequenceNumber - The sequence number to set.SetBlobPropertiesOptions instance.public String getLeaseId()
SetBlobPropertiesOptions instance.String containing the lease ID set, if any.public SetBlobPropertiesOptions setLeaseId(String leaseId)
Note that this value only affects calls made on methods where this
SetBlobPropertiesOptions instance is passed as a parameter.
leaseId - A String containing the lease ID to set.SetBlobPropertiesOptions instance.public String getSequenceNumberAction()
SetBlobPropertiesOptions instance.String containing the sequence number action set, if
any.public SetBlobPropertiesOptions setSequenceNumberAction(String sequenceNumberAction)
The sequenceNumberAction parameter indicates how the service should modify the page blob's sequence number. Specify one of the following strings for this parameter:
max - Sets the sequence number to be the higher of the
value included with the request and the value currently stored for the
blob.update - Sets the sequence number to the value included
with the request.increment - Increments the value of the sequence number
by 1. If specifying this option, do not set the sequence number value;
doing so will cause a ServiceException to be thrown.
Note that this value only affects calls made on methods where this
SetBlobPropertiesOptions instance is passed as a parameter.
sequenceNumberAction - A String containing the sequence number action to set
on the page blob.SetBlobPropertiesOptions instance.public com.microsoft.windowsazure.core.utils.AccessConditionHeader getAccessCondition()
SetBlobPropertiesOptions
instance.AccessCondition containing the access conditions set,
if any.public SetBlobPropertiesOptions setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
The accessCondition value only affects calls made on methods
where this SetBlobPropertiesOptions instance is passed as a
parameter.
accessCondition - An AccessCondition containing the access conditions to
set.SetBlobPropertiesOptions 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.
*/