// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.health.insights.clinicalmatching.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Possible phases of a clinical trial. */
public final class ClinicalTrialPhase extends ExpandableStringEnum<ClinicalTrialPhase> {
    /** Static value notApplicable for ClinicalTrialPhase. */
    public static final ClinicalTrialPhase NOT_APPLICABLE = fromString("notApplicable");

    /** Static value earlyPhase1 for ClinicalTrialPhase. */
    public static final ClinicalTrialPhase EARLY_PHASE1 = fromString("earlyPhase1");

    /** Static value phase1 for ClinicalTrialPhase. */
    public static final ClinicalTrialPhase PHASE1 = fromString("phase1");

    /** Static value phase2 for ClinicalTrialPhase. */
    public static final ClinicalTrialPhase PHASE2 = fromString("phase2");

    /** Static value phase3 for ClinicalTrialPhase. */
    public static final ClinicalTrialPhase PHASE3 = fromString("phase3");

    /** Static value phase4 for ClinicalTrialPhase. */
    public static final ClinicalTrialPhase PHASE4 = fromString("phase4");

    /**
     * Creates a new instance of ClinicalTrialPhase value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public ClinicalTrialPhase() {}

    /**
     * Creates or finds a ClinicalTrialPhase from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding ClinicalTrialPhase.
     */
    @JsonCreator
    public static ClinicalTrialPhase fromString(String name) {
        return fromString(name, ClinicalTrialPhase.class);
    }

    /**
     * Gets known ClinicalTrialPhase values.
     *
     * @return known ClinicalTrialPhase values.
     */
    public static Collection<ClinicalTrialPhase> values() {
        return values(ClinicalTrialPhase.class);
    }
}
