Package com.azure.storage.blob.options
Class BlockBlobCommitBlockListOptions
java.lang.Object
com.azure.storage.blob.options.BlockBlobCommitBlockListOptions
Extended options that may be passed when committing a block list.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockBlobCommitBlockListOptions
(List<String> base64BlockIds) Creates a new instance ofBlockBlobCommitBlockListOptions
. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of base64 encodeString
s that specifies the block IDs to be committed.Gets theBlobHttpHeaders
.Gets theBlobImmutabilityPolicy
.Gets the metadata to associate with the blob.Gets theBlobRequestConditions
.getTags()
Gets the tags to associate with the blob.getTier()
Gets theAccessTier
.Gets if a legal hold should be placed on the blob.setHeaders
(BlobHttpHeaders headers) Sets theBlobHttpHeaders
.setImmutabilityPolicy
(BlobImmutabilityPolicy immutabilityPolicy) Sets theBlobImmutabilityPolicy
.setLegalHold
(Boolean legalHold) Sets if a legal hold should be placed on the blob.setMetadata
(Map<String, String> metadata) Sets the metadata to associate with the blob.setRequestConditions
(BlobRequestConditions requestConditions) Sets theBlobRequestConditions
.Sets the tags to associate with the blob.setTier
(AccessTier tier) Sets theAccessTier
.
-
Constructor Details
-
BlockBlobCommitBlockListOptions
Creates a new instance ofBlockBlobCommitBlockListOptions
.- Parameters:
base64BlockIds
- A list of base64 encodeString
s that specifies the block IDs to be committed.
-
-
Method Details
-
getBase64BlockIds
Gets the list of base64 encodeString
s that specifies the block IDs to be committed.- Returns:
- A list of base64 encode
String
s that specifies the block IDs to be committed.
-
getHeaders
Gets theBlobHttpHeaders
.- Returns:
BlobHttpHeaders
-
setHeaders
Sets theBlobHttpHeaders
.- Parameters:
headers
-BlobHttpHeaders
- Returns:
- The updated
AppendBlobCreateOptions
-
getMetadata
Gets the metadata to associate with the blob.- Returns:
- The metadata to associate with the blob.
-
setMetadata
Sets the metadata to associate with the blob.- Parameters:
metadata
- The metadata to associate with the blob.- Returns:
- The updated options
-
getTags
Gets the tags to associate with the blob.- Returns:
- The tags to associate with the blob.
-
setTags
Sets the tags to associate with the blob.- Parameters:
tags
- The tags to associate with the blob.- Returns:
- The updated options.
-
getTier
Gets theAccessTier
.- Returns:
AccessTier
-
setTier
Sets theAccessTier
.- Parameters:
tier
-AccessTier
- Returns:
- The updated options.
-
getRequestConditions
Gets theBlobRequestConditions
.- Returns:
BlobRequestConditions
-
setRequestConditions
public BlockBlobCommitBlockListOptions setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions
.- Parameters:
requestConditions
-BlobRequestConditions
- Returns:
- The updated options.
-
getImmutabilityPolicy
Gets theBlobImmutabilityPolicy
.- Returns:
BlobImmutabilityPolicy
-
setImmutabilityPolicy
public BlockBlobCommitBlockListOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy) Sets theBlobImmutabilityPolicy
.Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
- Parameters:
immutabilityPolicy
-BlobImmutabilityPolicy
- Returns:
- The updated options.
-
isLegalHold
Gets if a legal hold should be placed on the blob.- Returns:
- If a legal hold should be placed on the blob.
-
setLegalHold
Sets if a legal hold should be placed on the blob.Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
- Parameters:
legalHold
- Indicates if a legal hold should be placed on the blob.- Returns:
- The updated options.
-