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

package com.azure.resourcemanager.devtestlabs.models;

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

/** The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). */
public final class WindowsOsState extends ExpandableStringEnum<WindowsOsState> {
    /** Static value NonSysprepped for WindowsOsState. */
    public static final WindowsOsState NON_SYSPREPPED = fromString("NonSysprepped");

    /** Static value SysprepRequested for WindowsOsState. */
    public static final WindowsOsState SYSPREP_REQUESTED = fromString("SysprepRequested");

    /** Static value SysprepApplied for WindowsOsState. */
    public static final WindowsOsState SYSPREP_APPLIED = fromString("SysprepApplied");

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

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

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