public class CreateBlobBlockOptions extends BlobServiceOptions
createBlobBlock request. These options include an optional server timeout
for the operation, the lease ID if the blob has an active lease, and the MD5
hash value for the block content.| Constructor and Description |
|---|
CreateBlobBlockOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentMD5()
Gets the MD5 hash value for the block content set in this
CreateBlobBlockOptions instance. |
String |
getLeaseId()
Gets the lease ID to match for the blob set in this
CreateBlobBlockOptions instance. |
CreateBlobBlockOptions |
setContentMD5(String contentMD5)
Sets the optional MD5 hash value for the block content.
|
CreateBlobBlockOptions |
setLeaseId(String leaseId)
Sets a lease ID value to match when updating the blob.
|
CreateBlobBlockOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
CreateBlobBlockOptions instance. |
getTimeoutpublic CreateBlobBlockOptions setTimeout(Integer timeout)
CreateBlobBlockOptions instance.
The timeout value only affects calls made on methods where this
CreateBlobBlockOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.CreateBlobBlockOptions instance.public String getLeaseId()
CreateBlobBlockOptions instance.String containing the lease ID set, if any.public CreateBlobBlockOptions setLeaseId(String leaseId)
Note that this value only affects calls made on methods where this
CreateBlobBlockOptions instance is passed as a parameter.
leaseId - A String containing the lease ID to set.CreateBlobBlockOptions instance.public String getContentMD5()
CreateBlobBlockOptions instance.String containing the MD5 hash value for the block
content set, if any.public CreateBlobBlockOptions setContentMD5(String contentMD5)
Note that this value only affects calls made on methods where this
CreateBlobBlockOptions instance is passed as a parameter.
contentMD5 - A String containing the MD5 hash value for the block
content to set.CreateBlobBlockOptions 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.
*/