// 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 values for the Sex eligibility criterion as accepted by clinical trials, which indicates the sex of people
 * who may participate in a clinical study.
 */
public final class ClinicalTrialAcceptedSex extends ExpandableStringEnum<ClinicalTrialAcceptedSex> {
    /** Static value all for ClinicalTrialAcceptedSex. */
    public static final ClinicalTrialAcceptedSex ALL = fromString("all");

    /** Static value female for ClinicalTrialAcceptedSex. */
    public static final ClinicalTrialAcceptedSex FEMALE = fromString("female");

    /** Static value male for ClinicalTrialAcceptedSex. */
    public static final ClinicalTrialAcceptedSex MALE = fromString("male");

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

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

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