java.lang.Object
com.azure.resourcemanager.resources.fluent.models.TagValueInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<TagValueInner>

public final class TagValueInner extends Object implements com.azure.json.JsonSerializable<TagValueInner>
Tag information.
  • Constructor Details

    • TagValueInner

      public TagValueInner()
      Creates an instance of TagValueInner class.
  • Method Details

    • id

      public String id()
      Get the id property: The tag value ID.
      Returns:
      the id value.
    • tagValue

      public String tagValue()
      Get the tagValue property: The tag value.
      Returns:
      the tagValue value.
    • withTagValue

      public TagValueInner withTagValue(String tagValue)
      Set the tagValue property: The tag value.
      Parameters:
      tagValue - the tagValue value to set.
      Returns:
      the TagValueInner object itself.
    • count

      public TagCount count()
      Get the count property: The tag value count.
      Returns:
      the count value.
    • withCount

      public TagValueInner withCount(TagCount count)
      Set the count property: The tag value count.
      Parameters:
      count - the count value to set.
      Returns:
      the TagValueInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TagValueInner>
      Throws:
      IOException
    • fromJson

      public static TagValueInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TagValueInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TagValueInner 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 TagValueInner.