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

package com.azure.resourcemanager.orbital.models;

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

/** The status of operation. */
public final class Status extends ExpandableStringEnum<Status> {
    /** Static value Succeeded for Status. */
    public static final Status SUCCEEDED = fromString("Succeeded");

    /** Static value Canceled for Status. */
    public static final Status CANCELED = fromString("Canceled");

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

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

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

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

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