{-# 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.Chime.Types.TranscriptionConfiguration where
import Amazonka.Chime.Types.EngineTranscribeMedicalSettings
import Amazonka.Chime.Types.EngineTranscribeSettings
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data TranscriptionConfiguration = TranscriptionConfiguration'
{
TranscriptionConfiguration -> Maybe EngineTranscribeMedicalSettings
engineTranscribeMedicalSettings :: Prelude.Maybe EngineTranscribeMedicalSettings,
TranscriptionConfiguration -> Maybe EngineTranscribeSettings
engineTranscribeSettings :: Prelude.Maybe EngineTranscribeSettings
}
deriving (TranscriptionConfiguration -> TranscriptionConfiguration -> Bool
(TranscriptionConfiguration -> TranscriptionConfiguration -> Bool)
-> (TranscriptionConfiguration
-> TranscriptionConfiguration -> Bool)
-> Eq TranscriptionConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TranscriptionConfiguration -> TranscriptionConfiguration -> Bool
$c/= :: TranscriptionConfiguration -> TranscriptionConfiguration -> Bool
== :: TranscriptionConfiguration -> TranscriptionConfiguration -> Bool
$c== :: TranscriptionConfiguration -> TranscriptionConfiguration -> Bool
Prelude.Eq, ReadPrec [TranscriptionConfiguration]
ReadPrec TranscriptionConfiguration
Int -> ReadS TranscriptionConfiguration
ReadS [TranscriptionConfiguration]
(Int -> ReadS TranscriptionConfiguration)
-> ReadS [TranscriptionConfiguration]
-> ReadPrec TranscriptionConfiguration
-> ReadPrec [TranscriptionConfiguration]
-> Read TranscriptionConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TranscriptionConfiguration]
$creadListPrec :: ReadPrec [TranscriptionConfiguration]
readPrec :: ReadPrec TranscriptionConfiguration
$creadPrec :: ReadPrec TranscriptionConfiguration
readList :: ReadS [TranscriptionConfiguration]
$creadList :: ReadS [TranscriptionConfiguration]
readsPrec :: Int -> ReadS TranscriptionConfiguration
$creadsPrec :: Int -> ReadS TranscriptionConfiguration
Prelude.Read, Int -> TranscriptionConfiguration -> ShowS
[TranscriptionConfiguration] -> ShowS
TranscriptionConfiguration -> String
(Int -> TranscriptionConfiguration -> ShowS)
-> (TranscriptionConfiguration -> String)
-> ([TranscriptionConfiguration] -> ShowS)
-> Show TranscriptionConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TranscriptionConfiguration] -> ShowS
$cshowList :: [TranscriptionConfiguration] -> ShowS
show :: TranscriptionConfiguration -> String
$cshow :: TranscriptionConfiguration -> String
showsPrec :: Int -> TranscriptionConfiguration -> ShowS
$cshowsPrec :: Int -> TranscriptionConfiguration -> ShowS
Prelude.Show, (forall x.
TranscriptionConfiguration -> Rep TranscriptionConfiguration x)
-> (forall x.
Rep TranscriptionConfiguration x -> TranscriptionConfiguration)
-> Generic TranscriptionConfiguration
forall x.
Rep TranscriptionConfiguration x -> TranscriptionConfiguration
forall x.
TranscriptionConfiguration -> Rep TranscriptionConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TranscriptionConfiguration x -> TranscriptionConfiguration
$cfrom :: forall x.
TranscriptionConfiguration -> Rep TranscriptionConfiguration x
Prelude.Generic)
newTranscriptionConfiguration ::
TranscriptionConfiguration
newTranscriptionConfiguration :: TranscriptionConfiguration
newTranscriptionConfiguration =
TranscriptionConfiguration' :: Maybe EngineTranscribeMedicalSettings
-> Maybe EngineTranscribeSettings -> TranscriptionConfiguration
TranscriptionConfiguration'
{ $sel:engineTranscribeMedicalSettings:TranscriptionConfiguration' :: Maybe EngineTranscribeMedicalSettings
engineTranscribeMedicalSettings =
Maybe EngineTranscribeMedicalSettings
forall a. Maybe a
Prelude.Nothing,
$sel:engineTranscribeSettings:TranscriptionConfiguration' :: Maybe EngineTranscribeSettings
engineTranscribeSettings = Maybe EngineTranscribeSettings
forall a. Maybe a
Prelude.Nothing
}
transcriptionConfiguration_engineTranscribeMedicalSettings :: Lens.Lens' TranscriptionConfiguration (Prelude.Maybe EngineTranscribeMedicalSettings)
transcriptionConfiguration_engineTranscribeMedicalSettings :: (Maybe EngineTranscribeMedicalSettings
-> f (Maybe EngineTranscribeMedicalSettings))
-> TranscriptionConfiguration -> f TranscriptionConfiguration
transcriptionConfiguration_engineTranscribeMedicalSettings = (TranscriptionConfiguration
-> Maybe EngineTranscribeMedicalSettings)
-> (TranscriptionConfiguration
-> Maybe EngineTranscribeMedicalSettings
-> TranscriptionConfiguration)
-> Lens
TranscriptionConfiguration
TranscriptionConfiguration
(Maybe EngineTranscribeMedicalSettings)
(Maybe EngineTranscribeMedicalSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionConfiguration' {Maybe EngineTranscribeMedicalSettings
engineTranscribeMedicalSettings :: Maybe EngineTranscribeMedicalSettings
$sel:engineTranscribeMedicalSettings:TranscriptionConfiguration' :: TranscriptionConfiguration -> Maybe EngineTranscribeMedicalSettings
engineTranscribeMedicalSettings} -> Maybe EngineTranscribeMedicalSettings
engineTranscribeMedicalSettings) (\s :: TranscriptionConfiguration
s@TranscriptionConfiguration' {} Maybe EngineTranscribeMedicalSettings
a -> TranscriptionConfiguration
s {$sel:engineTranscribeMedicalSettings:TranscriptionConfiguration' :: Maybe EngineTranscribeMedicalSettings
engineTranscribeMedicalSettings = Maybe EngineTranscribeMedicalSettings
a} :: TranscriptionConfiguration)
transcriptionConfiguration_engineTranscribeSettings :: Lens.Lens' TranscriptionConfiguration (Prelude.Maybe EngineTranscribeSettings)
transcriptionConfiguration_engineTranscribeSettings :: (Maybe EngineTranscribeSettings
-> f (Maybe EngineTranscribeSettings))
-> TranscriptionConfiguration -> f TranscriptionConfiguration
transcriptionConfiguration_engineTranscribeSettings = (TranscriptionConfiguration -> Maybe EngineTranscribeSettings)
-> (TranscriptionConfiguration
-> Maybe EngineTranscribeSettings -> TranscriptionConfiguration)
-> Lens
TranscriptionConfiguration
TranscriptionConfiguration
(Maybe EngineTranscribeSettings)
(Maybe EngineTranscribeSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionConfiguration' {Maybe EngineTranscribeSettings
engineTranscribeSettings :: Maybe EngineTranscribeSettings
$sel:engineTranscribeSettings:TranscriptionConfiguration' :: TranscriptionConfiguration -> Maybe EngineTranscribeSettings
engineTranscribeSettings} -> Maybe EngineTranscribeSettings
engineTranscribeSettings) (\s :: TranscriptionConfiguration
s@TranscriptionConfiguration' {} Maybe EngineTranscribeSettings
a -> TranscriptionConfiguration
s {$sel:engineTranscribeSettings:TranscriptionConfiguration' :: Maybe EngineTranscribeSettings
engineTranscribeSettings = Maybe EngineTranscribeSettings
a} :: TranscriptionConfiguration)
instance Prelude.Hashable TranscriptionConfiguration
instance Prelude.NFData TranscriptionConfiguration
instance Core.ToJSON TranscriptionConfiguration where
toJSON :: TranscriptionConfiguration -> Value
toJSON TranscriptionConfiguration' {Maybe EngineTranscribeMedicalSettings
Maybe EngineTranscribeSettings
engineTranscribeSettings :: Maybe EngineTranscribeSettings
engineTranscribeMedicalSettings :: Maybe EngineTranscribeMedicalSettings
$sel:engineTranscribeSettings:TranscriptionConfiguration' :: TranscriptionConfiguration -> Maybe EngineTranscribeSettings
$sel:engineTranscribeMedicalSettings:TranscriptionConfiguration' :: TranscriptionConfiguration -> Maybe EngineTranscribeMedicalSettings
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"EngineTranscribeMedicalSettings" Text -> EngineTranscribeMedicalSettings -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(EngineTranscribeMedicalSettings -> Pair)
-> Maybe EngineTranscribeMedicalSettings -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EngineTranscribeMedicalSettings
engineTranscribeMedicalSettings,
(Text
"EngineTranscribeSettings" Text -> EngineTranscribeSettings -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(EngineTranscribeSettings -> Pair)
-> Maybe EngineTranscribeSettings -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EngineTranscribeSettings
engineTranscribeSettings
]
)