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
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.
Azure SDK for Java