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

package com.azure.resourcemanager.databoxedge.models;

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

/** The SKU restriction reason. */
public final class SkuRestrictionReasonCode extends ExpandableStringEnum<SkuRestrictionReasonCode> {
    /** Static value NotAvailableForSubscription for SkuRestrictionReasonCode. */
    public static final SkuRestrictionReasonCode NOT_AVAILABLE_FOR_SUBSCRIPTION =
        fromString("NotAvailableForSubscription");

    /** Static value QuotaId for SkuRestrictionReasonCode. */
    public static final SkuRestrictionReasonCode QUOTA_ID = fromString("QuotaId");

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

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

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