# 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.Property do
  @moduledoc """
  General factual information about the property's physical structure and important dates.

  ## Attributes

  *   `builtYear` (*type:* `integer()`, *default:* `nil`) - Built year. The year that construction of the property was completed.
  *   `builtYearException` (*type:* `String.t`, *default:* `nil`) - Built year exception.
  *   `floorsCount` (*type:* `integer()`, *default:* `nil`) - Floors count. The number of stories the building has from the ground floor to the top floor that are accessible to guests.
  *   `floorsCountException` (*type:* `String.t`, *default:* `nil`) - Floors count exception.
  *   `lastRenovatedYear` (*type:* `integer()`, *default:* `nil`) - Last renovated year. The year when the most recent renovation of the property was completed. Renovation may include all or any combination of the following: the units, the public spaces, the exterior, or the interior.
  *   `lastRenovatedYearException` (*type:* `String.t`, *default:* `nil`) - Last renovated year exception.
  *   `roomsCount` (*type:* `integer()`, *default:* `nil`) - Rooms count. The total number of rooms and suites bookable by guests for an overnight stay. Does not include event space, public spaces, conference rooms, fitness rooms, business centers, spa, salon, restaurants/bars, or shops.
  *   `roomsCountException` (*type:* `String.t`, *default:* `nil`) - Rooms count exception.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :builtYear => integer() | nil,
          :builtYearException => String.t() | nil,
          :floorsCount => integer() | nil,
          :floorsCountException => String.t() | nil,
          :lastRenovatedYear => integer() | nil,
          :lastRenovatedYearException => String.t() | nil,
          :roomsCount => integer() | nil,
          :roomsCountException => String.t() | nil
        }

  field(:builtYear)
  field(:builtYearException)
  field(:floorsCount)
  field(:floorsCountException)
  field(:lastRenovatedYear)
  field(:lastRenovatedYearException)
  field(:roomsCount)
  field(:roomsCountException)
end

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

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