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

package com.azure.resourcemanager.azureadexternalidentities.models;

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

/** Defines values for NameAvailabilityReasonType. */
public final class NameAvailabilityReasonType extends ExpandableStringEnum<NameAvailabilityReasonType> {
    /** Static value AlreadyExists for NameAvailabilityReasonType. */
    public static final NameAvailabilityReasonType ALREADY_EXISTS = fromString("AlreadyExists");

    /** Static value Invalid for NameAvailabilityReasonType. */
    public static final NameAvailabilityReasonType INVALID = fromString("Invalid");

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

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