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

package com.azure.resourcemanager.alertsmanagement.models;

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

/** Defines values for AlertState. */
public final class AlertState extends ExpandableStringEnum<AlertState> {
    /** Static value New for AlertState. */
    public static final AlertState NEW = fromString("New");

    /** Static value Acknowledged for AlertState. */
    public static final AlertState ACKNOWLEDGED = fromString("Acknowledged");

    /** Static value Closed for AlertState. */
    public static final AlertState CLOSED = fromString("Closed");

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

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