Class BlockBlobStageBlockFromUrlOptions

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

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

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

    • 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.
    • setSourceRange

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

      public BlockBlobStageBlockFromUrlOptions setLeaseId(String leaseId)
      Parameters:
      leaseId - Lease ID for accessing source content.
      Returns:
      The updated options.
    • getSourceRequestConditions

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

      public BlockBlobStageBlockFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions)
      Parameters:
      sourceRequestConditions - BlobRequestConditions for accessing source content.
      Returns:
      The updated options.
    • 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.