{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Transcribe.GetMedicalVocabulary
(
GetMedicalVocabulary (..),
newGetMedicalVocabulary,
getMedicalVocabulary_vocabularyName,
GetMedicalVocabularyResponse (..),
newGetMedicalVocabularyResponse,
getMedicalVocabularyResponse_failureReason,
getMedicalVocabularyResponse_languageCode,
getMedicalVocabularyResponse_downloadUri,
getMedicalVocabularyResponse_vocabularyName,
getMedicalVocabularyResponse_lastModifiedTime,
getMedicalVocabularyResponse_vocabularyState,
getMedicalVocabularyResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Transcribe.Types
data GetMedicalVocabulary = GetMedicalVocabulary'
{
GetMedicalVocabulary -> Text
vocabularyName :: Prelude.Text
}
deriving (GetMedicalVocabulary -> GetMedicalVocabulary -> Bool
(GetMedicalVocabulary -> GetMedicalVocabulary -> Bool)
-> (GetMedicalVocabulary -> GetMedicalVocabulary -> Bool)
-> Eq GetMedicalVocabulary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMedicalVocabulary -> GetMedicalVocabulary -> Bool
$c/= :: GetMedicalVocabulary -> GetMedicalVocabulary -> Bool
== :: GetMedicalVocabulary -> GetMedicalVocabulary -> Bool
$c== :: GetMedicalVocabulary -> GetMedicalVocabulary -> Bool
Prelude.Eq, ReadPrec [GetMedicalVocabulary]
ReadPrec GetMedicalVocabulary
Int -> ReadS GetMedicalVocabulary
ReadS [GetMedicalVocabulary]
(Int -> ReadS GetMedicalVocabulary)
-> ReadS [GetMedicalVocabulary]
-> ReadPrec GetMedicalVocabulary
-> ReadPrec [GetMedicalVocabulary]
-> Read GetMedicalVocabulary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMedicalVocabulary]
$creadListPrec :: ReadPrec [GetMedicalVocabulary]
readPrec :: ReadPrec GetMedicalVocabulary
$creadPrec :: ReadPrec GetMedicalVocabulary
readList :: ReadS [GetMedicalVocabulary]
$creadList :: ReadS [GetMedicalVocabulary]
readsPrec :: Int -> ReadS GetMedicalVocabulary
$creadsPrec :: Int -> ReadS GetMedicalVocabulary
Prelude.Read, Int -> GetMedicalVocabulary -> ShowS
[GetMedicalVocabulary] -> ShowS
GetMedicalVocabulary -> String
(Int -> GetMedicalVocabulary -> ShowS)
-> (GetMedicalVocabulary -> String)
-> ([GetMedicalVocabulary] -> ShowS)
-> Show GetMedicalVocabulary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMedicalVocabulary] -> ShowS
$cshowList :: [GetMedicalVocabulary] -> ShowS
show :: GetMedicalVocabulary -> String
$cshow :: GetMedicalVocabulary -> String
showsPrec :: Int -> GetMedicalVocabulary -> ShowS
$cshowsPrec :: Int -> GetMedicalVocabulary -> ShowS
Prelude.Show, (forall x. GetMedicalVocabulary -> Rep GetMedicalVocabulary x)
-> (forall x. Rep GetMedicalVocabulary x -> GetMedicalVocabulary)
-> Generic GetMedicalVocabulary
forall x. Rep GetMedicalVocabulary x -> GetMedicalVocabulary
forall x. GetMedicalVocabulary -> Rep GetMedicalVocabulary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetMedicalVocabulary x -> GetMedicalVocabulary
$cfrom :: forall x. GetMedicalVocabulary -> Rep GetMedicalVocabulary x
Prelude.Generic)
newGetMedicalVocabulary ::
Prelude.Text ->
GetMedicalVocabulary
newGetMedicalVocabulary :: Text -> GetMedicalVocabulary
newGetMedicalVocabulary Text
pVocabularyName_ =
GetMedicalVocabulary' :: Text -> GetMedicalVocabulary
GetMedicalVocabulary'
{ $sel:vocabularyName:GetMedicalVocabulary' :: Text
vocabularyName =
Text
pVocabularyName_
}
getMedicalVocabulary_vocabularyName :: Lens.Lens' GetMedicalVocabulary Prelude.Text
getMedicalVocabulary_vocabularyName :: (Text -> f Text) -> GetMedicalVocabulary -> f GetMedicalVocabulary
getMedicalVocabulary_vocabularyName = (GetMedicalVocabulary -> Text)
-> (GetMedicalVocabulary -> Text -> GetMedicalVocabulary)
-> Lens GetMedicalVocabulary GetMedicalVocabulary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMedicalVocabulary' {Text
vocabularyName :: Text
$sel:vocabularyName:GetMedicalVocabulary' :: GetMedicalVocabulary -> Text
vocabularyName} -> Text
vocabularyName) (\s :: GetMedicalVocabulary
s@GetMedicalVocabulary' {} Text
a -> GetMedicalVocabulary
s {$sel:vocabularyName:GetMedicalVocabulary' :: Text
vocabularyName = Text
a} :: GetMedicalVocabulary)
instance Core.AWSRequest GetMedicalVocabulary where
type
AWSResponse GetMedicalVocabulary =
GetMedicalVocabularyResponse
request :: GetMedicalVocabulary -> Request GetMedicalVocabulary
request = Service -> GetMedicalVocabulary -> Request GetMedicalVocabulary
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetMedicalVocabulary
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetMedicalVocabulary)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetMedicalVocabulary))
-> Logger
-> Service
-> Proxy GetMedicalVocabulary
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetMedicalVocabulary)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> GetMedicalVocabularyResponse
GetMedicalVocabularyResponse'
(Maybe Text
-> Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> GetMedicalVocabularyResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> GetMedicalVocabularyResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FailureReason")
Either
String
(Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> GetMedicalVocabularyResponse)
-> Either String (Maybe LanguageCode)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> GetMedicalVocabularyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe LanguageCode)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LanguageCode")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> GetMedicalVocabularyResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> GetMedicalVocabularyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DownloadUri")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> GetMedicalVocabularyResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe VocabularyState -> Int -> GetMedicalVocabularyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VocabularyName")
Either
String
(Maybe POSIX
-> Maybe VocabularyState -> Int -> GetMedicalVocabularyResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe VocabularyState -> Int -> GetMedicalVocabularyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedTime")
Either
String
(Maybe VocabularyState -> Int -> GetMedicalVocabularyResponse)
-> Either String (Maybe VocabularyState)
-> Either String (Int -> GetMedicalVocabularyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe VocabularyState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VocabularyState")
Either String (Int -> GetMedicalVocabularyResponse)
-> Either String Int -> Either String GetMedicalVocabularyResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetMedicalVocabulary
instance Prelude.NFData GetMedicalVocabulary
instance Core.ToHeaders GetMedicalVocabulary where
toHeaders :: GetMedicalVocabulary -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetMedicalVocabulary -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"Transcribe.GetMedicalVocabulary" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON GetMedicalVocabulary where
toJSON :: GetMedicalVocabulary -> Value
toJSON GetMedicalVocabulary' {Text
vocabularyName :: Text
$sel:vocabularyName:GetMedicalVocabulary' :: GetMedicalVocabulary -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"VocabularyName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
vocabularyName)
]
)
instance Core.ToPath GetMedicalVocabulary where
toPath :: GetMedicalVocabulary -> ByteString
toPath = ByteString -> GetMedicalVocabulary -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetMedicalVocabulary where
toQuery :: GetMedicalVocabulary -> QueryString
toQuery = QueryString -> GetMedicalVocabulary -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetMedicalVocabularyResponse = GetMedicalVocabularyResponse'
{
GetMedicalVocabularyResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
GetMedicalVocabularyResponse -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
GetMedicalVocabularyResponse -> Maybe Text
downloadUri :: Prelude.Maybe Prelude.Text,
GetMedicalVocabularyResponse -> Maybe Text
vocabularyName :: Prelude.Maybe Prelude.Text,
GetMedicalVocabularyResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
GetMedicalVocabularyResponse -> Maybe VocabularyState
vocabularyState :: Prelude.Maybe VocabularyState,
GetMedicalVocabularyResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetMedicalVocabularyResponse
-> GetMedicalVocabularyResponse -> Bool
(GetMedicalVocabularyResponse
-> GetMedicalVocabularyResponse -> Bool)
-> (GetMedicalVocabularyResponse
-> GetMedicalVocabularyResponse -> Bool)
-> Eq GetMedicalVocabularyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMedicalVocabularyResponse
-> GetMedicalVocabularyResponse -> Bool
$c/= :: GetMedicalVocabularyResponse
-> GetMedicalVocabularyResponse -> Bool
== :: GetMedicalVocabularyResponse
-> GetMedicalVocabularyResponse -> Bool
$c== :: GetMedicalVocabularyResponse
-> GetMedicalVocabularyResponse -> Bool
Prelude.Eq, ReadPrec [GetMedicalVocabularyResponse]
ReadPrec GetMedicalVocabularyResponse
Int -> ReadS GetMedicalVocabularyResponse
ReadS [GetMedicalVocabularyResponse]
(Int -> ReadS GetMedicalVocabularyResponse)
-> ReadS [GetMedicalVocabularyResponse]
-> ReadPrec GetMedicalVocabularyResponse
-> ReadPrec [GetMedicalVocabularyResponse]
-> Read GetMedicalVocabularyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMedicalVocabularyResponse]
$creadListPrec :: ReadPrec [GetMedicalVocabularyResponse]
readPrec :: ReadPrec GetMedicalVocabularyResponse
$creadPrec :: ReadPrec GetMedicalVocabularyResponse
readList :: ReadS [GetMedicalVocabularyResponse]
$creadList :: ReadS [GetMedicalVocabularyResponse]
readsPrec :: Int -> ReadS GetMedicalVocabularyResponse
$creadsPrec :: Int -> ReadS GetMedicalVocabularyResponse
Prelude.Read, Int -> GetMedicalVocabularyResponse -> ShowS
[GetMedicalVocabularyResponse] -> ShowS
GetMedicalVocabularyResponse -> String
(Int -> GetMedicalVocabularyResponse -> ShowS)
-> (GetMedicalVocabularyResponse -> String)
-> ([GetMedicalVocabularyResponse] -> ShowS)
-> Show GetMedicalVocabularyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMedicalVocabularyResponse] -> ShowS
$cshowList :: [GetMedicalVocabularyResponse] -> ShowS
show :: GetMedicalVocabularyResponse -> String
$cshow :: GetMedicalVocabularyResponse -> String
showsPrec :: Int -> GetMedicalVocabularyResponse -> ShowS
$cshowsPrec :: Int -> GetMedicalVocabularyResponse -> ShowS
Prelude.Show, (forall x.
GetMedicalVocabularyResponse -> Rep GetMedicalVocabularyResponse x)
-> (forall x.
Rep GetMedicalVocabularyResponse x -> GetMedicalVocabularyResponse)
-> Generic GetMedicalVocabularyResponse
forall x.
Rep GetMedicalVocabularyResponse x -> GetMedicalVocabularyResponse
forall x.
GetMedicalVocabularyResponse -> Rep GetMedicalVocabularyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetMedicalVocabularyResponse x -> GetMedicalVocabularyResponse
$cfrom :: forall x.
GetMedicalVocabularyResponse -> Rep GetMedicalVocabularyResponse x
Prelude.Generic)
newGetMedicalVocabularyResponse ::
Prelude.Int ->
GetMedicalVocabularyResponse
newGetMedicalVocabularyResponse :: Int -> GetMedicalVocabularyResponse
newGetMedicalVocabularyResponse Int
pHttpStatus_ =
GetMedicalVocabularyResponse' :: Maybe Text
-> Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe VocabularyState
-> Int
-> GetMedicalVocabularyResponse
GetMedicalVocabularyResponse'
{ $sel:failureReason:GetMedicalVocabularyResponse' :: Maybe Text
failureReason =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:languageCode:GetMedicalVocabularyResponse' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
$sel:downloadUri:GetMedicalVocabularyResponse' :: Maybe Text
downloadUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vocabularyName:GetMedicalVocabularyResponse' :: Maybe Text
vocabularyName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:GetMedicalVocabularyResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:vocabularyState:GetMedicalVocabularyResponse' :: Maybe VocabularyState
vocabularyState = Maybe VocabularyState
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetMedicalVocabularyResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getMedicalVocabularyResponse_failureReason :: Lens.Lens' GetMedicalVocabularyResponse (Prelude.Maybe Prelude.Text)
getMedicalVocabularyResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> GetMedicalVocabularyResponse -> f GetMedicalVocabularyResponse
getMedicalVocabularyResponse_failureReason = (GetMedicalVocabularyResponse -> Maybe Text)
-> (GetMedicalVocabularyResponse
-> Maybe Text -> GetMedicalVocabularyResponse)
-> Lens
GetMedicalVocabularyResponse
GetMedicalVocabularyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMedicalVocabularyResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:GetMedicalVocabularyResponse' :: GetMedicalVocabularyResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: GetMedicalVocabularyResponse
s@GetMedicalVocabularyResponse' {} Maybe Text
a -> GetMedicalVocabularyResponse
s {$sel:failureReason:GetMedicalVocabularyResponse' :: Maybe Text
failureReason = Maybe Text
a} :: GetMedicalVocabularyResponse)
getMedicalVocabularyResponse_languageCode :: Lens.Lens' GetMedicalVocabularyResponse (Prelude.Maybe LanguageCode)
getMedicalVocabularyResponse_languageCode :: (Maybe LanguageCode -> f (Maybe LanguageCode))
-> GetMedicalVocabularyResponse -> f GetMedicalVocabularyResponse
getMedicalVocabularyResponse_languageCode = (GetMedicalVocabularyResponse -> Maybe LanguageCode)
-> (GetMedicalVocabularyResponse
-> Maybe LanguageCode -> GetMedicalVocabularyResponse)
-> Lens
GetMedicalVocabularyResponse
GetMedicalVocabularyResponse
(Maybe LanguageCode)
(Maybe LanguageCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMedicalVocabularyResponse' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:GetMedicalVocabularyResponse' :: GetMedicalVocabularyResponse -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: GetMedicalVocabularyResponse
s@GetMedicalVocabularyResponse' {} Maybe LanguageCode
a -> GetMedicalVocabularyResponse
s {$sel:languageCode:GetMedicalVocabularyResponse' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: GetMedicalVocabularyResponse)
getMedicalVocabularyResponse_downloadUri :: Lens.Lens' GetMedicalVocabularyResponse (Prelude.Maybe Prelude.Text)
getMedicalVocabularyResponse_downloadUri :: (Maybe Text -> f (Maybe Text))
-> GetMedicalVocabularyResponse -> f GetMedicalVocabularyResponse
getMedicalVocabularyResponse_downloadUri = (GetMedicalVocabularyResponse -> Maybe Text)
-> (GetMedicalVocabularyResponse
-> Maybe Text -> GetMedicalVocabularyResponse)
-> Lens
GetMedicalVocabularyResponse
GetMedicalVocabularyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMedicalVocabularyResponse' {Maybe Text
downloadUri :: Maybe Text
$sel:downloadUri:GetMedicalVocabularyResponse' :: GetMedicalVocabularyResponse -> Maybe Text
downloadUri} -> Maybe Text
downloadUri) (\s :: GetMedicalVocabularyResponse
s@GetMedicalVocabularyResponse' {} Maybe Text
a -> GetMedicalVocabularyResponse
s {$sel:downloadUri:GetMedicalVocabularyResponse' :: Maybe Text
downloadUri = Maybe Text
a} :: GetMedicalVocabularyResponse)
getMedicalVocabularyResponse_vocabularyName :: Lens.Lens' GetMedicalVocabularyResponse (Prelude.Maybe Prelude.Text)
getMedicalVocabularyResponse_vocabularyName :: (Maybe Text -> f (Maybe Text))
-> GetMedicalVocabularyResponse -> f GetMedicalVocabularyResponse
getMedicalVocabularyResponse_vocabularyName = (GetMedicalVocabularyResponse -> Maybe Text)
-> (GetMedicalVocabularyResponse
-> Maybe Text -> GetMedicalVocabularyResponse)
-> Lens
GetMedicalVocabularyResponse
GetMedicalVocabularyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMedicalVocabularyResponse' {Maybe Text
vocabularyName :: Maybe Text
$sel:vocabularyName:GetMedicalVocabularyResponse' :: GetMedicalVocabularyResponse -> Maybe Text
vocabularyName} -> Maybe Text
vocabularyName) (\s :: GetMedicalVocabularyResponse
s@GetMedicalVocabularyResponse' {} Maybe Text
a -> GetMedicalVocabularyResponse
s {$sel:vocabularyName:GetMedicalVocabularyResponse' :: Maybe Text
vocabularyName = Maybe Text
a} :: GetMedicalVocabularyResponse)
getMedicalVocabularyResponse_lastModifiedTime :: Lens.Lens' GetMedicalVocabularyResponse (Prelude.Maybe Prelude.UTCTime)
getMedicalVocabularyResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMedicalVocabularyResponse -> f GetMedicalVocabularyResponse
getMedicalVocabularyResponse_lastModifiedTime = (GetMedicalVocabularyResponse -> Maybe POSIX)
-> (GetMedicalVocabularyResponse
-> Maybe POSIX -> GetMedicalVocabularyResponse)
-> Lens
GetMedicalVocabularyResponse
GetMedicalVocabularyResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMedicalVocabularyResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:GetMedicalVocabularyResponse' :: GetMedicalVocabularyResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: GetMedicalVocabularyResponse
s@GetMedicalVocabularyResponse' {} Maybe POSIX
a -> GetMedicalVocabularyResponse
s {$sel:lastModifiedTime:GetMedicalVocabularyResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: GetMedicalVocabularyResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetMedicalVocabularyResponse -> f GetMedicalVocabularyResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMedicalVocabularyResponse
-> f GetMedicalVocabularyResponse
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
getMedicalVocabularyResponse_vocabularyState :: Lens.Lens' GetMedicalVocabularyResponse (Prelude.Maybe VocabularyState)
getMedicalVocabularyResponse_vocabularyState :: (Maybe VocabularyState -> f (Maybe VocabularyState))
-> GetMedicalVocabularyResponse -> f GetMedicalVocabularyResponse
getMedicalVocabularyResponse_vocabularyState = (GetMedicalVocabularyResponse -> Maybe VocabularyState)
-> (GetMedicalVocabularyResponse
-> Maybe VocabularyState -> GetMedicalVocabularyResponse)
-> Lens
GetMedicalVocabularyResponse
GetMedicalVocabularyResponse
(Maybe VocabularyState)
(Maybe VocabularyState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMedicalVocabularyResponse' {Maybe VocabularyState
vocabularyState :: Maybe VocabularyState
$sel:vocabularyState:GetMedicalVocabularyResponse' :: GetMedicalVocabularyResponse -> Maybe VocabularyState
vocabularyState} -> Maybe VocabularyState
vocabularyState) (\s :: GetMedicalVocabularyResponse
s@GetMedicalVocabularyResponse' {} Maybe VocabularyState
a -> GetMedicalVocabularyResponse
s {$sel:vocabularyState:GetMedicalVocabularyResponse' :: Maybe VocabularyState
vocabularyState = Maybe VocabularyState
a} :: GetMedicalVocabularyResponse)
getMedicalVocabularyResponse_httpStatus :: Lens.Lens' GetMedicalVocabularyResponse Prelude.Int
getMedicalVocabularyResponse_httpStatus :: (Int -> f Int)
-> GetMedicalVocabularyResponse -> f GetMedicalVocabularyResponse
getMedicalVocabularyResponse_httpStatus = (GetMedicalVocabularyResponse -> Int)
-> (GetMedicalVocabularyResponse
-> Int -> GetMedicalVocabularyResponse)
-> Lens
GetMedicalVocabularyResponse GetMedicalVocabularyResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMedicalVocabularyResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetMedicalVocabularyResponse' :: GetMedicalVocabularyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetMedicalVocabularyResponse
s@GetMedicalVocabularyResponse' {} Int
a -> GetMedicalVocabularyResponse
s {$sel:httpStatus:GetMedicalVocabularyResponse' :: Int
httpStatus = Int
a} :: GetMedicalVocabularyResponse)
instance Prelude.NFData GetMedicalVocabularyResponse