Class QuotaBaseProperties

java.lang.Object
com.azure.resourcemanager.machinelearning.models.QuotaBaseProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<QuotaBaseProperties>

public final class QuotaBaseProperties extends Object implements com.azure.json.JsonSerializable<QuotaBaseProperties>
The properties for Quota update or retrieval.
  • Constructor Details

    • QuotaBaseProperties

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

    • id

      public String id()
      Get the id property: Specifies the resource ID.
      Returns:
      the id value.
    • withId

      public QuotaBaseProperties withId(String id)
      Set the id property: Specifies the resource ID.
      Parameters:
      id - the id value to set.
      Returns:
      the QuotaBaseProperties object itself.
    • type

      public String type()
      Get the type property: Specifies the resource type.
      Returns:
      the type value.
    • withType

      public QuotaBaseProperties withType(String type)
      Set the type property: Specifies the resource type.
      Parameters:
      type - the type value to set.
      Returns:
      the QuotaBaseProperties object itself.
    • limit

      public Long limit()
      Get the limit property: The maximum permitted quota of the resource.
      Returns:
      the limit value.
    • withLimit

      public QuotaBaseProperties withLimit(Long limit)
      Set the limit property: The maximum permitted quota of the resource.
      Parameters:
      limit - the limit value to set.
      Returns:
      the QuotaBaseProperties object itself.
    • unit

      public QuotaUnit unit()
      Get the unit property: An enum describing the unit of quota measurement.
      Returns:
      the unit value.
    • withUnit

      public QuotaBaseProperties withUnit(QuotaUnit unit)
      Set the unit property: An enum describing the unit of quota measurement.
      Parameters:
      unit - the unit value to set.
      Returns:
      the QuotaBaseProperties 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<QuotaBaseProperties>
      Throws:
      IOException
    • fromJson

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