AppendBlobAppendBlockOptions Class

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

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.

ContentValidationAlgorithm getContentValidationAlgorithm()

Gets the algorithm to use for transfer content validation.

BinaryData getData()

Gets the data to write to the blob.

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(BinaryData data)

Creates a new instance of AppendBlobAppendBlockOptions.

Parameters:

data - The data to write to the blob. Note that this 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:

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.

getData

public BinaryData getData()

Gets the data to write to the blob.

Returns:

The data to write to the blob.

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