// 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 SoftwareUpdateRebootBehavior. */
public final class SoftwareUpdateRebootBehavior extends ExpandableStringEnum<SoftwareUpdateRebootBehavior> {
    /** Static value NeverReboots for SoftwareUpdateRebootBehavior. */
    public static final SoftwareUpdateRebootBehavior NEVER_REBOOTS = fromString("NeverReboots");

    /** Static value AlwaysRequiresReboot for SoftwareUpdateRebootBehavior. */
    public static final SoftwareUpdateRebootBehavior ALWAYS_REQUIRES_REBOOT = fromString("AlwaysRequiresReboot");

    /** Static value CanRequestReboot for SoftwareUpdateRebootBehavior. */
    public static final SoftwareUpdateRebootBehavior CAN_REQUEST_REBOOT = fromString("CanRequestReboot");

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

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