// 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 SimpleCategory. */
public final class RouteDelayReason extends ExpandableStringEnum<RouteDelayReason> {
    /** Static value JAM for SimpleCategory. */
    public static final RouteDelayReason JAM = fromString("JAM");

    /** Static value ROAD_WORK for SimpleCategory. */
    public static final RouteDelayReason ROAD_WORK = fromString("ROAD_WORK");

    /** Static value ROAD_CLOSURE for SimpleCategory. */
    public static final RouteDelayReason ROAD_CLOSURE = fromString("ROAD_CLOSURE");

    /** Static value OTHER for SimpleCategory. */
    public static final RouteDelayReason OTHER = fromString("OTHER");

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

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