CloudBlobContainer.changeLease Method

Definition

Overloads

changeLease(final String proposedLeaseId, final AccessCondition accessCondition)

Changes the existing lease ID to the proposed lease ID.

changeLease(final String proposedLeaseId, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Changes the existing lease ID to the proposed lease Id with the specified access conditions, request options, and operation context.

changeLease(final String proposedLeaseId, final AccessCondition accessCondition)

Changes the existing lease ID to the proposed lease ID.

public final String changeLease(final String proposedLeaseId, final AccessCondition accessCondition)
Parameters
proposedLeaseId
final String

A String that represents the proposed lease ID for the new lease, or null if no lease ID is proposed.

accessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the blob. The lease ID is required to be set with an access condition.

Returns
final String

A String that represents the new lease ID.

Exceptions

If a storage service error occurred.

changeLease(final String proposedLeaseId, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Changes the existing lease ID to the proposed lease Id with the specified access conditions, request options, and operation context.

public final String changeLease(final String proposedLeaseId, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
proposedLeaseId
final String

A String that represents the proposed lease ID for the new lease. This cannot be null.

accessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the blob. The lease ID is required to be set with an access condition.

options
BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client (CloudBlobClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. The context is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns
final String

A String that represents the new lease ID.

Exceptions

If a storage service error occurred.

Applies to