Class GalleryList

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

public final class GalleryList extends Object implements com.azure.json.JsonSerializable<GalleryList>
The List Galleries operation response.
  • Constructor Details

    • GalleryList

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

    • value

      public List<GalleryInner> value()
      Get the value property: A list of galleries.
      Returns:
      the value value.
    • withValue

      public GalleryList withValue(List<GalleryInner> value)
      Set the value property: A list of galleries.
      Parameters:
      value - the value value to set.
      Returns:
      the GalleryList object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries.
      Returns:
      the nextLink value.
    • withNextLink

      public GalleryList withNextLink(String nextLink)
      Set the nextLink property: The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the GalleryList 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<GalleryList>
      Throws:
      IOException
    • fromJson

      public static GalleryList fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GalleryList from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GalleryList if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the GalleryList.