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 -
Method Summary
Modifier and TypeMethodDescriptioncpuLimit()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.static ResourceQuotafromJson(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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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, waitMethods 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
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
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
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
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
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
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
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceQuota>- Throws:
IOException
-
fromJson
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.
-