{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AlexaBusiness.Types.UpdateMeetingRoomConfiguration
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AlexaBusiness.Types.UpdateMeetingRoomConfiguration where

import Amazonka.AlexaBusiness.Types.UpdateEndOfMeetingReminder
import Amazonka.AlexaBusiness.Types.UpdateInstantBooking
import Amazonka.AlexaBusiness.Types.UpdateRequireCheckIn
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Updates meeting room settings of a room profile.
--
-- /See:/ 'newUpdateMeetingRoomConfiguration' smart constructor.
data UpdateMeetingRoomConfiguration = UpdateMeetingRoomConfiguration'
  { -- | Settings for the end of meeting reminder feature that are applied to a
    -- room profile. The end of meeting reminder enables Alexa to remind users
    -- when a meeting is ending.
    UpdateMeetingRoomConfiguration -> Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder :: Prelude.Maybe UpdateEndOfMeetingReminder,
    -- | Settings to automatically book an available room available for a
    -- configured duration when joining a meeting with Alexa.
    UpdateMeetingRoomConfiguration -> Maybe UpdateInstantBooking
instantBooking :: Prelude.Maybe UpdateInstantBooking,
    -- | Settings for requiring a check in when a room is reserved. Alexa can
    -- cancel a room reservation if it\'s not checked into to make the room
    -- available for others. Users can check in by joining the meeting with
    -- Alexa or an AVS device, or by saying “Alexa, check in.”
    UpdateMeetingRoomConfiguration -> Maybe UpdateRequireCheckIn
requireCheckIn :: Prelude.Maybe UpdateRequireCheckIn,
    -- | Whether room utilization metrics are enabled or not.
    UpdateMeetingRoomConfiguration -> Maybe Bool
roomUtilizationMetricsEnabled :: Prelude.Maybe Prelude.Bool
  }
  deriving (UpdateMeetingRoomConfiguration
-> UpdateMeetingRoomConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateMeetingRoomConfiguration
-> UpdateMeetingRoomConfiguration -> Bool
$c/= :: UpdateMeetingRoomConfiguration
-> UpdateMeetingRoomConfiguration -> Bool
== :: UpdateMeetingRoomConfiguration
-> UpdateMeetingRoomConfiguration -> Bool
$c== :: UpdateMeetingRoomConfiguration
-> UpdateMeetingRoomConfiguration -> Bool
Prelude.Eq, ReadPrec [UpdateMeetingRoomConfiguration]
ReadPrec UpdateMeetingRoomConfiguration
Int -> ReadS UpdateMeetingRoomConfiguration
ReadS [UpdateMeetingRoomConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateMeetingRoomConfiguration]
$creadListPrec :: ReadPrec [UpdateMeetingRoomConfiguration]
readPrec :: ReadPrec UpdateMeetingRoomConfiguration
$creadPrec :: ReadPrec UpdateMeetingRoomConfiguration
readList :: ReadS [UpdateMeetingRoomConfiguration]
$creadList :: ReadS [UpdateMeetingRoomConfiguration]
readsPrec :: Int -> ReadS UpdateMeetingRoomConfiguration
$creadsPrec :: Int -> ReadS UpdateMeetingRoomConfiguration
Prelude.Read, Int -> UpdateMeetingRoomConfiguration -> ShowS
[UpdateMeetingRoomConfiguration] -> ShowS
UpdateMeetingRoomConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateMeetingRoomConfiguration] -> ShowS
$cshowList :: [UpdateMeetingRoomConfiguration] -> ShowS
show :: UpdateMeetingRoomConfiguration -> String
$cshow :: UpdateMeetingRoomConfiguration -> String
showsPrec :: Int -> UpdateMeetingRoomConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateMeetingRoomConfiguration -> ShowS
Prelude.Show, forall x.
Rep UpdateMeetingRoomConfiguration x
-> UpdateMeetingRoomConfiguration
forall x.
UpdateMeetingRoomConfiguration
-> Rep UpdateMeetingRoomConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateMeetingRoomConfiguration x
-> UpdateMeetingRoomConfiguration
$cfrom :: forall x.
UpdateMeetingRoomConfiguration
-> Rep UpdateMeetingRoomConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateMeetingRoomConfiguration' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'endOfMeetingReminder', 'updateMeetingRoomConfiguration_endOfMeetingReminder' - Settings for the end of meeting reminder feature that are applied to a
-- room profile. The end of meeting reminder enables Alexa to remind users
-- when a meeting is ending.
--
-- 'instantBooking', 'updateMeetingRoomConfiguration_instantBooking' - Settings to automatically book an available room available for a
-- configured duration when joining a meeting with Alexa.
--
-- 'requireCheckIn', 'updateMeetingRoomConfiguration_requireCheckIn' - Settings for requiring a check in when a room is reserved. Alexa can
-- cancel a room reservation if it\'s not checked into to make the room
-- available for others. Users can check in by joining the meeting with
-- Alexa or an AVS device, or by saying “Alexa, check in.”
--
-- 'roomUtilizationMetricsEnabled', 'updateMeetingRoomConfiguration_roomUtilizationMetricsEnabled' - Whether room utilization metrics are enabled or not.
newUpdateMeetingRoomConfiguration ::
  UpdateMeetingRoomConfiguration
newUpdateMeetingRoomConfiguration :: UpdateMeetingRoomConfiguration
newUpdateMeetingRoomConfiguration =
  UpdateMeetingRoomConfiguration'
    { $sel:endOfMeetingReminder:UpdateMeetingRoomConfiguration' :: Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder =
        forall a. Maybe a
Prelude.Nothing,
      $sel:instantBooking:UpdateMeetingRoomConfiguration' :: Maybe UpdateInstantBooking
instantBooking = forall a. Maybe a
Prelude.Nothing,
      $sel:requireCheckIn:UpdateMeetingRoomConfiguration' :: Maybe UpdateRequireCheckIn
requireCheckIn = forall a. Maybe a
Prelude.Nothing,
      $sel:roomUtilizationMetricsEnabled:UpdateMeetingRoomConfiguration' :: Maybe Bool
roomUtilizationMetricsEnabled =
        forall a. Maybe a
Prelude.Nothing
    }

-- | Settings for the end of meeting reminder feature that are applied to a
-- room profile. The end of meeting reminder enables Alexa to remind users
-- when a meeting is ending.
updateMeetingRoomConfiguration_endOfMeetingReminder :: Lens.Lens' UpdateMeetingRoomConfiguration (Prelude.Maybe UpdateEndOfMeetingReminder)
updateMeetingRoomConfiguration_endOfMeetingReminder :: Lens'
  UpdateMeetingRoomConfiguration (Maybe UpdateEndOfMeetingReminder)
updateMeetingRoomConfiguration_endOfMeetingReminder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMeetingRoomConfiguration' {Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder :: Maybe UpdateEndOfMeetingReminder
$sel:endOfMeetingReminder:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder} -> Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder) (\s :: UpdateMeetingRoomConfiguration
s@UpdateMeetingRoomConfiguration' {} Maybe UpdateEndOfMeetingReminder
a -> UpdateMeetingRoomConfiguration
s {$sel:endOfMeetingReminder:UpdateMeetingRoomConfiguration' :: Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder = Maybe UpdateEndOfMeetingReminder
a} :: UpdateMeetingRoomConfiguration)

