Class QuotaUsageInner

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

public final class QuotaUsageInner extends Object implements com.azure.json.JsonSerializable<QuotaUsageInner>
Quota usage for servers.
  • Constructor Details

    • QuotaUsageInner

      public QuotaUsageInner()
      Creates an instance of QuotaUsageInner class.
  • Method Details

    • name

      public NameProperty name()
      Get the name property: Name of quota usage for servers.
      Returns:
      the name value.
    • withName

      public QuotaUsageInner withName(NameProperty name)
      Set the name property: Name of quota usage for servers.
      Parameters:
      name - the name value to set.
      Returns:
      the QuotaUsageInner object itself.
    • limit

      public Long limit()
      Get the limit property: Quota limit.
      Returns:
      the limit value.
    • withLimit

      public QuotaUsageInner withLimit(Long limit)
      Set the limit property: Quota limit.
      Parameters:
      limit - the limit value to set.
      Returns:
      the QuotaUsageInner object itself.
    • unit

      public String unit()
      Get the unit property: Quota unit.
      Returns:
      the unit value.
    • withUnit

      public QuotaUsageInner withUnit(String unit)
      Set the unit property: Quota unit.
      Parameters:
      unit - the unit value to set.
      Returns:
      the QuotaUsageInner object itself.
    • currentValue

      public Long currentValue()
      Get the currentValue property: Current Quota usage value.
      Returns:
      the currentValue value.
    • withCurrentValue

      public QuotaUsageInner withCurrentValue(Long currentValue)
      Set the currentValue property: Current Quota usage value.
      Parameters:
      currentValue - the currentValue value to set.
      Returns:
      the QuotaUsageInner object itself.
    • id

      public String id()
      Get the id property: Fully qualified ARM resource Id.
      Returns:
      the id value.
    • withId

      public QuotaUsageInner withId(String id)
      Set the id property: Fully qualified ARM resource Id.
      Parameters:
      id - the id value to set.
      Returns:
      the QuotaUsageInner object itself.
    • 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<QuotaUsageInner>
      Throws:
      IOException
    • fromJson

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