{-# 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.TranscriptionJob where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Transcribe.Types.ContentRedaction
import Amazonka.Transcribe.Types.JobExecutionSettings
import Amazonka.Transcribe.Types.LanguageCode
import Amazonka.Transcribe.Types.Media
import Amazonka.Transcribe.Types.MediaFormat
import Amazonka.Transcribe.Types.ModelSettings
import Amazonka.Transcribe.Types.Settings
import Amazonka.Transcribe.Types.SubtitlesOutput
import Amazonka.Transcribe.Types.Tag
import Amazonka.Transcribe.Types.Transcript
import Amazonka.Transcribe.Types.TranscriptionJobStatus
data TranscriptionJob = TranscriptionJob'
{
TranscriptionJob -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
TranscriptionJob -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
TranscriptionJob -> Maybe ContentRedaction
contentRedaction :: Prelude.Maybe ContentRedaction,
TranscriptionJob -> Maybe Double
identifiedLanguageScore :: Prelude.Maybe Prelude.Double,
TranscriptionJob -> Maybe SubtitlesOutput
subtitles :: Prelude.Maybe SubtitlesOutput,
TranscriptionJob -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
TranscriptionJob -> Maybe (NonEmpty LanguageCode)
languageOptions :: Prelude.Maybe (Prelude.NonEmpty LanguageCode),
TranscriptionJob -> Maybe Settings
settings :: Prelude.Maybe Settings,
TranscriptionJob -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
TranscriptionJob -> Maybe POSIX
completionTime :: Prelude.Maybe Core.POSIX,
TranscriptionJob -> Maybe Media
media :: Prelude.Maybe Media,
TranscriptionJob -> Maybe MediaFormat
mediaFormat :: Prelude.Maybe MediaFormat,
TranscriptionJob -> Maybe ModelSettings
modelSettings :: Prelude.Maybe ModelSettings,
TranscriptionJob -> Maybe TranscriptionJobStatus
transcriptionJobStatus :: Prelude.Maybe TranscriptionJobStatus,
TranscriptionJob -> Maybe JobExecutionSettings
jobExecutionSettings :: Prelude.Maybe JobExecutionSettings,
TranscriptionJob -> Maybe Text
transcriptionJobName :: Prelude.Maybe Prelude.Text,
TranscriptionJob -> Maybe Bool
identifyLanguage :: Prelude.Maybe Prelude.Bool,
TranscriptionJob -> Maybe Transcript
transcript :: Prelude.Maybe Transcript,
TranscriptionJob -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
TranscriptionJob -> Maybe Natural
mediaSampleRateHertz :: Prelude.Maybe Prelude.Natural
}
deriving (TranscriptionJob -> TranscriptionJob -> Bool
(TranscriptionJob -> TranscriptionJob -> Bool)
-> (TranscriptionJob -> TranscriptionJob -> Bool)
-> Eq TranscriptionJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TranscriptionJob -> TranscriptionJob -> Bool
$c/= :: TranscriptionJob -> TranscriptionJob -> Bool
== :: TranscriptionJob -> TranscriptionJob -> Bool
$c== :: TranscriptionJob -> TranscriptionJob -> Bool
Prelude.Eq, ReadPrec [TranscriptionJob]
ReadPrec TranscriptionJob
Int -> ReadS TranscriptionJob
ReadS [TranscriptionJob]
(Int -> ReadS TranscriptionJob)
-> ReadS [TranscriptionJob]
-> ReadPrec TranscriptionJob
-> ReadPrec [TranscriptionJob]
-> Read TranscriptionJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TranscriptionJob]
$creadListPrec :: ReadPrec [TranscriptionJob]
readPrec :: ReadPrec TranscriptionJob
$creadPrec :: ReadPrec TranscriptionJob
readList :: ReadS [TranscriptionJob]
$creadList :: ReadS [TranscriptionJob]
readsPrec :: Int -> ReadS TranscriptionJob
$creadsPrec :: Int -> ReadS TranscriptionJob
Prelude.Read, Int -> TranscriptionJob -> ShowS
[TranscriptionJob] -> ShowS
TranscriptionJob -> String
(Int -> TranscriptionJob -> ShowS)
-> (TranscriptionJob -> String)
-> ([TranscriptionJob] -> ShowS)
-> Show TranscriptionJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TranscriptionJob] -> ShowS
$cshowList :: [TranscriptionJob] -> ShowS
show :: TranscriptionJob -> String
$cshow :: TranscriptionJob -> String
showsPrec :: Int -> TranscriptionJob -> ShowS
$cshowsPrec :: Int -> TranscriptionJob -> ShowS
Prelude.Show, (forall x. TranscriptionJob -> Rep TranscriptionJob x)
-> (forall x. Rep TranscriptionJob x -> TranscriptionJob)
-> Generic TranscriptionJob
forall x. Rep TranscriptionJob x -> TranscriptionJob
forall x. TranscriptionJob -> Rep TranscriptionJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TranscriptionJob x -> TranscriptionJob
$cfrom :: forall x. TranscriptionJob -> Rep TranscriptionJob x
Prelude.Generic)
newTranscriptionJob ::
TranscriptionJob
newTranscriptionJob :: TranscriptionJob
newTranscriptionJob =
TranscriptionJob' :: Maybe POSIX
-> Maybe Text
-> Maybe ContentRedaction
-> Maybe Double
-> Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob
TranscriptionJob'
{ $sel:creationTime:TranscriptionJob' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:failureReason:TranscriptionJob' :: Maybe Text
failureReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:contentRedaction:TranscriptionJob' :: Maybe ContentRedaction
contentRedaction = Maybe ContentRedaction
forall a. Maybe a
Prelude.Nothing,
$sel:identifiedLanguageScore:TranscriptionJob' :: Maybe Double
identifiedLanguageScore = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:subtitles:TranscriptionJob' :: Maybe SubtitlesOutput
subtitles = Maybe SubtitlesOutput
forall a. Maybe a
Prelude.Nothing,
$sel:languageCode:TranscriptionJob' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
$sel:languageOptions:TranscriptionJob' :: Maybe (NonEmpty LanguageCode)
languageOptions = Maybe (NonEmpty LanguageCode)
forall a. Maybe a
Prelude.Nothing,
$sel:settings:TranscriptionJob' :: Maybe Settings
settings = Maybe Settings
forall a. Maybe a
Prelude.Nothing,
$sel:startTime:TranscriptionJob' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:completionTime:TranscriptionJob' :: Maybe POSIX
completionTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:media:TranscriptionJob' :: Maybe Media
media = Maybe Media
forall a. Maybe a
Prelude.Nothing,
$sel:mediaFormat:TranscriptionJob' :: Maybe MediaFormat
mediaFormat = Maybe MediaFormat
forall a. Maybe a
Prelude.Nothing,
$sel:modelSettings:TranscriptionJob' :: Maybe ModelSettings
modelSettings = Maybe ModelSettings
forall a. Maybe a
Prelude.Nothing,
$sel:transcriptionJobStatus:TranscriptionJob' :: Maybe TranscriptionJobStatus
transcriptionJobStatus = Maybe TranscriptionJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:jobExecutionSettings:TranscriptionJob' :: Maybe JobExecutionSettings
jobExecutionSettings = Maybe JobExecutionSettings
forall a. Maybe a
Prelude.Nothing,
$sel:transcriptionJobName:TranscriptionJob' :: Maybe Text
transcriptionJobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:identifyLanguage:TranscriptionJob' :: Maybe Bool
identifyLanguage = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:transcript:TranscriptionJob' :: Maybe Transcript
transcript = Maybe Transcript
forall a. Maybe a
Prelude.Nothing,
$sel:tags:TranscriptionJob' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
forall a. Maybe a
Prelude.Nothing,
$sel:mediaSampleRateHertz:TranscriptionJob' :: Maybe Natural
mediaSampleRateHertz = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
transcriptionJob_creationTime :: Lens.Lens' TranscriptionJob (Prelude.Maybe Prelude.UTCTime)
transcriptionJob_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_creationTime = (TranscriptionJob -> Maybe POSIX)
-> (TranscriptionJob -> Maybe POSIX -> TranscriptionJob)
-> Lens
TranscriptionJob TranscriptionJob (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:TranscriptionJob' :: TranscriptionJob -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe POSIX
a -> TranscriptionJob
s {$sel:creationTime:TranscriptionJob' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: TranscriptionJob) ((Maybe POSIX -> f (Maybe POSIX))
-> TranscriptionJob -> f TranscriptionJob)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TranscriptionJob
-> f TranscriptionJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
transcriptionJob_failureReason :: Lens.Lens' TranscriptionJob (Prelude.Maybe Prelude.Text)
transcriptionJob_failureReason :: (Maybe Text -> f (Maybe Text))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_failureReason = (TranscriptionJob -> Maybe Text)
-> (TranscriptionJob -> Maybe Text -> TranscriptionJob)
-> Lens TranscriptionJob TranscriptionJob (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:TranscriptionJob' :: TranscriptionJob -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe Text
a -> TranscriptionJob
s {$sel:failureReason:TranscriptionJob' :: Maybe Text
failureReason = Maybe Text
a} :: TranscriptionJob)
transcriptionJob_contentRedaction :: Lens.Lens' TranscriptionJob (Prelude.Maybe ContentRedaction)
transcriptionJob_contentRedaction :: (Maybe ContentRedaction -> f (Maybe ContentRedaction))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_contentRedaction = (TranscriptionJob -> Maybe ContentRedaction)
-> (TranscriptionJob -> Maybe ContentRedaction -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe ContentRedaction)
(Maybe ContentRedaction)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe ContentRedaction
contentRedaction :: Maybe ContentRedaction
$sel:contentRedaction:TranscriptionJob' :: TranscriptionJob -> Maybe ContentRedaction
contentRedaction} -> Maybe ContentRedaction
contentRedaction) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe ContentRedaction
a -> TranscriptionJob
s {$sel:contentRedaction:TranscriptionJob' :: Maybe ContentRedaction
contentRedaction = Maybe ContentRedaction
a} :: TranscriptionJob)
transcriptionJob_identifiedLanguageScore :: Lens.Lens' TranscriptionJob (Prelude.Maybe Prelude.Double)
transcriptionJob_identifiedLanguageScore :: (Maybe Double -> f (Maybe Double))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_identifiedLanguageScore = (TranscriptionJob -> Maybe Double)
-> (TranscriptionJob -> Maybe Double -> TranscriptionJob)
-> Lens
TranscriptionJob TranscriptionJob (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe Double
identifiedLanguageScore :: Maybe Double
$sel:identifiedLanguageScore:TranscriptionJob' :: TranscriptionJob -> Maybe Double
identifiedLanguageScore} -> Maybe Double
identifiedLanguageScore) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe Double
a -> TranscriptionJob
s {$sel:identifiedLanguageScore:TranscriptionJob' :: Maybe Double
identifiedLanguageScore = Maybe Double
a} :: TranscriptionJob)
transcriptionJob_subtitles :: Lens.Lens' TranscriptionJob (Prelude.Maybe SubtitlesOutput)
transcriptionJob_subtitles :: (Maybe SubtitlesOutput -> f (Maybe SubtitlesOutput))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_subtitles = (TranscriptionJob -> Maybe SubtitlesOutput)
-> (TranscriptionJob -> Maybe SubtitlesOutput -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe SubtitlesOutput)
(Maybe SubtitlesOutput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe SubtitlesOutput
subtitles :: Maybe SubtitlesOutput
$sel:subtitles:TranscriptionJob' :: TranscriptionJob -> Maybe SubtitlesOutput
subtitles} -> Maybe SubtitlesOutput
subtitles) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe SubtitlesOutput
a -> TranscriptionJob
s {$sel:subtitles:TranscriptionJob' :: Maybe SubtitlesOutput
subtitles = Maybe SubtitlesOutput
a} :: TranscriptionJob)
transcriptionJob_languageCode :: Lens.Lens' TranscriptionJob (Prelude.Maybe LanguageCode)
transcriptionJob_languageCode :: (Maybe LanguageCode -> f (Maybe LanguageCode))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_languageCode = (TranscriptionJob -> Maybe LanguageCode)
-> (TranscriptionJob -> Maybe LanguageCode -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe LanguageCode)
(Maybe LanguageCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:TranscriptionJob' :: TranscriptionJob -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe LanguageCode
a -> TranscriptionJob
s {$sel:languageCode:TranscriptionJob' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: TranscriptionJob)
transcriptionJob_languageOptions :: Lens.Lens' TranscriptionJob (Prelude.Maybe (Prelude.NonEmpty LanguageCode))
transcriptionJob_languageOptions :: (Maybe (NonEmpty LanguageCode)
-> f (Maybe (NonEmpty LanguageCode)))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_languageOptions = (TranscriptionJob -> Maybe (NonEmpty LanguageCode))
-> (TranscriptionJob
-> Maybe (NonEmpty LanguageCode) -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe (NonEmpty LanguageCode))
(Maybe (NonEmpty LanguageCode))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe (NonEmpty LanguageCode)
languageOptions :: Maybe (NonEmpty LanguageCode)
$sel:languageOptions:TranscriptionJob' :: TranscriptionJob -> Maybe (NonEmpty LanguageCode)
languageOptions} -> Maybe (NonEmpty LanguageCode)
languageOptions) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe (NonEmpty LanguageCode)
a -> TranscriptionJob
s {$sel:languageOptions:TranscriptionJob' :: Maybe (NonEmpty LanguageCode)
languageOptions = Maybe (NonEmpty LanguageCode)
a} :: TranscriptionJob) ((Maybe (NonEmpty LanguageCode)
-> f (Maybe (NonEmpty LanguageCode)))
-> TranscriptionJob -> f TranscriptionJob)
-> ((Maybe (NonEmpty LanguageCode)
-> f (Maybe (NonEmpty LanguageCode)))
-> Maybe (NonEmpty LanguageCode)
-> f (Maybe (NonEmpty LanguageCode)))
-> (Maybe (NonEmpty LanguageCode)
-> f (Maybe (NonEmpty LanguageCode)))
-> TranscriptionJob
-> f TranscriptionJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty LanguageCode)
(NonEmpty LanguageCode)
(NonEmpty LanguageCode)
(NonEmpty LanguageCode)
-> Iso
(Maybe (NonEmpty LanguageCode))
(Maybe (NonEmpty LanguageCode))
(Maybe (NonEmpty LanguageCode))
(Maybe (NonEmpty LanguageCode))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty LanguageCode)
(NonEmpty LanguageCode)
(NonEmpty LanguageCode)
(NonEmpty LanguageCode)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
transcriptionJob_settings :: Lens.Lens' TranscriptionJob (Prelude.Maybe Settings)
transcriptionJob_settings :: (Maybe Settings -> f (Maybe Settings))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_settings = (TranscriptionJob -> Maybe Settings)
-> (TranscriptionJob -> Maybe Settings -> TranscriptionJob)
-> Lens
TranscriptionJob TranscriptionJob (Maybe Settings) (Maybe Settings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe Settings
settings :: Maybe Settings
$sel:settings:TranscriptionJob' :: TranscriptionJob -> Maybe Settings
settings} -> Maybe Settings
settings) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe Settings
a -> TranscriptionJob
s {$sel:settings:TranscriptionJob' :: Maybe Settings
settings = Maybe Settings
a} :: TranscriptionJob)
transcriptionJob_startTime :: Lens.Lens' TranscriptionJob (Prelude.Maybe Prelude.UTCTime)
transcriptionJob_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_startTime = (TranscriptionJob -> Maybe POSIX)
-> (TranscriptionJob -> Maybe POSIX -> TranscriptionJob)
-> Lens
TranscriptionJob TranscriptionJob (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:TranscriptionJob' :: TranscriptionJob -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe POSIX
a -> TranscriptionJob
s {$sel:startTime:TranscriptionJob' :: Maybe POSIX
startTime = Maybe POSIX
a} :: TranscriptionJob) ((Maybe POSIX -> f (Maybe POSIX))
-> TranscriptionJob -> f TranscriptionJob)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TranscriptionJob
-> f TranscriptionJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
transcriptionJob_completionTime :: Lens.Lens' TranscriptionJob (Prelude.Maybe Prelude.UTCTime)
transcriptionJob_completionTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_completionTime = (TranscriptionJob -> Maybe POSIX)
-> (TranscriptionJob -> Maybe POSIX -> TranscriptionJob)
-> Lens
TranscriptionJob TranscriptionJob (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe POSIX
completionTime :: Maybe POSIX
$sel:completionTime:TranscriptionJob' :: TranscriptionJob -> Maybe POSIX
completionTime} -> Maybe POSIX
completionTime) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe POSIX
a -> TranscriptionJob
s {$sel:completionTime:TranscriptionJob' :: Maybe POSIX
completionTime = Maybe POSIX
a} :: TranscriptionJob) ((Maybe POSIX -> f (Maybe POSIX))
-> TranscriptionJob -> f TranscriptionJob)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TranscriptionJob
-> f TranscriptionJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
transcriptionJob_media :: Lens.Lens' TranscriptionJob (Prelude.Maybe Media)
transcriptionJob_media :: (Maybe Media -> f (Maybe Media))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_media = (TranscriptionJob -> Maybe Media)
-> (TranscriptionJob -> Maybe Media -> TranscriptionJob)
-> Lens
TranscriptionJob TranscriptionJob (Maybe Media) (Maybe Media)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe Media
media :: Maybe Media
$sel:media:TranscriptionJob' :: TranscriptionJob -> Maybe Media
media} -> Maybe Media
media) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe Media
a -> TranscriptionJob
s {$sel:media:TranscriptionJob' :: Maybe Media
media = Maybe Media
a} :: TranscriptionJob)
transcriptionJob_mediaFormat :: Lens.Lens' TranscriptionJob (Prelude.Maybe MediaFormat)
transcriptionJob_mediaFormat :: (Maybe MediaFormat -> f (Maybe MediaFormat))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_mediaFormat = (TranscriptionJob -> Maybe MediaFormat)
-> (TranscriptionJob -> Maybe MediaFormat -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe MediaFormat)
(Maybe MediaFormat)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe MediaFormat
mediaFormat :: Maybe MediaFormat
$sel:mediaFormat:TranscriptionJob' :: TranscriptionJob -> Maybe MediaFormat
mediaFormat} -> Maybe MediaFormat
mediaFormat) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe MediaFormat
a -> TranscriptionJob
s {$sel:mediaFormat:TranscriptionJob' :: Maybe MediaFormat
mediaFormat = Maybe MediaFormat
a} :: TranscriptionJob)
transcriptionJob_modelSettings :: Lens.Lens' TranscriptionJob (Prelude.Maybe ModelSettings)
transcriptionJob_modelSettings :: (Maybe ModelSettings -> f (Maybe ModelSettings))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_modelSettings = (TranscriptionJob -> Maybe ModelSettings)
-> (TranscriptionJob -> Maybe ModelSettings -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe ModelSettings)
(Maybe ModelSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe ModelSettings
modelSettings :: Maybe ModelSettings
$sel:modelSettings:TranscriptionJob' :: TranscriptionJob -> Maybe ModelSettings
modelSettings} -> Maybe ModelSettings
modelSettings) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe ModelSettings
a -> TranscriptionJob
s {$sel:modelSettings:TranscriptionJob' :: Maybe ModelSettings
modelSettings = Maybe ModelSettings
a} :: TranscriptionJob)
transcriptionJob_transcriptionJobStatus :: Lens.Lens' TranscriptionJob (Prelude.Maybe TranscriptionJobStatus)
transcriptionJob_transcriptionJobStatus :: (Maybe TranscriptionJobStatus -> f (Maybe TranscriptionJobStatus))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_transcriptionJobStatus = (TranscriptionJob -> Maybe TranscriptionJobStatus)
-> (TranscriptionJob
-> Maybe TranscriptionJobStatus -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe TranscriptionJobStatus)
(Maybe TranscriptionJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe TranscriptionJobStatus
transcriptionJobStatus :: Maybe TranscriptionJobStatus
$sel:transcriptionJobStatus:TranscriptionJob' :: TranscriptionJob -> Maybe TranscriptionJobStatus
transcriptionJobStatus} -> Maybe TranscriptionJobStatus
transcriptionJobStatus) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe TranscriptionJobStatus
a -> TranscriptionJob
s {$sel:transcriptionJobStatus:TranscriptionJob' :: Maybe TranscriptionJobStatus
transcriptionJobStatus = Maybe TranscriptionJobStatus
a} :: TranscriptionJob)
transcriptionJob_jobExecutionSettings :: Lens.Lens' TranscriptionJob (Prelude.Maybe JobExecutionSettings)
transcriptionJob_jobExecutionSettings :: (Maybe JobExecutionSettings -> f (Maybe JobExecutionSettings))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_jobExecutionSettings = (TranscriptionJob -> Maybe JobExecutionSettings)
-> (TranscriptionJob
-> Maybe JobExecutionSettings -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe JobExecutionSettings)
(Maybe JobExecutionSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe JobExecutionSettings
jobExecutionSettings :: Maybe JobExecutionSettings
$sel:jobExecutionSettings:TranscriptionJob' :: TranscriptionJob -> Maybe JobExecutionSettings
jobExecutionSettings} -> Maybe JobExecutionSettings
jobExecutionSettings) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe JobExecutionSettings
a -> TranscriptionJob
s {$sel:jobExecutionSettings:TranscriptionJob' :: Maybe JobExecutionSettings
jobExecutionSettings = Maybe JobExecutionSettings
a} :: TranscriptionJob)
transcriptionJob_transcriptionJobName :: Lens.Lens' TranscriptionJob (Prelude.Maybe Prelude.Text)
transcriptionJob_transcriptionJobName :: (Maybe Text -> f (Maybe Text))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_transcriptionJobName = (TranscriptionJob -> Maybe Text)
-> (TranscriptionJob -> Maybe Text -> TranscriptionJob)
-> Lens TranscriptionJob TranscriptionJob (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe Text
transcriptionJobName :: Maybe Text
$sel:transcriptionJobName:TranscriptionJob' :: TranscriptionJob -> Maybe Text
transcriptionJobName} -> Maybe Text
transcriptionJobName) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe Text
a -> TranscriptionJob
s {$sel:transcriptionJobName:TranscriptionJob' :: Maybe Text
transcriptionJobName = Maybe Text
a} :: TranscriptionJob)
transcriptionJob_identifyLanguage :: Lens.Lens' TranscriptionJob (Prelude.Maybe Prelude.Bool)
transcriptionJob_identifyLanguage :: (Maybe Bool -> f (Maybe Bool))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_identifyLanguage = (TranscriptionJob -> Maybe Bool)
-> (TranscriptionJob -> Maybe Bool -> TranscriptionJob)
-> Lens TranscriptionJob TranscriptionJob (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe Bool
identifyLanguage :: Maybe Bool
$sel:identifyLanguage:TranscriptionJob' :: TranscriptionJob -> Maybe Bool
identifyLanguage} -> Maybe Bool
identifyLanguage) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe Bool
a -> TranscriptionJob
s {$sel:identifyLanguage:TranscriptionJob' :: Maybe Bool
identifyLanguage = Maybe Bool
a} :: TranscriptionJob)
transcriptionJob_transcript :: Lens.Lens' TranscriptionJob (Prelude.Maybe Transcript)
transcriptionJob_transcript :: (Maybe Transcript -> f (Maybe Transcript))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_transcript = (TranscriptionJob -> Maybe Transcript)
-> (TranscriptionJob -> Maybe Transcript -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe Transcript)
(Maybe Transcript)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe Transcript
transcript :: Maybe Transcript
$sel:transcript:TranscriptionJob' :: TranscriptionJob -> Maybe Transcript
transcript} -> Maybe Transcript
transcript) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe Transcript
a -> TranscriptionJob
s {$sel:transcript:TranscriptionJob' :: Maybe Transcript
transcript = Maybe Transcript
a} :: TranscriptionJob)
transcriptionJob_tags :: Lens.Lens' TranscriptionJob (Prelude.Maybe (Prelude.NonEmpty Tag))
transcriptionJob_tags :: (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_tags = (TranscriptionJob -> Maybe (NonEmpty Tag))
-> (TranscriptionJob -> Maybe (NonEmpty Tag) -> TranscriptionJob)
-> Lens
TranscriptionJob
TranscriptionJob
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:TranscriptionJob' :: TranscriptionJob -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe (NonEmpty Tag)
a -> TranscriptionJob
s {$sel:tags:TranscriptionJob' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: TranscriptionJob) ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> TranscriptionJob -> f TranscriptionJob)
-> ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> TranscriptionJob
-> f TranscriptionJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
-> Iso
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
transcriptionJob_mediaSampleRateHertz :: Lens.Lens' TranscriptionJob (Prelude.Maybe Prelude.Natural)
transcriptionJob_mediaSampleRateHertz :: (Maybe Natural -> f (Maybe Natural))
-> TranscriptionJob -> f TranscriptionJob
transcriptionJob_mediaSampleRateHertz = (TranscriptionJob -> Maybe Natural)
-> (TranscriptionJob -> Maybe Natural -> TranscriptionJob)
-> Lens
TranscriptionJob TranscriptionJob (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TranscriptionJob' {Maybe Natural
mediaSampleRateHertz :: Maybe Natural
$sel:mediaSampleRateHertz:TranscriptionJob' :: TranscriptionJob -> Maybe Natural
mediaSampleRateHertz} -> Maybe Natural
mediaSampleRateHertz) (\s :: TranscriptionJob
s@TranscriptionJob' {} Maybe Natural
a -> TranscriptionJob
s {$sel:mediaSampleRateHertz:TranscriptionJob' :: Maybe Natural
mediaSampleRateHertz = Maybe Natural
a} :: TranscriptionJob)
instance Core.FromJSON TranscriptionJob where
parseJSON :: Value -> Parser TranscriptionJob
parseJSON =
String
-> (Object -> Parser TranscriptionJob)
-> Value
-> Parser TranscriptionJob
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"TranscriptionJob"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe ContentRedaction
-> Maybe Double
-> Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob
TranscriptionJob'
(Maybe POSIX
-> Maybe Text
-> Maybe ContentRedaction
-> Maybe Double
-> Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe ContentRedaction
-> Maybe Double
-> Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreationTime")
Parser
(Maybe Text
-> Maybe ContentRedaction
-> Maybe Double
-> Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe Text)
-> Parser
(Maybe ContentRedaction
-> Maybe Double
-> Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FailureReason")
Parser
(Maybe ContentRedaction
-> Maybe Double
-> Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe ContentRedaction)
-> Parser
(Maybe Double
-> Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ContentRedaction)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ContentRedaction")
Parser
(Maybe Double
-> Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe Double)
-> Parser
(Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IdentifiedLanguageScore")
Parser
(Maybe SubtitlesOutput
-> Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe SubtitlesOutput)
-> Parser
(Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SubtitlesOutput)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Subtitles")
Parser
(Maybe LanguageCode
-> Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe LanguageCode)
-> Parser
(Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LanguageCode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LanguageCode")
Parser
(Maybe (NonEmpty LanguageCode)
-> Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe (NonEmpty LanguageCode))
-> Parser
(Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty LanguageCode))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LanguageOptions")
Parser
(Maybe Settings
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe Settings)
-> Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Settings)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Settings")
Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe POSIX)
-> Parser
(Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"StartTime")
Parser
(Maybe POSIX
-> Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CompletionTime")
Parser
(Maybe Media
-> Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe Media)
-> Parser
(Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Media)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Media")
Parser
(Maybe MediaFormat
-> Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe MediaFormat)
-> Parser
(Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MediaFormat)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MediaFormat")
Parser
(Maybe ModelSettings
-> Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe ModelSettings)
-> Parser
(Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ModelSettings)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ModelSettings")
Parser
(Maybe TranscriptionJobStatus
-> Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe TranscriptionJobStatus)
-> Parser
(Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TranscriptionJobStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TranscriptionJobStatus")
Parser
(Maybe JobExecutionSettings
-> Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe JobExecutionSettings)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobExecutionSettings)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobExecutionSettings")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TranscriptionJobName")
Parser
(Maybe Bool
-> Maybe Transcript
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> TranscriptionJob)
-> Parser (Maybe Bool)
-> Parser
(Maybe Transcript
-> Maybe (NonEmpty Tag) -> Maybe Natural -> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IdentifyLanguage")
Parser
(Maybe Transcript
-> Maybe (NonEmpty Tag) -> Maybe Natural -> TranscriptionJob)
-> Parser (Maybe Transcript)
-> Parser
(Maybe (NonEmpty Tag) -> Maybe Natural -> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Transcript)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Transcript")
Parser (Maybe (NonEmpty Tag) -> Maybe Natural -> TranscriptionJob)
-> Parser (Maybe (NonEmpty Tag))
-> Parser (Maybe Natural -> TranscriptionJob)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty Tag))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Tags")
Parser (Maybe Natural -> TranscriptionJob)
-> Parser (Maybe Natural) -> Parser TranscriptionJob
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MediaSampleRateHertz")
)
instance Prelude.Hashable TranscriptionJob
instance Prelude.NFData TranscriptionJob