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

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

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

    /** Static value OTHER for SimpleCategory. */
    public static final SimpleCategory 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 SimpleCategory fromString(String name) {
        return fromString(name, SimpleCategory.class);
    }

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