BlobDownloadContentOptions Class

  • java.lang.Object
    • com.azure.storage.blob.options.BlobDownloadContentOptions

public final class BlobDownloadContentOptions

Extended options that may be passed when downloading blob content (full blob or range in memory).

Constructor Summary

Constructor Description
BlobDownloadContentOptions()

Creates a new instance of BlobDownloadContentOptions.

Method Summary

Modifier and Type Method and Description
ContentValidationAlgorithm getContentValidationAlgorithm()

Gets the algorithm to use for transfer content validation.

DownloadRetryOptions getDownloadRetryOptions()

Gets the DownloadRetryOptions.

BlobRange getRange()

Gets the BlobRange.

BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

boolean isRetrieveContentRangeMd5()

Gets whether the content MD5 for the specified blob range should be returned.

BlobDownloadContentOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)

Sets the algorithm to use for transfer content validation.

BlobDownloadContentOptions setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions)

Sets the DownloadRetryOptions.

BlobDownloadContentOptions setRange(BlobRange range)

Sets the BlobRange.

BlobDownloadContentOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

BlobDownloadContentOptions setRetrieveContentRangeMd5(boolean retrieveContentRangeMd5)

Sets whether the content MD5 for the specified blob range should be returned.

Methods inherited from java.lang.Object

Constructor Details

BlobDownloadContentOptions

public BlobDownloadContentOptions()

Creates a new instance of BlobDownloadContentOptions.

Method Details

getContentValidationAlgorithm

public ContentValidationAlgorithm getContentValidationAlgorithm()

Gets the algorithm to use for transfer content validation. See ContentValidationAlgorithm for more details.

Returns:

The transfer validation checksum algorithm.

getDownloadRetryOptions

public DownloadRetryOptions getDownloadRetryOptions()

Gets the DownloadRetryOptions.

Returns:

The download retry options.

getRange

public BlobRange getRange()

Gets the BlobRange.

Returns:

The blob range.

getRequestConditions

public BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Returns:

The request conditions.

isRetrieveContentRangeMd5

public boolean isRetrieveContentRangeMd5()

Gets whether the content MD5 for the specified blob range should be returned.

Returns:

Whether to retrieve content range MD5.

setContentValidationAlgorithm

public BlobDownloadContentOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)

Sets the algorithm to use for transfer content validation. See ContentValidationAlgorithm for more details.

Parameters:

contentValidationAlgorithm - The transfer validation checksum algorithm.

Returns:

The updated options.

setDownloadRetryOptions

public BlobDownloadContentOptions setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions)

Sets the DownloadRetryOptions.

Parameters:

downloadRetryOptions - The download retry options.

Returns:

The updated options.

setRange

public BlobDownloadContentOptions setRange(BlobRange range)

Sets the BlobRange.

Parameters:

range - The blob range.

Returns:

The updated options.

setRequestConditions

public BlobDownloadContentOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Parameters:

requestConditions - The request conditions.

Returns:

The updated options.

setRetrieveContentRangeMd5

public BlobDownloadContentOptions setRetrieveContentRangeMd5(boolean retrieveContentRangeMd5)

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.

Applies to