Package com.azure.storage.blob.models
Class PageBlobRequestConditions
java.lang.Object
com.azure.core.http.MatchConditions
com.azure.core.http.RequestConditions
com.azure.storage.blob.models.BlobLeaseRequestConditions
com.azure.storage.blob.models.BlobRequestConditions
com.azure.storage.blob.models.PageBlobRequestConditions
This class contains values that restrict the successful completion of PageBlob operations to certain conditions.
It may be set to null if no access conditions are desired.
Please refer to the request header section here for more conceptual information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value that the page blob's sequence number must be equal to.Gets the value that the page blob's sequence number must be less than.Gets the value that the page blob's sequence number must be less than or equal to.setIfMatch
(String ifMatch) Optionally limit requests to resources that match the passed ETag.setIfModifiedSince
(OffsetDateTime ifModifiedSince) Optionally limit requests to resources that have only been modified since the passeddatetime
.setIfNoneMatch
(String ifNoneMatch) Optionally limit requests to resources that do not match the passed ETag.setIfSequenceNumberEqualTo
(Long ifSequenceNumberEqualTo) Sets the value that the page blob's sequence number must be less equal to.setIfSequenceNumberLessThan
(Long ifSequenceNumberLessThan) Sets the value that the page blob's sequence number must be less than.setIfSequenceNumberLessThanOrEqualTo
(Long ifSequenceNumberLessThanOrEqualTo) Sets the value that the page blob's sequence number must be less than or equal to.setIfUnmodifiedSince
(OffsetDateTime ifUnmodifiedSince) Optionally limit requests to resources that have remained unmodified since the passeddatetime
.setLeaseId
(String leaseId) Optionally limits requests to blobs and containers that match the lease ID.setTagsConditions
(String tagsConditions) Optionally applies the SQL statement to the tags of the blob.Methods inherited from class com.azure.storage.blob.models.BlobRequestConditions
getLeaseId
Methods inherited from class com.azure.storage.blob.models.BlobLeaseRequestConditions
getTagsConditions
Methods inherited from class com.azure.core.http.RequestConditions
getIfModifiedSince, getIfUnmodifiedSince
Methods inherited from class com.azure.core.http.MatchConditions
getIfMatch, getIfNoneMatch
-
Constructor Details
-
PageBlobRequestConditions
public PageBlobRequestConditions()
-
-
Method Details
-
setIfMatch
Optionally limit requests to resources that match the passed ETag.- Overrides:
setIfMatch
in classBlobRequestConditions
- Parameters:
ifMatch
- ETag that resources must match.- Returns:
- The updated PageBlobRequestConditions object.
-
setIfNoneMatch
Optionally limit requests to resources that do not match the passed ETag.- Overrides:
setIfNoneMatch
in classBlobRequestConditions
- Parameters:
ifNoneMatch
- ETag that resources must not match.- Returns:
- The updated PageBlobRequestConditions object.
-
setIfModifiedSince
Optionally limit requests to resources that have only been modified since the passeddatetime
.- Overrides:
setIfModifiedSince
in classBlobRequestConditions
- Parameters:
ifModifiedSince
- The datetime that resources must have been modified since.- Returns:
- The updated PageBlobRequestConditions object.
-
setIfUnmodifiedSince
Optionally limit requests to resources that have remained unmodified since the passeddatetime
.- Overrides:
setIfUnmodifiedSince
in classBlobRequestConditions
- Parameters:
ifUnmodifiedSince
- The datetime that resources must have remained unmodified since.- Returns:
- The updated PageBlobRequestConditions object.
-
setLeaseId
Optionally limits requests to blobs and containers that match the lease ID.- Overrides:
setLeaseId
in classBlobRequestConditions
- Parameters:
leaseId
- Lease ID that blobs and containers must match.- Returns:
- The updated PageBlobRequestConditions object.
-
setTagsConditions
Optionally applies the SQL statement to the tags of the blob.- Overrides:
setTagsConditions
in classBlobRequestConditions
- Parameters:
tagsConditions
- The SQL statement that apply to the tags of the blob.- Returns:
- The updated BlobRequestConditions object.
-
getIfSequenceNumberLessThanOrEqualTo
Gets the value that the page blob's sequence number must be less than or equal to.- Returns:
- The value the sequence number must be less than or equal to.
-
setIfSequenceNumberLessThanOrEqualTo
public PageBlobRequestConditions setIfSequenceNumberLessThanOrEqualTo(Long ifSequenceNumberLessThanOrEqualTo) Sets the value that the page blob's sequence number must be less than or equal to.- Parameters:
ifSequenceNumberLessThanOrEqualTo
- The value the sequence number must be less than or equal to.- Returns:
- The updated PageBlobRequestConditions object.
-
getIfSequenceNumberLessThan
Gets the value that the page blob's sequence number must be less than.- Returns:
- The value the sequence number must be less than.
-
setIfSequenceNumberLessThan
Sets the value that the page blob's sequence number must be less than.- Parameters:
ifSequenceNumberLessThan
- The value the sequence number must be less than.- Returns:
- The updated PageBlobRequestConditions object.
-
getIfSequenceNumberEqualTo
Gets the value that the page blob's sequence number must be equal to.- Returns:
- The value the sequence number must be equal to.
-
setIfSequenceNumberEqualTo
Sets the value that the page blob's sequence number must be less equal to.- Parameters:
ifSequenceNumberEqualTo
- The value the sequence number must be equal to.- Returns:
- The updated PageBlobRequestConditions object.
-