Resource.UpdateWithTags<T> Interface
Type Parameters
- T
the type of the next stage resource update
public static interface Resource.UpdateWithTags
An update allowing tags to be modified for the resource.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract T |
withTag(String key, String value)
Adds a tag to the resource. |
abstract T |
withTags(Map<String,String> tags)
Specifies tags for the resource as a Map. |
abstract T |
withoutTag(String key)
Removes a tag from the resource. |
Method Details
withTag
public abstract T withTag(String key, String value)
Adds a tag to the resource.
Parameters:
key
- the key for the tag
value
- the value for the tag
Returns:
the next stage of the resource update
withTags
public abstract T withTags(Map
Specifies tags for the resource as a Map.
Parameters:
tags
- a Map of tags
Returns:
the next stage of the resource update
withoutTag
public abstract T withoutTag(String key)
Removes a tag from the resource.
Parameters:
key
- the key of the tag to remove
Returns:
the next stage of the resource update
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應