Class ReservationsListResult

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

public final class ReservationsListResult extends Object implements com.azure.json.JsonSerializable<ReservationsListResult>
The list of reservations and summary of roll out count of reservations in each state.
  • Constructor Details

    • ReservationsListResult

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

    • value

      public List<ReservationResponseInner> value()
      Get the value property: The list of reservations.
      Returns:
      the value value.
    • nextLink

      public String nextLink()
      Get the nextLink property: The link (url) to the next page of results.
      Returns:
      the nextLink value.
    • summary

      public ReservationSummary summary()
      Get the summary property: The roll out count summary of the reservations.
      Returns:
      the summary value.
    • withSummary

      public ReservationsListResult withSummary(ReservationSummary summary)
      Set the summary property: The roll out count summary of the reservations.
      Parameters:
      summary - the summary value to set.
      Returns:
      the ReservationsListResult 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<ReservationsListResult>
      Throws:
      IOException
    • fromJson

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