{-# 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.Transcribe.Types.MedicalTranscriptionSetting
-- 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.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

-- | Allows additional optional settings in your request, including channel
-- identification, alternative transcriptions, and speaker partitioning.
-- You can use that to apply custom vocabularies to your medical
-- transcription job.
--
-- /See:/ 'newMedicalTranscriptionSetting' smart constructor.
data MedicalTranscriptionSetting = MedicalTranscriptionSetting'
  { -- | Enables channel identification in multi-channel audio.
    --
    -- Channel identification transcribes the audio on each channel
    -- independently, then appends the output for each channel into one
    -- transcript.
    --
    -- If you have multi-channel audio and do not enable channel
    -- identification, your audio is transcribed in a continuous manner and
    -- your transcript does not separate the speech by channel.
    --
    -- You can\'t include both @ShowSpeakerLabels@ and @ChannelIdentification@
    -- in the same request. Including both parameters returns a
    -- @BadRequestException@.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html Transcribing multi-channel audio>.
    MedicalTranscriptionSetting -> Maybe Bool
channelIdentification :: Prelude.Maybe Prelude.Bool,
    -- | Indicate the maximum number of alternative transcriptions you want
    -- Amazon Transcribe Medical to include in your transcript.
    --
    -- If you select a number greater than the number of alternative
    -- transcriptions generated by Amazon Transcribe Medical, only the actual
    -- number of alternative transcriptions are included.
    --
    -- If you include @MaxAlternatives@ in your request, you must also include
    -- @ShowAlternatives@ with a value of @true@.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/how-alternatives.html Alternative transcriptions>.
    MedicalTranscriptionSetting -> Maybe Natural
maxAlternatives :: Prelude.Maybe Prelude.Natural,
    -- | Specify the maximum number of speakers you want to partition in your
    -- media.
    --
    -- Note that if your media contains more speakers than the specified
    -- number, multiple speakers are treated as a single speaker.
    --
    -- If you specify the @MaxSpeakerLabels@ field, you must set the
    -- @ShowSpeakerLabels@ field to true.
    MedicalTranscriptionSetting -> Maybe Natural
maxSpeakerLabels :: Prelude.Maybe Prelude.Natural,
    -- | To include alternative transcriptions within your transcription output,
    -- include @ShowAlternatives@ in your transcription request.
    --
    -- If you include @ShowAlternatives@, you must also include
    -- @MaxAlternatives@, which is the maximum number of alternative
    -- transcriptions you want Amazon Transcribe Medical to generate.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/how-alternatives.html Alternative transcriptions>.
    MedicalTranscriptionSetting -> Maybe Bool
showAlternatives :: Prelude.Maybe Prelude.Bool,
    -- | Enables speaker partitioning (diarization) in your transcription output.
    -- Speaker partitioning labels the speech from individual speakers in your
    -- media file.
    --
    -- If you enable @ShowSpeakerLabels@ in your request, you must also include
    -- @MaxSpeakerLabels@.
    --
    -- You can\'t include @ShowSpeakerLabels@ and @ChannelIdentification@ in
    -- the same request. Including both parameters returns a
    -- @BadRequestException@.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html Partitioning speakers (diarization)>.
    MedicalTranscriptionSetting -> Maybe Bool
showSpeakerLabels :: Prelude.Maybe Prelude.Bool,
    -- | The name of the custom vocabulary you want to use when processing your
    -- medical transcription job. Custom vocabulary names are case sensitive.
    --
    -- The language of the specified custom vocabulary must match the language
    -- code that you specify in your transcription request. If the languages
    -- don\'t match, the custom vocabulary isn\'t applied. There are no errors
    -- or warnings associated with a language mismatch. US English (@en-US@) is
    -- the only valid language for Amazon Transcribe Medical.
    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)

-- |
-- Create a value of 'MedicalTranscriptionSetting' 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:
--
-- 'channelIdentification', 'medicalTranscriptionSetting_channelIdentification' - Enables channel identification in multi-channel audio.
--
-- Channel identification transcribes the audio on each channel
-- independently, then appends the output for each channel into one
-- transcript.
--
-- If you have multi-channel audio and do not enable channel
-- identification, your audio is transcribed in a continuous manner and
-- your transcript does not separate the speech by channel.
--
-- You can\'t include both @ShowSpeakerLabels@ and @ChannelIdentification@
-- in the same request. Including both parameters returns a
-- @BadRequestException@.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html Transcribing multi-channel audio>.
--
-- 'maxAlternatives', 'medicalTranscriptionSetting_maxAlternatives' - Indicate the maximum number of alternative transcriptions you want
-- Amazon Transcribe Medical to include in your transcript.
--
-- If you select a number greater than the number of alternative
-- transcriptions generated by Amazon Transcribe Medical, only the actual
-- number of alternative transcriptions are included.
--
-- If you include @MaxAlternatives@ in your request, you must also include
-- @ShowAlternatives@ with a value of @true@.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/how-alternatives.html Alternative transcriptions>.
--
-- 'maxSpeakerLabels', 'medicalTranscriptionSetting_maxSpeakerLabels' - Specify the maximum number of speakers you want to partition in your
-- media.
--
-- Note that if your media contains more speakers than the specified
-- number, multiple speakers are treated as a single speaker.
--
-- If you specify the @MaxSpeakerLabels@ field, you must set the
-- @ShowSpeakerLabels@ field to true.
--
-- 'showAlternatives', 'medicalTranscriptionSetting_showAlternatives' - To include alternative transcriptions within your transcription output,
-- include @ShowAlternatives@ in your transcription request.
--
-- If you include @ShowAlternatives@, you must also include
-- @MaxAlternatives@, which is the maximum number of alternative
-- transcriptions you want Amazon Transcribe Medical to generate.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/how-alternatives.html Alternative transcriptions>.
--
-- 'showSpeakerLabels', 'medicalTranscriptionSetting_showSpeakerLabels' - Enables speaker partitioning (diarization) in your transcription output.
-- Speaker partitioning labels the speech from individual speakers in your
-- media file.
--
-- If you enable @ShowSpeakerLabels@ in your request, you must also include
-- @MaxSpeakerLabels@.
--
-- You can\'t include @ShowSpeakerLabels@ and @ChannelIdentification@ in
-- the same request. Including both parameters returns a
-- @BadRequestException@.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html Partitioning speakers (diarization)>.
--
-- 'vocabularyName', 'medicalTranscriptionSetting_vocabularyName' - The name of the custom vocabulary you want to use when processing your
-- medical transcription job. Custom vocabulary names are case sensitive.
--
-- The language of the specified custom vocabulary must match the language
-- code that you specify in your transcription request. If the languages
-- don\'t match, the custom vocabulary isn\'t applied. There are no errors
-- or warnings associated with a language mismatch. US English (@en-US@) is
-- the only valid language for Amazon Transcribe Medical.
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
    }

