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 theAppendBlobRequestConditionsfor writing to destination.com.azure.core.http.HttpAuthorizationGets 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 theBlobRequestConditionsfor accessing source.Gets the source URL to copy from.setDestinationRequestConditions(AppendBlobRequestConditions destinationRequestConditions) Sets theAppendBlobRequestConditionsfor 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 theBlobRequestConditionsfor 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 theAppendBlobRequestConditionsfor writing to destination.- Returns:
AppendBlobRequestConditionsfor writing to destination.
-
setDestinationRequestConditions
public AppendBlobAppendBlockFromUrlOptions setDestinationRequestConditions(AppendBlobRequestConditions destinationRequestConditions) Sets theAppendBlobRequestConditionsfor writing to destination.- Parameters:
destinationRequestConditions-AppendBlobRequestConditionsfor writing to destination.- Returns:
- The updated options.
-
getSourceRequestConditions
Gets theBlobRequestConditionsfor accessing source.- Returns:
BlobRequestConditionsfor accessing source.
-
setSourceRequestConditions
public AppendBlobAppendBlockFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions) Sets theBlobRequestConditionsfor accessing source.- Parameters:
sourceRequestConditions-BlobRequestConditionsfor 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.
-