Class OSVersionListResult

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

public final class OSVersionListResult extends Object implements com.azure.json.JsonSerializable<OSVersionListResult>
The list operation result.
  • Constructor Details

    • OSVersionListResult

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

    • value

      public List<OSVersionInner> value()
      Get the value property: The list of resources.
      Returns:
      the value value.
    • withValue

      public OSVersionListResult withValue(List<OSVersionInner> value)
      Set the value property: The list of resources.
      Parameters:
      value - the value value to set.
      Returns:
      the OSVersionListResult object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.
      Returns:
      the nextLink value.
    • withNextLink

      public OSVersionListResult withNextLink(String nextLink)
      Set the nextLink property: The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the OSVersionListResult 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<OSVersionListResult>
      Throws:
      IOException
    • fromJson

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