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

BlobContainerCreateOptions Class

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

public class BlobContainerCreateOptions

Extended options that may be passed when creating a Blob Container.

Constructor Summary

Constructor Description
BlobContainerCreateOptions()

Creates a new instance of BlobContainerCreateOptions.

Method Summary

Modifier and Type Method and Description
Map<String,String> getMetadata()

Gets the metadata to associate with the blob.

PublicAccessType getPublicAccessType()

Gets the public access type associated with the blob.

BlobContainerCreateOptions setMetadata(Map<String,String> metadata)

Sets the metadata to associate with the blob.

BlobContainerCreateOptions setPublicAccessType(PublicAccessType accessType)

Sets the public access type to associate with the blob.

Methods inherited from java.lang.Object

Constructor Details

BlobContainerCreateOptions

public BlobContainerCreateOptions()

Creates a new instance of BlobContainerCreateOptions.

Method Details

getMetadata

public Map<String,String> getMetadata()

Gets the metadata to associate with the blob.

Returns:

The metadata to associate with the blob.

getPublicAccessType

public PublicAccessType getPublicAccessType()

Gets the public access type associated with the blob.

Returns:

The public access type associated with the blob.

setMetadata

public BlobContainerCreateOptions setMetadata(Map<String,String> metadata)

Sets the metadata to associate with the blob.

Parameters:

metadata - The metadata to associate with the blob.

Returns:

The updated options

setPublicAccessType

public BlobContainerCreateOptions setPublicAccessType(PublicAccessType accessType)

Sets the public access type to associate with the blob.

Parameters:

accessType - The public access type to associate with the blob.

Returns:

The updated options.

Applies to