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

package com.azure.resourcemanager.confidentialledger.models;

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

/** Object representing RunningState for Confidential Ledger. */
public final class RunningState extends ExpandableStringEnum<RunningState> {
    /** Static value Active for RunningState. */
    public static final RunningState ACTIVE = fromString("Active");

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

    /** Static value Unknown for RunningState. */
    public static final RunningState UNKNOWN = fromString("Unknown");

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

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

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

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

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