-- | Enables channel identification in multi-channel audio.
--
-- Channel identification transcribes the audio on each channel
-- independently, then appends the output for each channel into one
-- transcript.
--
-- If you have multi-channel audio and do not enable channel
-- identification, your audio is transcribed in a continuous manner and
-- your transcript does not separate the speech by channel.
--
-- You can\'t include both @ShowSpeakerLabels@ and @ChannelIdentification@
-- in the same request. Including both parameters returns a
-- @BadRequestException@.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html Transcribing multi-channel audio>.
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)

-- | Indicate the maximum number of alternative transcriptions you want
-- Amazon Transcribe Medical to include in your transcript.
--
-- If you select a number greater than the number of alternative
-- transcriptions generated by Amazon Transcribe Medical, only the actual
-- number of alternative transcriptions are included.
--
-- If you include @MaxAlternatives@ in your request, you must also include
-- @ShowAlternatives@ with a value of @true@.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/how-alternatives.html Alternative transcriptions>.
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)

-- | Specify the maximum number of speakers you want to partition in your
-- media.
--
-- Note that if your media contains more speakers than the specified
-- number, multiple speakers are treated as a single speaker.
--
-- If you specify the @MaxSpeakerLabels@ field, you must set the
-- @ShowSpeakerLabels@ field to true.
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)

-- | To include alternative transcriptions within your transcription output,
-- include @ShowAlternatives@ in your transcription request.
--
-- If you include @ShowAlternatives@, you must also include
-- @MaxAlternatives@, which is the maximum number of alternative
-- transcriptions you want Amazon Transcribe Medical to generate.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/how-alternatives.html Alternative transcriptions>.
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)

-- | Enables speaker partitioning (diarization) in your transcription output.
-- Speaker partitioning labels the speech from individual speakers in your
-- media file.
--
-- If you enable @ShowSpeakerLabels@ in your request, you must also include
-- @MaxSpeakerLabels@.
--
-- You can\'t include @ShowSpeakerLabels@ and @ChannelIdentification@ in
-- the same request. Including both parameters returns a
-- @BadRequestException@.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html Partitioning speakers (diarization)>.
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)

-- | The name of the custom vocabulary you want to use when processing your
-- medical transcription job. Custom vocabulary names are case sensitive.
--
-- The language of the specified custom vocabulary must match the language
-- code that you specify in your transcription request. If the languages
-- don\'t match, the custom vocabulary isn\'t applied. There are no errors
-- or warnings associated with a language mismatch. US English (@en-US@) is
-- the only valid language for Amazon Transcribe Medical.
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
          ]
      )