Resource.DefinitionWithTags<T> Interface
Type Parameters
- T
the type of the next stage resource definition
public static interface Resource.DefinitionWithTags
A resource definition 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. |
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 definition
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 definition
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for Java
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla