// 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 current billing status of the subscription. */
public final class BillingSubscriptionStatusType extends ExpandableStringEnum<BillingSubscriptionStatusType> {
    /** Static value Active for BillingSubscriptionStatusType. */
    public static final BillingSubscriptionStatusType ACTIVE = fromString("Active");

    /** Static value Inactive for BillingSubscriptionStatusType. */
    public static final BillingSubscriptionStatusType INACTIVE = fromString("Inactive");

    /** Static value Abandoned for BillingSubscriptionStatusType. */
    public static final BillingSubscriptionStatusType ABANDONED = fromString("Abandoned");

    /** Static value Deleted for BillingSubscriptionStatusType. */
    public static final BillingSubscriptionStatusType DELETED = fromString("Deleted");

    /** Static value Warning for BillingSubscriptionStatusType. */
    public static final BillingSubscriptionStatusType WARNING = fromString("Warning");

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

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

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