# 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.PhysicalDistancing do
  @moduledoc """
  Physical distancing measures implemented by the hotel during COVID-19.

  ## Attributes

  *   `commonAreasPhysicalDistancingArranged` (*type:* `boolean()`, *default:* `nil`) - Common areas arranged to maintain physical distancing.
  *   `commonAreasPhysicalDistancingArrangedException` (*type:* `String.t`, *default:* `nil`) - Common areas physical distancing arranged exception.
  *   `physicalDistancingRequired` (*type:* `boolean()`, *default:* `nil`) - Physical distancing required.
  *   `physicalDistancingRequiredException` (*type:* `String.t`, *default:* `nil`) - Physical distancing required exception.
  *   `safetyDividers` (*type:* `boolean()`, *default:* `nil`) - Safety dividers at front desk and other locations.
  *   `safetyDividersException` (*type:* `String.t`, *default:* `nil`) - Safety dividers exception.
  *   `sharedAreasLimitedOccupancy` (*type:* `boolean()`, *default:* `nil`) - Guest occupancy limited within shared facilities.
  *   `sharedAreasLimitedOccupancyException` (*type:* `String.t`, *default:* `nil`) - Shared areas limited occupancy exception.
  *   `wellnessAreasHavePrivateSpaces` (*type:* `boolean()`, *default:* `nil`) - Private spaces designated in spa and wellness areas.
  *   `wellnessAreasHavePrivateSpacesException` (*type:* `String.t`, *default:* `nil`) - Wellness areas have private spaces exception.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :commonAreasPhysicalDistancingArranged => boolean() | nil,
          :commonAreasPhysicalDistancingArrangedException => String.t() | nil,
          :physicalDistancingRequired => boolean() | nil,
          :physicalDistancingRequiredException => String.t() | nil,
          :safetyDividers => boolean() | nil,
          :safetyDividersException => String.t() | nil,
          :sharedAreasLimitedOccupancy => boolean() | nil,
          :sharedAreasLimitedOccupancyException => String.t() | nil,
          :wellnessAreasHavePrivateSpaces => boolean() | nil,
          :wellnessAreasHavePrivateSpacesException => String.t() | nil
        }

  field(:commonAreasPhysicalDistancingArranged)
  field(:commonAreasPhysicalDistancingArrangedException)
  field(:physicalDistancingRequired)
  field(:physicalDistancingRequiredException)
  field(:safetyDividers)
  field(:safetyDividersException)
  field(:sharedAreasLimitedOccupancy)
  field(:sharedAreasLimitedOccupancyException)
  field(:wellnessAreasHavePrivateSpaces)
  field(:wellnessAreasHavePrivateSpacesException)
end

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

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