Class JobLimits

    • Constructor Detail

      • JobLimits

        public JobLimits()
    • Method Detail

      • timeout

        public Duration timeout()
        Get the timeout property: The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds.
        Returns:
        the timeout value.
      • withTimeout

        public JobLimits withTimeout​(Duration timeout)
        Set the timeout property: The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds.
        Parameters:
        timeout - the timeout value to set.
        Returns:
        the JobLimits object itself.
      • validate

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