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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for