public Optional<Duration> getInterval() {
    return Optional.ofNullable(interval);
  }
Gets the optional healthcheck interval. A missing command means that it will be inherited from
the base image.

@return the healthcheck interval
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/DockerHealthCheck.java