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

package com.azure.resourcemanager.authorization.fluent.models;

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

/** workbookOperationStatus. */
public final class MicrosoftGraphWorkbookOperationStatus
    extends ExpandableStringEnum<MicrosoftGraphWorkbookOperationStatus> {
    /** Static value notStarted for MicrosoftGraphWorkbookOperationStatus. */
    public static final MicrosoftGraphWorkbookOperationStatus NOT_STARTED = fromString("notStarted");

    /** Static value running for MicrosoftGraphWorkbookOperationStatus. */
    public static final MicrosoftGraphWorkbookOperationStatus RUNNING = fromString("running");

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

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

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

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