Package com.azure.storage.blob.options
Class AppendBlobAppendBlockFromUrlOptions
java.lang.Object
com.azure.storage.blob.options.AppendBlobAppendBlockFromUrlOptions
Extended options that may be passed when appending a block from a source URL.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.HttpAuthorization
byte[]
setDestinationRequestConditions
(AppendBlobRequestConditions destinationRequestConditions) setSourceAuthorization
(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL.setSourceContentMd5
(byte[] sourceContentMd5) setSourceRange
(BlobRange sourceRange) setSourceRequestConditions
(BlobRequestConditions sourceRequestConditions)
-
Constructor Details
-
AppendBlobAppendBlockFromUrlOptions
- Parameters:
sourceUrl
- The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
-
-
Method Details
-
getSourceUrl
- Returns:
- Source URL to copy from.
-
getSourceRange
- Returns:
- Range of bytes to read from the source.
-
setSourceRange
- Parameters:
sourceRange
- Range of bytes to read from the source.- Returns:
- The updated options.
-
getSourceContentMd5
public byte[] getSourceContentMd5()- Returns:
- MD5 of the source content to be appended.
-
setSourceContentMd5
- Parameters:
sourceContentMd5
- MD5 of the source content to be appended.- Returns:
- The updated options.
-
getDestinationRequestConditions
- Returns:
AppendBlobRequestConditions
for writing to destination.
-
setDestinationRequestConditions
public AppendBlobAppendBlockFromUrlOptions setDestinationRequestConditions(AppendBlobRequestConditions destinationRequestConditions) - Parameters:
destinationRequestConditions
-AppendBlobRequestConditions
for writing to destination.- Returns:
- The updated options.
-
getSourceRequestConditions
- Returns:
BlobRequestConditions
for accessing source.
-
setSourceRequestConditions
public AppendBlobAppendBlockFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions) - Parameters:
sourceRequestConditions
-BlobRequestConditions
for accessing source.- Returns:
- The updated options.
-
getSourceAuthorization
public com.azure.core.http.HttpAuthorization getSourceAuthorization()- Returns:
- auth header for accessing source.
-
setSourceAuthorization
public AppendBlobAppendBlockFromUrlOptions 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.- Returns:
- The updated options.
-