PageBlobUploadPagesOptions Class

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

public final class PageBlobUploadPagesOptions

Extended options that may be passed when uploading pages to a page blob.

Constructor Summary

Constructor Description
PageBlobUploadPagesOptions()

Creates a new instance of PageBlobUploadPagesOptions.

Method Summary

Modifier and Type Method and Description
byte[] getContentMd5()

Gets the MD5 hash of the page content.

ContentValidationAlgorithm getContentValidationAlgorithm()

Gets the algorithm to use for transfer content validation on the request.

PageBlobRequestConditions getRequestConditions()

Gets the PageBlobRequestConditions.

PageBlobUploadPagesOptions setContentMd5(byte[] contentMd5)

Sets the MD5 hash of the page content for transactional verification.

PageBlobUploadPagesOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)

Sets the algorithm to use for transfer content validation on the request.

PageBlobUploadPagesOptions setRequestConditions(PageBlobRequestConditions requestConditions)

Sets the PageBlobRequestConditions.

Methods inherited from java.lang.Object

Constructor Details

PageBlobUploadPagesOptions

public PageBlobUploadPagesOptions()

Creates a new instance of PageBlobUploadPagesOptions.

Method Details

getContentMd5

public byte[] getContentMd5()

Gets the MD5 hash of the page content.

Returns:

An MD5 hash of the content, or null.

getContentValidationAlgorithm

public ContentValidationAlgorithm getContentValidationAlgorithm()

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

Returns:

The transfer validation checksum algorithm.

getRequestConditions

public PageBlobRequestConditions getRequestConditions()

Gets the PageBlobRequestConditions.

Returns:

The request conditions.

setContentMd5

public PageBlobUploadPagesOptions setContentMd5(byte[] contentMd5)

Sets the MD5 hash of the page content for transactional verification.

Parameters:

contentMd5 - An MD5 hash of the page content.

Returns:

The updated options.

setContentValidationAlgorithm

public PageBlobUploadPagesOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)

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

Parameters:

contentValidationAlgorithm - The transfer validation checksum algorithm.

Returns:

The updated options.

setRequestConditions

public PageBlobUploadPagesOptions setRequestConditions(PageBlobRequestConditions requestConditions)

Sets the PageBlobRequestConditions.

Parameters:

requestConditions - The request conditions.

Returns:

The updated options.

Applies to