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

SecretItem 类

  • java.lang.Object
    • com.microsoft.azure.keyvault.models.SecretItem

public class SecretItem

包含机密元数据的机密项。

方法摘要

修饰符和类型 方法和描述
SecretAttributes attributes()

获取属性值。

String contentType()

获取 contentType 值。

String id()

获取 ID 值。

SecretIdentifier identifier()

机密标识符。

Boolean managed()

获取托管值。

Map<String, String> tags()

获取标记值。

SecretItem withAttributes(SecretAttributes attributes)

设置属性值。

SecretItem withContentType(String contentType)

设置 contentType 值。

SecretItem withId(String id)

设置 ID 值。

SecretItem withTags(Map<String, String> tags)

设置标记值。

方法详细信息

attributes

public SecretAttributes attributes()

获取属性值。

返回:

特性值

contentType

public String contentType()

获取 contentType 值。

返回:

contentType 值

id

public String id()

获取 ID 值。

返回:

id 值

identifier

public SecretIdentifier identifier()

机密标识符。

返回:

标识符值

managed

public Boolean managed()

获取托管值。

返回:

托管值

tags

public Map tags()

获取标记值。

返回:

标记值

withAttributes

public SecretItem withAttributes(SecretAttributes attributes)

设置属性值。

参数:

attributes - 要设置的属性值

返回:

SecretItem 对象本身。

withContentType

public SecretItem withContentType(String contentType)

设置 contentType 值。

参数:

contentType - 要设置的 contentType 值

返回:

SecretItem 对象本身。

withId

public SecretItem withId(String id)

设置 ID 值。

参数:

id - 要设置的 id 值

返回:

SecretItem 对象本身。

withTags

public SecretItem withTags(Map tags)

设置标记值。

参数:

tags - 要设置的标记值

返回:

SecretItem 对象本身。

适用于