BlockBlobStageBlockOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. BlockBlobStageBlockOptions
- com.
public final class BlockBlobStageBlockOptions
Extended options that may be passed when staging a block.
Constructor Summary
Constructor | Description | |
---|---|---|
BlockBlobStageBlockOptions(String base64BlockId, BinaryData data) |
Method Summary
Modifier and Type | Method and Description |
---|---|
String | getBase64BlockId() |
byte[] | getContentMd5() |
Binary |
getData() |
String | getLeaseId() |
Block |
setContentMd5(byte[] contentMd5) |
Block |
setLeaseId(String leaseId) |
Methods inherited from java.lang.Object
Constructor Details
BlockBlobStageBlockOptions
public BlockBlobStageBlockOptions(String base64BlockId, BinaryData data)
Parameters:
base64BlockId
- The block ID to assign the new block.
data
- The data to write to the block. Note that this
BinaryData
must have defined length
and must be replayable if retries are enabled (the default), see BinaryData#isReplayable().
Method Details
getBase64BlockId
public String getBase64BlockId()
Returns:
The block ID to assign the new block.
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.
getData
public BinaryData getData()
Returns:
The data to write to the blob.
getLeaseId
public String getLeaseId()
Returns:
Lease ID for accessing source content.
setContentMd5
public BlockBlobStageBlockOptions setContentMd5(byte[] contentMd5)
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
setLeaseId
public BlockBlobStageBlockOptions setLeaseId(String leaseId)
Parameters:
leaseId
- Lease ID for accessing source content.
Returns:
The updated options.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for Java
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro