# 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.LivingAreaLayout do
  @moduledoc """
  Information about the layout of the living area.

  ## Attributes

  *   `balcony` (*type:* `boolean()`, *default:* `nil`) - Balcony. An outdoor platform attached to a building and surrounded by a short wall, fence or other safety railing. The balcony is accessed through a door in a guestroom or suite and is for use by the guest staying in that room. May or may not include seating or outdoor furniture. Is not located on the ground floor. Also lanai.
  *   `balconyException` (*type:* `String.t`, *default:* `nil`) - Balcony exception.
  *   `livingAreaSqMeters` (*type:* `number()`, *default:* `nil`) - Living area sq meters. The measurement in meters of the area of a guestroom's living space.
  *   `livingAreaSqMetersException` (*type:* `String.t`, *default:* `nil`) - Living area sq meters exception.
  *   `loft` (*type:* `boolean()`, *default:* `nil`) - Loft. A three-walled upper area accessed by stairs or a ladder that overlooks the lower area of a room.
  *   `loftException` (*type:* `String.t`, *default:* `nil`) - Loft exception.
  *   `nonSmoking` (*type:* `boolean()`, *default:* `nil`) - Non smoking. A guestroom in which the smoking of cigarettes, cigars and pipes is prohibited.
  *   `nonSmokingException` (*type:* `String.t`, *default:* `nil`) - Non smoking exception.
  *   `patio` (*type:* `boolean()`, *default:* `nil`) - Patio. A paved, outdoor area with seating attached to and accessed through a ground-floor guestroom for use by the occupants of the guestroom.
  *   `patioException` (*type:* `String.t`, *default:* `nil`) - Patio exception.
  *   `stairs` (*type:* `boolean()`, *default:* `nil`) - Stairs. There are steps leading from one level or story to another in the unit.
  *   `stairsException` (*type:* `String.t`, *default:* `nil`) - Stairs exception.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :balcony => boolean() | nil,
          :balconyException => String.t() | nil,
          :livingAreaSqMeters => number() | nil,
          :livingAreaSqMetersException => String.t() | nil,
          :loft => boolean() | nil,
          :loftException => String.t() | nil,
          :nonSmoking => boolean() | nil,
          :nonSmokingException => String.t() | nil,
          :patio => boolean() | nil,
          :patioException => String.t() | nil,
          :stairs => boolean() | nil,
          :stairsException => String.t() | nil
        }

  field(:balcony)
  field(:balconyException)
  field(:livingAreaSqMeters)
  field(:livingAreaSqMetersException)
  field(:loft)
  field(:loftException)
  field(:nonSmoking)
  field(:nonSmokingException)
  field(:patio)
  field(:patioException)
  field(:stairs)
  field(:stairsException)
end

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

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