Package com.azure.storage.blob.options
Class PageBlobUploadPagesFromUrlOptions
java.lang.Object
com.azure.storage.blob.options.PageBlobUploadPagesFromUrlOptions
Extended options that may be passed when uploading a page range from a source URL.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRange()
com.azure.core.http.HttpAuthorization
byte[]
setDestinationRequestConditions
(PageBlobRequestConditions destinationRequestConditions) setSourceAuthorization
(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL.setSourceContentMd5
(byte[] sourceContentMd5) setSourceOffset
(Long sourceOffset) setSourceRequestConditions
(BlobRequestConditions sourceRequestConditions)
-
Constructor Details
-
PageBlobUploadPagesFromUrlOptions
- 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 Details
-
getRange
- Returns:
- The destination page range.
-
getSourceUrl
- Returns:
- the source URL to copy from.
-
getSourceOffset
- Returns:
- Offset at source to copy from.
-
setSourceOffset
- 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
- Parameters:
sourceContentMd5
- Content MD5 of source content to copy.- Returns:
- The updated options.
-
getDestinationRequestConditions
- Returns:
PageBlobRequestConditions
for writing to destination.
-
setDestinationRequestConditions
public PageBlobUploadPagesFromUrlOptions setDestinationRequestConditions(PageBlobRequestConditions destinationRequestConditions) - Parameters:
destinationRequestConditions
-PageBlobRequestConditions
for writing to destination.- Returns:
- The updated options.
-
getSourceRequestConditions
- Returns:
BlobRequestConditions
for accessing source content.
-
setSourceRequestConditions
public PageBlobUploadPagesFromUrlOptions 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 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.
-