Class CsmUsageQuotaInner

java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.CsmUsageQuotaInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<CsmUsageQuotaInner>

public final class CsmUsageQuotaInner extends Object implements com.azure.json.JsonSerializable<CsmUsageQuotaInner>
Usage of the quota resource.
  • Method Details

    • unit

      public String unit()
      Get the unit property: Units of measurement for the quota resource.
      Returns:
      the unit value.
    • nextResetTime

      public OffsetDateTime nextResetTime()
      Get the nextResetTime property: Next reset time for the resource counter.
      Returns:
      the nextResetTime value.
    • currentValue

      public Long currentValue()
      Get the currentValue property: The current value of the resource counter.
      Returns:
      the currentValue value.
    • limit

      public Long limit()
      Get the limit property: The resource limit.
      Returns:
      the limit value.
    • name

      public LocalizableString name()
      Get the name property: Quota name.
      Returns:
      the name 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<CsmUsageQuotaInner>
      Throws:
      IOException
    • fromJson

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