Package com.azure.storage.blob.options
Class BlockBlobStageBlockOptions
java.lang.Object
com.azure.storage.blob.options.BlockBlobStageBlockOptions
Extended options that may be passed when staging a block.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockBlobStageBlockOptions
(String base64BlockId, com.azure.core.util.BinaryData data) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
com.azure.core.util.BinaryData
getData()
setContentMd5
(byte[] contentMd5) setLeaseId
(String leaseId)
-
Constructor Details
-
BlockBlobStageBlockOptions
- Parameters:
base64BlockId
- The block ID to assign the new block.data
- The data to write to the block. Note that thisBinaryData
must have defined length and must be replayable if retries are enabled (the default), seeBinaryData.isReplayable()
.
-
-
Method Details
-
getBase64BlockId
- Returns:
- The block ID to assign the new block.
-
getData
public com.azure.core.util.BinaryData getData()- Returns:
- The data to write to the blob.
-
getLeaseId
- Returns:
- Lease ID for accessing source content.
-
setLeaseId
- Parameters:
leaseId
- Lease ID for accessing source content.- Returns:
- The updated options.
-
getContentMd5
public byte[] getContentMd5()- Returns:
- An MD5 hash of the content. This hash is used to verify the integrity of the content during transport. When this header is specified, the storage service compares the hash of the content that has arrived with this header value. Note that this MD5 hash is not stored with the blob. If the two hashes do not match, the operation will fail.
-
setContentMd5
- Parameters:
contentMd5
- An MD5 hash of the block content. This hash is used to verify the integrity of the block during transport. When this header is specified, the storage service compares the hash of the content that has arrived with this header value. Note that this MD5 hash is not stored with the blob. If the two hashes do not match, the operation will fail.- Returns:
- The updated options
-