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

package com.azure.resourcemanager.powerbidedicated.models;

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

/**
 * The current state of PowerBI Dedicated resource. The state is to indicate more states outside of resource
 * provisioning.
 */
public final class State extends ExpandableStringEnum<State> {
    /** Static value Deleting for State. */
    public static final State DELETING = fromString("Deleting");

    /** Static value Succeeded for State. */
    public static final State SUCCEEDED = fromString("Succeeded");

    /** Static value Failed for State. */
    public static final State FAILED = fromString("Failed");

    /** Static value Paused for State. */
    public static final State PAUSED = fromString("Paused");

    /** Static value Suspended for State. */
    public static final State SUSPENDED = fromString("Suspended");

    /** Static value Provisioning for State. */
    public static final State PROVISIONING = fromString("Provisioning");

    /** Static value Updating for State. */
    public static final State UPDATING = fromString("Updating");

    /** Static value Suspending for State. */
    public static final State SUSPENDING = fromString("Suspending");

    /** Static value Pausing for State. */
    public static final State PAUSING = fromString("Pausing");

    /** Static value Resuming for State. */
    public static final State RESUMING = fromString("Resuming");

    /** Static value Preparing for State. */
    public static final State PREPARING = fromString("Preparing");

    /** Static value Scaling for State. */
    public static final State SCALING = fromString("Scaling");

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

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

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