// 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;

/** Type of pollutant. Please note that more may be added at any time. */
public final class PollutantType extends ExpandableStringEnum<PollutantType> {
    /** Static value CO for PollutantType. */
    public static final PollutantType CO = fromString("CO");

    /** Static value NO2 for PollutantType. */
    public static final PollutantType NO2 = fromString("NO2");

    /** Static value O3 for PollutantType. */
    public static final PollutantType O3 = fromString("O3");

    /** Static value PM2.5 for PollutantType. */
    public static final PollutantType PM25 = fromString("PM2.5");

    /** Static value PM10 for PollutantType. */
    public static final PollutantType PM10 = fromString("PM10");

    /** Static value SO2 for PollutantType. */
    public static final PollutantType SO2 = fromString("SO2");

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

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