// 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 recruitment status of a clinical trial. */
public final class ClinicalTrialRecruitmentStatus extends ExpandableStringEnum<ClinicalTrialRecruitmentStatus> {
    /** Static value unknownStatus for ClinicalTrialRecruitmentStatus. */
    public static final ClinicalTrialRecruitmentStatus UNKNOWN_STATUS = fromString("unknownStatus");

    /** Static value notYetRecruiting for ClinicalTrialRecruitmentStatus. */
    public static final ClinicalTrialRecruitmentStatus NOT_YET_RECRUITING = fromString("notYetRecruiting");

    /** Static value recruiting for ClinicalTrialRecruitmentStatus. */
    public static final ClinicalTrialRecruitmentStatus RECRUITING = fromString("recruiting");

    /** Static value enrollingByInvitation for ClinicalTrialRecruitmentStatus. */
    public static final ClinicalTrialRecruitmentStatus ENROLLING_BY_INVITATION = fromString("enrollingByInvitation");

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

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

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