BlockBlobCommitBlockListOptions Class

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

public class BlockBlobCommitBlockListOptions

Extended options that may be passed when committing a block list.

Constructor Summary

Constructor Description
BlockBlobCommitBlockListOptions(List<String> base64BlockIds)

Method Summary

Modifier and Type Method and Description
List<String> getBase64BlockIds()
BlobHttpHeaders getHeaders()
BlobImmutabilityPolicy getImmutabilityPolicy()
Map<String,String> getMetadata()
BlobRequestConditions getRequestConditions()
Map<String,String> getTags()
AccessTier getTier()
Boolean isLegalHold()
BlockBlobCommitBlockListOptions setHeaders(BlobHttpHeaders headers)
BlockBlobCommitBlockListOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.

BlockBlobCommitBlockListOptions setLegalHold(Boolean legalHold)

Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.

BlockBlobCommitBlockListOptions setMetadata(Map<String,String> metadata)
BlockBlobCommitBlockListOptions setRequestConditions(BlobRequestConditions requestConditions)
BlockBlobCommitBlockListOptions setTags(Map<String,String> tags)
BlockBlobCommitBlockListOptions setTier(AccessTier tier)

Methods inherited from java.lang.Object

Constructor Details

BlockBlobCommitBlockListOptions

public BlockBlobCommitBlockListOptions(List base64BlockIds)

Parameters:

base64BlockIds - A list of base64 encode Strings that specifies the block IDs to be committed.

Method Details

getBase64BlockIds

public List getBase64BlockIds()

Returns:

A list of base64 encode Strings that specifies the block IDs to be committed.

getHeaders

public BlobHttpHeaders getHeaders()

Returns:

getImmutabilityPolicy

public BlobImmutabilityPolicy getImmutabilityPolicy()

Returns:

getMetadata

public Map getMetadata()

Returns:

The metadata to associate with the blob.

getRequestConditions

public BlobRequestConditions getRequestConditions()

Returns:

getTags

public Map getTags()

Returns:

The tags to associate with the blob.

getTier

public AccessTier getTier()

Returns:

isLegalHold

public Boolean isLegalHold()

Returns:

If a legal hold should be placed on the blob.

setHeaders

public BlockBlobCommitBlockListOptions setHeaders(BlobHttpHeaders headers)

Parameters:

headers - BlobHttpHeaders

Returns:

The updated AppendBlobCreateOptions

setImmutabilityPolicy

public BlockBlobCommitBlockListOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

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.

setLegalHold

public BlockBlobCommitBlockListOptions setLegalHold(Boolean legalHold)

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.

setMetadata

public BlockBlobCommitBlockListOptions setMetadata(Map metadata)

Parameters:

metadata - The metadata to associate with the blob.

Returns:

The updated options

setRequestConditions

public BlockBlobCommitBlockListOptions setRequestConditions(BlobRequestConditions requestConditions)

Parameters:

requestConditions - BlobRequestConditions

Returns:

The updated options.

setTags

public BlockBlobCommitBlockListOptions setTags(Map tags)

Parameters:

tags - The tags to associate with the blob.

Returns:

The updated options.

setTier

public BlockBlobCommitBlockListOptions setTier(AccessTier tier)

Parameters:

tier - AccessTier

Returns:

The updated options.

Applies to