你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AppendBlobCreateOptions Class

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

public class AppendBlobCreateOptions

Extended options that may be passed when creating an Append Blob.

Constructor Summary

Constructor Description
AppendBlobCreateOptions()

Creates a new instance of AppendBlobCreateOptions.

Method Summary

Modifier and Type Method and Description
BlobHttpHeaders getHeaders()

Gets the BlobHttpHeaders.

BlobImmutabilityPolicy getImmutabilityPolicy()

Gets the immutability policy for the blob.

Map<String,String> getMetadata()

Gets the metadata to associate with the blob.

BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Map<String,String> getTags()

Gets the tags to associate with the blob.

Boolean hasLegalHold()

Gets if a legal hold should be placed on the blob.

AppendBlobCreateOptions setHeaders(BlobHttpHeaders headers)

Sets the BlobHttpHeaders.

AppendBlobCreateOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

Sets the immutability policy for the blob.

AppendBlobCreateOptions setLegalHold(Boolean legalHold)

Sets if a legal hold should be placed on the blob.

AppendBlobCreateOptions setMetadata(Map<String,String> metadata)

Sets the metadata to associate with the blob.

AppendBlobCreateOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

AppendBlobCreateOptions setTags(Map<String,String> tags)

Sets the tags to associate with the blob.

Methods inherited from java.lang.Object

Constructor Details

AppendBlobCreateOptions

public AppendBlobCreateOptions()

Creates a new instance of AppendBlobCreateOptions.

Method Details

getHeaders

public BlobHttpHeaders getHeaders()

Gets the BlobHttpHeaders.

Returns:

getImmutabilityPolicy

public BlobImmutabilityPolicy getImmutabilityPolicy()

Gets the immutability policy for the blob.

Returns:

getMetadata

public Map getMetadata()

Gets the metadata to associate with the blob.

Returns:

The metadata to associate with the blob.

getRequestConditions

public BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Returns:

getTags

public Map getTags()

Gets the tags to associate with the blob.

Returns:

The tags to associate with the blob.

hasLegalHold

public Boolean hasLegalHold()

Gets if a legal hold should be placed on the blob.

Returns:

If a legal hold should be placed on the blob.

setHeaders

public AppendBlobCreateOptions setHeaders(BlobHttpHeaders headers)

Sets the BlobHttpHeaders.

Parameters:

headers - BlobHttpHeaders

Returns:

The updated AppendBlobCreateOptions

setImmutabilityPolicy

public AppendBlobCreateOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

Sets the immutability policy for the blob.

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 AppendBlobCreateOptions setLegalHold(Boolean legalHold)

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.

setMetadata

public AppendBlobCreateOptions setMetadata(Map metadata)

Sets the metadata to associate with the blob.

Parameters:

metadata - The metadata to associate with the blob.

Returns:

The updated options

setRequestConditions

public AppendBlobCreateOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Parameters:

requestConditions - BlobRequestConditions

Returns:

The updated options.

setTags

public AppendBlobCreateOptions setTags(Map tags)

Sets the tags to associate with the blob.

Parameters:

tags - The tags to associate with the blob.

Returns:

The updated options.

Applies to