# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AirQuality.V1.Model.HealthRecommendations do
  @moduledoc """
  Health recommendations for different population groups in a free text format. The recommendations are derived from their associated air quality conditions.

  ## Attributes

  *   `athletes` (*type:* `String.t`, *default:* `nil`) - Sports and other strenuous outdoor activities.
  *   `children` (*type:* `String.t`, *default:* `nil`) - Younger populations including children, toddlers, and babies.
  *   `elderly` (*type:* `String.t`, *default:* `nil`) - Retirees and people older than the general population.
  *   `generalPopulation` (*type:* `String.t`, *default:* `nil`) - No specific sensitivities.
  *   `heartDiseasePopulation` (*type:* `String.t`, *default:* `nil`) - Heart and circulatory system diseases.
  *   `lungDiseasePopulation` (*type:* `String.t`, *default:* `nil`) - Respiratory related problems and asthma suffers.
  *   `pregnantWomen` (*type:* `String.t`, *default:* `nil`) - Women at all stages of pregnancy.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :athletes => String.t() | nil,
          :children => String.t() | nil,
          :elderly => String.t() | nil,
          :generalPopulation => String.t() | nil,
          :heartDiseasePopulation => String.t() | nil,
          :lungDiseasePopulation => String.t() | nil,
          :pregnantWomen => String.t() | nil
        }

  field(:athletes)
  field(:children)
  field(:elderly)
  field(:generalPopulation)
  field(:heartDiseasePopulation)
  field(:lungDiseasePopulation)
  field(:pregnantWomen)
end

defimpl Poison.Decoder, for: GoogleApi.AirQuality.V1.Model.HealthRecommendations do
  def decode(value, options) do
    GoogleApi.AirQuality.V1.Model.HealthRecommendations.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.AirQuality.V1.Model.HealthRecommendations do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
