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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor