class DockerHealthCheck {

  public static DockerHealthCheck.Builder fromCommand(List<String> command) {
    Preconditions.checkArgument(command.size() > 0, "command must not be empty");
    Preconditions.checkArgument(
        command.stream().allMatch(Objects::nonNull), "command must not contain null elements");
    return new Builder(ImmutableList.copyOf(command));
  }

  private  DockerHealthCheck(
      ImmutableList<String> command,
      @Nullable Duration interval,
      @Nullable Duration timeout,
      @Nullable Duration startPeriod,
      @Nullable Integer retries);

}