{-# 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.Comprehend.ListEntityRecognizers
(
ListEntityRecognizers (..),
newListEntityRecognizers,
listEntityRecognizers_nextToken,
listEntityRecognizers_filter,
listEntityRecognizers_maxResults,
ListEntityRecognizersResponse (..),
newListEntityRecognizersResponse,
listEntityRecognizersResponse_nextToken,
listEntityRecognizersResponse_entityRecognizerPropertiesList,
listEntityRecognizersResponse_httpStatus,
)
where
import Amazonka.Comprehend.Types
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
data ListEntityRecognizers = ListEntityRecognizers'
{
ListEntityRecognizers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListEntityRecognizers -> Maybe EntityRecognizerFilter
filter' :: Prelude.Maybe EntityRecognizerFilter,
ListEntityRecognizers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListEntityRecognizers -> ListEntityRecognizers -> Bool
(ListEntityRecognizers -> ListEntityRecognizers -> Bool)
-> (ListEntityRecognizers -> ListEntityRecognizers -> Bool)
-> Eq ListEntityRecognizers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEntityRecognizers -> ListEntityRecognizers -> Bool
$c/= :: ListEntityRecognizers -> ListEntityRecognizers -> Bool
== :: ListEntityRecognizers -> ListEntityRecognizers -> Bool
$c== :: ListEntityRecognizers -> ListEntityRecognizers -> Bool
Prelude.Eq, ReadPrec [ListEntityRecognizers]
ReadPrec ListEntityRecognizers
Int -> ReadS ListEntityRecognizers
ReadS [ListEntityRecognizers]
(Int -> ReadS ListEntityRecognizers)
-> ReadS [ListEntityRecognizers]
-> ReadPrec ListEntityRecognizers
-> ReadPrec [ListEntityRecognizers]
-> Read ListEntityRecognizers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEntityRecognizers]
$creadListPrec :: ReadPrec [ListEntityRecognizers]
readPrec :: ReadPrec ListEntityRecognizers
$creadPrec :: ReadPrec ListEntityRecognizers
readList :: ReadS [ListEntityRecognizers]
$creadList :: ReadS [ListEntityRecognizers]
readsPrec :: Int -> ReadS ListEntityRecognizers
$creadsPrec :: Int -> ReadS ListEntityRecognizers
Prelude.Read, Int -> ListEntityRecognizers -> ShowS
[ListEntityRecognizers] -> ShowS
ListEntityRecognizers -> String
(Int -> ListEntityRecognizers -> ShowS)
-> (ListEntityRecognizers -> String)
-> ([ListEntityRecognizers] -> ShowS)
-> Show ListEntityRecognizers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEntityRecognizers] -> ShowS
$cshowList :: [ListEntityRecognizers] -> ShowS
show :: ListEntityRecognizers -> String
$cshow :: ListEntityRecognizers -> String
showsPrec :: Int -> ListEntityRecognizers -> ShowS
$cshowsPrec :: Int -> ListEntityRecognizers -> ShowS
Prelude.Show, (forall x. ListEntityRecognizers -> Rep ListEntityRecognizers x)
-> (forall x. Rep ListEntityRecognizers x -> ListEntityRecognizers)
-> Generic ListEntityRecognizers
forall x. Rep ListEntityRecognizers x -> ListEntityRecognizers
forall x. ListEntityRecognizers -> Rep ListEntityRecognizers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListEntityRecognizers x -> ListEntityRecognizers
$cfrom :: forall x. ListEntityRecognizers -> Rep ListEntityRecognizers x
Prelude.Generic)
newListEntityRecognizers ::
ListEntityRecognizers
newListEntityRecognizers :: ListEntityRecognizers
newListEntityRecognizers =
ListEntityRecognizers' :: Maybe Text
-> Maybe EntityRecognizerFilter
-> Maybe Natural
-> ListEntityRecognizers
ListEntityRecognizers'
{ $sel:nextToken:ListEntityRecognizers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:filter':ListEntityRecognizers' :: Maybe EntityRecognizerFilter
filter' = Maybe EntityRecognizerFilter
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListEntityRecognizers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listEntityRecognizers_nextToken :: Lens.Lens' ListEntityRecognizers (Prelude.Maybe Prelude.Text)
listEntityRecognizers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEntityRecognizers -> f ListEntityRecognizers
listEntityRecognizers_nextToken = (ListEntityRecognizers -> Maybe Text)
-> (ListEntityRecognizers -> Maybe Text -> ListEntityRecognizers)
-> Lens
ListEntityRecognizers
ListEntityRecognizers
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntityRecognizers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEntityRecognizers' :: ListEntityRecognizers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEntityRecognizers
s@ListEntityRecognizers' {} Maybe Text
a -> ListEntityRecognizers
s {$sel:nextToken:ListEntityRecognizers' :: Maybe Text
nextToken = Maybe Text
a} :: ListEntityRecognizers)
listEntityRecognizers_filter :: Lens.Lens' ListEntityRecognizers (Prelude.Maybe EntityRecognizerFilter)
listEntityRecognizers_filter :: (Maybe EntityRecognizerFilter -> f (Maybe EntityRecognizerFilter))
-> ListEntityRecognizers -> f ListEntityRecognizers
listEntityRecognizers_filter = (ListEntityRecognizers -> Maybe EntityRecognizerFilter)
-> (ListEntityRecognizers
-> Maybe EntityRecognizerFilter -> ListEntityRecognizers)
-> Lens
ListEntityRecognizers
ListEntityRecognizers
(Maybe EntityRecognizerFilter)
(Maybe EntityRecognizerFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntityRecognizers' {Maybe EntityRecognizerFilter
filter' :: Maybe EntityRecognizerFilter
$sel:filter':ListEntityRecognizers' :: ListEntityRecognizers -> Maybe EntityRecognizerFilter
filter'} -> Maybe EntityRecognizerFilter
filter') (\s :: ListEntityRecognizers
s@ListEntityRecognizers' {} Maybe EntityRecognizerFilter
a -> ListEntityRecognizers
s {$sel:filter':ListEntityRecognizers' :: Maybe EntityRecognizerFilter
filter' = Maybe EntityRecognizerFilter
a} :: ListEntityRecognizers)
listEntityRecognizers_maxResults :: Lens.Lens' ListEntityRecognizers (Prelude.Maybe Prelude.Natural)
listEntityRecognizers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListEntityRecognizers -> f ListEntityRecognizers
listEntityRecognizers_maxResults = (ListEntityRecognizers -> Maybe Natural)
-> (ListEntityRecognizers
-> Maybe Natural -> ListEntityRecognizers)
-> Lens
ListEntityRecognizers
ListEntityRecognizers
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntityRecognizers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListEntityRecognizers' :: ListEntityRecognizers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListEntityRecognizers
s@ListEntityRecognizers' {} Maybe Natural
a -> ListEntityRecognizers
s {$sel:maxResults:ListEntityRecognizers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListEntityRecognizers)
instance Core.AWSPager ListEntityRecognizers where
page :: ListEntityRecognizers
-> AWSResponse ListEntityRecognizers -> Maybe ListEntityRecognizers
page ListEntityRecognizers
rq AWSResponse ListEntityRecognizers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListEntityRecognizers
ListEntityRecognizersResponse
rs
ListEntityRecognizersResponse
-> Getting (First Text) ListEntityRecognizersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListEntityRecognizersResponse
-> Const (First Text) ListEntityRecognizersResponse
Lens' ListEntityRecognizersResponse (Maybe Text)
listEntityRecognizersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListEntityRecognizersResponse
-> Const (First Text) ListEntityRecognizersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListEntityRecognizersResponse 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 ListEntityRecognizers
forall a. Maybe a
Prelude.Nothing
| Maybe [EntityRecognizerProperties] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListEntityRecognizers
ListEntityRecognizersResponse
rs
ListEntityRecognizersResponse
-> Getting
(First [EntityRecognizerProperties])
ListEntityRecognizersResponse
[EntityRecognizerProperties]
-> Maybe [EntityRecognizerProperties]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [EntityRecognizerProperties]
-> Const
(First [EntityRecognizerProperties])
(Maybe [EntityRecognizerProperties]))
-> ListEntityRecognizersResponse
-> Const
(First [EntityRecognizerProperties]) ListEntityRecognizersResponse
Lens'
ListEntityRecognizersResponse (Maybe [EntityRecognizerProperties])
listEntityRecognizersResponse_entityRecognizerPropertiesList
((Maybe [EntityRecognizerProperties]
-> Const
(First [EntityRecognizerProperties])
(Maybe [EntityRecognizerProperties]))
-> ListEntityRecognizersResponse
-> Const
(First [EntityRecognizerProperties]) ListEntityRecognizersResponse)
-> (([EntityRecognizerProperties]
-> Const
(First [EntityRecognizerProperties]) [EntityRecognizerProperties])
-> Maybe [EntityRecognizerProperties]
-> Const
(First [EntityRecognizerProperties])
(Maybe [EntityRecognizerProperties]))
-> Getting
(First [EntityRecognizerProperties])
ListEntityRecognizersResponse
[EntityRecognizerProperties]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([EntityRecognizerProperties]
-> Const
(First [EntityRecognizerProperties]) [EntityRecognizerProperties])
-> Maybe [EntityRecognizerProperties]
-> Const
(First [EntityRecognizerProperties])
(Maybe [EntityRecognizerProperties])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListEntityRecognizers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListEntityRecognizers -> Maybe ListEntityRecognizers
forall a. a -> Maybe a
Prelude.Just (ListEntityRecognizers -> Maybe ListEntityRecognizers)
-> ListEntityRecognizers -> Maybe ListEntityRecognizers
forall a b. (a -> b) -> a -> b
Prelude.$
ListEntityRecognizers
rq
ListEntityRecognizers
-> (ListEntityRecognizers -> ListEntityRecognizers)
-> ListEntityRecognizers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListEntityRecognizers -> Identity ListEntityRecognizers
Lens
ListEntityRecognizers
ListEntityRecognizers
(Maybe Text)
(Maybe Text)
listEntityRecognizers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListEntityRecognizers -> Identity ListEntityRecognizers)
-> Maybe Text -> ListEntityRecognizers -> ListEntityRecognizers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListEntityRecognizers
ListEntityRecognizersResponse
rs
ListEntityRecognizersResponse
-> Getting (First Text) ListEntityRecognizersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListEntityRecognizersResponse
-> Const (First Text) ListEntityRecognizersResponse
Lens' ListEntityRecognizersResponse (Maybe Text)
listEntityRecognizersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListEntityRecognizersResponse
-> Const (First Text) ListEntityRecognizersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListEntityRecognizersResponse 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 ListEntityRecognizers where
type
AWSResponse ListEntityRecognizers =
ListEntityRecognizersResponse
request :: ListEntityRecognizers -> Request ListEntityRecognizers
request = Service -> ListEntityRecognizers -> Request ListEntityRecognizers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListEntityRecognizers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListEntityRecognizers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListEntityRecognizers))
-> Logger
-> Service
-> Proxy ListEntityRecognizers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListEntityRecognizers)))
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 [EntityRecognizerProperties]
-> Int
-> ListEntityRecognizersResponse
ListEntityRecognizersResponse'
(Maybe Text
-> Maybe [EntityRecognizerProperties]
-> Int
-> ListEntityRecognizersResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [EntityRecognizerProperties]
-> Int -> ListEntityRecognizersResponse)
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
"NextToken")
Either
String
(Maybe [EntityRecognizerProperties]
-> Int -> ListEntityRecognizersResponse)
-> Either String (Maybe [EntityRecognizerProperties])
-> Either String (Int -> ListEntityRecognizersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [EntityRecognizerProperties]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EntityRecognizerPropertiesList"
Either String (Maybe (Maybe [EntityRecognizerProperties]))
-> Maybe [EntityRecognizerProperties]
-> Either String (Maybe [EntityRecognizerProperties])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [EntityRecognizerProperties]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListEntityRecognizersResponse)
-> Either String Int -> Either String ListEntityRecognizersResponse
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 ListEntityRecognizers
instance Prelude.NFData ListEntityRecognizers
instance Core.ToHeaders ListEntityRecognizers where
toHeaders :: ListEntityRecognizers -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListEntityRecognizers -> 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
"Comprehend_20171127.ListEntityRecognizers" ::
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 ListEntityRecognizers where
toJSON :: ListEntityRecognizers -> Value
toJSON ListEntityRecognizers' {Maybe Natural
Maybe Text
Maybe EntityRecognizerFilter
maxResults :: Maybe Natural
filter' :: Maybe EntityRecognizerFilter
nextToken :: Maybe Text
$sel:maxResults:ListEntityRecognizers' :: ListEntityRecognizers -> Maybe Natural
$sel:filter':ListEntityRecognizers' :: ListEntityRecognizers -> Maybe EntityRecognizerFilter
$sel:nextToken:ListEntityRecognizers' :: ListEntityRecognizers -> 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
"Filter" Text -> EntityRecognizerFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (EntityRecognizerFilter -> Pair)
-> Maybe EntityRecognizerFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EntityRecognizerFilter
filter',
(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 ListEntityRecognizers where
toPath :: ListEntityRecognizers -> ByteString
toPath = ByteString -> ListEntityRecognizers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListEntityRecognizers where
toQuery :: ListEntityRecognizers -> QueryString
toQuery = QueryString -> ListEntityRecognizers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListEntityRecognizersResponse = ListEntityRecognizersResponse'
{
ListEntityRecognizersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListEntityRecognizersResponse -> Maybe [EntityRecognizerProperties]
entityRecognizerPropertiesList :: Prelude.Maybe [EntityRecognizerProperties],
ListEntityRecognizersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListEntityRecognizersResponse
-> ListEntityRecognizersResponse -> Bool
(ListEntityRecognizersResponse
-> ListEntityRecognizersResponse -> Bool)
-> (ListEntityRecognizersResponse
-> ListEntityRecognizersResponse -> Bool)
-> Eq ListEntityRecognizersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEntityRecognizersResponse
-> ListEntityRecognizersResponse -> Bool
$c/= :: ListEntityRecognizersResponse
-> ListEntityRecognizersResponse -> Bool
== :: ListEntityRecognizersResponse
-> ListEntityRecognizersResponse -> Bool
$c== :: ListEntityRecognizersResponse
-> ListEntityRecognizersResponse -> Bool
Prelude.Eq, Int -> ListEntityRecognizersResponse -> ShowS
[ListEntityRecognizersResponse] -> ShowS
ListEntityRecognizersResponse -> String
(Int -> ListEntityRecognizersResponse -> ShowS)
-> (ListEntityRecognizersResponse -> String)
-> ([ListEntityRecognizersResponse] -> ShowS)
-> Show ListEntityRecognizersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEntityRecognizersResponse] -> ShowS
$cshowList :: [ListEntityRecognizersResponse] -> ShowS
show :: ListEntityRecognizersResponse -> String
$cshow :: ListEntityRecognizersResponse -> String
showsPrec :: Int -> ListEntityRecognizersResponse -> ShowS
$cshowsPrec :: Int -> ListEntityRecognizersResponse -> ShowS
Prelude.Show, (forall x.
ListEntityRecognizersResponse
-> Rep ListEntityRecognizersResponse x)
-> (forall x.
Rep ListEntityRecognizersResponse x
-> ListEntityRecognizersResponse)
-> Generic ListEntityRecognizersResponse
forall x.
Rep ListEntityRecognizersResponse x
-> ListEntityRecognizersResponse
forall x.
ListEntityRecognizersResponse
-> Rep ListEntityRecognizersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEntityRecognizersResponse x
-> ListEntityRecognizersResponse
$cfrom :: forall x.
ListEntityRecognizersResponse
-> Rep ListEntityRecognizersResponse x
Prelude.Generic)
newListEntityRecognizersResponse ::
Prelude.Int ->
ListEntityRecognizersResponse
newListEntityRecognizersResponse :: Int -> ListEntityRecognizersResponse
newListEntityRecognizersResponse Int
pHttpStatus_ =
ListEntityRecognizersResponse' :: Maybe Text
-> Maybe [EntityRecognizerProperties]
-> Int
-> ListEntityRecognizersResponse
ListEntityRecognizersResponse'
{ $sel:nextToken:ListEntityRecognizersResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:entityRecognizerPropertiesList:ListEntityRecognizersResponse' :: Maybe [EntityRecognizerProperties]
entityRecognizerPropertiesList =
Maybe [EntityRecognizerProperties]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListEntityRecognizersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listEntityRecognizersResponse_nextToken :: Lens.Lens' ListEntityRecognizersResponse (Prelude.Maybe Prelude.Text)
listEntityRecognizersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEntityRecognizersResponse -> f ListEntityRecognizersResponse
listEntityRecognizersResponse_nextToken = (ListEntityRecognizersResponse -> Maybe Text)
-> (ListEntityRecognizersResponse
-> Maybe Text -> ListEntityRecognizersResponse)
-> Lens' ListEntityRecognizersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntityRecognizersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEntityRecognizersResponse' :: ListEntityRecognizersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEntityRecognizersResponse
s@ListEntityRecognizersResponse' {} Maybe Text
a -> ListEntityRecognizersResponse
s {$sel:nextToken:ListEntityRecognizersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListEntityRecognizersResponse)
listEntityRecognizersResponse_entityRecognizerPropertiesList :: Lens.Lens' ListEntityRecognizersResponse (Prelude.Maybe [EntityRecognizerProperties])
listEntityRecognizersResponse_entityRecognizerPropertiesList :: (Maybe [EntityRecognizerProperties]
-> f (Maybe [EntityRecognizerProperties]))
-> ListEntityRecognizersResponse -> f ListEntityRecognizersResponse
listEntityRecognizersResponse_entityRecognizerPropertiesList = (ListEntityRecognizersResponse
-> Maybe [EntityRecognizerProperties])
-> (ListEntityRecognizersResponse
-> Maybe [EntityRecognizerProperties]
-> ListEntityRecognizersResponse)
-> Lens'
ListEntityRecognizersResponse (Maybe [EntityRecognizerProperties])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntityRecognizersResponse' {Maybe [EntityRecognizerProperties]
entityRecognizerPropertiesList :: Maybe [EntityRecognizerProperties]
$sel:entityRecognizerPropertiesList:ListEntityRecognizersResponse' :: ListEntityRecognizersResponse -> Maybe [EntityRecognizerProperties]
entityRecognizerPropertiesList} -> Maybe [EntityRecognizerProperties]
entityRecognizerPropertiesList) (\s :: ListEntityRecognizersResponse
s@ListEntityRecognizersResponse' {} Maybe [EntityRecognizerProperties]
a -> ListEntityRecognizersResponse
s {$sel:entityRecognizerPropertiesList:ListEntityRecognizersResponse' :: Maybe [EntityRecognizerProperties]
entityRecognizerPropertiesList = Maybe [EntityRecognizerProperties]
a} :: ListEntityRecognizersResponse) ((Maybe [EntityRecognizerProperties]
-> f (Maybe [EntityRecognizerProperties]))
-> ListEntityRecognizersResponse
-> f ListEntityRecognizersResponse)
-> ((Maybe [EntityRecognizerProperties]
-> f (Maybe [EntityRecognizerProperties]))
-> Maybe [EntityRecognizerProperties]
-> f (Maybe [EntityRecognizerProperties]))
-> (Maybe [EntityRecognizerProperties]
-> f (Maybe [EntityRecognizerProperties]))
-> ListEntityRecognizersResponse
-> f ListEntityRecognizersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[EntityRecognizerProperties]
[EntityRecognizerProperties]
[EntityRecognizerProperties]
[EntityRecognizerProperties]
-> Iso
(Maybe [EntityRecognizerProperties])
(Maybe [EntityRecognizerProperties])
(Maybe [EntityRecognizerProperties])
(Maybe [EntityRecognizerProperties])
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
[EntityRecognizerProperties]
[EntityRecognizerProperties]
[EntityRecognizerProperties]
[EntityRecognizerProperties]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listEntityRecognizersResponse_httpStatus :: Lens.Lens' ListEntityRecognizersResponse Prelude.Int
listEntityRecognizersResponse_httpStatus :: (Int -> f Int)
-> ListEntityRecognizersResponse -> f ListEntityRecognizersResponse
listEntityRecognizersResponse_httpStatus = (ListEntityRecognizersResponse -> Int)
-> (ListEntityRecognizersResponse
-> Int -> ListEntityRecognizersResponse)
-> Lens
ListEntityRecognizersResponse ListEntityRecognizersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntityRecognizersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListEntityRecognizersResponse' :: ListEntityRecognizersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListEntityRecognizersResponse
s@ListEntityRecognizersResponse' {} Int
a -> ListEntityRecognizersResponse
s {$sel:httpStatus:ListEntityRecognizersResponse' :: Int
httpStatus = Int
a} :: ListEntityRecognizersResponse)
instance Prelude.NFData ListEntityRecognizersResponse