Class ContainerResourceSettings


  • public final class ContainerResourceSettings
    extends Object
    The ContainerResourceSettings model.
    • Constructor Detail

      • ContainerResourceSettings

        public ContainerResourceSettings()
    • 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.