Class QuotaDetails

java.lang.Object
com.azure.ai.documentintelligence.models.QuotaDetails
All Implemented Interfaces:
com.azure.json.JsonSerializable<QuotaDetails>

public final class QuotaDetails extends Object implements com.azure.json.JsonSerializable<QuotaDetails>
Quota used, limit, and next reset date/time.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of QuotaDetails from the JsonReader.
    int
    Get the quota property: Resource quota limit.
    Get the quotaResetDateTime property: Date/time when the resource quota usage will be reset.
    int
    Get the used property: Amount of the resource quota used.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    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
  • Method Details

    • getUsed

      public int getUsed()
      Get the used property: Amount of the resource quota used.
      Returns:
      the used value.
    • getQuota

      public int getQuota()
      Get the quota property: Resource quota limit.
      Returns:
      the quota value.
    • getQuotaResetDateTime

      public OffsetDateTime getQuotaResetDateTime()
      Get the quotaResetDateTime property: Date/time when the resource quota usage will be reset.
      Returns:
      the quotaResetDateTime value.
    • toJson

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

      public static QuotaDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of QuotaDetails from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of QuotaDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the QuotaDetails.