Class InstanceTypeSchemaResources


  • public final class InstanceTypeSchemaResources
    extends Object
    Resource requests/limits for this instance type.
    • Constructor Detail

      • InstanceTypeSchemaResources

        public InstanceTypeSchemaResources()
    • Method Detail

      • requests

        public Map<String,​String> requests()
        Get the requests property: Resource requests for this instance type.
        Returns:
        the requests value.
      • withRequests

        public InstanceTypeSchemaResources withRequests​(Map<String,​String> requests)
        Set the requests property: Resource requests for this instance type.
        Parameters:
        requests - the requests value to set.
        Returns:
        the InstanceTypeSchemaResources object itself.
      • limits

        public Map<String,​String> limits()
        Get the limits property: Resource limits for this instance type.
        Returns:
        the limits value.
      • withLimits

        public InstanceTypeSchemaResources withLimits​(Map<String,​String> limits)
        Set the limits property: Resource limits for this instance type.
        Parameters:
        limits - the limits value to set.
        Returns:
        the InstanceTypeSchemaResources object itself.
      • validate

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