PageBlobOutputStreamOptions Class

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

public final class PageBlobOutputStreamOptions

Extended options that may be passed when opening an output stream to a page blob.

Constructor Summary

Constructor Description
PageBlobOutputStreamOptions(PageRange pageRange)

Creates a new instance of PageBlobOutputStreamOptions.

Method Summary

Modifier and Type Method and Description
ContentValidationAlgorithm getContentValidationAlgorithm()

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

PageRange getPageRange()

Gets the page range.

BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

PageBlobOutputStreamOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)

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

PageBlobOutputStreamOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Methods inherited from java.lang.Object

Constructor Details

PageBlobOutputStreamOptions

public PageBlobOutputStreamOptions(PageRange pageRange)

Creates a new instance of PageBlobOutputStreamOptions.

Parameters:

pageRange - The PageRange for the write. Pages must be aligned with 512-byte boundaries.

Method Details

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.

getPageRange

public PageRange getPageRange()

Gets the page range.

Returns:

The page range.

getRequestConditions

public BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Returns:

The request conditions.

setContentValidationAlgorithm

public PageBlobOutputStreamOptions 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 PageBlobOutputStreamOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Parameters:

requestConditions - The request conditions.

Returns:

The updated options.

Applies to