// 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.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/**
 * Specifies the type of precipitation ("Rain" "Snow" "Ice" or "Mix"). If dbz is zero, precipitationType is not present
 * in the response.
 */
public final class PrecipitationType extends ExpandableStringEnum<PrecipitationType> {
    /** Static value Rain for PrecipitationType. */
    public static final PrecipitationType RAIN = fromString("Rain");

    /** Static value Snow for PrecipitationType. */
    public static final PrecipitationType SNOW = fromString("Snow");

    /** Static value Ice for PrecipitationType. */
    public static final PrecipitationType ICE = fromString("Ice");

    /** Static value Mix for PrecipitationType. */
    public static final PrecipitationType MIX = fromString("Mix");

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

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