Class ShareFileUploadRangeFromUrlOptions


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

      • ShareFileUploadRangeFromUrlOptions

        public ShareFileUploadRangeFromUrlOptions​(long length,
                                                  String sourceUrl)
        Parameters:
        length - data length to upload for this operation.
        sourceUrl - source URL for this operation.
    • Method Detail

      • getLength

        public long getLength()
        Returns:
        data length to upload for this operation.
      • getSourceUrl

        public String getSourceUrl()
        Returns:
        source URL for this operation.
      • getDestinationOffset

        public long getDestinationOffset()
        Returns:
        destination offset for this operation.
      • setDestinationOffset

        public ShareFileUploadRangeFromUrlOptions setDestinationOffset​(long destinationOffset)
        Parameters:
        destinationOffset - offset for upload destination.
        Returns:
        modified options.
      • getSourceOffset

        public long getSourceOffset()
        Returns:
        source offset for this operation.
      • setSourceOffset

        public ShareFileUploadRangeFromUrlOptions setSourceOffset​(long sourceOffset)
        Parameters:
        sourceOffset - offset for upload source.
        Returns:
        modified options.
      • getSourceAuthorization

        public com.azure.core.http.HttpAuthorization getSourceAuthorization()
        Returns:
        optional auth header for access to source URL for this operation.
      • setSourceAuthorization

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