// 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;

/** Upgrade Preference. */
public final class UpgradePreference extends ExpandableStringEnum<UpgradePreference> {
    /** Static value None for UpgradePreference. */
    public static final UpgradePreference NONE = fromString("None");

    /** Static value Early for UpgradePreference. */
    public static final UpgradePreference EARLY = fromString("Early");

    /** Static value Late for UpgradePreference. */
    public static final UpgradePreference LATE = fromString("Late");

    /** Static value Manual for UpgradePreference. */
    public static final UpgradePreference MANUAL = fromString("Manual");

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

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

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