{-# 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.MedicalTranscript 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 MedicalTranscript = MedicalTranscript'
{
MedicalTranscript -> Maybe Text
transcriptFileUri :: Prelude.Maybe Prelude.Text
}
deriving (MedicalTranscript -> MedicalTranscript -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MedicalTranscript -> MedicalTranscript -> Bool
$c/= :: MedicalTranscript -> MedicalTranscript -> Bool
== :: MedicalTranscript -> MedicalTranscript -> Bool
$c== :: MedicalTranscript -> MedicalTranscript -> Bool
Prelude.Eq, ReadPrec [MedicalTranscript]
ReadPrec MedicalTranscript
Int -> ReadS MedicalTranscript
ReadS [MedicalTranscript]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MedicalTranscript]
$creadListPrec :: ReadPrec [MedicalTranscript]
readPrec :: ReadPrec MedicalTranscript
$creadPrec :: ReadPrec MedicalTranscript
readList :: ReadS [MedicalTranscript]
$creadList :: ReadS [MedicalTranscript]
readsPrec :: Int -> ReadS MedicalTranscript
$creadsPrec :: Int -> ReadS MedicalTranscript
Prelude.Read, Int -> MedicalTranscript -> ShowS
[MedicalTranscript] -> ShowS
MedicalTranscript -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MedicalTranscript] -> ShowS
$cshowList :: [MedicalTranscript] -> ShowS
show :: MedicalTranscript -> String
$cshow :: MedicalTranscript -> String
showsPrec :: Int -> MedicalTranscript -> ShowS
$cshowsPrec :: Int -> MedicalTranscript -> ShowS
Prelude.Show, forall x. Rep MedicalTranscript x -> MedicalTranscript
forall x. MedicalTranscript -> Rep MedicalTranscript x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MedicalTranscript x -> MedicalTranscript
$cfrom :: forall x. MedicalTranscript -> Rep MedicalTranscript x
Prelude.Generic)
newMedicalTranscript ::
MedicalTranscript
newMedicalTranscript :: MedicalTranscript
newMedicalTranscript =
MedicalTranscript'
{ $sel:transcriptFileUri:MedicalTranscript' :: Maybe Text
transcriptFileUri =
forall a. Maybe a
Prelude.Nothing
}
medicalTranscript_transcriptFileUri :: Lens.Lens' MedicalTranscript (Prelude.Maybe Prelude.Text)
medicalTranscript_transcriptFileUri :: Lens' MedicalTranscript (Maybe Text)
medicalTranscript_transcriptFileUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MedicalTranscript' {Maybe Text
transcriptFileUri :: Maybe Text
$sel:transcriptFileUri:MedicalTranscript' :: MedicalTranscript -> Maybe Text
transcriptFileUri} -> Maybe Text
transcriptFileUri) (\s :: MedicalTranscript
s@MedicalTranscript' {} Maybe Text
a -> MedicalTranscript
s {$sel:transcriptFileUri:MedicalTranscript' :: Maybe Text
transcriptFileUri = Maybe Text
a} :: MedicalTranscript)
instance Data.FromJSON MedicalTranscript where
parseJSON :: Value -> Parser MedicalTranscript
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"MedicalTranscript"
( \Object
x ->
Maybe Text -> MedicalTranscript
MedicalTranscript'
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
"TranscriptFileUri")
)
instance Prelude.Hashable MedicalTranscript where
hashWithSalt :: Int -> MedicalTranscript -> Int
hashWithSalt Int
_salt MedicalTranscript' {Maybe Text
transcriptFileUri :: Maybe Text
$sel:transcriptFileUri:MedicalTranscript' :: MedicalTranscript -> Maybe Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
transcriptFileUri
instance Prelude.NFData MedicalTranscript where
rnf :: MedicalTranscript -> ()
rnf MedicalTranscript' {Maybe Text
transcriptFileUri :: Maybe Text
$sel:transcriptFileUri:MedicalTranscript' :: MedicalTranscript -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
transcriptFileUri