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
    Constructor
    Description
    Creates an instance of ReservationSummary class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get 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.
    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
    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

      public Float succeededCount()
      Get the succeededCount property: The number of reservation in Succeeded state.
      Returns:
      the succeededCount value.
    • failedCount

      public Float failedCount()
      Get the failedCount property: The number of reservation in Failed state.
      Returns:
      the failedCount value.
    • expiringCount

      public Float expiringCount()
      Get the expiringCount property: The number of reservation in Expiring state.
      Returns:
      the expiringCount value.
    • expiredCount

      public Float expiredCount()
      Get the expiredCount property: The number of reservation in Expired state.
      Returns:
      the expiredCount value.
    • pendingCount

      public Float pendingCount()
      Get the pendingCount property: The number of reservation in Pending state.
      Returns:
      the pendingCount value.
    • cancelledCount

      public Float cancelledCount()
      Get the cancelledCount property: The number of reservation in Cancelled state.
      Returns:
      the cancelledCount value.
    • processingCount

      public Float processingCount()
      Get the processingCount property: The number of reservation in Processing state.
      Returns:
      the processingCount value.
    • warningCount

      public Float warningCount()
      Get the warningCount property: The number of reservation in Warning state.
      Returns:
      the warningCount value.
    • noBenefitCount

      public Float 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ReservationSummary>
      Throws:
      IOException
    • fromJson

      public static ReservationSummary fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.