public class GetBlobOptions extends BlobServiceOptions
getBlob request.
These options include an optional server timeout for the operation, a
snapshot timestamp to specify a snapshot, a blob lease ID to get a blob with
an active lease, an optional start and end range for blob content to return,
and any access conditions to satisfy.| Constructor and Description |
|---|
GetBlobOptions() |
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.windowsazure.core.utils.AccessConditionHeader |
getAccessCondition()
Gets the access conditions set in this
GetBlobOptions instance. |
String |
getLeaseId()
Gets the lease ID to match for the blob set in this
GetBlobOptions instance. |
Long |
getRangeEnd()
Gets the ending byte offset value for the blob content range to return
set in this
GetBlobOptions instance. |
Long |
getRangeStart()
Gets the beginning byte offset value of the blob content range to return
set in this
GetBlobOptions instance. |
String |
getSnapshot()
Gets the snapshot timestamp value set in this
GetBlobOptions
instance. |
boolean |
isComputeRangeMD5()
Reserved for future use.
|
GetBlobOptions |
setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Sets optional access conditions for getting the blob.
|
GetBlobOptions |
setComputeRangeMD5(boolean computeRangeMD5)
Reserved for future use.
|
GetBlobOptions |
setLeaseId(String leaseId)
Sets an optional lease ID value to match when getting the blob.
|
GetBlobOptions |
setRangeEnd(Long rangeEnd)
Sets an optional ending byte offset value of the blob content range to
return for the request, inclusive.
|
GetBlobOptions |
setRangeStart(Long rangeStart)
Sets an optional beginning byte offset value of the blob content range to
return for the request, inclusive.
|
GetBlobOptions |
setSnapshot(String snapshot)
Sets an optional snapshot timestamp value used to identify the particular
snapshot of the blob to get properties, metadata, and content for.
|
GetBlobOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
GetBlobOptions instance. |
getTimeoutpublic GetBlobOptions setTimeout(Integer timeout)
GetBlobOptions instance.
The timeout value only affects calls made on methods where this
GetBlobOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.GetBlobOptions instance.public String getSnapshot()
GetBlobOptions
instance.String containing the snapshot timestamp value of the
blob snapshot to get.public GetBlobOptions setSnapshot(String snapshot)
Note that this value only affects calls made on methods where this
GetBlobOptions instance is passed as a parameter.
snapshot - A String containing the snapshot timestamp value of
the blob snapshot to get.GetBlobOptions instance.public String getLeaseId()
GetBlobOptions instance.String containing the lease ID set, if any.public GetBlobOptions setLeaseId(String leaseId)
Note that this value only affects calls made on methods where this
GetBlobOptions instance is passed as a parameter.
leaseId - A String containing the lease ID to set.GetBlobOptions instance.public boolean isComputeRangeMD5()
GetBlobOptions instance.true to get the MD5 hash value for
the specified range, otherwise false.public GetBlobOptions setComputeRangeMD5(boolean computeRangeMD5)
When the computeRangeMD5 parameter is set to true
and specified together with a range less than or equal to 4 MB in size,
the get blob operation response includes the MD5 hash for the range. If
the computeRangeMD5 parameter is set to true and no
range is specified or the range exceeds 4 MB in size, a
ServiceException is thrown.
computeRangeMD5 - Reserved for future use. Set a flag value of true
to get the MD5 hash value for the specified range, otherwise
false.GetBlobOptions instance.public Long getRangeStart()
GetBlobOptions instance.public GetBlobOptions setRangeStart(Long rangeStart)
When this value is set, the blob content beginning at the byte offset specified by the rangeStart value and ending at the range end value, inclusive, is returned in the server response to the get blob operation. If the range end is not set, the response includes blob content from the rangeStart value to the end of the blob.
Note that this value only affects calls made on methods where this
GetBlobOptions instance is passed as a parameter.
rangeStart - The beginning offset value in bytes for the blob content range
to return, inclusive.GetBlobOptions instance.public Long getRangeEnd()
GetBlobOptions instance.public GetBlobOptions setRangeEnd(Long rangeEnd)
If the range start is not set, this value is ignored and the response includes content from the entire blob.
Note that this value only affects calls made on methods where this
GetBlobOptions instance is passed as a parameter.
rangeEnd - The ending offset value in bytes for the blob content range to
return, inclusive.GetBlobOptions instance.public com.microsoft.windowsazure.core.utils.AccessConditionHeader getAccessCondition()
GetBlobOptions instance.AccessCondition containing the access conditions set,
if any.public GetBlobOptions setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Note that this value only affects calls made on methods where this
GetBlobOptions instance is passed as a parameter.
accessCondition - An AccessCondition containing the access conditions to
set.GetBlobOptions 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.
*/