# 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.Connectivity do
  @moduledoc """
  The ways in which the property provides guests with the ability to access the internet.

  ## Attributes

  *   `freeWifi` (*type:* `boolean()`, *default:* `nil`) - Free wifi. The hotel offers guests wifi for free.
  *   `freeWifiException` (*type:* `String.t`, *default:* `nil`) - Free wifi exception.
  *   `publicAreaWifiAvailable` (*type:* `boolean()`, *default:* `nil`) - Public area wifi available. Guests have the ability to wirelessly connect to the internet in the areas of the hotel accessible to anyone. Can be free or for a fee.
  *   `publicAreaWifiAvailableException` (*type:* `String.t`, *default:* `nil`) - Public area wifi available exception.
  *   `publicInternetTerminal` (*type:* `boolean()`, *default:* `nil`) - Public internet terminal. An area of the hotel supplied with computers and designated for the purpose of providing guests with the ability to access the internet.
  *   `publicInternetTerminalException` (*type:* `String.t`, *default:* `nil`) - Public internet terminal exception.
  *   `wifiAvailable` (*type:* `boolean()`, *default:* `nil`) - Wifi available. The hotel provides the ability for guests to wirelessly connect to the internet. Can be in the public areas of the hotel and/or in the guest rooms. Can be free or for a fee.
  *   `wifiAvailableException` (*type:* `String.t`, *default:* `nil`) - Wifi available exception.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :freeWifi => boolean() | nil,
          :freeWifiException => String.t() | nil,
          :publicAreaWifiAvailable => boolean() | nil,
          :publicAreaWifiAvailableException => String.t() | nil,
          :publicInternetTerminal => boolean() | nil,
          :publicInternetTerminalException => String.t() | nil,
          :wifiAvailable => boolean() | nil,
          :wifiAvailableException => String.t() | nil
        }

  field(:freeWifi)
  field(:freeWifiException)
  field(:publicAreaWifiAvailable)
  field(:publicAreaWifiAvailableException)
  field(:publicInternetTerminal)
  field(:publicInternetTerminalException)
  field(:wifiAvailable)
  field(:wifiAvailableException)
end

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

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