AppendBlobAppendBlockOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. AppendBlobAppendBlockOptions
- com.
Implements
public final class AppendBlobAppendBlockOptions
implements ValidatableContent
Extended options that may be passed when appending a block to an append blob.
Constructor Summary
| Constructor | Description |
|---|---|
| AppendBlobAppendBlockOptions(BinaryData data) |
Creates a new instance of AppendBlobAppendBlockOptions. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| byte[] |
getContentMd5()
Gets the MD5 hash of the block content. |
|
Content |
getContentValidationAlgorithm()
Gets the algorithm to use for transfer content validation. |
|
Binary |
getData()
Gets the data to write to the blob. |
|
Append |
getRequestConditions()
Gets the AppendBlobRequestConditions. |
|
Append |
setContentMd5(byte[] contentMd5)
Sets the MD5 hash of the block content for transactional verification. |
|
Append |
setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)
Sets the algorithm to use for transfer content validation. |
|
Append |
setRequestConditions(AppendBlobRequestConditions requestConditions)
Sets the AppendBlobRequestConditions. |
Methods inherited from java.lang.Object
Constructor Details
AppendBlobAppendBlockOptions
public AppendBlobAppendBlockOptions(BinaryData data)
Creates a new instance of AppendBlobAppendBlockOptions.
Parameters:
BinaryData must have defined length
and must be replayable if retries are enabled (the default), see BinaryData#isReplayable().
Method Details
getContentMd5
public byte[] getContentMd5()
Gets the MD5 hash of the block content.
Returns:
getContentValidationAlgorithm
public ContentValidationAlgorithm getContentValidationAlgorithm()
Gets the algorithm to use for transfer content validation. See ContentValidationAlgorithm for more details.
Returns:
getData
public BinaryData getData()
Gets the data to write to the blob.
Returns:
getRequestConditions
public AppendBlobRequestConditions getRequestConditions()
Gets the AppendBlobRequestConditions.
Returns:
setContentMd5
public AppendBlobAppendBlockOptions setContentMd5(byte[] contentMd5)
Sets the MD5 hash of the block content for transactional verification.
Parameters:
Returns:
setContentValidationAlgorithm
public AppendBlobAppendBlockOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)
Sets the algorithm to use for transfer content validation. See ContentValidationAlgorithm for more details.
Parameters:
Returns:
setRequestConditions
public AppendBlobAppendBlockOptions setRequestConditions(AppendBlobRequestConditions requestConditions)
Sets the AppendBlobRequestConditions.
Parameters:
Returns: