Class ResourceLimits
java.lang.Object
com.azure.resourcemanager.containerinstance.models.ResourceLimits
The resource limits.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncpu()Get the cpu property: The CPU limit of this container instance.gpu()Get the gpu property: The GPU limit of this container instance.Get the memoryInGB property: The memory limit in GB of this container instance.voidvalidate()Validates the instance.Set the cpu property: The CPU limit of this container instance.withGpu(GpuResource gpu) Set the gpu property: The GPU limit of this container instance.withMemoryInGB(Double memoryInGB) Set the memoryInGB property: The memory limit in GB of this container instance.
-
Constructor Details
-
ResourceLimits
public ResourceLimits()Creates an instance of ResourceLimits class.
-
-
Method Details
-
memoryInGB
Get the memoryInGB property: The memory limit in GB of this container instance.- Returns:
- the memoryInGB value.
-
withMemoryInGB
Set the memoryInGB property: The memory limit in GB of this container instance.- Parameters:
memoryInGB- the memoryInGB value to set.- Returns:
- the ResourceLimits object itself.
-
cpu
Get the cpu property: The CPU limit of this container instance.- Returns:
- the cpu value.
-
withCpu
Set the cpu property: The CPU limit of this container instance.- Parameters:
cpu- the cpu value to set.- Returns:
- the ResourceLimits object itself.
-
gpu
Get the gpu property: The GPU limit of this container instance.- Returns:
- the gpu value.
-
withGpu
Set the gpu property: The GPU limit of this container instance.- Parameters:
gpu- the gpu value to set.- Returns:
- the ResourceLimits object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-