// 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;

/** Reason for the specified billing profile status. */
public final class BillingProfileStatusReasonCode extends ExpandableStringEnum<BillingProfileStatusReasonCode> {
    /** Static value PastDue for BillingProfileStatusReasonCode. */
    public static final BillingProfileStatusReasonCode PAST_DUE = fromString("PastDue");

    /** Static value SpendingLimitReached for BillingProfileStatusReasonCode. */
    public static final BillingProfileStatusReasonCode SPENDING_LIMIT_REACHED = fromString("SpendingLimitReached");

    /** Static value SpendingLimitExpired for BillingProfileStatusReasonCode. */
    public static final BillingProfileStatusReasonCode SPENDING_LIMIT_EXPIRED = fromString("SpendingLimitExpired");

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

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

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