public Builder setTimeout(Duration timeout) {
      this.timeout = timeout;
      return this;
    }
Sets the time until a healthcheck is considered hung.

@param timeout the duration to wait until considering the healthcheck to be hung.
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/DockerHealthCheck.java