Class AppendBlobAppendBlockFromUrlOptions


  • public final class AppendBlobAppendBlockFromUrlOptions
    extends Object
    Extended options that may be passed when appending a block from a source URL.
    • Constructor Detail

      • AppendBlobAppendBlockFromUrlOptions

        public AppendBlobAppendBlockFromUrlOptions​(String sourceUrl)
        Parameters:
        sourceUrl - The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
    • Method Detail

      • getSourceUrl

        public String getSourceUrl()
        Returns:
        Source URL to copy from.
      • getSourceRange

        public BlobRange getSourceRange()
        Returns:
        Range of bytes to read from the source.
      • getSourceContentMd5

        public byte[] getSourceContentMd5()
        Returns:
        MD5 of the source content to be appended.
      • setSourceContentMd5

        public AppendBlobAppendBlockFromUrlOptions setSourceContentMd5​(byte[] sourceContentMd5)
        Parameters:
        sourceContentMd5 - MD5 of the source content to be appended.
        Returns:
        The updated options.
      • getSourceAuthorization

        public com.azure.core.http.HttpAuthorization getSourceAuthorization()
        Returns:
        auth header for accessing source.
      • setSourceAuthorization

        public AppendBlobAppendBlockFromUrlOptions setSourceAuthorization​(com.azure.core.http.HttpAuthorization sourceAuthorization)
        Sets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.
        Parameters:
        sourceAuthorization - auth header for accessing source.
        Returns:
        The updated options.