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

package com.azure.resourcemanager.compute.models;

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

/** Defines values for RebootStatus. */
public final class RebootStatus extends ExpandableStringEnum<RebootStatus> {
    /** Static value NotNeeded for RebootStatus. */
    public static final RebootStatus NOT_NEEDED = fromString("NotNeeded");

    /** Static value Required for RebootStatus. */
    public static final RebootStatus REQUIRED = fromString("Required");

    /** Static value Started for RebootStatus. */
    public static final RebootStatus STARTED = fromString("Started");

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

    /** Static value Completed for RebootStatus. */
    public static final RebootStatus COMPLETED = fromString("Completed");

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

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