Class ResourceRequirements


  • public final class ResourceRequirements
    extends Object
    The resource requirements.
    • Constructor Detail

      • ResourceRequirements

        public ResourceRequirements()
    • Method Detail

      • requests

        public ResourceRequests requests()
        Get the requests property: The resource requests of this container instance.
        Returns:
        the requests value.
      • withRequests

        public ResourceRequirements withRequests​(ResourceRequests requests)
        Set the requests property: The resource requests of this container instance.
        Parameters:
        requests - the requests value to set.
        Returns:
        the ResourceRequirements object itself.
      • limits

        public ResourceLimits limits()
        Get the limits property: The resource limits of this container instance.
        Returns:
        the limits value.
      • withLimits

        public ResourceRequirements withLimits​(ResourceLimits limits)
        Set the limits property: The resource limits of this container instance.
        Parameters:
        limits - the limits value to set.
        Returns:
        the ResourceRequirements object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.