Class TagResourceCollection

java.lang.Object
com.azure.resourcemanager.apimanagement.models.TagResourceCollection
All Implemented Interfaces:
com.azure.json.JsonSerializable<TagResourceCollection>

public final class TagResourceCollection extends Object implements com.azure.json.JsonSerializable<TagResourceCollection>
Paged Tag list representation.
  • Constructor Details

    • TagResourceCollection

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

    • value

      public List<TagResourceContractInner> value()
      Get the value property: Page values.
      Returns:
      the value value.
    • withValue

      Set the value property: Page values.
      Parameters:
      value - the value value to set.
      Returns:
      the TagResourceCollection object itself.
    • count

      public Long count()
      Get the count property: Total record count number across all pages.
      Returns:
      the count value.
    • withCount

      public TagResourceCollection withCount(Long count)
      Set the count property: Total record count number across all pages.
      Parameters:
      count - the count value to set.
      Returns:
      the TagResourceCollection object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: Next page link if any.
      Returns:
      the nextLink value.
    • withNextLink

      public TagResourceCollection withNextLink(String nextLink)
      Set the nextLink property: Next page link if any.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the TagResourceCollection 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<TagResourceCollection>
      Throws:
      IOException
    • fromJson

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