Class TagDetailsInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.TagDetailsInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TagDetailsInner>
public final class TagDetailsInner
extends Object
implements com.azure.json.JsonSerializable<TagDetailsInner>
Tag details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncount()Get the count property: The total number of resources that use the resource tag.static TagDetailsInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TagDetailsInner from the JsonReader.id()Get the id property: The tag name ID.tagName()Get the tagName property: The tag name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.values()Get the values property: The list of tag values.Set the count property: The total number of resources that use the resource tag.withTagName(String tagName) Set the tagName property: The tag name.withValues(List<TagValueInner> values) Set the values property: The list of tag values.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TagDetailsInner
public TagDetailsInner()Creates an instance of TagDetailsInner class.
-
-
Method Details
-
id
Get the id property: The tag name ID.- Returns:
- the id value.
-
tagName
Get the tagName property: The tag name.- Returns:
- the tagName value.
-
withTagName
Set the tagName property: The tag name.- Parameters:
tagName- the tagName value to set.- Returns:
- the TagDetailsInner object itself.
-
count
Get the count property: The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0.- Returns:
- the count value.
-
withCount
Set the count property: The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0.- Parameters:
count- the count value to set.- Returns:
- the TagDetailsInner object itself.
-
values
Get the values property: The list of tag values.- Returns:
- the values value.
-
withValues
Set the values property: The list of tag values.- Parameters:
values- the values value to set.- Returns:
- the TagDetailsInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TagDetailsInner>- Throws:
IOException
-
fromJson
Reads an instance of TagDetailsInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TagDetailsInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TagDetailsInner.
-