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

package com.azure.resourcemanager.edgeorder.models;

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

/** Defines values for DisabledReason. */
public final class DisabledReason extends ExpandableStringEnum<DisabledReason> {
    /** Static value None for DisabledReason. */
    public static final DisabledReason NONE = fromString("None");

    /** Static value Country for DisabledReason. */
    public static final DisabledReason COUNTRY = fromString("Country");

    /** Static value Region for DisabledReason. */
    public static final DisabledReason REGION = fromString("Region");

    /** Static value Feature for DisabledReason. */
    public static final DisabledReason FEATURE = fromString("Feature");

    /** Static value OfferType for DisabledReason. */
    public static final DisabledReason OFFER_TYPE = fromString("OfferType");

    /** Static value NoSubscriptionInfo for DisabledReason. */
    public static final DisabledReason NO_SUBSCRIPTION_INFO = fromString("NoSubscriptionInfo");

    /** Static value NotAvailable for DisabledReason. */
    public static final DisabledReason NOT_AVAILABLE = fromString("NotAvailable");

    /** Static value OutOfStock for DisabledReason. */
    public static final DisabledReason OUT_OF_STOCK = fromString("OutOfStock");

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

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