// 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 StatusReasonCode extends ExpandableStringEnum<StatusReasonCode> {
    /** Static value PastDue for StatusReasonCode. */
    public static final StatusReasonCode PAST_DUE = fromString("PastDue");

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

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

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

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

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