Class PageBlobRequestConditions


  • public final class PageBlobRequestConditions
    extends BlobRequestConditions
    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 Detail

      • PageBlobRequestConditions

        public PageBlobRequestConditions()
    • Method Detail

      • setIfNoneMatch

        public PageBlobRequestConditions setIfNoneMatch​(String ifNoneMatch)
        Optionally limit requests to resources that do not match the passed ETag.
        Overrides:
        setIfNoneMatch in class BlobRequestConditions
        Parameters:
        ifNoneMatch - ETag that resources must not match.
        Returns:
        The updated PageBlobRequestConditions object.
      • setLeaseId

        public PageBlobRequestConditions setLeaseId​(String leaseId)
        Optionally limits requests to blobs and containers that match the lease ID.
        Overrides:
        setLeaseId in class BlobRequestConditions
        Parameters:
        leaseId - Lease ID that blobs and containers must match.
        Returns:
        The updated PageBlobRequestConditions object.
      • setTagsConditions

        public PageBlobRequestConditions setTagsConditions​(String tagsConditions)
        Optionally applies the SQL statement to the tags of the blob.
        Overrides:
        setTagsConditions in class BlobRequestConditions
        Parameters:
        tagsConditions - The SQL statement that apply to the tags of the blob.
        Returns:
        The updated BlobRequestConditions object.
      • getIfSequenceNumberLessThanOrEqualTo

        public Long 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

        public Long 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

        public PageBlobRequestConditions setIfSequenceNumberLessThan​(Long ifSequenceNumberLessThan)
        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

        public Long 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

        public PageBlobRequestConditions setIfSequenceNumberEqualTo​(Long ifSequenceNumberEqualTo)
        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.