Class BlobDownloadContentOptions
java.lang.Object
com.azure.storage.blob.options.BlobDownloadContentOptions
- All Implemented Interfaces:
com.azure.storage.common.ValidatableContent
public final class BlobDownloadContentOptions
extends Object
implements com.azure.storage.common.ValidatableContent
Extended options that may be passed when downloading blob content (full blob or range in memory).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.storage.common.ContentValidationAlgorithmGets the algorithm to use for transfer content validation.Gets theDownloadRetryOptions.getRange()Gets theBlobRange.Gets theBlobRequestConditions.booleanGets whether the content MD5 for the specified blob range should be returned.setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation.setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions) Sets theDownloadRetryOptions.Sets theBlobRange.setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.setRetrieveContentRangeMd5(boolean retrieveContentRangeMd5) Sets whether the content MD5 for the specified blob range should be returned.
-
Constructor Details
-
BlobDownloadContentOptions
public BlobDownloadContentOptions()Creates a new instance ofBlobDownloadContentOptions.
-
-
Method Details
-
getRange
-
setRange
Sets theBlobRange.- Parameters:
range- The blob range.- Returns:
- The updated options.
-
getDownloadRetryOptions
Gets theDownloadRetryOptions.- Returns:
- The download retry options.
-
setDownloadRetryOptions
public BlobDownloadContentOptions setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions) Sets theDownloadRetryOptions.- Parameters:
downloadRetryOptions- The download retry options.- Returns:
- The updated options.
-
getRequestConditions
Gets theBlobRequestConditions.- Returns:
- The request conditions.
-
setRequestConditions
Sets theBlobRequestConditions.- Parameters:
requestConditions- The request conditions.- Returns:
- The updated options.
-
isRetrieveContentRangeMd5
public boolean isRetrieveContentRangeMd5()Gets whether the content MD5 for the specified blob range should be returned.- Returns:
- Whether to retrieve content range MD5.
-
setRetrieveContentRangeMd5
Sets whether the content MD5 for the specified blob range should be returned.- Parameters:
retrieveContentRangeMd5- Whether to retrieve content range MD5.- Returns:
- The updated options.
-
getContentValidationAlgorithm
public com.azure.storage.common.ContentValidationAlgorithm getContentValidationAlgorithm()Gets the algorithm to use for transfer content validation. SeeContentValidationAlgorithmfor more details.- Specified by:
getContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Returns:
- The transfer validation checksum algorithm.
-
setContentValidationAlgorithm
public BlobDownloadContentOptions setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation. SeeContentValidationAlgorithmfor more details.- Specified by:
setContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Parameters:
contentValidationAlgorithm- The transfer validation checksum algorithm.- Returns:
- The updated options.
-