Class ContainerResourceSettings
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ContainerResourceSettings
-
public final class ContainerResourceSettings extends Object
The ContainerResourceSettings model.
-
-
Constructor Summary
Constructors Constructor Description ContainerResourceSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
cpu()
Get the cpu property: Number of vCPUs request/limit for container.String
gpu()
Get the gpu property: Number of Nvidia GPU cards request/limit for container.String
memory()
Get the memory property: Memory size request/limit for container.void
validate()
Validates the instance.ContainerResourceSettings
withCpu(String cpu)
Set the cpu property: Number of vCPUs request/limit for container.ContainerResourceSettings
withGpu(String gpu)
Set the gpu property: Number of Nvidia GPU cards request/limit for container.ContainerResourceSettings
withMemory(String memory)
Set the memory property: Memory size request/limit for container.
-
-
-
Method Detail
-
cpu
public String cpu()
Get the cpu property: Number of vCPUs request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.- Returns:
- the cpu value.
-
withCpu
public ContainerResourceSettings withCpu(String cpu)
Set the cpu property: Number of vCPUs request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.- Parameters:
cpu
- the cpu value to set.- Returns:
- the ContainerResourceSettings object itself.
-
gpu
public String gpu()
Get the gpu property: Number of Nvidia GPU cards request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.- Returns:
- the gpu value.
-
withGpu
public ContainerResourceSettings withGpu(String gpu)
Set the gpu property: Number of Nvidia GPU cards request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.- Parameters:
gpu
- the gpu value to set.- Returns:
- the ContainerResourceSettings object itself.
-
memory
public String memory()
Get the memory property: Memory size request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.- Returns:
- the memory value.
-
withMemory
public ContainerResourceSettings withMemory(String memory)
Set the memory property: Memory size request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.- Parameters:
memory
- the memory value to set.- Returns:
- the ContainerResourceSettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-