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

package com.azure.resourcemanager.webpubsub.models;

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

/**
 * Optional tier of this particular SKU. 'Standard' or 'Free'.
 *
 * <p>`Basic` is deprecated, use `Standard` instead.
 */
public final class WebPubSubSkuTier extends ExpandableStringEnum<WebPubSubSkuTier> {
    /** Static value Free for WebPubSubSkuTier. */
    public static final WebPubSubSkuTier FREE = fromString("Free");

    /** Static value Basic for WebPubSubSkuTier. */
    public static final WebPubSubSkuTier BASIC = fromString("Basic");

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

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

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

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

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