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

package com.azure.resourcemanager.datamigration.models;

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

/** An enumeration of SQL Server database compatibility levels. */
public final class DatabaseCompatLevel extends ExpandableStringEnum<DatabaseCompatLevel> {
    /** Static value CompatLevel80 for DatabaseCompatLevel. */
    public static final DatabaseCompatLevel COMPAT_LEVEL80 = fromString("CompatLevel80");

    /** Static value CompatLevel90 for DatabaseCompatLevel. */
    public static final DatabaseCompatLevel COMPAT_LEVEL90 = fromString("CompatLevel90");

    /** Static value CompatLevel100 for DatabaseCompatLevel. */
    public static final DatabaseCompatLevel COMPAT_LEVEL100 = fromString("CompatLevel100");

    /** Static value CompatLevel110 for DatabaseCompatLevel. */
    public static final DatabaseCompatLevel COMPAT_LEVEL110 = fromString("CompatLevel110");

    /** Static value CompatLevel120 for DatabaseCompatLevel. */
    public static final DatabaseCompatLevel COMPAT_LEVEL120 = fromString("CompatLevel120");

    /** Static value CompatLevel130 for DatabaseCompatLevel. */
    public static final DatabaseCompatLevel COMPAT_LEVEL130 = fromString("CompatLevel130");

    /** Static value CompatLevel140 for DatabaseCompatLevel. */
    public static final DatabaseCompatLevel COMPAT_LEVEL140 = fromString("CompatLevel140");

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

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

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