Package com.azure.storage.blob.options
Class BlobChangeLeaseOptions
java.lang.Object
com.azure.storage.blob.options.BlobChangeLeaseOptions
Extended options that may be passed when changing a lease to a blob or container.
-
Constructor Summary
ConstructorsConstructorDescriptionBlobChangeLeaseOptions(String proposedId) Creates a new instance ofBlobChangeLeaseOptions. -
Method Summary
Modifier and TypeMethodDescriptionGets the proposed lease ID.Gets theBlobLeaseRequestConditions.setRequestConditions(BlobLeaseRequestConditions requestConditions) Sets theBlobLeaseRequestConditions.
-
Constructor Details
-
BlobChangeLeaseOptions
Creates a new instance ofBlobChangeLeaseOptions.- Parameters:
proposedId- A new lease ID in a valid GUID format.- Throws:
NullPointerException- IfproposedIdis null.
-
-
Method Details
-
getProposedId
Gets the proposed lease ID.- Returns:
- A new lease ID in a valid GUID format.
-
getRequestConditions
Gets theBlobLeaseRequestConditions.- Returns:
BlobLeaseRequestConditions
-
setRequestConditions
Sets theBlobLeaseRequestConditions.- Parameters:
requestConditions-BlobLeaseRequestConditions- Returns:
- The updated options.
-