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

package com.azure.resourcemanager.edgeorder.models;

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

/** Defines values for StageStatus. */
public final class StageStatus extends ExpandableStringEnum<StageStatus> {
    /** Static value None for StageStatus. */
    public static final StageStatus NONE = fromString("None");

    /** Static value InProgress for StageStatus. */
    public static final StageStatus IN_PROGRESS = fromString("InProgress");

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

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

    /** Static value Cancelled for StageStatus. */
    public static final StageStatus CANCELLED = fromString("Cancelled");

    /** Static value Cancelling for StageStatus. */
    public static final StageStatus CANCELLING = fromString("Cancelling");

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

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