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
ConstructorsConstructorDescriptionAppendBlobAppendBlockFromUrlOptions
(String sourceUrl) Creates a new instance ofAppendBlobAppendBlockFromUrlOptions
. -
Method Summary
Modifier and TypeMethodDescriptionGets theAppendBlobRequestConditions
for writing to destination.com.azure.core.http.HttpAuthorization
Gets the auth header for accessing source.byte[]
Gets the MD5 of the source content to be appended.Gets the range of bytes to read from the source.Gets theBlobRequestConditions
for accessing source.Gets the source URL to copy from.setDestinationRequestConditions
(AppendBlobRequestConditions destinationRequestConditions) Sets theAppendBlobRequestConditions
for writing to destination.setSourceAuthorization
(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL.setSourceContentMd5
(byte[] sourceContentMd5) Sets the MD5 of the source content to be appended.setSourceRange
(BlobRange sourceRange) Sets the range of bytes to read from the source.setSourceRequestConditions
(BlobRequestConditions sourceRequestConditions) Sets theBlobRequestConditions
for accessing source.
-
Constructor Details
-
AppendBlobAppendBlockFromUrlOptions
Creates a new instance ofAppendBlobAppendBlockFromUrlOptions
.- Parameters:
sourceUrl
- The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
-
-
Method Details
-
getSourceUrl
Gets the source URL to copy from.- Returns:
- Source URL to copy from.
-
getSourceRange
Gets the range of bytes to read from the source.- Returns:
- Range of bytes to read from the source.
-
setSourceRange
Sets the range of bytes to read from the source.- Parameters:
sourceRange
- Range of bytes to read from the source.- Returns:
- The updated options.
-
getSourceContentMd5
public byte[] getSourceContentMd5()Gets the MD5 of the source content to be appended.- Returns:
- MD5 of the source content to be appended.
-
setSourceContentMd5
Sets the MD5 of the source content to be appended.- Parameters:
sourceContentMd5
- MD5 of the source content to be appended.- Returns:
- The updated options.
-
getDestinationRequestConditions
Gets theAppendBlobRequestConditions
for writing to destination.- Returns:
AppendBlobRequestConditions
for writing to destination.
-
setDestinationRequestConditions
public AppendBlobAppendBlockFromUrlOptions setDestinationRequestConditions(AppendBlobRequestConditions destinationRequestConditions) Sets theAppendBlobRequestConditions
for writing to destination.- Parameters:
destinationRequestConditions
-AppendBlobRequestConditions
for writing to destination.- Returns:
- The updated options.
-
getSourceRequestConditions
Gets theBlobRequestConditions
for accessing source.- Returns:
BlobRequestConditions
for accessing source.
-
setSourceRequestConditions
public AppendBlobAppendBlockFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions) Sets theBlobRequestConditions
for accessing source.- Parameters:
sourceRequestConditions
-BlobRequestConditions
for accessing source.- Returns:
- The updated options.
-
getSourceAuthorization
public com.azure.core.http.HttpAuthorization getSourceAuthorization()Gets the auth header for accessing source.- 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.
-