// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.providerhub.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for SubscriptionState. */
public final class SubscriptionState extends ExpandableStringEnum<SubscriptionState> {
    /** Static value NotDefined for SubscriptionState. */
    public static final SubscriptionState NOT_DEFINED = fromString("NotDefined");

    /** Static value Enabled for SubscriptionState. */
    public static final SubscriptionState ENABLED = fromString("Enabled");

    /** Static value Warned for SubscriptionState. */
    public static final SubscriptionState WARNED = fromString("Warned");

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

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

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

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

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

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