Class TaggedResource
- java.lang.Object
-
- com.azure.resourcemanager.communication.models.TaggedResource
-
- Direct Known Subclasses:
CommunicationServiceResourceUpdate
,EmailServiceResourceUpdate
,UpdateDomainRequestParameters
public class TaggedResource extends Object
An ARM resource with that can accept tags.
-
-
Constructor Summary
Constructors Constructor Description TaggedResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
tags()
Get the tags property: Tags of the service which is a list of key value pairs that describe the resource.void
validate()
Validates the instance.TaggedResource
withTags(Map<String,String> tags)
Set the tags property: Tags of the service which is a list of key value pairs that describe the resource.
-
-
-
Method Detail
-
tags
public Map<String,String> tags()
Get the tags property: Tags of the service which is a list of key value pairs that describe the resource.- Returns:
- the tags value.
-
withTags
public TaggedResource withTags(Map<String,String> tags)
Set the tags property: Tags of the service which is a list of key value pairs that describe the resource.- Parameters:
tags
- the tags value to set.- Returns:
- the TaggedResource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-