Class AppendBlobRequestConditions


  • public final class AppendBlobRequestConditions
    extends BlobRequestConditions
    This class contains values that restrict the successful completion of AppendBlock operations to certain conditions. Any field 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

      • AppendBlobRequestConditions

        public AppendBlobRequestConditions()
    • Method Detail

      • setIfNoneMatch

        public AppendBlobRequestConditions 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 AppendBlobRequestConditions object.
      • setLeaseId

        public AppendBlobRequestConditions 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 AppendBlobRequestConditions object.
      • setTagsConditions

        public AppendBlobRequestConditions 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.
      • getMaxSize

        public Long getMaxSize()
        Gets the max length in bytes allowed for the append blob.

        If the operation would cause the append blob to grow larger than the limit the request will fail.

        Returns:
        The max length in bytes allowed for the append blob.
      • setMaxSize

        public AppendBlobRequestConditions setMaxSize​(Long maxSize)
        Sets the max length in bytes allowed for the append blob.

        If the operation would cause the append blob to grow larger than the limit the request will fail.

        Parameters:
        maxSize - Append blob size byte limit.
        Returns:
        The updated AppendBlobRequestConditions object.
      • getAppendPosition

        public Long getAppendPosition()
        Gets the byte offset that the append position of the append blob must match.
        Returns:
        The byte offset that must match the append position.
      • setAppendPosition

        public AppendBlobRequestConditions setAppendPosition​(Long appendPosition)
        Sets the byte offset that the append position of the append blob must match.
        Parameters:
        appendPosition - Byte offset to compare to the append position.
        Returns:
        The updated AppendBlobRequestConditions object.