Class InstanceTypeSchema


  • public final class InstanceTypeSchema
    extends Object
    Instance type schema.
    • Constructor Detail

      • InstanceTypeSchema

        public InstanceTypeSchema()
    • Method Detail

      • nodeSelector

        public Map<String,​String> nodeSelector()
        Get the nodeSelector property: Node Selector.
        Returns:
        the nodeSelector value.
      • withNodeSelector

        public InstanceTypeSchema withNodeSelector​(Map<String,​String> nodeSelector)
        Set the nodeSelector property: Node Selector.
        Parameters:
        nodeSelector - the nodeSelector value to set.
        Returns:
        the InstanceTypeSchema object itself.
      • resources

        public InstanceTypeSchemaResources resources()
        Get the resources property: Resource requests/limits for this instance type.
        Returns:
        the resources value.
      • withResources

        public InstanceTypeSchema withResources​(InstanceTypeSchemaResources resources)
        Set the resources property: Resource requests/limits for this instance type.
        Parameters:
        resources - the resources value to set.
        Returns:
        the InstanceTypeSchema object itself.
      • validate

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