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

package com.azure.resourcemanager.support.models;

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

/**
 * A value that indicates the urgency of the case, which in turn determines the response time according to the service
 * level agreement of the technical support plan you have with Azure. Note: 'Highest critical impact', also known as the
 * 'Emergency - Severe impact' level in the Azure portal is reserved only for our Premium customers.
 */
public final class SeverityLevel extends ExpandableStringEnum<SeverityLevel> {
    /** Static value minimal for SeverityLevel. */
    public static final SeverityLevel MINIMAL = fromString("minimal");

    /** Static value moderate for SeverityLevel. */
    public static final SeverityLevel MODERATE = fromString("moderate");

    /** Static value critical for SeverityLevel. */
    public static final SeverityLevel CRITICAL = fromString("critical");

    /** Static value highestcriticalimpact for SeverityLevel. */
    public static final SeverityLevel HIGHESTCRITICALIMPACT = fromString("highestcriticalimpact");

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

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

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