Class ReservationList

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

public final class ReservationList extends Object implements com.azure.json.JsonSerializable<ReservationList>
List of `Reservation`s.
  • Constructor Details

    • ReservationList

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

    • value

      public List<ReservationResponseInner> value()
      Get the value property: The value property.
      Returns:
      the value value.
    • withValue

      public ReservationList withValue(List<ReservationResponseInner> value)
      Set the value property: The value property.
      Parameters:
      value - the value value to set.
      Returns:
      the ReservationList object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: Url to get the next page of reservations.
      Returns:
      the nextLink value.
    • withNextLink

      public ReservationList withNextLink(String nextLink)
      Set the nextLink property: Url to get the next page of reservations.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the ReservationList 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<ReservationList>
      Throws:
      IOException
    • fromJson

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