# 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.Parking do
  @moduledoc """
  Parking options at the property.

  ## Attributes

  *   `electricCarChargingStations` (*type:* `boolean()`, *default:* `nil`) - Electric car charging stations. Electric power stations, usually located outdoors, into which guests plug their electric cars to receive a charge.
  *   `electricCarChargingStationsException` (*type:* `String.t`, *default:* `nil`) - Electric car charging stations exception.
  *   `freeParking` (*type:* `boolean()`, *default:* `nil`) - Free parking. The hotel allows the cars of guests to be parked for free. Parking facility may be an outdoor lot or an indoor garage, but must be onsite. Nearby parking does not apply. Parking may be performed by the guest or by hotel staff. Free parking must be available to all guests (limited conditions does not apply).
  *   `freeParkingException` (*type:* `String.t`, *default:* `nil`) - Free parking exception.
  *   `freeSelfParking` (*type:* `boolean()`, *default:* `nil`) - Free self parking. Guests park their own cars for free. Parking facility may be an outdoor lot or an indoor garage, but must be onsite. Nearby parking does not apply.
  *   `freeSelfParkingException` (*type:* `String.t`, *default:* `nil`) - Free self parking exception.
  *   `freeValetParking` (*type:* `boolean()`, *default:* `nil`) - Free valet parking. Hotel staff member parks the cars of guests. Parking with this service is free.
  *   `freeValetParkingException` (*type:* `String.t`, *default:* `nil`) - Free valet parking exception.
  *   `parkingAvailable` (*type:* `boolean()`, *default:* `nil`) - Parking available. The hotel allows the cars of guests to be parked. Can be free or for a fee. Parking facility may be an outdoor lot or an indoor garage, but must be onsite. Nearby parking does not apply. Parking may be performed by the guest or by hotel staff.
  *   `parkingAvailableException` (*type:* `String.t`, *default:* `nil`) - Parking available exception.
  *   `selfParkingAvailable` (*type:* `boolean()`, *default:* `nil`) - Self parking available. Guests park their own cars. Parking facility may be an outdoor lot or an indoor garage, but must be onsite. Nearby parking does not apply. Can be free or for a fee.
  *   `selfParkingAvailableException` (*type:* `String.t`, *default:* `nil`) - Self parking available exception.
  *   `valetParkingAvailable` (*type:* `boolean()`, *default:* `nil`) - Valet parking available. Hotel staff member parks the cars of guests. Parking with this service can be free or for a fee.
  *   `valetParkingAvailableException` (*type:* `String.t`, *default:* `nil`) - Valet parking available exception.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :electricCarChargingStations => boolean() | nil,
          :electricCarChargingStationsException => String.t() | nil,
          :freeParking => boolean() | nil,
          :freeParkingException => String.t() | nil,
          :freeSelfParking => boolean() | nil,
          :freeSelfParkingException => String.t() | nil,
          :freeValetParking => boolean() | nil,
          :freeValetParkingException => String.t() | nil,
          :parkingAvailable => boolean() | nil,
          :parkingAvailableException => String.t() | nil,
          :selfParkingAvailable => boolean() | nil,
          :selfParkingAvailableException => String.t() | nil,
          :valetParkingAvailable => boolean() | nil,
          :valetParkingAvailableException => String.t() | nil
        }

  field(:electricCarChargingStations)
  field(:electricCarChargingStationsException)
  field(:freeParking)
  field(:freeParkingException)
  field(:freeSelfParking)
  field(:freeSelfParkingException)
  field(:freeValetParking)
  field(:freeValetParkingException)
  field(:parkingAvailable)
  field(:parkingAvailableException)
  field(:selfParkingAvailable)
  field(:selfParkingAvailableException)
  field(:valetParkingAvailable)
  field(:valetParkingAvailableException)
end

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

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