ResourceQuota Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ResourceQuota
- com.
Implements
public final class ResourceQuota
implements JsonSerializable<ResourceQuota>
Resource quota for the namespace.
Constructor Summary
| Constructor | Description |
|---|---|
| ResourceQuota() |
Creates an instance of Resource |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
cpuLimit()
Get the cpu |
| String |
cpuRequest()
Get the cpu |
|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
| String |
memoryLimit()
Get the memory |
| String |
memoryRequest()
Get the memory |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Resource |
withCpuLimit(String cpuLimit)
Set the cpu |
|
Resource |
withCpuRequest(String cpuRequest)
Set the cpu |
|
Resource |
withMemoryLimit(String memoryLimit)
Set the memory |
|
Resource |
withMemoryRequest(String memoryRequest)
Set the memory |
Methods inherited from java.lang.Object
Constructor Details
ResourceQuota
public ResourceQuota()
Creates an instance of ResourceQuota class.
Method Details
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:
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:
fromJson
public static ResourceQuota fromJson(JsonReader jsonReader)
Reads an instance of ResourceQuota from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns: