Class ResourceQuota

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

public final class ResourceQuota extends Object implements com.azure.json.JsonSerializable<ResourceQuota>
Resource quota for the namespace.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ResourceQuota class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the cpuLimit property: CPU limit of the namespace in one-thousandth CPU form.
    Get the cpuRequest property: CPU request of the namespace in one-thousandth CPU form.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ResourceQuota from the JsonReader.
    Get the memoryLimit property: Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki.
    Get the memoryRequest property: Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withCpuLimit(String cpuLimit)
    Set the cpuLimit property: CPU limit of the namespace in one-thousandth CPU form.
    withCpuRequest(String cpuRequest)
    Set the cpuRequest property: CPU request of the namespace in one-thousandth CPU form.
    withMemoryLimit(String memoryLimit)
    Set the memoryLimit property: Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki.
    withMemoryRequest(String memoryRequest)
    Set the memoryRequest property: Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki.

    Methods inherited from class 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

    • ResourceQuota

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

    • cpuRequest

      public String cpuRequest()
      Get the cpuRequest property: CPU request of the namespace in one-thousandth CPU form. See [CPU resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) for more details.
      Returns:
      the cpuRequest value.
    • withCpuRequest

      public ResourceQuota withCpuRequest(String cpuRequest)
      Set the cpuRequest property: CPU request of the namespace in one-thousandth CPU form. See [CPU resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) for more details.
      Parameters:
      cpuRequest - the cpuRequest value to set.
      Returns:
      the ResourceQuota object itself.
    • cpuLimit

      public String cpuLimit()
      Get the cpuLimit property: CPU limit of the namespace in one-thousandth CPU form. See [CPU resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) for more details.
      Returns:
      the cpuLimit value.
    • withCpuLimit

      public ResourceQuota withCpuLimit(String cpuLimit)
      Set the cpuLimit property: CPU limit of the namespace in one-thousandth CPU form. See [CPU resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) for more details.
      Parameters:
      cpuLimit - the cpuLimit value to set.
      Returns:
      the ResourceQuota object itself.
    • memoryRequest

      public String memoryRequest()
      Get the memoryRequest property: Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See [Memory resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory) for more details.
      Returns:
      the memoryRequest value.
    • withMemoryRequest

      public ResourceQuota withMemoryRequest(String memoryRequest)
      Set the memoryRequest property: Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See [Memory resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory) for more details.
      Parameters:
      memoryRequest - the memoryRequest value to set.
      Returns:
      the ResourceQuota object itself.
    • memoryLimit

      public String memoryLimit()
      Get the memoryLimit property: Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See [Memory resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory) for more details.
      Returns:
      the memoryLimit value.
    • withMemoryLimit

      public ResourceQuota withMemoryLimit(String memoryLimit)
      Set the memoryLimit property: Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See [Memory resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory) for more details.
      Parameters:
      memoryLimit - the memoryLimit value to set.
      Returns:
      the ResourceQuota 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<ResourceQuota>
      Throws:
      IOException
    • fromJson

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