public class AcquireLeaseResult extends Object
com.microsoft.windowsazure.services.blob.BlobContract#acquireLease(String, String),
com.microsoft.windowsazure.services.blob.BlobContract#acquireLease(String, String, AcquireLeaseOptions),
com.microsoft.windowsazure.services.blob.BlobContract#renewLease(String, String, String, BlobServiceOptions),
and com.microsoft.windowsazure.services.blob.BlobContract#renewLease(String, String, String).
See the Lease Blob documentation on MSDN for details of the underlying Blob Service REST API operation.
| Constructor and Description |
|---|
AcquireLeaseResult() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLeaseId()
Gets the lease ID of the blob.
|
void |
setLeaseId(String leaseId)
Reserved for internal use.
|
public String getLeaseId()
This value is used when updating or deleting a blob with an active lease, and when renewing or releasing the lease.
String containing the server-assigned lease ID for the
blob.public void setLeaseId(String leaseId)
This method is invoked by the API to set the value from the Blob Service REST API operation response returned by the server.
leaseId - A String containing the server-assigned lease ID for
the blob./**
* 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.
*/