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

package com.azure.resourcemanager.billing.models;

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

/** The billing profile spending limit. */
public final class BillingProfileSpendingLimit extends ExpandableStringEnum<BillingProfileSpendingLimit> {
    /** Static value Off for BillingProfileSpendingLimit. */
    public static final BillingProfileSpendingLimit OFF = fromString("Off");

    /** Static value On for BillingProfileSpendingLimit. */
    public static final BillingProfileSpendingLimit ON = fromString("On");

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

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

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