// 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 product. */
public final class ProductStatusType extends ExpandableStringEnum<ProductStatusType> {
    /** Static value Active for ProductStatusType. */
    public static final ProductStatusType ACTIVE = fromString("Active");

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

    /** Static value PastDue for ProductStatusType. */
    public static final ProductStatusType PAST_DUE = fromString("PastDue");

    /** Static value Expiring for ProductStatusType. */
    public static final ProductStatusType EXPIRING = fromString("Expiring");

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

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

    /** Static value Cancelled for ProductStatusType. */
    public static final ProductStatusType CANCELLED = fromString("Cancelled");

    /** Static value AutoRenew for ProductStatusType. */
    public static final ProductStatusType AUTO_RENEW = fromString("AutoRenew");

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

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

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