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

package com.azure.maps.route.models;

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

/** Defines values for DelayMagnitude. */
public final class DelayMagnitude extends ExpandableStringEnum<DelayMagnitude> {
    /** Static value 0 for DelayMagnitude. */
    public static final DelayMagnitude UNKNOWN = fromString("0");

    /** Static value 1 for DelayMagnitude. */
    public static final DelayMagnitude MINOR = fromString("1");

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

    /** Static value 3 for DelayMagnitude. */
    public static final DelayMagnitude MAJOR = fromString("3");

    /** Static value 4 for DelayMagnitude. */
    public static final DelayMagnitude UNDEFINED = fromString("4");

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

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