{-# 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.Connect.Types.VoiceRecordingConfiguration where
import Amazonka.Connect.Types.VoiceRecordingTrack
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 VoiceRecordingConfiguration = VoiceRecordingConfiguration'
{
VoiceRecordingConfiguration -> Maybe VoiceRecordingTrack
voiceRecordingTrack :: Prelude.Maybe VoiceRecordingTrack
}
deriving (VoiceRecordingConfiguration -> VoiceRecordingConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VoiceRecordingConfiguration -> VoiceRecordingConfiguration -> Bool
$c/= :: VoiceRecordingConfiguration -> VoiceRecordingConfiguration -> Bool
== :: VoiceRecordingConfiguration -> VoiceRecordingConfiguration -> Bool
$c== :: VoiceRecordingConfiguration -> VoiceRecordingConfiguration -> Bool
Prelude.Eq, ReadPrec [VoiceRecordingConfiguration]
ReadPrec VoiceRecordingConfiguration
Int -> ReadS VoiceRecordingConfiguration
ReadS [VoiceRecordingConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VoiceRecordingConfiguration]
$creadListPrec :: ReadPrec [VoiceRecordingConfiguration]
readPrec :: ReadPrec VoiceRecordingConfiguration
$creadPrec :: ReadPrec VoiceRecordingConfiguration
readList :: ReadS [VoiceRecordingConfiguration]
$creadList :: ReadS [VoiceRecordingConfiguration]
readsPrec :: Int -> ReadS VoiceRecordingConfiguration
$creadsPrec :: Int -> ReadS VoiceRecordingConfiguration
Prelude.Read, Int -> VoiceRecordingConfiguration -> ShowS
[VoiceRecordingConfiguration] -> ShowS
VoiceRecordingConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VoiceRecordingConfiguration] -> ShowS
$cshowList :: [VoiceRecordingConfiguration] -> ShowS
show :: VoiceRecordingConfiguration -> String
$cshow :: VoiceRecordingConfiguration -> String
showsPrec :: Int -> VoiceRecordingConfiguration -> ShowS
$cshowsPrec :: Int -> VoiceRecordingConfiguration -> ShowS
Prelude.Show, forall x.
Rep VoiceRecordingConfiguration x -> VoiceRecordingConfiguration
forall x.
VoiceRecordingConfiguration -> Rep VoiceRecordingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep VoiceRecordingConfiguration x -> VoiceRecordingConfiguration
$cfrom :: forall x.
VoiceRecordingConfiguration -> Rep VoiceRecordingConfiguration x
Prelude.Generic)
newVoiceRecordingConfiguration ::
VoiceRecordingConfiguration
newVoiceRecordingConfiguration :: VoiceRecordingConfiguration
newVoiceRecordingConfiguration =
VoiceRecordingConfiguration'
{ $sel:voiceRecordingTrack:VoiceRecordingConfiguration' :: Maybe VoiceRecordingTrack
voiceRecordingTrack =
forall a. Maybe a
Prelude.Nothing
}
voiceRecordingConfiguration_voiceRecordingTrack :: Lens.Lens' VoiceRecordingConfiguration (Prelude.Maybe VoiceRecordingTrack)
voiceRecordingConfiguration_voiceRecordingTrack :: Lens' VoiceRecordingConfiguration (Maybe VoiceRecordingTrack)
voiceRecordingConfiguration_voiceRecordingTrack = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceRecordingConfiguration' {Maybe VoiceRecordingTrack
voiceRecordingTrack :: Maybe VoiceRecordingTrack
$sel:voiceRecordingTrack:VoiceRecordingConfiguration' :: VoiceRecordingConfiguration -> Maybe VoiceRecordingTrack
voiceRecordingTrack} -> Maybe VoiceRecordingTrack
voiceRecordingTrack) (\s :: VoiceRecordingConfiguration
s@VoiceRecordingConfiguration' {} Maybe VoiceRecordingTrack
a -> VoiceRecordingConfiguration
s {$sel:voiceRecordingTrack:VoiceRecordingConfiguration' :: Maybe VoiceRecordingTrack
voiceRecordingTrack = Maybe VoiceRecordingTrack
a} :: VoiceRecordingConfiguration)
instance Prelude.Hashable VoiceRecordingConfiguration where
hashWithSalt :: Int -> VoiceRecordingConfiguration -> Int
hashWithSalt Int
_salt VoiceRecordingConfiguration' {Maybe VoiceRecordingTrack
voiceRecordingTrack :: Maybe VoiceRecordingTrack
$sel:voiceRecordingTrack:VoiceRecordingConfiguration' :: VoiceRecordingConfiguration -> Maybe VoiceRecordingTrack
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VoiceRecordingTrack
voiceRecordingTrack
instance Prelude.NFData VoiceRecordingConfiguration where
rnf :: VoiceRecordingConfiguration -> ()
rnf VoiceRecordingConfiguration' {Maybe VoiceRecordingTrack
voiceRecordingTrack :: Maybe VoiceRecordingTrack
$sel:voiceRecordingTrack:VoiceRecordingConfiguration' :: VoiceRecordingConfiguration -> Maybe VoiceRecordingTrack
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe VoiceRecordingTrack
voiceRecordingTrack
instance Data.ToJSON VoiceRecordingConfiguration where
toJSON :: VoiceRecordingConfiguration -> Value
toJSON VoiceRecordingConfiguration' {Maybe VoiceRecordingTrack
voiceRecordingTrack :: Maybe VoiceRecordingTrack
$sel:voiceRecordingTrack:VoiceRecordingConfiguration' :: VoiceRecordingConfiguration -> Maybe VoiceRecordingTrack
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"VoiceRecordingTrack" 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 VoiceRecordingTrack
voiceRecordingTrack
]
)