Class BlockBlobStageBlockFromUrlOptions


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

      • BlockBlobStageBlockFromUrlOptions

        public BlockBlobStageBlockFromUrlOptions​(String base64BlockId,
                                                 String sourceUrl)
        Parameters:
        base64BlockId - The block ID to assign the new block.
        sourceUrl - The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
    • Method Detail

      • getBase64BlockId

        public String getBase64BlockId()
        Returns:
        The block ID to assign the new block.
      • getSourceUrl

        public String getSourceUrl()
        Returns:
        The source URL to upload from.
      • getSourceRange

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

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

        public BlockBlobStageBlockFromUrlOptions setSourceContentMd5​(byte[] sourceContentMd5)
        Parameters:
        sourceContentMd5 - MD5 of the source content.
        Returns:
        The updated options.
      • getLeaseId

        public String getLeaseId()
        Returns:
        Lease ID for accessing source content.
      • getSourceAuthorization

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

        public BlockBlobStageBlockFromUrlOptions 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 to access source.
        Returns:
        The updated options.