PageBlobUploadPagesOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. PageBlobUploadPagesOptions
- com.
Implements
public final class PageBlobUploadPagesOptions
implements ValidatableContent
Extended options that may be passed when uploading pages to a page blob.
Constructor Summary
| Constructor | Description |
|---|---|
| PageBlobUploadPagesOptions(PageRange pageRange, BinaryData body) |
Creates a new instance of PageBlobUploadPagesOptions. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Binary |
getBody()
Gets the data to write to the page. |
| byte[] |
getContentMd5()
Gets the MD5 hash of the page content. |
|
Content |
getContentValidationAlgorithm()
Gets the algorithm to use for transfer content validation on the request. |
|
Page |
getPageRange()
Gets the page range for the request. |
|
Page |
getRequestConditions()
Gets the PageBlobRequestConditions. |
|
Page |
setContentMd5(byte[] contentMd5)
Sets the MD5 hash of the page content for transactional verification. |
|
Page |
setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)
Sets the algorithm to use for transfer content validation on the request. |
|
Page |
setRequestConditions(PageBlobRequestConditions requestConditions)
Sets the PageBlobRequestConditions. |
Methods inherited from java.lang.Object
Constructor Details
PageBlobUploadPagesOptions
public PageBlobUploadPagesOptions(PageRange pageRange, BinaryData body)
Creates a new instance of PageBlobUploadPagesOptions.
Parameters:
BinaryData must have a defined length equal to the
specified page range and must be replayable if retries are enabled (the default), see
BinaryData#isReplayable().
Method Details
getBody
public BinaryData getBody()
Gets the data to write to the page.
Returns:
getContentMd5
public byte[] getContentMd5()
Gets the MD5 hash of the page content.
Returns:
getContentValidationAlgorithm
public ContentValidationAlgorithm getContentValidationAlgorithm()
Gets the algorithm to use for transfer content validation on the request. See ContentValidationAlgorithm for more details.
Returns:
getPageRange
public PageRange getPageRange()
Gets the page range for the request.
Returns:
getRequestConditions
public PageBlobRequestConditions getRequestConditions()
Gets the PageBlobRequestConditions.
Returns:
setContentMd5
public PageBlobUploadPagesOptions setContentMd5(byte[] contentMd5)
Sets the MD5 hash of the page content for transactional verification.
Parameters:
Returns:
setContentValidationAlgorithm
public PageBlobUploadPagesOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)
Sets the algorithm to use for transfer content validation on the request. See ContentValidationAlgorithm for more details.
Parameters:
Returns:
setRequestConditions
public PageBlobUploadPagesOptions setRequestConditions(PageBlobRequestConditions requestConditions)
Sets the PageBlobRequestConditions.
Parameters:
Returns: