# 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.LivingArea do
  @moduledoc """
  An individual room, such as kitchen, bathroom, bedroom, within a bookable guest unit.

  ## Attributes

  *   `accessibility` (*type:* `GoogleApi.MyBusinessLodging.V1.Model.LivingAreaAccessibility.t`, *default:* `nil`) - Accessibility features of the living area.
  *   `eating` (*type:* `GoogleApi.MyBusinessLodging.V1.Model.LivingAreaEating.t`, *default:* `nil`) - Information about eating features in the living area.
  *   `features` (*type:* `GoogleApi.MyBusinessLodging.V1.Model.LivingAreaFeatures.t`, *default:* `nil`) - Features in the living area.
  *   `layout` (*type:* `GoogleApi.MyBusinessLodging.V1.Model.LivingAreaLayout.t`, *default:* `nil`) - Information about the layout of the living area.
  *   `sleeping` (*type:* `GoogleApi.MyBusinessLodging.V1.Model.LivingAreaSleeping.t`, *default:* `nil`) - Information about sleeping features in the living area.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :accessibility =>
            GoogleApi.MyBusinessLodging.V1.Model.LivingAreaAccessibility.t() | nil,
          :eating => GoogleApi.MyBusinessLodging.V1.Model.LivingAreaEating.t() | nil,
          :features => GoogleApi.MyBusinessLodging.V1.Model.LivingAreaFeatures.t() | nil,
          :layout => GoogleApi.MyBusinessLodging.V1.Model.LivingAreaLayout.t() | nil,
          :sleeping => GoogleApi.MyBusinessLodging.V1.Model.LivingAreaSleeping.t() | nil
        }

  field(:accessibility, as: GoogleApi.MyBusinessLodging.V1.Model.LivingAreaAccessibility)
  field(:eating, as: GoogleApi.MyBusinessLodging.V1.Model.LivingAreaEating)
  field(:features, as: GoogleApi.MyBusinessLodging.V1.Model.LivingAreaFeatures)
  field(:layout, as: GoogleApi.MyBusinessLodging.V1.Model.LivingAreaLayout)
  field(:sleeping, as: GoogleApi.MyBusinessLodging.V1.Model.LivingAreaSleeping)
end

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

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