// 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;
import java.util.List;

/** Description of the weather hazard affecting the trip. */
@Fluent
public final class WeatherHazards {
    /*
     * A severity/hazard index.
     * * `0` - No hazard.
     * * `1` - Be informed, be aware.
     * * `2` - Pay attention, be prepared.
     * * `3` - Take action.
     * * `4` - Life threatening, emergency.
     */
    @JsonProperty(value = "maxHazardIndex")
    private HazardIndex maxHazardIndex;

    /*
     * Details of the weather hazards affecting the trip.
     */
    @JsonProperty(value = "hazardDetails")
    private List<HazardDetail> details;

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

    /**
     * Get the maxHazardIndex property: A severity/hazard index. * `0` - No hazard. * `1` - Be informed, be aware. * `2`
     * - Pay attention, be prepared. * `3` - Take action. * `4` - Life threatening, emergency.
     *
     * @return the maxHazardIndex value.
     */
    public HazardIndex getMaxHazardIndex() {
        return this.maxHazardIndex;
    }

    /**
     * Get the details property: Details of the weather hazards affecting the trip.
     *
     * @return the details value.
     */
    public List<HazardDetail> getDetails() {
        return this.details;
    }
}
