// 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 sources of a clinical trial. */
public final class ClinicalTrialSource extends ExpandableStringEnum<ClinicalTrialSource> {
    /** Static value custom for ClinicalTrialSource. */
    public static final ClinicalTrialSource CUSTOM = fromString("custom");

    /** Static value clinicaltrials.gov for ClinicalTrialSource. */
    public static final ClinicalTrialSource CLINICALTRIALS_GOV = fromString("clinicaltrials.gov");

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

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

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