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

package com.azure.resourcemanager.logic.models;

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

/** The Api tier. */
public final class ApiTier extends ExpandableStringEnum<ApiTier> {
    /** Static value NotSpecified for ApiTier. */
    public static final ApiTier NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value Enterprise for ApiTier. */
    public static final ApiTier ENTERPRISE = fromString("Enterprise");

    /** Static value Standard for ApiTier. */
    public static final ApiTier STANDARD = fromString("Standard");

    /** Static value Premium for ApiTier. */
    public static final ApiTier PREMIUM = fromString("Premium");

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

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

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