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

package com.azure.resourcemanager.deviceprovisioningservices.models;

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

/** Defines values for State. */
public final class State extends ExpandableStringEnum<State> {
    /** Static value Activating for State. */
    public static final State ACTIVATING = fromString("Activating");

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

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

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

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

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

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

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

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

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

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

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

    /**
     * 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);
    }
}
