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

package com.azure.resourcemanager.synapse.models;

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

/** Message providing the reason why the given name is invalid. */
public final class Reason extends ExpandableStringEnum<Reason> {
    /** Static value Invalid for Reason. */
    public static final Reason INVALID = fromString("Invalid");

    /** Static value AlreadyExists for Reason. */
    public static final Reason ALREADY_EXISTS = fromString("AlreadyExists");

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

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

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