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

package com.azure.resourcemanager.streamanalytics.models;

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

/** Defines values for CompatibilityLevel. */
public final class CompatibilityLevel extends ExpandableStringEnum<CompatibilityLevel> {
    /** Static value 1.0 for CompatibilityLevel. */
    public static final CompatibilityLevel ONE_ZERO = fromString("1.0");

    /** Static value 1.2 for CompatibilityLevel. */
    public static final CompatibilityLevel ONE_TWO = fromString("1.2");

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

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