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

package com.azure.resourcemanager.peering.models;

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

/** The tier of the peering SKU. */
public final class Tier extends ExpandableStringEnum<Tier> {
    /** Static value Basic for Tier. */
    public static final Tier BASIC = fromString("Basic");

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

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

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

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