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

package com.azure.resourcemanager.appservice.models;

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

/** Defines values for ProviderStackOsType. */
public final class ProviderStackOsType extends ExpandableStringEnum<ProviderStackOsType> {
    /** Static value Windows for ProviderStackOsType. */
    public static final ProviderStackOsType WINDOWS = fromString("Windows");

    /** Static value Linux for ProviderStackOsType. */
    public static final ProviderStackOsType LINUX = fromString("Linux");

    /** Static value All for ProviderStackOsType. */
    public static final ProviderStackOsType ALL = fromString("All");

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

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

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