Package com.azure.storage.blob.options
Class BlobDownloadToFileOptions
- java.lang.Object
-
- com.azure.storage.blob.options.BlobDownloadToFileOptions
-
public class BlobDownloadToFileOptions extends Object
Extended options that may be passed when downloading a blob to a file.
-
-
Constructor Summary
Constructors Constructor Description BlobDownloadToFileOptions(String filePath)Constructs aBlobDownloadToFileOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadRetryOptionsgetDownloadRetryOptions()StringgetFilePath()Set<OpenOption>getOpenOptions()ParallelTransferOptionsgetParallelTransferOptions()BlobRangegetRange()BlobRequestConditionsgetRequestConditions()booleanisRetrieveContentRangeMd5()BlobDownloadToFileOptionssetDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions)BlobDownloadToFileOptionssetOpenOptions(Set<OpenOption> openOptions)BlobDownloadToFileOptionssetParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)BlobDownloadToFileOptionssetRange(BlobRange range)BlobDownloadToFileOptionssetRequestConditions(BlobRequestConditions requestConditions)BlobDownloadToFileOptionssetRetrieveContentRangeMd5(boolean retrieveContentRangeMd5)
-
-
-
Constructor Detail
-
BlobDownloadToFileOptions
public BlobDownloadToFileOptions(String filePath)
Constructs aBlobDownloadToFileOptions.- Parameters:
filePath- Path of the file to download to.
-
-
Method Detail
-
getFilePath
public String getFilePath()
- Returns:
- The path of the file to download to.
-
getParallelTransferOptions
public ParallelTransferOptions getParallelTransferOptions()
- Returns:
ParallelTransferOptions
-
getDownloadRetryOptions
public DownloadRetryOptions getDownloadRetryOptions()
- Returns:
DownloadRetryOptions
-
getRequestConditions
public BlobRequestConditions getRequestConditions()
- Returns:
BlobRequestConditions
-
isRetrieveContentRangeMd5
public boolean isRetrieveContentRangeMd5()
- Returns:
- Whether the contentMD5 for the specified blob range should be returned.
-
getOpenOptions
public Set<OpenOption> getOpenOptions()
- Returns:
OpenOptionsto use to configure how to open or create the file.
-
setRange
public BlobDownloadToFileOptions setRange(BlobRange range)
- Parameters:
range-BlobRange- Returns:
- The updated options.
-
setParallelTransferOptions
public BlobDownloadToFileOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
- Parameters:
parallelTransferOptions-ParallelTransferOptions- Returns:
- The updated options.
-
setDownloadRetryOptions
public BlobDownloadToFileOptions setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions)
- Parameters:
downloadRetryOptions-DownloadRetryOptions- Returns:
- The updated options.
-
setRequestConditions
public BlobDownloadToFileOptions setRequestConditions(BlobRequestConditions requestConditions)
- Parameters:
requestConditions-BlobRequestConditions- Returns:
- The updated options.
-
setRetrieveContentRangeMd5
public BlobDownloadToFileOptions setRetrieveContentRangeMd5(boolean retrieveContentRangeMd5)
- Parameters:
retrieveContentRangeMd5- Whether the contentMD5 for the specified blob range should be returned.- Returns:
- The updated options.
-
setOpenOptions
public BlobDownloadToFileOptions setOpenOptions(Set<OpenOption> openOptions)
- Parameters:
openOptions-OpenOptionsto use to configure how to open or create the file.- Returns:
- The updated options.
-
-