Class PageBlobUploadPagesFromUrlOptions


  • public final class PageBlobUploadPagesFromUrlOptions
    extends Object
    Extended options that may be passed when uploading a page range from a source URL.
    • Constructor Detail

      • PageBlobUploadPagesFromUrlOptions

        public PageBlobUploadPagesFromUrlOptions​(PageRange range,
                                                 String sourceUrl)
        Parameters:
        range - The destination page range. Pages must be aligned to 512 byte blocks.
        sourceUrl - The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
    • Method Detail

      • getRange

        public PageRange getRange()
        Returns:
        The destination page range.
      • getSourceUrl

        public String getSourceUrl()
        Returns:
        the source URL to copy from.
      • getSourceOffset

        public Long getSourceOffset()
        Returns:
        Offset at source to copy from.
      • setSourceOffset

        public PageBlobUploadPagesFromUrlOptions setSourceOffset​(Long sourceOffset)
        Parameters:
        sourceOffset - Offset at source to copy from.
        Returns:
        The updated options.
      • getSourceContentMd5

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

        public PageBlobUploadPagesFromUrlOptions setSourceContentMd5​(byte[] sourceContentMd5)
        Parameters:
        sourceContentMd5 - Content MD5 of source content to copy.
        Returns:
        The updated options.
      • getSourceAuthorization

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

        public PageBlobUploadPagesFromUrlOptions 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 content.
        Returns:
        The updated options.