Class DiskList

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

public final class DiskList extends Object implements com.azure.json.JsonSerializable<DiskList>
The List Disks operation response.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of DiskList class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static DiskList
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of DiskList from the JsonReader.
    Get the nextLink property: The link to the next page of items.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the value property: The Disk items on this page.
    withNextLink(String nextLink)
    Set the nextLink property: The link to the next page of items.
    Set the value property: The Disk items on this page.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • DiskList

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

    • value

      public List<DiskInner> value()
      Get the value property: The Disk items on this page.
      Returns:
      the value value.
    • withValue

      public DiskList withValue(List<DiskInner> value)
      Set the value property: The Disk items on this page.
      Parameters:
      value - the value value to set.
      Returns:
      the DiskList object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: The link to the next page of items.
      Returns:
      the nextLink value.
    • withNextLink

      public DiskList withNextLink(String nextLink)
      Set the nextLink property: The link to the next page of items.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the DiskList 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<DiskList>
      Throws:
      IOException
    • fromJson

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