-- | Settings to automatically book an available room available for a
-- configured duration when joining a meeting with Alexa.
updateMeetingRoomConfiguration_instantBooking :: Lens.Lens' UpdateMeetingRoomConfiguration (Prelude.Maybe UpdateInstantBooking)
updateMeetingRoomConfiguration_instantBooking :: Lens' UpdateMeetingRoomConfiguration (Maybe UpdateInstantBooking)
updateMeetingRoomConfiguration_instantBooking = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMeetingRoomConfiguration' {Maybe UpdateInstantBooking
instantBooking :: Maybe UpdateInstantBooking
$sel:instantBooking:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateInstantBooking
instantBooking} -> Maybe UpdateInstantBooking
instantBooking) (\s :: UpdateMeetingRoomConfiguration
s@UpdateMeetingRoomConfiguration' {} Maybe UpdateInstantBooking
a -> UpdateMeetingRoomConfiguration
s {$sel:instantBooking:UpdateMeetingRoomConfiguration' :: Maybe UpdateInstantBooking
instantBooking = Maybe UpdateInstantBooking
a} :: UpdateMeetingRoomConfiguration)

-- | Settings for requiring a check in when a room is reserved. Alexa can
-- cancel a room reservation if it\'s not checked into to make the room
-- available for others. Users can check in by joining the meeting with
-- Alexa or an AVS device, or by saying “Alexa, check in.”
updateMeetingRoomConfiguration_requireCheckIn :: Lens.Lens' UpdateMeetingRoomConfiguration (Prelude.Maybe UpdateRequireCheckIn)
updateMeetingRoomConfiguration_requireCheckIn :: Lens' UpdateMeetingRoomConfiguration (Maybe UpdateRequireCheckIn)
updateMeetingRoomConfiguration_requireCheckIn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMeetingRoomConfiguration' {Maybe UpdateRequireCheckIn
requireCheckIn :: Maybe UpdateRequireCheckIn
$sel:requireCheckIn:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateRequireCheckIn
requireCheckIn} -> Maybe UpdateRequireCheckIn
requireCheckIn) (\s :: UpdateMeetingRoomConfiguration
s@UpdateMeetingRoomConfiguration' {} Maybe UpdateRequireCheckIn
a -> UpdateMeetingRoomConfiguration
s {$sel:requireCheckIn:UpdateMeetingRoomConfiguration' :: Maybe UpdateRequireCheckIn
requireCheckIn = Maybe UpdateRequireCheckIn
a} :: UpdateMeetingRoomConfiguration)

