Class BlobDownloadToFileOptions
java.lang.Object
com.azure.storage.blob.options.BlobDownloadToFileOptions
- All Implemented Interfaces:
com.azure.storage.common.ValidatableContent
public class BlobDownloadToFileOptions
extends Object
implements com.azure.storage.common.ValidatableContent
Extended options that may be passed when downloading a blob to a file.
-
Constructor Summary
ConstructorsConstructorDescriptionBlobDownloadToFileOptions(String filePath) Constructs aBlobDownloadToFileOptions. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.storage.common.ContentValidationAlgorithmGets the algorithm to use for transfer content validation on the response.Gets theDownloadRetryOptions.Gets the path of the file to download to.Gets theOpenOptionsto use to configure how to open or create the file.com.azure.storage.common.ParallelTransferOptionsGets theParallelTransferOptions.getRange()Gets theBlobRange.Gets theBlobRequestConditions.booleanGets whether the contentMD5 for the specified blob range should be returned.setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the response.setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions) Sets theDownloadRetryOptions.setOpenOptions(Set<OpenOption> openOptions) Sets theOpenOptionsto use to configure how to open or create the file.setParallelTransferOptions(com.azure.storage.common.ParallelTransferOptions parallelTransferOptions) Sets theParallelTransferOptions.Sets theBlobRange.setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.setRetrieveContentRangeMd5(boolean retrieveContentRangeMd5) Sets whether the contentMD5 for the specified blob range should be returned.
-
Constructor Details
-
BlobDownloadToFileOptions
Constructs aBlobDownloadToFileOptions.- Parameters:
filePath- Path of the file to download to.- Throws:
NullPointerException- IffilePathis null.
-
-
Method Details
-
getFilePath
Gets the path of the file to download to.- Returns:
- The path of the file to download to.
-
getRange
-
getParallelTransferOptions
public com.azure.storage.common.ParallelTransferOptions getParallelTransferOptions()Gets theParallelTransferOptions.- Returns:
ParallelTransferOptions
-
getDownloadRetryOptions
Gets theDownloadRetryOptions.- Returns:
DownloadRetryOptions
-
getRequestConditions
Gets theBlobRequestConditions.- Returns:
BlobRequestConditions
-
isRetrieveContentRangeMd5
public boolean isRetrieveContentRangeMd5()Gets whether the contentMD5 for the specified blob range should be returned.- Returns:
- Whether the contentMD5 for the specified blob range should be returned.
-
getOpenOptions
Gets theOpenOptionsto use to configure how to open or create the file.- Returns:
OpenOptionsto use to configure how to open or create the file.
-
setRange
-
setParallelTransferOptions
public BlobDownloadToFileOptions setParallelTransferOptions(com.azure.storage.common.ParallelTransferOptions parallelTransferOptions) Sets theParallelTransferOptions.- Parameters:
parallelTransferOptions-ParallelTransferOptions- Returns:
- The updated options.
-
setDownloadRetryOptions
Sets theDownloadRetryOptions.- Parameters:
downloadRetryOptions-DownloadRetryOptions- Returns:
- The updated options.
-
setRequestConditions
Sets theBlobRequestConditions.- Parameters:
requestConditions-BlobRequestConditions- Returns:
- The updated options.
-
setRetrieveContentRangeMd5
Sets whether the contentMD5 for the specified blob range should be returned.- Parameters:
retrieveContentRangeMd5- Whether the contentMD5 for the specified blob range should be returned.- Returns:
- The updated options.
-
setOpenOptions
Sets theOpenOptionsto use to configure how to open or create the file.- Parameters:
openOptions-OpenOptionsto use to configure how to open or create the file.- Returns:
- The updated options.
-
getContentValidationAlgorithm
public com.azure.storage.common.ContentValidationAlgorithm getContentValidationAlgorithm()Gets the algorithm to use for transfer content validation on the response. SeeContentValidationAlgorithmfor more details.- Specified by:
getContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Returns:
- The transfer validation checksum algorithm.
-
setContentValidationAlgorithm
public BlobDownloadToFileOptions setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the response. SeeContentValidationAlgorithmfor more details.- Specified by:
setContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Parameters:
contentValidationAlgorithm- The transfer validation checksum algorithm.- Returns:
- The updated options.
-