code: public static JobDefinition manuallyTriggerableJobDefinition(final String jobType,
                                                                   final String jobName,
                                                                   final String description,
                                                                   final int restarts,
                                                                   final Optional<Duration> maxAge) {
          return new DefaultJobDefinition(jobType, jobName, description, maxAge, Optional.empty(), Optional.empty(), restarts, 0, Optional.empty());
      }
docs: Create a JobDefinition for a job that will not be triggered automatically by a job trigger.
  
  @param jobType     The type of the Job
  @param jobName     A human readable name of the Job
  @param description A short description of the job's purpose
  @param restarts    The number of restarts if the job failed because of errors or exceptions
  @param maxAge      Optional maximum age of a job. When the job is not run for longer than this duration,
  a warning is displayed on the status page
  @return JobDefinition