# 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.Accessibility do
  @moduledoc """
  Physical adaptations made to the property in consideration of varying levels of human physical ability.

  ## Attributes

  *   `mobilityAccessible` (*type:* `boolean()`, *default:* `nil`) - Mobility accessible. Throughout the property there are physical adaptations to ease the stay of a person in a wheelchair, such as auto-opening doors, wide elevators, wide bathrooms or ramps.
  *   `mobilityAccessibleElevator` (*type:* `boolean()`, *default:* `nil`) - Mobility accessible elevator. A lift that transports people from one level to another and is built to accommodate a wheelchair-using passenger owing to the width of its doors and placement of call buttons.
  *   `mobilityAccessibleElevatorException` (*type:* `String.t`, *default:* `nil`) - Mobility accessible elevator exception.
  *   `mobilityAccessibleException` (*type:* `String.t`, *default:* `nil`) - Mobility accessible exception.
  *   `mobilityAccessibleParking` (*type:* `boolean()`, *default:* `nil`) - Mobility accessible parking. The presence of a marked, designated area of prescribed size in which only registered, labeled vehicles transporting a person with physical challenges may park.
  *   `mobilityAccessibleParkingException` (*type:* `String.t`, *default:* `nil`) - Mobility accessible parking exception.
  *   `mobilityAccessiblePool` (*type:* `boolean()`, *default:* `nil`) - Mobility accessible pool. A swimming pool equipped with a mechanical chair that can be lowered and raised for the purpose of moving physically challenged guests into and out of the pool. May be powered by electricity or water. Also known as pool lift.
  *   `mobilityAccessiblePoolException` (*type:* `String.t`, *default:* `nil`) - Mobility accessible pool exception.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :mobilityAccessible => boolean() | nil,
          :mobilityAccessibleElevator => boolean() | nil,
          :mobilityAccessibleElevatorException => String.t() | nil,
          :mobilityAccessibleException => String.t() | nil,
          :mobilityAccessibleParking => boolean() | nil,
          :mobilityAccessibleParkingException => String.t() | nil,
          :mobilityAccessiblePool => boolean() | nil,
          :mobilityAccessiblePoolException => String.t() | nil
        }

  field(:mobilityAccessible)
  field(:mobilityAccessibleElevator)
  field(:mobilityAccessibleElevatorException)
  field(:mobilityAccessibleException)
  field(:mobilityAccessibleParking)
  field(:mobilityAccessibleParkingException)
  field(:mobilityAccessiblePool)
  field(:mobilityAccessiblePoolException)
end

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

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