{-# 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.Translate.ListTerminologies
(
ListTerminologies (..),
newListTerminologies,
listTerminologies_nextToken,
listTerminologies_maxResults,
ListTerminologiesResponse (..),
newListTerminologiesResponse,
listTerminologiesResponse_terminologyPropertiesList,
listTerminologiesResponse_nextToken,
listTerminologiesResponse_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.Translate.Types
data ListTerminologies = ListTerminologies'
{
ListTerminologies -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTerminologies -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListTerminologies -> ListTerminologies -> Bool
(ListTerminologies -> ListTerminologies -> Bool)
-> (ListTerminologies -> ListTerminologies -> Bool)
-> Eq ListTerminologies
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTerminologies -> ListTerminologies -> Bool
$c/= :: ListTerminologies -> ListTerminologies -> Bool
== :: ListTerminologies -> ListTerminologies -> Bool
$c== :: ListTerminologies -> ListTerminologies -> Bool
Prelude.Eq, ReadPrec [ListTerminologies]
ReadPrec ListTerminologies
Int -> ReadS ListTerminologies
ReadS [ListTerminologies]
(Int -> ReadS ListTerminologies)
-> ReadS [ListTerminologies]
-> ReadPrec ListTerminologies
-> ReadPrec [ListTerminologies]
-> Read ListTerminologies
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTerminologies]
$creadListPrec :: ReadPrec [ListTerminologies]
readPrec :: ReadPrec ListTerminologies
$creadPrec :: ReadPrec ListTerminologies
readList :: ReadS [ListTerminologies]
$creadList :: ReadS [ListTerminologies]
readsPrec :: Int -> ReadS ListTerminologies
$creadsPrec :: Int -> ReadS ListTerminologies
Prelude.Read, Int -> ListTerminologies -> ShowS
[ListTerminologies] -> ShowS
ListTerminologies -> String
(Int -> ListTerminologies -> ShowS)
-> (ListTerminologies -> String)
-> ([ListTerminologies] -> ShowS)
-> Show ListTerminologies
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTerminologies] -> ShowS
$cshowList :: [ListTerminologies] -> ShowS
show :: ListTerminologies -> String
$cshow :: ListTerminologies -> String
showsPrec :: Int -> ListTerminologies -> ShowS
$cshowsPrec :: Int -> ListTerminologies -> ShowS
Prelude.Show, (forall x. ListTerminologies -> Rep ListTerminologies x)
-> (forall x. Rep ListTerminologies x -> ListTerminologies)
-> Generic ListTerminologies
forall x. Rep ListTerminologies x -> ListTerminologies
forall x. ListTerminologies -> Rep ListTerminologies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTerminologies x -> ListTerminologies
$cfrom :: forall x. ListTerminologies -> Rep ListTerminologies x
Prelude.Generic)
newListTerminologies ::
ListTerminologies
newListTerminologies :: ListTerminologies
newListTerminologies =
ListTerminologies' :: Maybe Text -> Maybe Natural -> ListTerminologies
ListTerminologies'
{ $sel:nextToken:ListTerminologies' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListTerminologies' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listTerminologies_nextToken :: Lens.Lens' ListTerminologies (Prelude.Maybe Prelude.Text)
listTerminologies_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTerminologies -> f ListTerminologies
listTerminologies_nextToken = (ListTerminologies -> Maybe Text)
-> (ListTerminologies -> Maybe Text -> ListTerminologies)
-> Lens
ListTerminologies ListTerminologies (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTerminologies' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTerminologies' :: ListTerminologies -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTerminologies
s@ListTerminologies' {} Maybe Text
a -> ListTerminologies
s {$sel:nextToken:ListTerminologies' :: Maybe Text
nextToken = Maybe Text
a} :: ListTerminologies)
listTerminologies_maxResults :: Lens.Lens' ListTerminologies (Prelude.Maybe Prelude.Natural)
listTerminologies_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListTerminologies -> f ListTerminologies
listTerminologies_maxResults = (ListTerminologies -> Maybe Natural)
-> (ListTerminologies -> Maybe Natural -> ListTerminologies)
-> Lens
ListTerminologies ListTerminologies (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTerminologies' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTerminologies' :: ListTerminologies -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTerminologies
s@ListTerminologies' {} Maybe Natural
a -> ListTerminologies
s {$sel:maxResults:ListTerminologies' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTerminologies)
instance Core.AWSPager ListTerminologies where
page :: ListTerminologies
-> AWSResponse ListTerminologies -> Maybe ListTerminologies
page ListTerminologies
rq AWSResponse ListTerminologies
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTerminologies
ListTerminologiesResponse
rs
ListTerminologiesResponse
-> Getting (First Text) ListTerminologiesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTerminologiesResponse
-> Const (First Text) ListTerminologiesResponse
Lens' ListTerminologiesResponse (Maybe Text)
listTerminologiesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTerminologiesResponse
-> Const (First Text) ListTerminologiesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTerminologiesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListTerminologies
forall a. Maybe a
Prelude.Nothing
| Maybe [TerminologyProperties] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTerminologies
ListTerminologiesResponse
rs
ListTerminologiesResponse
-> Getting
(First [TerminologyProperties])
ListTerminologiesResponse
[TerminologyProperties]
-> Maybe [TerminologyProperties]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [TerminologyProperties]
-> Const
(First [TerminologyProperties]) (Maybe [TerminologyProperties]))
-> ListTerminologiesResponse
-> Const (First [TerminologyProperties]) ListTerminologiesResponse
Lens' ListTerminologiesResponse (Maybe [TerminologyProperties])
listTerminologiesResponse_terminologyPropertiesList
((Maybe [TerminologyProperties]
-> Const
(First [TerminologyProperties]) (Maybe [TerminologyProperties]))
-> ListTerminologiesResponse
-> Const (First [TerminologyProperties]) ListTerminologiesResponse)
-> (([TerminologyProperties]
-> Const (First [TerminologyProperties]) [TerminologyProperties])
-> Maybe [TerminologyProperties]
-> Const
(First [TerminologyProperties]) (Maybe [TerminologyProperties]))
-> Getting
(First [TerminologyProperties])
ListTerminologiesResponse
[TerminologyProperties]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TerminologyProperties]
-> Const (First [TerminologyProperties]) [TerminologyProperties])
-> Maybe [TerminologyProperties]
-> Const
(First [TerminologyProperties]) (Maybe [TerminologyProperties])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListTerminologies
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListTerminologies -> Maybe ListTerminologies
forall a. a -> Maybe a
Prelude.Just (ListTerminologies -> Maybe ListTerminologies)
-> ListTerminologies -> Maybe ListTerminologies
forall a b. (a -> b) -> a -> b
Prelude.$
ListTerminologies
rq
ListTerminologies
-> (ListTerminologies -> ListTerminologies) -> ListTerminologies
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTerminologies -> Identity ListTerminologies
Lens ListTerminologies ListTerminologies (Maybe Text) (Maybe Text)
listTerminologies_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListTerminologies -> Identity ListTerminologies)
-> Maybe Text -> ListTerminologies -> ListTerminologies
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTerminologies
ListTerminologiesResponse
rs
ListTerminologiesResponse
-> Getting (First Text) ListTerminologiesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTerminologiesResponse
-> Const (First Text) ListTerminologiesResponse
Lens' ListTerminologiesResponse (Maybe Text)
listTerminologiesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTerminologiesResponse
-> Const (First Text) ListTerminologiesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTerminologiesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListTerminologies where
type
AWSResponse ListTerminologies =
ListTerminologiesResponse
request :: ListTerminologies -> Request ListTerminologies
request = Service -> ListTerminologies -> Request ListTerminologies
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListTerminologies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTerminologies)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListTerminologies))
-> Logger
-> Service
-> Proxy ListTerminologies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTerminologies)))
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 [TerminologyProperties]
-> Maybe Text -> Int -> ListTerminologiesResponse
ListTerminologiesResponse'
(Maybe [TerminologyProperties]
-> Maybe Text -> Int -> ListTerminologiesResponse)
-> Either String (Maybe [TerminologyProperties])
-> Either String (Maybe Text -> Int -> ListTerminologiesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [TerminologyProperties]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TerminologyPropertiesList"
Either String (Maybe (Maybe [TerminologyProperties]))
-> Maybe [TerminologyProperties]
-> Either String (Maybe [TerminologyProperties])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TerminologyProperties]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListTerminologiesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListTerminologiesResponse)
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 -> ListTerminologiesResponse)
-> Either String Int -> Either String ListTerminologiesResponse
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 ListTerminologies
instance Prelude.NFData ListTerminologies
instance Core.ToHeaders ListTerminologies where
toHeaders :: ListTerminologies -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListTerminologies -> 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
"AWSShineFrontendService_20170701.ListTerminologies" ::
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 ListTerminologies where
toJSON :: ListTerminologies -> Value
toJSON ListTerminologies' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListTerminologies' :: ListTerminologies -> Maybe Natural
$sel:nextToken:ListTerminologies' :: ListTerminologies -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
"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 ListTerminologies where
toPath :: ListTerminologies -> ByteString
toPath = ByteString -> ListTerminologies -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListTerminologies where
toQuery :: ListTerminologies -> QueryString
toQuery = QueryString -> ListTerminologies -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListTerminologiesResponse = ListTerminologiesResponse'
{
ListTerminologiesResponse -> Maybe [TerminologyProperties]
terminologyPropertiesList :: Prelude.Maybe [TerminologyProperties],
ListTerminologiesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTerminologiesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListTerminologiesResponse -> ListTerminologiesResponse -> Bool
(ListTerminologiesResponse -> ListTerminologiesResponse -> Bool)
-> (ListTerminologiesResponse -> ListTerminologiesResponse -> Bool)
-> Eq ListTerminologiesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTerminologiesResponse -> ListTerminologiesResponse -> Bool
$c/= :: ListTerminologiesResponse -> ListTerminologiesResponse -> Bool
== :: ListTerminologiesResponse -> ListTerminologiesResponse -> Bool
$c== :: ListTerminologiesResponse -> ListTerminologiesResponse -> Bool
Prelude.Eq, ReadPrec [ListTerminologiesResponse]
ReadPrec ListTerminologiesResponse
Int -> ReadS ListTerminologiesResponse
ReadS [ListTerminologiesResponse]
(Int -> ReadS ListTerminologiesResponse)
-> ReadS [ListTerminologiesResponse]
-> ReadPrec ListTerminologiesResponse
-> ReadPrec [ListTerminologiesResponse]
-> Read ListTerminologiesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTerminologiesResponse]
$creadListPrec :: ReadPrec [ListTerminologiesResponse]
readPrec :: ReadPrec ListTerminologiesResponse
$creadPrec :: ReadPrec ListTerminologiesResponse
readList :: ReadS [ListTerminologiesResponse]
$creadList :: ReadS [ListTerminologiesResponse]
readsPrec :: Int -> ReadS ListTerminologiesResponse
$creadsPrec :: Int -> ReadS ListTerminologiesResponse
Prelude.Read, Int -> ListTerminologiesResponse -> ShowS
[ListTerminologiesResponse] -> ShowS
ListTerminologiesResponse -> String
(Int -> ListTerminologiesResponse -> ShowS)
-> (ListTerminologiesResponse -> String)
-> ([ListTerminologiesResponse] -> ShowS)
-> Show ListTerminologiesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTerminologiesResponse] -> ShowS
$cshowList :: [ListTerminologiesResponse] -> ShowS
show :: ListTerminologiesResponse -> String
$cshow :: ListTerminologiesResponse -> String
showsPrec :: Int -> ListTerminologiesResponse -> ShowS
$cshowsPrec :: Int -> ListTerminologiesResponse -> ShowS
Prelude.Show, (forall x.
ListTerminologiesResponse -> Rep ListTerminologiesResponse x)
-> (forall x.
Rep ListTerminologiesResponse x -> ListTerminologiesResponse)
-> Generic ListTerminologiesResponse
forall x.
Rep ListTerminologiesResponse x -> ListTerminologiesResponse
forall x.
ListTerminologiesResponse -> Rep ListTerminologiesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTerminologiesResponse x -> ListTerminologiesResponse
$cfrom :: forall x.
ListTerminologiesResponse -> Rep ListTerminologiesResponse x
Prelude.Generic)
newListTerminologiesResponse ::
Prelude.Int ->
ListTerminologiesResponse
newListTerminologiesResponse :: Int -> ListTerminologiesResponse
newListTerminologiesResponse Int
pHttpStatus_ =
ListTerminologiesResponse' :: Maybe [TerminologyProperties]
-> Maybe Text -> Int -> ListTerminologiesResponse
ListTerminologiesResponse'
{ $sel:terminologyPropertiesList:ListTerminologiesResponse' :: Maybe [TerminologyProperties]
terminologyPropertiesList =
Maybe [TerminologyProperties]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListTerminologiesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListTerminologiesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listTerminologiesResponse_terminologyPropertiesList :: Lens.Lens' ListTerminologiesResponse (Prelude.Maybe [TerminologyProperties])
listTerminologiesResponse_terminologyPropertiesList :: (Maybe [TerminologyProperties]
-> f (Maybe [TerminologyProperties]))
-> ListTerminologiesResponse -> f ListTerminologiesResponse
listTerminologiesResponse_terminologyPropertiesList = (ListTerminologiesResponse -> Maybe [TerminologyProperties])
-> (ListTerminologiesResponse
-> Maybe [TerminologyProperties] -> ListTerminologiesResponse)
-> Lens' ListTerminologiesResponse (Maybe [TerminologyProperties])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTerminologiesResponse' {Maybe [TerminologyProperties]
terminologyPropertiesList :: Maybe [TerminologyProperties]
$sel:terminologyPropertiesList:ListTerminologiesResponse' :: ListTerminologiesResponse -> Maybe [TerminologyProperties]
terminologyPropertiesList} -> Maybe [TerminologyProperties]
terminologyPropertiesList) (\s :: ListTerminologiesResponse
s@ListTerminologiesResponse' {} Maybe [TerminologyProperties]
a -> ListTerminologiesResponse
s {$sel:terminologyPropertiesList:ListTerminologiesResponse' :: Maybe [TerminologyProperties]
terminologyPropertiesList = Maybe [TerminologyProperties]
a} :: ListTerminologiesResponse) ((Maybe [TerminologyProperties]
-> f (Maybe [TerminologyProperties]))
-> ListTerminologiesResponse -> f ListTerminologiesResponse)
-> ((Maybe [TerminologyProperties]
-> f (Maybe [TerminologyProperties]))
-> Maybe [TerminologyProperties]
-> f (Maybe [TerminologyProperties]))
-> (Maybe [TerminologyProperties]
-> f (Maybe [TerminologyProperties]))
-> ListTerminologiesResponse
-> f ListTerminologiesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[TerminologyProperties]
[TerminologyProperties]
[TerminologyProperties]
[TerminologyProperties]
-> Iso
(Maybe [TerminologyProperties])
(Maybe [TerminologyProperties])
(Maybe [TerminologyProperties])
(Maybe [TerminologyProperties])
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
[TerminologyProperties]
[TerminologyProperties]
[TerminologyProperties]
[TerminologyProperties]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listTerminologiesResponse_nextToken :: Lens.Lens' ListTerminologiesResponse (Prelude.Maybe Prelude.Text)
listTerminologiesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTerminologiesResponse -> f ListTerminologiesResponse
listTerminologiesResponse_nextToken = (ListTerminologiesResponse -> Maybe Text)
-> (ListTerminologiesResponse
-> Maybe Text -> ListTerminologiesResponse)
-> Lens' ListTerminologiesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTerminologiesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTerminologiesResponse' :: ListTerminologiesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTerminologiesResponse
s@ListTerminologiesResponse' {} Maybe Text
a -> ListTerminologiesResponse
s {$sel:nextToken:ListTerminologiesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTerminologiesResponse)
listTerminologiesResponse_httpStatus :: Lens.Lens' ListTerminologiesResponse Prelude.Int
listTerminologiesResponse_httpStatus :: (Int -> f Int)
-> ListTerminologiesResponse -> f ListTerminologiesResponse
listTerminologiesResponse_httpStatus = (ListTerminologiesResponse -> Int)
-> (ListTerminologiesResponse -> Int -> ListTerminologiesResponse)
-> Lens ListTerminologiesResponse ListTerminologiesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTerminologiesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTerminologiesResponse' :: ListTerminologiesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTerminologiesResponse
s@ListTerminologiesResponse' {} Int
a -> ListTerminologiesResponse
s {$sel:httpStatus:ListTerminologiesResponse' :: Int
httpStatus = Int
a} :: ListTerminologiesResponse)
instance Prelude.NFData ListTerminologiesResponse