{-# 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.Transcribe.Types.MedicalTranscriptionSetting where
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 MedicalTranscriptionSetting = MedicalTranscriptionSetting'
{
MedicalTranscriptionSetting -> Maybe Bool
channelIdentification :: Prelude.Maybe Prelude.Bool,
MedicalTranscriptionSetting -> Maybe Natural
maxAlternatives :: Prelude.Maybe Prelude.Natural,
MedicalTranscriptionSetting -> Maybe Natural
maxSpeakerLabels :: Prelude.Maybe Prelude.Natural,
MedicalTranscriptionSetting -> Maybe Bool
showAlternatives :: Prelude.Maybe Prelude.Bool,
MedicalTranscriptionSetting -> Maybe Bool
showSpeakerLabels :: Prelude.Maybe Prelude.Bool,
MedicalTranscriptionSetting -> Maybe Text
vocabularyName :: Prelude.Maybe Prelude.Text
}
deriving (MedicalTranscriptionSetting -> MedicalTranscriptionSetting -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MedicalTranscriptionSetting -> MedicalTranscriptionSetting -> Bool
$c/= :: MedicalTranscriptionSetting -> MedicalTranscriptionSetting -> Bool
== :: MedicalTranscriptionSetting -> MedicalTranscriptionSetting -> Bool
$c== :: MedicalTranscriptionSetting -> MedicalTranscriptionSetting -> Bool
Prelude.Eq, ReadPrec [MedicalTranscriptionSetting]
ReadPrec MedicalTranscriptionSetting
Int -> ReadS MedicalTranscriptionSetting
ReadS [MedicalTranscriptionSetting]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MedicalTranscriptionSetting]
$creadListPrec :: ReadPrec [MedicalTranscriptionSetting]
readPrec :: ReadPrec MedicalTranscriptionSetting
$creadPrec :: ReadPrec MedicalTranscriptionSetting
readList :: ReadS [MedicalTranscriptionSetting]
$creadList :: ReadS [MedicalTranscriptionSetting]
readsPrec :: Int -> ReadS MedicalTranscriptionSetting
$creadsPrec :: Int -> ReadS MedicalTranscriptionSetting
Prelude.Read, Int -> MedicalTranscriptionSetting -> ShowS
[MedicalTranscriptionSetting] -> ShowS
MedicalTranscriptionSetting -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MedicalTranscriptionSetting] -> ShowS
$cshowList :: [MedicalTranscriptionSetting] -> ShowS
show :: MedicalTranscriptionSetting -> String
$cshow :: MedicalTranscriptionSetting -> String
showsPrec :: Int -> MedicalTranscriptionSetting -> ShowS
$cshowsPrec :: Int -> MedicalTranscriptionSetting -> ShowS
Prelude.Show, forall x.
Rep MedicalTranscriptionSetting x -> MedicalTranscriptionSetting
forall x.
MedicalTranscriptionSetting -> Rep MedicalTranscriptionSetting x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MedicalTranscriptionSetting x -> MedicalTranscriptionSetting
$cfrom :: forall x.
MedicalTranscriptionSetting -> Rep MedicalTranscriptionSetting x
Prelude.Generic)
newMedicalTranscriptionSetting ::
MedicalTranscriptionSetting
newMedicalTranscriptionSetting :: MedicalTranscriptionSetting
newMedicalTranscriptionSetting =
MedicalTranscriptionSetting'
{ $sel:channelIdentification:MedicalTranscriptionSetting' :: Maybe Bool
channelIdentification =
forall a. Maybe a
Prelude.Nothing,
$sel:maxAlternatives:MedicalTranscriptionSetting' :: Maybe Natural
maxAlternatives = forall a. Maybe a
Prelude.Nothing,
$sel:maxSpeakerLabels:MedicalTranscriptionSetting' :: Maybe Natural
maxSpeakerLabels = forall a. Maybe a
Prelude.Nothing,
$sel:showAlternatives:MedicalTranscriptionSetting' :: Maybe Bool
showAlternatives = forall a. Maybe a
Prelude.Nothing,
$sel:showSpeakerLabels:MedicalTranscriptionSetting' :: Maybe Bool
showSpeakerLabels = forall a. Maybe a
Prelude.Nothing,
$sel:vocabularyName:MedicalTranscriptionSetting' :: Maybe Text
vocabularyName = forall a. Maybe a
Prelude.Nothing
}
medicalTranscriptionSetting_channelIdentification :: Lens.Lens' MedicalTranscriptionSetting (Prelude.Maybe Prelude.Bool)
medicalTranscriptionSetting_channelIdentification :: Lens' MedicalTranscriptionSetting (Maybe Bool)
medicalTranscriptionSetting_channelIdentification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionSetting' {Maybe Bool
channelIdentification :: Maybe Bool
$sel:channelIdentification:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
channelIdentification} -> Maybe Bool
channelIdentification) (\s :: MedicalTranscriptionSetting
s@MedicalTranscriptionSetting' {} Maybe Bool
a -> MedicalTranscriptionSetting
s {$sel:channelIdentification:MedicalTranscriptionSetting' :: Maybe Bool
channelIdentification = Maybe Bool
a} :: MedicalTranscriptionSetting)
medicalTranscriptionSetting_maxAlternatives :: Lens.Lens' MedicalTranscriptionSetting (Prelude.Maybe Prelude.Natural)
medicalTranscriptionSetting_maxAlternatives :: Lens' MedicalTranscriptionSetting (Maybe Natural)
medicalTranscriptionSetting_maxAlternatives = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionSetting' {Maybe Natural
maxAlternatives :: Maybe Natural
$sel:maxAlternatives:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Natural
maxAlternatives} -> Maybe Natural
maxAlternatives) (\s :: MedicalTranscriptionSetting
s@MedicalTranscriptionSetting' {} Maybe Natural
a -> MedicalTranscriptionSetting
s {$sel:maxAlternatives:MedicalTranscriptionSetting' :: Maybe Natural
maxAlternatives = Maybe Natural
a} :: MedicalTranscriptionSetting)
medicalTranscriptionSetting_maxSpeakerLabels :: Lens.Lens' MedicalTranscriptionSetting (Prelude.Maybe Prelude.Natural)
medicalTranscriptionSetting_maxSpeakerLabels :: Lens' MedicalTranscriptionSetting (Maybe Natural)
medicalTranscriptionSetting_maxSpeakerLabels = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionSetting' {Maybe Natural
maxSpeakerLabels :: Maybe Natural
$sel:maxSpeakerLabels:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Natural
maxSpeakerLabels} -> Maybe Natural
maxSpeakerLabels) (\s :: MedicalTranscriptionSetting
s@MedicalTranscriptionSetting' {} Maybe Natural
a -> MedicalTranscriptionSetting
s {$sel:maxSpeakerLabels:MedicalTranscriptionSetting' :: Maybe Natural
maxSpeakerLabels = Maybe Natural
a} :: MedicalTranscriptionSetting)
medicalTranscriptionSetting_showAlternatives :: Lens.Lens' MedicalTranscriptionSetting (Prelude.Maybe Prelude.Bool)
medicalTranscriptionSetting_showAlternatives :: Lens' MedicalTranscriptionSetting (Maybe Bool)
medicalTranscriptionSetting_showAlternatives = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionSetting' {Maybe Bool
showAlternatives :: Maybe Bool
$sel:showAlternatives:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
showAlternatives} -> Maybe Bool
showAlternatives) (\s :: MedicalTranscriptionSetting
s@MedicalTranscriptionSetting' {} Maybe Bool
a -> MedicalTranscriptionSetting
s {$sel:showAlternatives:MedicalTranscriptionSetting' :: Maybe Bool
showAlternatives = Maybe Bool
a} :: MedicalTranscriptionSetting)
medicalTranscriptionSetting_showSpeakerLabels :: Lens.Lens' MedicalTranscriptionSetting (Prelude.Maybe Prelude.Bool)
medicalTranscriptionSetting_showSpeakerLabels :: Lens' MedicalTranscriptionSetting (Maybe Bool)
medicalTranscriptionSetting_showSpeakerLabels = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionSetting' {Maybe Bool
showSpeakerLabels :: Maybe Bool
$sel:showSpeakerLabels:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
showSpeakerLabels} -> Maybe Bool
showSpeakerLabels) (\s :: MedicalTranscriptionSetting
s@MedicalTranscriptionSetting' {} Maybe Bool
a -> MedicalTranscriptionSetting
s {$sel:showSpeakerLabels:MedicalTranscriptionSetting' :: Maybe Bool
showSpeakerLabels = Maybe Bool
a} :: MedicalTranscriptionSetting)
medicalTranscriptionSetting_vocabularyName :: Lens.Lens' MedicalTranscriptionSetting (Prelude.Maybe Prelude.Text)
medicalTranscriptionSetting_vocabularyName :: Lens' MedicalTranscriptionSetting (Maybe Text)
medicalTranscriptionSetting_vocabularyName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscriptionSetting' {Maybe Text
vocabularyName :: Maybe Text
$sel:vocabularyName:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Text
vocabularyName} -> Maybe Text
vocabularyName) (\s :: MedicalTranscriptionSetting
s@MedicalTranscriptionSetting' {} Maybe Text
a -> MedicalTranscriptionSetting
s {$sel:vocabularyName:MedicalTranscriptionSetting' :: Maybe Text
vocabularyName = Maybe Text
a} :: MedicalTranscriptionSetting)
instance Data.FromJSON MedicalTranscriptionSetting where
parseJSON :: Value -> Parser MedicalTranscriptionSetting
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"MedicalTranscriptionSetting"
( \Object
x ->
Maybe Bool
-> Maybe Natural
-> Maybe Natural
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> MedicalTranscriptionSetting
MedicalTranscriptionSetting'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ChannelIdentification")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxAlternatives")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxSpeakerLabels")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ShowAlternatives")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ShowSpeakerLabels")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"VocabularyName")
)
instance Prelude.Hashable MedicalTranscriptionSetting where
hashWithSalt :: Int -> MedicalTranscriptionSetting -> Int
hashWithSalt Int
_salt MedicalTranscriptionSetting' {Maybe Bool
Maybe Natural
Maybe Text
vocabularyName :: Maybe Text
showSpeakerLabels :: Maybe Bool
showAlternatives :: Maybe Bool
maxSpeakerLabels :: Maybe Natural
maxAlternatives :: Maybe Natural
channelIdentification :: Maybe Bool
$sel:vocabularyName:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Text
$sel:showSpeakerLabels:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
$sel:showAlternatives:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
$sel:maxSpeakerLabels:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Natural
$sel:maxAlternatives:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Natural
$sel:channelIdentification:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
channelIdentification
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxAlternatives
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxSpeakerLabels
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
showAlternatives
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
showSpeakerLabels
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vocabularyName
instance Prelude.NFData MedicalTranscriptionSetting where
rnf :: MedicalTranscriptionSetting -> ()
rnf MedicalTranscriptionSetting' {Maybe Bool
Maybe Natural
Maybe Text
vocabularyName :: Maybe Text
showSpeakerLabels :: Maybe Bool
showAlternatives :: Maybe Bool
maxSpeakerLabels :: Maybe Natural
maxAlternatives :: Maybe Natural
channelIdentification :: Maybe Bool
$sel:vocabularyName:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Text
$sel:showSpeakerLabels:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
$sel:showAlternatives:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
$sel:maxSpeakerLabels:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Natural
$sel:maxAlternatives:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Natural
$sel:channelIdentification:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
channelIdentification
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxAlternatives
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxSpeakerLabels
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
showAlternatives
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
showSpeakerLabels
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vocabularyName
instance Data.ToJSON MedicalTranscriptionSetting where
toJSON :: MedicalTranscriptionSetting -> Value
toJSON MedicalTranscriptionSetting' {Maybe Bool
Maybe Natural
Maybe Text
vocabularyName :: Maybe Text
showSpeakerLabels :: Maybe Bool
showAlternatives :: Maybe Bool
maxSpeakerLabels :: Maybe Natural
maxAlternatives :: Maybe Natural
channelIdentification :: Maybe Bool
$sel:vocabularyName:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Text
$sel:showSpeakerLabels:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
$sel:showAlternatives:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
$sel:maxSpeakerLabels:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Natural
$sel:maxAlternatives:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Natural
$sel:channelIdentification:MedicalTranscriptionSetting' :: MedicalTranscriptionSetting -> Maybe Bool
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ChannelIdentification" 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
channelIdentification,
(Key
"MaxAlternatives" 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 Natural
maxAlternatives,
(Key
"MaxSpeakerLabels" 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 Natural
maxSpeakerLabels,
(Key
"ShowAlternatives" 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
showAlternatives,
(Key
"ShowSpeakerLabels" 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
showSpeakerLabels,
(Key
"VocabularyName" 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 Text
vocabularyName
]
)