AppendBlobAppendBlockOptions Class

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

public final class AppendBlobAppendBlockOptions

Extended options that may be passed when appending a block to an append blob.

Constructor Summary

Constructor Description
AppendBlobAppendBlockOptions()

Creates a new instance of AppendBlobAppendBlockOptions.

Method Summary

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

Gets the MD5 hash of the block content.

ContentValidationAlgorithm getContentValidationAlgorithm()

Gets the algorithm to use for transfer content validation.

AppendBlobRequestConditions getRequestConditions()

Gets the AppendBlobRequestConditions.

AppendBlobAppendBlockOptions setContentMd5(byte[] contentMd5)

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

AppendBlobAppendBlockOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)

Sets the algorithm to use for transfer content validation.

AppendBlobAppendBlockOptions setRequestConditions(AppendBlobRequestConditions requestConditions)

Sets the AppendBlobRequestConditions.

Methods inherited from java.lang.Object

Constructor Details

AppendBlobAppendBlockOptions

public AppendBlobAppendBlockOptions()

Creates a new instance of AppendBlobAppendBlockOptions.

Method Details

getContentMd5

public byte[] getContentMd5()

Gets the MD5 hash of the block content.

Returns:

An MD5 hash of the content, or null.

getContentValidationAlgorithm

public ContentValidationAlgorithm getContentValidationAlgorithm()

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

Returns:

The transfer validation checksum algorithm.

getRequestConditions

public AppendBlobRequestConditions getRequestConditions()

Gets the AppendBlobRequestConditions.

Returns:

The request conditions.

setContentMd5

public AppendBlobAppendBlockOptions setContentMd5(byte[] contentMd5)

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

Parameters:

contentMd5 - An MD5 hash of the block content.

Returns:

The updated options.

setContentValidationAlgorithm

public AppendBlobAppendBlockOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)

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

Parameters:

contentValidationAlgorithm - The transfer validation checksum algorithm.

Returns:

The updated options.

setRequestConditions

public AppendBlobAppendBlockOptions setRequestConditions(AppendBlobRequestConditions requestConditions)

Sets the AppendBlobRequestConditions.

Parameters:

requestConditions - The request conditions.

Returns:

The updated options.

Applies to