Package com.azure.storage.blob.options
Class BlobDownloadToFileOptions
java.lang.Object
com.azure.storage.blob.options.BlobDownloadToFileOptions
Extended options that may be passed when downloading a blob to a file.
-
Constructor Summary
ConstructorsConstructorDescriptionBlobDownloadToFileOptions
(String filePath) Constructs aBlobDownloadToFileOptions
. -
Method Summary
Modifier and TypeMethodDescriptionGets theDownloadRetryOptions
.Gets the path of the file to download to.Gets theOpenOptions
to use to configure how to open or create the file.Gets theParallelTransferOptions
.getRange()
Gets theBlobRange
.Gets theBlobRequestConditions
.boolean
Gets whether the contentMD5 for the specified blob range should be returned.setDownloadRetryOptions
(DownloadRetryOptions downloadRetryOptions) Sets theDownloadRetryOptions
.setOpenOptions
(Set<OpenOption> openOptions) Sets theOpenOptions
to use to configure how to open or create the file.setParallelTransferOptions
(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
- IffilePath
is null.
-
-
Method Details
-
getFilePath
Gets the path of the file to download to.- Returns:
- The path of the file to download to.
-
getRange
Gets theBlobRange
.- Returns:
BlobRange
-
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 theOpenOptions
to use to configure how to open or create the file.- Returns:
OpenOptions
to use to configure how to open or create the file.
-
setRange
Sets theBlobRange
.- Parameters:
range
-BlobRange
- Returns:
- The updated options.
-
setParallelTransferOptions
public BlobDownloadToFileOptions setParallelTransferOptions(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 theOpenOptions
to use to configure how to open or create the file.- Parameters:
openOptions
-OpenOptions
to use to configure how to open or create the file.- Returns:
- The updated options.
-