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

    /** Static value MPH for SpeedUnit. */
    public static final SpeedUnit MPH = fromString("MPH");

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

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