{-# 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 #-}
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
data UpdateMeetingRoomConfiguration = UpdateMeetingRoomConfiguration'
{
UpdateMeetingRoomConfiguration -> Maybe UpdateEndOfMeetingReminder
endOfMeetingReminder :: Prelude.Maybe UpdateEndOfMeetingReminder,
UpdateMeetingRoomConfiguration -> Maybe UpdateInstantBooking
instantBooking :: Prelude.Maybe UpdateInstantBooking,
UpdateMeetingRoomConfiguration -> Maybe UpdateRequireCheckIn
requireCheckIn :: Prelude.Maybe UpdateRequireCheckIn,
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)
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
}
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)
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)
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)
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
]
)