public class AcquireLeaseOptions extends BlobServiceOptions
acquireLease request.
These options include an optional server timeout for the operation and any access conditions for the operation.| Constructor and Description |
|---|
AcquireLeaseOptions() |
| Modifier and Type | Method and Description |
|---|---|
AccessCondition |
getAccessCondition()
Gets the access conditions set in this
AcquireLeaseOptions instance. |
AcquireLeaseOptions |
setAccessCondition(AccessCondition accessCondition)
Sets the access conditions for acquiring a lease on a blob.
|
AcquireLeaseOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
AcquireLeaseOptions instance. |
getTimeoutpublic AcquireLeaseOptions setTimeout(Integer timeout)
AcquireLeaseOptions instance.
The timeout value only affects calls made on methods where this AcquireLeaseOptions instance is
passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.AcquireLeaseOptions instance.public AccessCondition getAccessCondition()
AcquireLeaseOptions instance.AccessCondition containing the access conditions set, if any.public AcquireLeaseOptions setAccessCondition(AccessCondition accessCondition)
The accessCondition value only affects calls made on methods where this AcquireLeaseOptions
instance is passed as a parameter.
accessCondition - An AccessCondition containing the access conditions to set.AcquireLeaseOptions 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.
*/