{-# 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.MedicalTranscript
-- 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.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

-- | Provides you with the Amazon S3 URI you can use to access your
-- transcript.
--
-- /See:/ 'newMedicalTranscript' smart constructor.
data MedicalTranscript = MedicalTranscript'
  { -- | The Amazon S3 location of your transcript. You can use this URI to
    -- access or download your transcript.
    --
    -- Note that this is the Amazon S3 location you specified in your request
    -- using the @OutputBucketName@ parameter.
    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)

-- |
-- Create a value of 'MedicalTranscript' 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:
--
-- 'transcriptFileUri', 'medicalTranscript_transcriptFileUri' - The Amazon S3 location of your transcript. You can use this URI to
-- access or download your transcript.
--
-- Note that this is the Amazon S3 location you specified in your request
-- using the @OutputBucketName@ parameter.
newMedicalTranscript ::
  MedicalTranscript
newMedicalTranscript :: MedicalTranscript
newMedicalTranscript =
  MedicalTranscript'
    { $sel:transcriptFileUri:MedicalTranscript' :: Maybe Text
transcriptFileUri =
        forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon S3 location of your transcript. You can use this URI to
-- access or download your transcript.
--
-- Note that this is the Amazon S3 location you specified in your request
-- using the @OutputBucketName@ parameter.
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