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 DownloadRetryOptions
getDownloadRetryOptions()
String
getFilePath()
Set<OpenOption>
getOpenOptions()
ParallelTransferOptions
getParallelTransferOptions()
BlobRange
getRange()
BlobRequestConditions
getRequestConditions()
boolean
isRetrieveContentRangeMd5()
BlobDownloadToFileOptions
setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions)
BlobDownloadToFileOptions
setOpenOptions(Set<OpenOption> openOptions)
BlobDownloadToFileOptions
setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
BlobDownloadToFileOptions
setRange(BlobRange range)
BlobDownloadToFileOptions
setRequestConditions(BlobRequestConditions requestConditions)
BlobDownloadToFileOptions
setRetrieveContentRangeMd5(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:
OpenOptions
to 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
-OpenOptions
to use to configure how to open or create the file.- Returns:
- The updated options.
-
-