static WaitCondition fromString(String string) {
            return Arrays.stream(WaitCondition.values()).filter(wc -> wc.condition.equals(string)).findFirst().orElseThrow(
                () -> new IllegalArgumentException("invalid condition \"" + string + "\"")
            );
        }
<a href="https://docs.docker.com/compose/compose-file/compose-file-v2/#depends_on">Docker Compose Spec v2.1+ defined conditions</a>
src/main/java/io/fabric8/maven/docker/config/handler/compose/DockerComposeServiceWrapper.java