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

package com.azure.resourcemanager.advisor.models;

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

/** The business impact of the recommendation. */
public final class Impact extends ExpandableStringEnum<Impact> {
    /** Static value High for Impact. */
    public static final Impact HIGH = fromString("High");

    /** Static value Medium for Impact. */
    public static final Impact MEDIUM = fromString("Medium");

    /** Static value Low for Impact. */
    public static final Impact LOW = fromString("Low");

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

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

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