// 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.cancerprofiling.models;

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

/** The patient's sex. */
public final class PatientInfoSex extends ExpandableStringEnum<PatientInfoSex> {
    /** Static value female for PatientInfoSex. */
    public static final PatientInfoSex FEMALE = fromString("female");

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

    /** Static value unspecified for PatientInfoSex. */
    public static final PatientInfoSex UNSPECIFIED = fromString("unspecified");

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

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

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