# 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.MyBusinessLodging.V1.Model.WaterConservation do
  @moduledoc """
  Water conservation practices implemented at the hotel.

  ## Attributes

  *   `independentOrganizationAuditsWaterUse` (*type:* `boolean()`, *default:* `nil`) - Independent organization audits water use. The property conducts a water conservation audit every 5 years, the results of which are either verified by a third-party and/or published in external communications. A water conservation audit is a detailed assessment of the facility, providing recommendations to existing operations and procedures to improve water efficiency, available incentives or rebates, and opportunities for improvements through renovations or upgrades. Examples of organizations who conduct credible third party audits include: Engie Impact, and local utility providers (they often provide energy and water audits).
  *   `independentOrganizationAuditsWaterUseException` (*type:* `String.t`, *default:* `nil`) - Independent organization audits water use exception.
  *   `linenReuseProgram` (*type:* `boolean()`, *default:* `nil`) - Linen reuse program. The property offers a linen reuse program.
  *   `linenReuseProgramException` (*type:* `String.t`, *default:* `nil`) - Linen reuse program exception.
  *   `towelReuseProgram` (*type:* `boolean()`, *default:* `nil`) - Towel reuse program. The property offers a towel reuse program.
  *   `towelReuseProgramException` (*type:* `String.t`, *default:* `nil`) - Towel reuse program exception.
  *   `waterSavingShowers` (*type:* `boolean()`, *default:* `nil`) - Water saving showers. All of the property's guest rooms have shower heads that use no more than 2.0 gallons per minute (gpm).
  *   `waterSavingShowersException` (*type:* `String.t`, *default:* `nil`) - Water saving showers exception.
  *   `waterSavingSinks` (*type:* `boolean()`, *default:* `nil`) - Water saving sinks. All of the property's guest rooms have bathroom faucets that use a maximum of 1.5 gallons per minute (gpm), public restroom faucets do not exceed 0.5 gpm, and kitchen faucets (excluding faucets used exclusively for filling operations) do not exceed 2.2 gpm.
  *   `waterSavingSinksException` (*type:* `String.t`, *default:* `nil`) - Water saving sinks exception.
  *   `waterSavingToilets` (*type:* `boolean()`, *default:* `nil`) - Water saving toilets. All of the property's toilets use 1.6 gallons per flush, or less.
  *   `waterSavingToiletsException` (*type:* `String.t`, *default:* `nil`) - Water saving toilets exception.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :independentOrganizationAuditsWaterUse => boolean() | nil,
          :independentOrganizationAuditsWaterUseException => String.t() | nil,
          :linenReuseProgram => boolean() | nil,
          :linenReuseProgramException => String.t() | nil,
          :towelReuseProgram => boolean() | nil,
          :towelReuseProgramException => String.t() | nil,
          :waterSavingShowers => boolean() | nil,
          :waterSavingShowersException => String.t() | nil,
          :waterSavingSinks => boolean() | nil,
          :waterSavingSinksException => String.t() | nil,
          :waterSavingToilets => boolean() | nil,
          :waterSavingToiletsException => String.t() | nil
        }

  field(:independentOrganizationAuditsWaterUse)
  field(:independentOrganizationAuditsWaterUseException)
  field(:linenReuseProgram)
  field(:linenReuseProgramException)
  field(:towelReuseProgram)
  field(:towelReuseProgramException)
  field(:waterSavingShowers)
  field(:waterSavingShowersException)
  field(:waterSavingSinks)
  field(:waterSavingSinksException)
  field(:waterSavingToilets)
  field(:waterSavingToiletsException)
end

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

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