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 Summary
ConstructorsConstructorDescriptionCreates an instance of ReservationsListResult class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReservationsListResult
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ReservationsListResult from the JsonReader.nextLink()
Get the nextLink property: The link (url) to the next page of results.summary()
Get the summary property: The roll out count summary of the reservations.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.value()
Get the value property: The list of reservations.withSummary
(ReservationSummary summary) Set the summary property: The roll out count summary of the reservations.Methods inherited from class java.lang.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
-
ReservationsListResult
public ReservationsListResult()Creates an instance of ReservationsListResult class.
-
-
Method Details
-
value
Get the value property: The list of reservations.- Returns:
- the value value.
-
nextLink
Get the nextLink property: The link (url) to the next page of results.- Returns:
- the nextLink value.
-
summary
Get the summary property: The roll out count summary of the reservations.- Returns:
- the summary value.
-
withSummary
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
- Specified by:
toJson
in interfacecom.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.
-