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

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