Class ReservationSummary
java.lang.Object
com.azure.resourcemanager.reservations.models.ReservationSummary
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ReservationSummary>
public final class ReservationSummary
extends Object
implements com.azure.json.JsonSerializable<ReservationSummary>
The roll up count summary of reservations in each state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cancelledCount property: The number of reservation in Cancelled state.Get the expiredCount property: The number of reservation in Expired state.Get the expiringCount property: The number of reservation in Expiring state.Get the failedCount property: The number of reservation in Failed state.static ReservationSummary
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ReservationSummary from the JsonReader.Get the noBenefitCount property: The number of reservation in NoBenefit state.Get the pendingCount property: The number of reservation in Pending state.Get the processingCount property: The number of reservation in Processing state.Get the succeededCount property: The number of reservation in Succeeded state.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the warningCount property: The number of reservation in Warning state.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
-
ReservationSummary
public ReservationSummary()Creates an instance of ReservationSummary class.
-
-
Method Details
-
succeededCount
Get the succeededCount property: The number of reservation in Succeeded state.- Returns:
- the succeededCount value.
-
failedCount
Get the failedCount property: The number of reservation in Failed state.- Returns:
- the failedCount value.
-
expiringCount
Get the expiringCount property: The number of reservation in Expiring state.- Returns:
- the expiringCount value.
-
expiredCount
Get the expiredCount property: The number of reservation in Expired state.- Returns:
- the expiredCount value.
-
pendingCount
Get the pendingCount property: The number of reservation in Pending state.- Returns:
- the pendingCount value.
-
cancelledCount
Get the cancelledCount property: The number of reservation in Cancelled state.- Returns:
- the cancelledCount value.
-
processingCount
Get the processingCount property: The number of reservation in Processing state.- Returns:
- the processingCount value.
-
warningCount
Get the warningCount property: The number of reservation in Warning state.- Returns:
- the warningCount value.
-
noBenefitCount
Get the noBenefitCount property: The number of reservation in NoBenefit state.- Returns:
- the noBenefitCount value.
-
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<ReservationSummary>
- Throws:
IOException
-
fromJson
Reads an instance of ReservationSummary from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ReservationSummary 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 ReservationSummary.
-