Class PageBlobOutputStreamOptions
java.lang.Object
com.azure.storage.blob.options.PageBlobOutputStreamOptions
- All Implemented Interfaces:
com.azure.storage.common.ValidatableContent
public final class PageBlobOutputStreamOptions
extends Object
implements com.azure.storage.common.ValidatableContent
Extended options that may be passed when opening an output stream to a page blob.
-
Constructor Summary
ConstructorsConstructorDescriptionPageBlobOutputStreamOptions(PageRange pageRange) Creates a new instance ofPageBlobOutputStreamOptions. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.storage.common.ContentValidationAlgorithmGets the algorithm to use for transfer content validation on the request.Gets the page range.Gets theBlobRequestConditions.setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the request.setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.
-
Constructor Details
-
PageBlobOutputStreamOptions
Creates a new instance ofPageBlobOutputStreamOptions.- Parameters:
pageRange- ThePageRangefor the write. Pages must be aligned with 512-byte boundaries.- Throws:
NullPointerException- IfpageRangeis null.
-
-
Method Details
-
getPageRange
-
getRequestConditions
Gets theBlobRequestConditions.- Returns:
- The request conditions.
-
setRequestConditions
Sets theBlobRequestConditions.- Parameters:
requestConditions- The request conditions.- Returns:
- The updated options.
-
getContentValidationAlgorithm
public com.azure.storage.common.ContentValidationAlgorithm getContentValidationAlgorithm()Gets the algorithm to use for transfer content validation on the request. SeeContentValidationAlgorithmfor more details.- Specified by:
getContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Returns:
- The transfer validation checksum algorithm.
-
setContentValidationAlgorithm
public PageBlobOutputStreamOptions setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the request. SeeContentValidationAlgorithmfor more details.- Specified by:
setContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Parameters:
contentValidationAlgorithm- The transfer validation checksum algorithm.- Returns:
- The updated options.
-