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

    /** Static value ROUNDABOUT for JunctionType. */
    public static final JunctionType ROUNDABOUT = fromString("ROUNDABOUT");

    /** Static value BIFURCATION for JunctionType. */
    public static final JunctionType BIFURCATION = fromString("BIFURCATION");

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

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