All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.maps.traffic.models.SpeedUnit Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for Traffic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Maps Traffic REST APIs. Package tag 1.0-preview.

The newest version!
// 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 {
    /** 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 values() {
        return values(SpeedUnit.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy