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

    /** Static value ROAD_CHANGE for GuidanceInstructionType. */
    public static final GuidanceInstructionType ROAD_CHANGE = fromString("ROAD_CHANGE");

    /** Static value LOCATION_DEPARTURE for GuidanceInstructionType. */
    public static final GuidanceInstructionType LOCATION_DEPARTURE = fromString("LOCATION_DEPARTURE");

    /** Static value LOCATION_ARRIVAL for GuidanceInstructionType. */
    public static final GuidanceInstructionType LOCATION_ARRIVAL = fromString("LOCATION_ARRIVAL");

    /** Static value DIRECTION_INFO for GuidanceInstructionType. */
    public static final GuidanceInstructionType DIRECTION_INFO = fromString("DIRECTION_INFO");

    /** Static value LOCATION_WAYPOINT for GuidanceInstructionType. */
    public static final GuidanceInstructionType LOCATION_WAYPOINT = fromString("LOCATION_WAYPOINT");

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

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