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

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

    /** Static value Disabled for AccountStatus. */
    public static final AccountStatus DISABLED = fromString("Disabled");

    /** Static value Expired for AccountStatus. */
    public static final AccountStatus EXPIRED = fromString("Expired");

    /** Static value Transferred for AccountStatus. */
    public static final AccountStatus TRANSFERRED = fromString("Transferred");

    /** Static value Extended for AccountStatus. */
    public static final AccountStatus EXTENDED = fromString("Extended");

    /** Static value Terminated for AccountStatus. */
    public static final AccountStatus TERMINATED = fromString("Terminated");

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

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

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