Class TaggedResource
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.healthcareapis.models.ResourceCore
-
- com.azure.resourcemanager.healthcareapis.models.LocationBasedResource
-
- com.azure.resourcemanager.healthcareapis.models.TaggedResource
-
- Direct Known Subclasses:
DicomServiceInner
,FhirServiceInner
,IotConnectorInner
,WorkspaceInner
public class TaggedResource extends LocationBasedResource
The common properties of tracked resources in the service.
-
-
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: Resource tags.void
validate()
Validates the instance.TaggedResource
withEtag(String etag)
Set the etag property: An etag associated with the resource, used for optimistic concurrency when editing it.TaggedResource
withLocation(String location)
Set the location property: The resource location.TaggedResource
withTags(Map<String,String> tags)
Set the tags property: Resource tags.-
Methods inherited from class com.azure.resourcemanager.healthcareapis.models.LocationBasedResource
location
-
Methods inherited from class com.azure.resourcemanager.healthcareapis.models.ResourceCore
etag
-
-
-
-
Method Detail
-
tags
public Map<String,String> tags()
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
public TaggedResource withTags(Map<String,String> tags)
Set the tags property: Resource tags.- Parameters:
tags
- the tags value to set.- Returns:
- the TaggedResource object itself.
-
withLocation
public TaggedResource withLocation(String location)
Set the location property: The resource location.- Overrides:
withLocation
in classLocationBasedResource
- Parameters:
location
- the location value to set.- Returns:
- the LocationBasedResource object itself.
-
withEtag
public TaggedResource withEtag(String etag)
Set the etag property: An etag associated with the resource, used for optimistic concurrency when editing it.- Overrides:
withEtag
in classLocationBasedResource
- Parameters:
etag
- the etag value to set.- Returns:
- the ResourceCore object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classLocationBasedResource
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-