Class ResourceLimits
java.lang.Object
com.microsoft.azure.management.containerinstance.ResourceLimits
The resource limits.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncpu()
Get the CPU limit of this container instance.gpu()
Get the GPU limit of this container instance.Get the memory limit in GB of this container instance.Set the CPU limit of this container instance.withGpu
(GpuResource gpu) Set the GPU limit of this container instance.withMemoryInGB
(Double memoryInGB) Set the memory limit in GB of this container instance.
-
Constructor Details
-
ResourceLimits
public ResourceLimits()
-
-
Method Details
-
memoryInGB
Get the memory limit in GB of this container instance.- Returns:
- the memoryInGB value
-
withMemoryInGB
Set 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 limit of this container instance.- Returns:
- the cpu value
-
withCpu
Set the CPU limit of this container instance.- Parameters:
cpu
- the cpu value to set- Returns:
- the ResourceLimits object itself.
-
gpu
Get the GPU limit of this container instance.- Returns:
- the gpu value
-
withGpu
Set the GPU limit of this container instance.- Parameters:
gpu
- the gpu value to set- Returns:
- the ResourceLimits object itself.
-