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

package com.azure.maps.weather.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Specific value of a given unit related to weather. */
@Fluent
public final class WeatherUnitDetails {
    /*
     * Rounded value.
     */
    @JsonProperty(value = "value")
    private Float value;

    /*
     * Type of unit for the returned value.
     */
    @JsonProperty(value = "unit")
    private String unitLabel;

    /*
     * Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please
     * refer to [Weather Service Concepts](https://aka.ms/AzureMapsWeatherConcepts) for details.
     */
    @JsonProperty(value = "unitType")
    private UnitType unitType;

    /** Set default WeatherUnitDetails constructor to private */
    private WeatherUnitDetails() {}

    /**
     * Get the value property: Rounded value.
     *
     * @return the value value.
     */
    public Float getValue() {
        return this.value;
    }

    /**
     * Get the unitLabel property: Type of unit for the returned value.
     *
     * @return the unitLabel value.
     */
    public String getUnitLabel() {
        return this.unitLabel;
    }


    /**
     * Get the unitType property: Numeric ID value associated with the type of unit being displayed. Can be used for
     * unit translation. Please refer to [Weather Service Concepts](https://aka.ms/AzureMapsWeatherConcepts) for
     * details.
     *
     * @return the unitType value.
     */
    public UnitType getUnitType() {
        return this.unitType;
    }
}
