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

Resource.DefinitionWithTags<T> 接口

类型参数

T

下一阶段资源定义的类型

public static interface Resource.DefinitionWithTags

允许修改资源的标记的资源定义。

方法摘要

修饰符和类型 方法和描述
abstract T withTag(String key, String value)

将标记添加到资源。

abstract T withTags(Map<String,String> tags)

将资源的标记指定为 Map

方法详细信息

withTag

public abstract T withTag(String key, String value)

将标记添加到资源。

Parameters:

key - 标记的键
value - 标记的值

Returns:

定义的下一阶段

withTags

public abstract T withTags(Map tags)

将资源的标记指定为 Map

Parameters:

tags - 标记的 a Map

Returns:

定义的下一阶段

适用于