public class ListBlobBlocksOptions extends BlobServiceOptions
listBlobBlocks request. These options include an optional server timeout for
the operation, the lease ID if the blob has an active lease, the snapshot
timestamp to get the committed blocks of a snapshot, whether to return the
committed block list, and whether to return the uncommitted block list.| Constructor and Description |
|---|
ListBlobBlocksOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLeaseId()
Gets the lease ID to match for the blob set in this
ListBlobBlocksOptions instance. |
String |
getSnapshot()
Gets the snapshot timestamp value set in this
ListBlobBlocksOptions instance. |
boolean |
isCommittedList()
Gets the flag value indicating whether to return the committed blocks of
the blob set in this
ListBlobBlocksOptions instance. |
boolean |
isUncommittedList()
Gets the flag value indicating whether to return the uncommitted blocks
of the blob set in this
ListBlobBlocksOptions instance. |
ListBlobBlocksOptions |
setCommittedList(boolean committedList)
Sets a flag indicating whether to return the committed blocks of the blob
in the response to the list blob blocks request.
|
ListBlobBlocksOptions |
setLeaseId(String leaseId)
Sets a lease ID value to match when listing the blocks of the blob.
|
ListBlobBlocksOptions |
setSnapshot(String snapshot)
Sets the snapshot timestamp value used to identify the particular
snapshot of the blob to list blocks for.
|
ListBlobBlocksOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
ListBlobBlocksOptions instance. |
ListBlobBlocksOptions |
setUncommittedList(boolean uncommittedList)
Sets a flag indicating whether to return the uncommitted blocks of the
blob in the response to the list blob blocks request.
|
getTimeoutpublic ListBlobBlocksOptions setTimeout(Integer timeout)
ListBlobBlocksOptions instance.
The timeout value only affects calls made on methods where this
ListBlobBlocksOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.ListBlobBlocksOptions instance.public String getLeaseId()
ListBlobBlocksOptions instance.String containing the lease ID set, if any.public ListBlobBlocksOptions setLeaseId(String leaseId)
Note that this value only affects calls made on methods where this
ListBlobBlocksOptions instance is passed as a parameter.
leaseId - A String containing the lease ID to set.ListBlobBlocksOptions instance.public String getSnapshot()
ListBlobBlocksOptions instance.String containing the snapshot timestamp value of the
blob snapshot to list.public ListBlobBlocksOptions setSnapshot(String snapshot)
Note that this value only affects calls made on methods where this
ListBlobBlocksOptions instance is passed as a parameter.
snapshot - A String containing the snapshot timestamp value of
the blob snapshot to list.ListBlobBlocksOptions instance.public boolean isCommittedList()
ListBlobBlocksOptions instance.boolean flag value indicating whether to return
the committed blocks of the blob.public ListBlobBlocksOptions setCommittedList(boolean committedList)
Note that this value only affects calls made on methods where this
ListBlobBlocksOptions instance is passed as a parameter.
committedList - Set to true to return the committed blocks of the
blob; otherwise, false.ListBlobBlocksOptions instance.public boolean isUncommittedList()
ListBlobBlocksOptions instance.boolean flag value indicating whether to return
the uncommitted blocks of the blob.public ListBlobBlocksOptions setUncommittedList(boolean uncommittedList)
Note that this value only affects calls made on methods where this
ListBlobBlocksOptions instance is passed as a parameter.
uncommittedList - Set to true to return the uncommitted blocks of
the blob; otherwise, false.ListBlobBlocksOptions 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.
*/