{-# 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.ListMedicalVocabularies
(
ListMedicalVocabularies (..),
newListMedicalVocabularies,
listMedicalVocabularies_nameContains,
listMedicalVocabularies_nextToken,
listMedicalVocabularies_stateEquals,
listMedicalVocabularies_maxResults,
ListMedicalVocabulariesResponse (..),
newListMedicalVocabulariesResponse,
listMedicalVocabulariesResponse_vocabularies,
listMedicalVocabulariesResponse_status,
listMedicalVocabulariesResponse_nextToken,
listMedicalVocabulariesResponse_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 ListMedicalVocabularies = ListMedicalVocabularies'
{
ListMedicalVocabularies -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
ListMedicalVocabularies -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListMedicalVocabularies -> Maybe VocabularyState
stateEquals :: Prelude.Maybe VocabularyState,
ListMedicalVocabularies -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListMedicalVocabularies -> ListMedicalVocabularies -> Bool
(ListMedicalVocabularies -> ListMedicalVocabularies -> Bool)
-> (ListMedicalVocabularies -> ListMedicalVocabularies -> Bool)
-> Eq ListMedicalVocabularies
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMedicalVocabularies -> ListMedicalVocabularies -> Bool
$c/= :: ListMedicalVocabularies -> ListMedicalVocabularies -> Bool
== :: ListMedicalVocabularies -> ListMedicalVocabularies -> Bool
$c== :: ListMedicalVocabularies -> ListMedicalVocabularies -> Bool
Prelude.Eq, ReadPrec [ListMedicalVocabularies]
ReadPrec ListMedicalVocabularies
Int -> ReadS ListMedicalVocabularies
ReadS [ListMedicalVocabularies]
(Int -> ReadS ListMedicalVocabularies)
-> ReadS [ListMedicalVocabularies]
-> ReadPrec ListMedicalVocabularies
-> ReadPrec [ListMedicalVocabularies]
-> Read ListMedicalVocabularies
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMedicalVocabularies]
$creadListPrec :: ReadPrec [ListMedicalVocabularies]
readPrec :: ReadPrec ListMedicalVocabularies
$creadPrec :: ReadPrec ListMedicalVocabularies
readList :: ReadS [ListMedicalVocabularies]
$creadList :: ReadS [ListMedicalVocabularies]
readsPrec :: Int -> ReadS ListMedicalVocabularies
$creadsPrec :: Int -> ReadS ListMedicalVocabularies
Prelude.Read, Int -> ListMedicalVocabularies -> ShowS
[ListMedicalVocabularies] -> ShowS
ListMedicalVocabularies -> String
(Int -> ListMedicalVocabularies -> ShowS)
-> (ListMedicalVocabularies -> String)
-> ([ListMedicalVocabularies] -> ShowS)
-> Show ListMedicalVocabularies
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMedicalVocabularies] -> ShowS
$cshowList :: [ListMedicalVocabularies] -> ShowS
show :: ListMedicalVocabularies -> String
$cshow :: ListMedicalVocabularies -> String
showsPrec :: Int -> ListMedicalVocabularies -> ShowS
$cshowsPrec :: Int -> ListMedicalVocabularies -> ShowS
Prelude.Show, (forall x.
ListMedicalVocabularies -> Rep ListMedicalVocabularies x)
-> (forall x.
Rep ListMedicalVocabularies x -> ListMedicalVocabularies)
-> Generic ListMedicalVocabularies
forall x. Rep ListMedicalVocabularies x -> ListMedicalVocabularies
forall x. ListMedicalVocabularies -> Rep ListMedicalVocabularies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListMedicalVocabularies x -> ListMedicalVocabularies
$cfrom :: forall x. ListMedicalVocabularies -> Rep ListMedicalVocabularies x
Prelude.Generic)
newListMedicalVocabularies ::
ListMedicalVocabularies
newListMedicalVocabularies :: ListMedicalVocabularies
newListMedicalVocabularies =
ListMedicalVocabularies' :: Maybe Text
-> Maybe Text
-> Maybe VocabularyState
-> Maybe Natural
-> ListMedicalVocabularies
ListMedicalVocabularies'
{ $sel:nameContains:ListMedicalVocabularies' :: Maybe Text
nameContains =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListMedicalVocabularies' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stateEquals:ListMedicalVocabularies' :: Maybe VocabularyState
stateEquals = Maybe VocabularyState
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListMedicalVocabularies' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listMedicalVocabularies_nameContains :: Lens.Lens' ListMedicalVocabularies (Prelude.Maybe Prelude.Text)
listMedicalVocabularies_nameContains :: (Maybe Text -> f (Maybe Text))
-> ListMedicalVocabularies -> f ListMedicalVocabularies
listMedicalVocabularies_nameContains = (ListMedicalVocabularies -> Maybe Text)
-> (ListMedicalVocabularies
-> Maybe Text -> ListMedicalVocabularies)
-> Lens
ListMedicalVocabularies
ListMedicalVocabularies
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMedicalVocabularies' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListMedicalVocabularies' :: ListMedicalVocabularies -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListMedicalVocabularies
s@ListMedicalVocabularies' {} Maybe Text
a -> ListMedicalVocabularies
s {$sel:nameContains:ListMedicalVocabularies' :: Maybe Text
nameContains = Maybe Text
a} :: ListMedicalVocabularies)
listMedicalVocabularies_nextToken :: Lens.Lens' ListMedicalVocabularies (Prelude.Maybe Prelude.Text)
listMedicalVocabularies_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListMedicalVocabularies -> f ListMedicalVocabularies
listMedicalVocabularies_nextToken = (ListMedicalVocabularies -> Maybe Text)
-> (ListMedicalVocabularies
-> Maybe Text -> ListMedicalVocabularies)
-> Lens
ListMedicalVocabularies
ListMedicalVocabularies
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMedicalVocabularies' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListMedicalVocabularies' :: ListMedicalVocabularies -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListMedicalVocabularies
s@ListMedicalVocabularies' {} Maybe Text
a -> ListMedicalVocabularies
s {$sel:nextToken:ListMedicalVocabularies' :: Maybe Text
nextToken = Maybe Text
a} :: ListMedicalVocabularies)
listMedicalVocabularies_stateEquals :: Lens.Lens' ListMedicalVocabularies (Prelude.Maybe VocabularyState)
listMedicalVocabularies_stateEquals :: (Maybe VocabularyState -> f (Maybe VocabularyState))
-> ListMedicalVocabularies -> f ListMedicalVocabularies
listMedicalVocabularies_stateEquals = (ListMedicalVocabularies -> Maybe VocabularyState)
-> (ListMedicalVocabularies
-> Maybe VocabularyState -> ListMedicalVocabularies)
-> Lens
ListMedicalVocabularies
ListMedicalVocabularies
(Maybe VocabularyState)
(Maybe VocabularyState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMedicalVocabularies' {Maybe VocabularyState
stateEquals :: Maybe VocabularyState
$sel:stateEquals:ListMedicalVocabularies' :: ListMedicalVocabularies -> Maybe VocabularyState
stateEquals} -> Maybe VocabularyState
stateEquals) (\s :: ListMedicalVocabularies
s@ListMedicalVocabularies' {} Maybe VocabularyState
a -> ListMedicalVocabularies
s {$sel:stateEquals:ListMedicalVocabularies' :: Maybe VocabularyState
stateEquals = Maybe VocabularyState
a} :: ListMedicalVocabularies)
listMedicalVocabularies_maxResults :: Lens.Lens' ListMedicalVocabularies (Prelude.Maybe Prelude.Natural)
listMedicalVocabularies_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListMedicalVocabularies -> f ListMedicalVocabularies
listMedicalVocabularies_maxResults = (ListMedicalVocabularies -> Maybe Natural)
-> (ListMedicalVocabularies
-> Maybe Natural -> ListMedicalVocabularies)
-> Lens
ListMedicalVocabularies
ListMedicalVocabularies
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMedicalVocabularies' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListMedicalVocabularies' :: ListMedicalVocabularies -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListMedicalVocabularies
s@ListMedicalVocabularies' {} Maybe Natural
a -> ListMedicalVocabularies
s {$sel:maxResults:ListMedicalVocabularies' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListMedicalVocabularies)
instance Core.AWSRequest ListMedicalVocabularies where
type
AWSResponse ListMedicalVocabularies =
ListMedicalVocabulariesResponse
request :: ListMedicalVocabularies -> Request ListMedicalVocabularies
request = Service
-> ListMedicalVocabularies -> Request ListMedicalVocabularies
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListMedicalVocabularies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListMedicalVocabularies)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListMedicalVocabularies))
-> Logger
-> Service
-> Proxy ListMedicalVocabularies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListMedicalVocabularies)))
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 [VocabularyInfo]
-> Maybe VocabularyState
-> Maybe Text
-> Int
-> ListMedicalVocabulariesResponse
ListMedicalVocabulariesResponse'
(Maybe [VocabularyInfo]
-> Maybe VocabularyState
-> Maybe Text
-> Int
-> ListMedicalVocabulariesResponse)
-> Either String (Maybe [VocabularyInfo])
-> Either
String
(Maybe VocabularyState
-> Maybe Text -> Int -> ListMedicalVocabulariesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [VocabularyInfo]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Vocabularies" Either String (Maybe (Maybe [VocabularyInfo]))
-> Maybe [VocabularyInfo] -> Either String (Maybe [VocabularyInfo])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [VocabularyInfo]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe VocabularyState
-> Maybe Text -> Int -> ListMedicalVocabulariesResponse)
-> Either String (Maybe VocabularyState)
-> Either
String (Maybe Text -> Int -> ListMedicalVocabulariesResponse)
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
"Status")
Either
String (Maybe Text -> Int -> ListMedicalVocabulariesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListMedicalVocabulariesResponse)
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
"NextToken")
Either String (Int -> ListMedicalVocabulariesResponse)
-> Either String Int
-> Either String ListMedicalVocabulariesResponse
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 ListMedicalVocabularies
instance Prelude.NFData ListMedicalVocabularies
instance Core.ToHeaders ListMedicalVocabularies where
toHeaders :: ListMedicalVocabularies -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListMedicalVocabularies -> 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.ListMedicalVocabularies" ::
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 ListMedicalVocabularies where
toJSON :: ListMedicalVocabularies -> Value
toJSON ListMedicalVocabularies' {Maybe Natural
Maybe Text
Maybe VocabularyState
maxResults :: Maybe Natural
stateEquals :: Maybe VocabularyState
nextToken :: Maybe Text
nameContains :: Maybe Text
$sel:maxResults:ListMedicalVocabularies' :: ListMedicalVocabularies -> Maybe Natural
$sel:stateEquals:ListMedicalVocabularies' :: ListMedicalVocabularies -> Maybe VocabularyState
$sel:nextToken:ListMedicalVocabularies' :: ListMedicalVocabularies -> Maybe Text
$sel:nameContains:ListMedicalVocabularies' :: ListMedicalVocabularies -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NameContains" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nameContains,
(Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"StateEquals" Text -> VocabularyState -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (VocabularyState -> Pair) -> Maybe VocabularyState -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VocabularyState
stateEquals,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListMedicalVocabularies where
toPath :: ListMedicalVocabularies -> ByteString
toPath = ByteString -> ListMedicalVocabularies -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListMedicalVocabularies where
toQuery :: ListMedicalVocabularies -> QueryString
toQuery = QueryString -> ListMedicalVocabularies -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListMedicalVocabulariesResponse = ListMedicalVocabulariesResponse'
{
ListMedicalVocabulariesResponse -> Maybe [VocabularyInfo]
vocabularies :: Prelude.Maybe [VocabularyInfo],
ListMedicalVocabulariesResponse -> Maybe VocabularyState
status :: Prelude.Maybe VocabularyState,
ListMedicalVocabulariesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListMedicalVocabulariesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListMedicalVocabulariesResponse
-> ListMedicalVocabulariesResponse -> Bool
(ListMedicalVocabulariesResponse
-> ListMedicalVocabulariesResponse -> Bool)
-> (ListMedicalVocabulariesResponse
-> ListMedicalVocabulariesResponse -> Bool)
-> Eq ListMedicalVocabulariesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMedicalVocabulariesResponse
-> ListMedicalVocabulariesResponse -> Bool
$c/= :: ListMedicalVocabulariesResponse
-> ListMedicalVocabulariesResponse -> Bool
== :: ListMedicalVocabulariesResponse
-> ListMedicalVocabulariesResponse -> Bool
$c== :: ListMedicalVocabulariesResponse
-> ListMedicalVocabulariesResponse -> Bool
Prelude.Eq, ReadPrec [ListMedicalVocabulariesResponse]
ReadPrec ListMedicalVocabulariesResponse
Int -> ReadS ListMedicalVocabulariesResponse
ReadS [ListMedicalVocabulariesResponse]
(Int -> ReadS ListMedicalVocabulariesResponse)
-> ReadS [ListMedicalVocabulariesResponse]
-> ReadPrec ListMedicalVocabulariesResponse
-> ReadPrec [ListMedicalVocabulariesResponse]
-> Read ListMedicalVocabulariesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMedicalVocabulariesResponse]
$creadListPrec :: ReadPrec [ListMedicalVocabulariesResponse]
readPrec :: ReadPrec ListMedicalVocabulariesResponse
$creadPrec :: ReadPrec ListMedicalVocabulariesResponse
readList :: ReadS [ListMedicalVocabulariesResponse]
$creadList :: ReadS [ListMedicalVocabulariesResponse]
readsPrec :: Int -> ReadS ListMedicalVocabulariesResponse
$creadsPrec :: Int -> ReadS ListMedicalVocabulariesResponse
Prelude.Read, Int -> ListMedicalVocabulariesResponse -> ShowS
[ListMedicalVocabulariesResponse] -> ShowS
ListMedicalVocabulariesResponse -> String
(Int -> ListMedicalVocabulariesResponse -> ShowS)
-> (ListMedicalVocabulariesResponse -> String)
-> ([ListMedicalVocabulariesResponse] -> ShowS)
-> Show ListMedicalVocabulariesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMedicalVocabulariesResponse] -> ShowS
$cshowList :: [ListMedicalVocabulariesResponse] -> ShowS
show :: ListMedicalVocabulariesResponse -> String
$cshow :: ListMedicalVocabulariesResponse -> String
showsPrec :: Int -> ListMedicalVocabulariesResponse -> ShowS
$cshowsPrec :: Int -> ListMedicalVocabulariesResponse -> ShowS
Prelude.Show, (forall x.
ListMedicalVocabulariesResponse
-> Rep ListMedicalVocabulariesResponse x)
-> (forall x.
Rep ListMedicalVocabulariesResponse x
-> ListMedicalVocabulariesResponse)
-> Generic ListMedicalVocabulariesResponse
forall x.
Rep ListMedicalVocabulariesResponse x
-> ListMedicalVocabulariesResponse
forall x.
ListMedicalVocabulariesResponse
-> Rep ListMedicalVocabulariesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListMedicalVocabulariesResponse x
-> ListMedicalVocabulariesResponse
$cfrom :: forall x.
ListMedicalVocabulariesResponse
-> Rep ListMedicalVocabulariesResponse x
Prelude.Generic)
newListMedicalVocabulariesResponse ::
Prelude.Int ->
ListMedicalVocabulariesResponse
newListMedicalVocabulariesResponse :: Int -> ListMedicalVocabulariesResponse
newListMedicalVocabulariesResponse Int
pHttpStatus_ =
ListMedicalVocabulariesResponse' :: Maybe [VocabularyInfo]
-> Maybe VocabularyState
-> Maybe Text
-> Int
-> ListMedicalVocabulariesResponse
ListMedicalVocabulariesResponse'
{ $sel:vocabularies:ListMedicalVocabulariesResponse' :: Maybe [VocabularyInfo]
vocabularies =
Maybe [VocabularyInfo]
forall a. Maybe a
Prelude.Nothing,
$sel:status:ListMedicalVocabulariesResponse' :: Maybe VocabularyState
status = Maybe VocabularyState
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListMedicalVocabulariesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListMedicalVocabulariesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listMedicalVocabulariesResponse_vocabularies :: Lens.Lens' ListMedicalVocabulariesResponse (Prelude.Maybe [VocabularyInfo])
listMedicalVocabulariesResponse_vocabularies :: (Maybe [VocabularyInfo] -> f (Maybe [VocabularyInfo]))
-> ListMedicalVocabulariesResponse
-> f ListMedicalVocabulariesResponse
listMedicalVocabulariesResponse_vocabularies = (ListMedicalVocabulariesResponse -> Maybe [VocabularyInfo])
-> (ListMedicalVocabulariesResponse
-> Maybe [VocabularyInfo] -> ListMedicalVocabulariesResponse)
-> Lens
ListMedicalVocabulariesResponse
ListMedicalVocabulariesResponse
(Maybe [VocabularyInfo])
(Maybe [VocabularyInfo])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMedicalVocabulariesResponse' {Maybe [VocabularyInfo]
vocabularies :: Maybe [VocabularyInfo]
$sel:vocabularies:ListMedicalVocabulariesResponse' :: ListMedicalVocabulariesResponse -> Maybe [VocabularyInfo]
vocabularies} -> Maybe [VocabularyInfo]
vocabularies) (\s :: ListMedicalVocabulariesResponse
s@ListMedicalVocabulariesResponse' {} Maybe [VocabularyInfo]
a -> ListMedicalVocabulariesResponse
s {$sel:vocabularies:ListMedicalVocabulariesResponse' :: Maybe [VocabularyInfo]
vocabularies = Maybe [VocabularyInfo]
a} :: ListMedicalVocabulariesResponse) ((Maybe [VocabularyInfo] -> f (Maybe [VocabularyInfo]))
-> ListMedicalVocabulariesResponse
-> f ListMedicalVocabulariesResponse)
-> ((Maybe [VocabularyInfo] -> f (Maybe [VocabularyInfo]))
-> Maybe [VocabularyInfo] -> f (Maybe [VocabularyInfo]))
-> (Maybe [VocabularyInfo] -> f (Maybe [VocabularyInfo]))
-> ListMedicalVocabulariesResponse
-> f ListMedicalVocabulariesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[VocabularyInfo] [VocabularyInfo] [VocabularyInfo] [VocabularyInfo]
-> Iso
(Maybe [VocabularyInfo])
(Maybe [VocabularyInfo])
(Maybe [VocabularyInfo])
(Maybe [VocabularyInfo])
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
[VocabularyInfo] [VocabularyInfo] [VocabularyInfo] [VocabularyInfo]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listMedicalVocabulariesResponse_status :: Lens.Lens' ListMedicalVocabulariesResponse (Prelude.Maybe VocabularyState)
listMedicalVocabulariesResponse_status :: (Maybe VocabularyState -> f (Maybe VocabularyState))
-> ListMedicalVocabulariesResponse
-> f ListMedicalVocabulariesResponse
listMedicalVocabulariesResponse_status = (ListMedicalVocabulariesResponse -> Maybe VocabularyState)
-> (ListMedicalVocabulariesResponse
-> Maybe VocabularyState -> ListMedicalVocabulariesResponse)
-> Lens
ListMedicalVocabulariesResponse
ListMedicalVocabulariesResponse
(Maybe VocabularyState)
(Maybe VocabularyState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMedicalVocabulariesResponse' {Maybe VocabularyState
status :: Maybe VocabularyState
$sel:status:ListMedicalVocabulariesResponse' :: ListMedicalVocabulariesResponse -> Maybe VocabularyState
status} -> Maybe VocabularyState
status) (\s :: ListMedicalVocabulariesResponse
s@ListMedicalVocabulariesResponse' {} Maybe VocabularyState
a -> ListMedicalVocabulariesResponse
s {$sel:status:ListMedicalVocabulariesResponse' :: Maybe VocabularyState
status = Maybe VocabularyState
a} :: ListMedicalVocabulariesResponse)
listMedicalVocabulariesResponse_nextToken :: Lens.Lens' ListMedicalVocabulariesResponse (Prelude.Maybe Prelude.Text)
listMedicalVocabulariesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListMedicalVocabulariesResponse
-> f ListMedicalVocabulariesResponse
listMedicalVocabulariesResponse_nextToken = (ListMedicalVocabulariesResponse -> Maybe Text)
-> (ListMedicalVocabulariesResponse
-> Maybe Text -> ListMedicalVocabulariesResponse)
-> Lens
ListMedicalVocabulariesResponse
ListMedicalVocabulariesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMedicalVocabulariesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListMedicalVocabulariesResponse' :: ListMedicalVocabulariesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListMedicalVocabulariesResponse
s@ListMedicalVocabulariesResponse' {} Maybe Text
a -> ListMedicalVocabulariesResponse
s {$sel:nextToken:ListMedicalVocabulariesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListMedicalVocabulariesResponse)
listMedicalVocabulariesResponse_httpStatus :: Lens.Lens' ListMedicalVocabulariesResponse Prelude.Int
listMedicalVocabulariesResponse_httpStatus :: (Int -> f Int)
-> ListMedicalVocabulariesResponse
-> f ListMedicalVocabulariesResponse
listMedicalVocabulariesResponse_httpStatus = (ListMedicalVocabulariesResponse -> Int)
-> (ListMedicalVocabulariesResponse
-> Int -> ListMedicalVocabulariesResponse)
-> Lens
ListMedicalVocabulariesResponse
ListMedicalVocabulariesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMedicalVocabulariesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListMedicalVocabulariesResponse' :: ListMedicalVocabulariesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListMedicalVocabulariesResponse
s@ListMedicalVocabulariesResponse' {} Int
a -> ListMedicalVocabulariesResponse
s {$sel:httpStatus:ListMedicalVocabulariesResponse' :: Int
httpStatus = Int
a} :: ListMedicalVocabulariesResponse)
instance
Prelude.NFData
ListMedicalVocabulariesResponse