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
ConstructorsConstructorDescriptionPageBlobUploadPagesFromUrlOptions(PageRange range, String sourceUrl) Creates a new instance ofPageBlobUploadPagesFromUrlOptions. -
Method Summary
Modifier and TypeMethodDescriptionGetsPageBlobRequestConditionsfor writing to destination.getRange()Gets the destination page range.com.azure.core.http.HttpAuthorizationGets "Authorization" header for accessing source URL.byte[]Gets the content MD5 of source content to copy.Gets the offset at source to copy from.GetsBlobRequestConditionsfor accessing source content.Gets the source URL to copy from.setDestinationRequestConditions(PageBlobRequestConditions destinationRequestConditions) SetsPageBlobRequestConditionsfor writing to destination.setSourceAuthorization(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL.setSourceContentMd5(byte[] sourceContentMd5) Sets the content MD5 of source content to copy.setSourceOffset(Long sourceOffset) Sets the offset at source to copy from.setSourceRequestConditions(BlobRequestConditions sourceRequestConditions) SetsBlobRequestConditionsfor accessing source content.
-
Constructor Details
-
PageBlobUploadPagesFromUrlOptions
Creates a new instance ofPageBlobUploadPagesFromUrlOptions.- 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
Gets the destination page range.- Returns:
- The destination page range.
-
getSourceUrl
Gets the source URL to copy from.- Returns:
- the source URL to copy from.
-
getSourceOffset
Gets the offset at source to copy from.- Returns:
- Offset at source to copy from.
-
setSourceOffset
Sets the offset at source to copy from.- Parameters:
sourceOffset- Offset at source to copy from.- Returns:
- The updated options.
-
getSourceContentMd5
public byte[] getSourceContentMd5()Gets the content MD5 of source content to copy.- Returns:
- Content MD5 of source content to copy.
-
setSourceContentMd5
Sets the content MD5 of source content to copy.- Parameters:
sourceContentMd5- Content MD5 of source content to copy.- Returns:
- The updated options.
-
getDestinationRequestConditions
GetsPageBlobRequestConditionsfor writing to destination.- Returns:
PageBlobRequestConditionsfor writing to destination.
-
setDestinationRequestConditions
public PageBlobUploadPagesFromUrlOptions setDestinationRequestConditions(PageBlobRequestConditions destinationRequestConditions) SetsPageBlobRequestConditionsfor writing to destination.- Parameters:
destinationRequestConditions-PageBlobRequestConditionsfor writing to destination.- Returns:
- The updated options.
-
getSourceRequestConditions
GetsBlobRequestConditionsfor accessing source content.- Returns:
BlobRequestConditionsfor accessing source content.
-
setSourceRequestConditions
public PageBlobUploadPagesFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions) SetsBlobRequestConditionsfor accessing source content.- Parameters:
sourceRequestConditions-BlobRequestConditionsfor accessing source content.- Returns:
- The updated options.
-
getSourceAuthorization
public com.azure.core.http.HttpAuthorization getSourceAuthorization()Gets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.- 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.
-