Class AppendBlobAppendBlockFromUrlOptions

java.lang.Object
com.azure.storage.blob.options.AppendBlobAppendBlockFromUrlOptions

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

    • 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 Details

    • getSourceUrl

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

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

      public AppendBlobAppendBlockFromUrlOptions setSourceRange(BlobRange sourceRange)
      Parameters:
      sourceRange - Range of bytes to read from the source.
      Returns:
      The updated options.
    • 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.
    • getDestinationRequestConditions

      public AppendBlobRequestConditions getDestinationRequestConditions()
      Returns:
      AppendBlobRequestConditions for writing to destination.
    • setDestinationRequestConditions

      public AppendBlobAppendBlockFromUrlOptions setDestinationRequestConditions(AppendBlobRequestConditions destinationRequestConditions)
      Parameters:
      destinationRequestConditions - AppendBlobRequestConditions for writing to destination.
      Returns:
      The updated options.
    • getSourceRequestConditions

      public BlobRequestConditions getSourceRequestConditions()
      Returns:
      BlobRequestConditions for accessing source.
    • setSourceRequestConditions

      public AppendBlobAppendBlockFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions)
      Parameters:
      sourceRequestConditions - BlobRequestConditions for accessing source.
      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.