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

package com.azure.maps.traffic.models;

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

/** Defines values for TrafficFlowSegmentStyle. */
public final class TrafficFlowSegmentStyle extends ExpandableStringEnum<TrafficFlowSegmentStyle> {
    /** Static value absolute for TrafficFlowSegmentStyle. */
    public static final TrafficFlowSegmentStyle ABSOLUTE = fromString("absolute");

    /** Static value relative for TrafficFlowSegmentStyle. */
    public static final TrafficFlowSegmentStyle RELATIVE = fromString("relative");

    /** Static value relative-delay for TrafficFlowSegmentStyle. */
    public static final TrafficFlowSegmentStyle RELATIVE_DELAY = fromString("relative-delay");

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

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