-- | Whether room utilization metrics are enabled or not.
updateMeetingRoomConfiguration_roomUtilizationMetricsEnabled :: Lens.Lens' UpdateMeetingRoomConfiguration (Prelude.Maybe Prelude.Bool)
updateMeetingRoomConfiguration_roomUtilizationMetricsEnabled :: Lens' UpdateMeetingRoomConfiguration (Maybe Bool)
updateMeetingRoomConfiguration_roomUtilizationMetricsEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMeetingRoomConfiguration' {Maybe Bool
roomUtilizationMetricsEnabled :: Maybe Bool
$sel:roomUtilizationMetricsEnabled:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe Bool
roomUtilizationMetricsEnabled} -> Maybe Bool
roomUtilizationMetricsEnabled) (\s :: UpdateMeetingRoomConfiguration
s@UpdateMeetingRoomConfiguration' {} Maybe Bool
a -> UpdateMeetingRoomConfiguration
s {$sel:roomUtilizationMetricsEnabled:UpdateMeetingRoomConfiguration' :: Maybe Bool
roomUtilizationMetricsEnabled = Maybe Bool
a} :: UpdateMeetingRoomConfiguration)

instance
  Prelude.Hashable
    UpdateMeetingRoomConfiguration
  where
  hashWithSalt :: Int -> UpdateMeetingRoomConfiguration -> Int
hashWithSalt
    Int
_salt
    UpdateMeetingRoomConfiguration' {Maybe Bool
Maybe UpdateEndOfMeetingReminder
Maybe UpdateInstantBooking
Maybe UpdateRequireCheckIn
roomUtilizationMetricsEnabled :: Maybe Bool
requireCheckIn :: Maybe UpdateRequireCheckIn
instantBooking :: Maybe UpdateInstantBooking
endOfMeetingReminder :: Maybe UpdateEndOfMeetingReminder
$sel:roomUtilizationMetricsEnabled:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe Bool
$sel:requireCheckIn:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateRequireCheckIn
$sel:instantBooking:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateInstantBooking
$sel:endOfMeetingReminder:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateEndOfMeetingReminder
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe UpdateInstantBooking
instantBooking
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe UpdateRequireCheckIn
requireCheckIn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
roomUtilizationMetricsEnabled

instance
  Prelude.NFData
    UpdateMeetingRoomConfiguration
  where
  rnf :: UpdateMeetingRoomConfiguration -> ()
rnf UpdateMeetingRoomConfiguration' {Maybe Bool
Maybe UpdateEndOfMeetingReminder
Maybe UpdateInstantBooking
Maybe UpdateRequireCheckIn
roomUtilizationMetricsEnabled :: Maybe Bool
requireCheckIn :: Maybe UpdateRequireCheckIn
instantBooking :: Maybe UpdateInstantBooking
endOfMeetingReminder :: Maybe UpdateEndOfMeetingReminder
$sel:roomUtilizationMetricsEnabled:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe Bool
$sel:requireCheckIn:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateRequireCheckIn
$sel:instantBooking:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateInstantBooking
$sel:endOfMeetingReminder:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateEndOfMeetingReminder
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UpdateInstantBooking
instantBooking
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UpdateRequireCheckIn
requireCheckIn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
roomUtilizationMetricsEnabled

instance Data.ToJSON UpdateMeetingRoomConfiguration where
  toJSON :: UpdateMeetingRoomConfiguration -> Value
toJSON UpdateMeetingRoomConfiguration' {Maybe Bool
Maybe UpdateEndOfMeetingReminder
Maybe UpdateInstantBooking
Maybe UpdateRequireCheckIn
roomUtilizationMetricsEnabled :: Maybe Bool
requireCheckIn :: Maybe UpdateRequireCheckIn
instantBooking :: Maybe UpdateInstantBooking
endOfMeetingReminder :: Maybe UpdateEndOfMeetingReminder
$sel:roomUtilizationMetricsEnabled:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe Bool
$sel:requireCheckIn:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateRequireCheckIn
$sel:instantBooking:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateInstantBooking
$sel:endOfMeetingReminder:UpdateMeetingRoomConfiguration' :: UpdateMeetingRoomConfiguration -> Maybe UpdateEndOfMeetingReminder
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"EndOfMeetingReminder" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder,
            (Key
"InstantBooking" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateInstantBooking
instantBooking,
            (Key
"RequireCheckIn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateRequireCheckIn
requireCheckIn,
            (Key
"RoomUtilizationMetricsEnabled" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
roomUtilizationMetricsEnabled
          ]
      )