{-# 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.ListDocumentClassificationJobs
(
ListDocumentClassificationJobs (..),
newListDocumentClassificationJobs,
listDocumentClassificationJobs_nextToken,
listDocumentClassificationJobs_filter,
listDocumentClassificationJobs_maxResults,
ListDocumentClassificationJobsResponse (..),
newListDocumentClassificationJobsResponse,
listDocumentClassificationJobsResponse_nextToken,
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList,
listDocumentClassificationJobsResponse_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 ListDocumentClassificationJobs = ListDocumentClassificationJobs'
{
ListDocumentClassificationJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDocumentClassificationJobs
-> Maybe DocumentClassificationJobFilter
filter' :: Prelude.Maybe DocumentClassificationJobFilter,
ListDocumentClassificationJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListDocumentClassificationJobs
-> ListDocumentClassificationJobs -> Bool
(ListDocumentClassificationJobs
-> ListDocumentClassificationJobs -> Bool)
-> (ListDocumentClassificationJobs
-> ListDocumentClassificationJobs -> Bool)
-> Eq ListDocumentClassificationJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDocumentClassificationJobs
-> ListDocumentClassificationJobs -> Bool
$c/= :: ListDocumentClassificationJobs
-> ListDocumentClassificationJobs -> Bool
== :: ListDocumentClassificationJobs
-> ListDocumentClassificationJobs -> Bool
$c== :: ListDocumentClassificationJobs
-> ListDocumentClassificationJobs -> Bool
Prelude.Eq, ReadPrec [ListDocumentClassificationJobs]
ReadPrec ListDocumentClassificationJobs
Int -> ReadS ListDocumentClassificationJobs
ReadS [ListDocumentClassificationJobs]
(Int -> ReadS ListDocumentClassificationJobs)
-> ReadS [ListDocumentClassificationJobs]
-> ReadPrec ListDocumentClassificationJobs
-> ReadPrec [ListDocumentClassificationJobs]
-> Read ListDocumentClassificationJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDocumentClassificationJobs]
$creadListPrec :: ReadPrec [ListDocumentClassificationJobs]
readPrec :: ReadPrec ListDocumentClassificationJobs
$creadPrec :: ReadPrec ListDocumentClassificationJobs
readList :: ReadS [ListDocumentClassificationJobs]
$creadList :: ReadS [ListDocumentClassificationJobs]
readsPrec :: Int -> ReadS ListDocumentClassificationJobs
$creadsPrec :: Int -> ReadS ListDocumentClassificationJobs
Prelude.Read, Int -> ListDocumentClassificationJobs -> ShowS
[ListDocumentClassificationJobs] -> ShowS
ListDocumentClassificationJobs -> String
(Int -> ListDocumentClassificationJobs -> ShowS)
-> (ListDocumentClassificationJobs -> String)
-> ([ListDocumentClassificationJobs] -> ShowS)
-> Show ListDocumentClassificationJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDocumentClassificationJobs] -> ShowS
$cshowList :: [ListDocumentClassificationJobs] -> ShowS
show :: ListDocumentClassificationJobs -> String
$cshow :: ListDocumentClassificationJobs -> String
showsPrec :: Int -> ListDocumentClassificationJobs -> ShowS
$cshowsPrec :: Int -> ListDocumentClassificationJobs -> ShowS
Prelude.Show, (forall x.
ListDocumentClassificationJobs
-> Rep ListDocumentClassificationJobs x)
-> (forall x.
Rep ListDocumentClassificationJobs x
-> ListDocumentClassificationJobs)
-> Generic ListDocumentClassificationJobs
forall x.
Rep ListDocumentClassificationJobs x
-> ListDocumentClassificationJobs
forall x.
ListDocumentClassificationJobs
-> Rep ListDocumentClassificationJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDocumentClassificationJobs x
-> ListDocumentClassificationJobs
$cfrom :: forall x.
ListDocumentClassificationJobs
-> Rep ListDocumentClassificationJobs x
Prelude.Generic)
newListDocumentClassificationJobs ::
ListDocumentClassificationJobs
newListDocumentClassificationJobs :: ListDocumentClassificationJobs
newListDocumentClassificationJobs =
ListDocumentClassificationJobs' :: Maybe Text
-> Maybe DocumentClassificationJobFilter
-> Maybe Natural
-> ListDocumentClassificationJobs
ListDocumentClassificationJobs'
{ $sel:nextToken:ListDocumentClassificationJobs' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:filter':ListDocumentClassificationJobs' :: Maybe DocumentClassificationJobFilter
filter' = Maybe DocumentClassificationJobFilter
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListDocumentClassificationJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listDocumentClassificationJobs_nextToken :: Lens.Lens' ListDocumentClassificationJobs (Prelude.Maybe Prelude.Text)
listDocumentClassificationJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDocumentClassificationJobs
-> f ListDocumentClassificationJobs
listDocumentClassificationJobs_nextToken = (ListDocumentClassificationJobs -> Maybe Text)
-> (ListDocumentClassificationJobs
-> Maybe Text -> ListDocumentClassificationJobs)
-> Lens
ListDocumentClassificationJobs
ListDocumentClassificationJobs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassificationJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDocumentClassificationJobs
s@ListDocumentClassificationJobs' {} Maybe Text
a -> ListDocumentClassificationJobs
s {$sel:nextToken:ListDocumentClassificationJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListDocumentClassificationJobs)
listDocumentClassificationJobs_filter :: Lens.Lens' ListDocumentClassificationJobs (Prelude.Maybe DocumentClassificationJobFilter)
listDocumentClassificationJobs_filter :: (Maybe DocumentClassificationJobFilter
-> f (Maybe DocumentClassificationJobFilter))
-> ListDocumentClassificationJobs
-> f ListDocumentClassificationJobs
listDocumentClassificationJobs_filter = (ListDocumentClassificationJobs
-> Maybe DocumentClassificationJobFilter)
-> (ListDocumentClassificationJobs
-> Maybe DocumentClassificationJobFilter
-> ListDocumentClassificationJobs)
-> Lens
ListDocumentClassificationJobs
ListDocumentClassificationJobs
(Maybe DocumentClassificationJobFilter)
(Maybe DocumentClassificationJobFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassificationJobs' {Maybe DocumentClassificationJobFilter
filter' :: Maybe DocumentClassificationJobFilter
$sel:filter':ListDocumentClassificationJobs' :: ListDocumentClassificationJobs
-> Maybe DocumentClassificationJobFilter
filter'} -> Maybe DocumentClassificationJobFilter
filter') (\s :: ListDocumentClassificationJobs
s@ListDocumentClassificationJobs' {} Maybe DocumentClassificationJobFilter
a -> ListDocumentClassificationJobs
s {$sel:filter':ListDocumentClassificationJobs' :: Maybe DocumentClassificationJobFilter
filter' = Maybe DocumentClassificationJobFilter
a} :: ListDocumentClassificationJobs)
listDocumentClassificationJobs_maxResults :: Lens.Lens' ListDocumentClassificationJobs (Prelude.Maybe Prelude.Natural)
listDocumentClassificationJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDocumentClassificationJobs
-> f ListDocumentClassificationJobs
listDocumentClassificationJobs_maxResults = (ListDocumentClassificationJobs -> Maybe Natural)
-> (ListDocumentClassificationJobs
-> Maybe Natural -> ListDocumentClassificationJobs)
-> Lens
ListDocumentClassificationJobs
ListDocumentClassificationJobs
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassificationJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDocumentClassificationJobs
s@ListDocumentClassificationJobs' {} Maybe Natural
a -> ListDocumentClassificationJobs
s {$sel:maxResults:ListDocumentClassificationJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDocumentClassificationJobs)
instance Core.AWSPager ListDocumentClassificationJobs where
page :: ListDocumentClassificationJobs
-> AWSResponse ListDocumentClassificationJobs
-> Maybe ListDocumentClassificationJobs
page ListDocumentClassificationJobs
rq AWSResponse ListDocumentClassificationJobs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDocumentClassificationJobs
ListDocumentClassificationJobsResponse
rs
ListDocumentClassificationJobsResponse
-> Getting (First Text) ListDocumentClassificationJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDocumentClassificationJobsResponse
-> Const (First Text) ListDocumentClassificationJobsResponse
Lens' ListDocumentClassificationJobsResponse (Maybe Text)
listDocumentClassificationJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDocumentClassificationJobsResponse
-> Const (First Text) ListDocumentClassificationJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDocumentClassificationJobsResponse 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 ListDocumentClassificationJobs
forall a. Maybe a
Prelude.Nothing
| Maybe [DocumentClassificationJobProperties] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDocumentClassificationJobs
ListDocumentClassificationJobsResponse
rs
ListDocumentClassificationJobsResponse
-> Getting
(First [DocumentClassificationJobProperties])
ListDocumentClassificationJobsResponse
[DocumentClassificationJobProperties]
-> Maybe [DocumentClassificationJobProperties]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DocumentClassificationJobProperties]
-> Const
(First [DocumentClassificationJobProperties])
(Maybe [DocumentClassificationJobProperties]))
-> ListDocumentClassificationJobsResponse
-> Const
(First [DocumentClassificationJobProperties])
ListDocumentClassificationJobsResponse
Lens'
ListDocumentClassificationJobsResponse
(Maybe [DocumentClassificationJobProperties])
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList
((Maybe [DocumentClassificationJobProperties]
-> Const
(First [DocumentClassificationJobProperties])
(Maybe [DocumentClassificationJobProperties]))
-> ListDocumentClassificationJobsResponse
-> Const
(First [DocumentClassificationJobProperties])
ListDocumentClassificationJobsResponse)
-> (([DocumentClassificationJobProperties]
-> Const
(First [DocumentClassificationJobProperties])
[DocumentClassificationJobProperties])
-> Maybe [DocumentClassificationJobProperties]
-> Const
(First [DocumentClassificationJobProperties])
(Maybe [DocumentClassificationJobProperties]))
-> Getting
(First [DocumentClassificationJobProperties])
ListDocumentClassificationJobsResponse
[DocumentClassificationJobProperties]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DocumentClassificationJobProperties]
-> Const
(First [DocumentClassificationJobProperties])
[DocumentClassificationJobProperties])
-> Maybe [DocumentClassificationJobProperties]
-> Const
(First [DocumentClassificationJobProperties])
(Maybe [DocumentClassificationJobProperties])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListDocumentClassificationJobs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListDocumentClassificationJobs
-> Maybe ListDocumentClassificationJobs
forall a. a -> Maybe a
Prelude.Just (ListDocumentClassificationJobs
-> Maybe ListDocumentClassificationJobs)
-> ListDocumentClassificationJobs
-> Maybe ListDocumentClassificationJobs
forall a b. (a -> b) -> a -> b
Prelude.$
ListDocumentClassificationJobs
rq
ListDocumentClassificationJobs
-> (ListDocumentClassificationJobs
-> ListDocumentClassificationJobs)
-> ListDocumentClassificationJobs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListDocumentClassificationJobs
-> Identity ListDocumentClassificationJobs
Lens
ListDocumentClassificationJobs
ListDocumentClassificationJobs
(Maybe Text)
(Maybe Text)
listDocumentClassificationJobs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListDocumentClassificationJobs
-> Identity ListDocumentClassificationJobs)
-> Maybe Text
-> ListDocumentClassificationJobs
-> ListDocumentClassificationJobs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDocumentClassificationJobs
ListDocumentClassificationJobsResponse
rs
ListDocumentClassificationJobsResponse
-> Getting (First Text) ListDocumentClassificationJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDocumentClassificationJobsResponse
-> Const (First Text) ListDocumentClassificationJobsResponse
Lens' ListDocumentClassificationJobsResponse (Maybe Text)
listDocumentClassificationJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDocumentClassificationJobsResponse
-> Const (First Text) ListDocumentClassificationJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDocumentClassificationJobsResponse 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
ListDocumentClassificationJobs
where
type
AWSResponse ListDocumentClassificationJobs =
ListDocumentClassificationJobsResponse
request :: ListDocumentClassificationJobs
-> Request ListDocumentClassificationJobs
request = Service
-> ListDocumentClassificationJobs
-> Request ListDocumentClassificationJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListDocumentClassificationJobs
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListDocumentClassificationJobs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListDocumentClassificationJobs))
-> Logger
-> Service
-> Proxy ListDocumentClassificationJobs
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListDocumentClassificationJobs)))
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 [DocumentClassificationJobProperties]
-> Int
-> ListDocumentClassificationJobsResponse
ListDocumentClassificationJobsResponse'
(Maybe Text
-> Maybe [DocumentClassificationJobProperties]
-> Int
-> ListDocumentClassificationJobsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [DocumentClassificationJobProperties]
-> Int -> ListDocumentClassificationJobsResponse)
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 [DocumentClassificationJobProperties]
-> Int -> ListDocumentClassificationJobsResponse)
-> Either String (Maybe [DocumentClassificationJobProperties])
-> Either String (Int -> ListDocumentClassificationJobsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either
String (Maybe (Maybe [DocumentClassificationJobProperties]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DocumentClassificationJobPropertiesList"
Either String (Maybe (Maybe [DocumentClassificationJobProperties]))
-> Maybe [DocumentClassificationJobProperties]
-> Either String (Maybe [DocumentClassificationJobProperties])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DocumentClassificationJobProperties]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListDocumentClassificationJobsResponse)
-> Either String Int
-> Either String ListDocumentClassificationJobsResponse
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
ListDocumentClassificationJobs
instance
Prelude.NFData
ListDocumentClassificationJobs
instance
Core.ToHeaders
ListDocumentClassificationJobs
where
toHeaders :: ListDocumentClassificationJobs -> ResponseHeaders
toHeaders =
ResponseHeaders
-> ListDocumentClassificationJobs -> 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.ListDocumentClassificationJobs" ::
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 ListDocumentClassificationJobs where
toJSON :: ListDocumentClassificationJobs -> Value
toJSON ListDocumentClassificationJobs' {Maybe Natural
Maybe Text
Maybe DocumentClassificationJobFilter
maxResults :: Maybe Natural
filter' :: Maybe DocumentClassificationJobFilter
nextToken :: Maybe Text
$sel:maxResults:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> Maybe Natural
$sel:filter':ListDocumentClassificationJobs' :: ListDocumentClassificationJobs
-> Maybe DocumentClassificationJobFilter
$sel:nextToken:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> 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 -> DocumentClassificationJobFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (DocumentClassificationJobFilter -> Pair)
-> Maybe DocumentClassificationJobFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DocumentClassificationJobFilter
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 ListDocumentClassificationJobs where
toPath :: ListDocumentClassificationJobs -> ByteString
toPath = ByteString -> ListDocumentClassificationJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListDocumentClassificationJobs where
toQuery :: ListDocumentClassificationJobs -> QueryString
toQuery = QueryString -> ListDocumentClassificationJobs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListDocumentClassificationJobsResponse = ListDocumentClassificationJobsResponse'
{
ListDocumentClassificationJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDocumentClassificationJobsResponse
-> Maybe [DocumentClassificationJobProperties]
documentClassificationJobPropertiesList :: Prelude.Maybe [DocumentClassificationJobProperties],
ListDocumentClassificationJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListDocumentClassificationJobsResponse
-> ListDocumentClassificationJobsResponse -> Bool
(ListDocumentClassificationJobsResponse
-> ListDocumentClassificationJobsResponse -> Bool)
-> (ListDocumentClassificationJobsResponse
-> ListDocumentClassificationJobsResponse -> Bool)
-> Eq ListDocumentClassificationJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDocumentClassificationJobsResponse
-> ListDocumentClassificationJobsResponse -> Bool
$c/= :: ListDocumentClassificationJobsResponse
-> ListDocumentClassificationJobsResponse -> Bool
== :: ListDocumentClassificationJobsResponse
-> ListDocumentClassificationJobsResponse -> Bool
$c== :: ListDocumentClassificationJobsResponse
-> ListDocumentClassificationJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListDocumentClassificationJobsResponse]
ReadPrec ListDocumentClassificationJobsResponse
Int -> ReadS ListDocumentClassificationJobsResponse
ReadS [ListDocumentClassificationJobsResponse]
(Int -> ReadS ListDocumentClassificationJobsResponse)
-> ReadS [ListDocumentClassificationJobsResponse]
-> ReadPrec ListDocumentClassificationJobsResponse
-> ReadPrec [ListDocumentClassificationJobsResponse]
-> Read ListDocumentClassificationJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDocumentClassificationJobsResponse]
$creadListPrec :: ReadPrec [ListDocumentClassificationJobsResponse]
readPrec :: ReadPrec ListDocumentClassificationJobsResponse
$creadPrec :: ReadPrec ListDocumentClassificationJobsResponse
readList :: ReadS [ListDocumentClassificationJobsResponse]
$creadList :: ReadS [ListDocumentClassificationJobsResponse]
readsPrec :: Int -> ReadS ListDocumentClassificationJobsResponse
$creadsPrec :: Int -> ReadS ListDocumentClassificationJobsResponse
Prelude.Read, Int -> ListDocumentClassificationJobsResponse -> ShowS
[ListDocumentClassificationJobsResponse] -> ShowS
ListDocumentClassificationJobsResponse -> String
(Int -> ListDocumentClassificationJobsResponse -> ShowS)
-> (ListDocumentClassificationJobsResponse -> String)
-> ([ListDocumentClassificationJobsResponse] -> ShowS)
-> Show ListDocumentClassificationJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDocumentClassificationJobsResponse] -> ShowS
$cshowList :: [ListDocumentClassificationJobsResponse] -> ShowS
show :: ListDocumentClassificationJobsResponse -> String
$cshow :: ListDocumentClassificationJobsResponse -> String
showsPrec :: Int -> ListDocumentClassificationJobsResponse -> ShowS
$cshowsPrec :: Int -> ListDocumentClassificationJobsResponse -> ShowS
Prelude.Show, (forall x.
ListDocumentClassificationJobsResponse
-> Rep ListDocumentClassificationJobsResponse x)
-> (forall x.
Rep ListDocumentClassificationJobsResponse x
-> ListDocumentClassificationJobsResponse)
-> Generic ListDocumentClassificationJobsResponse
forall x.
Rep ListDocumentClassificationJobsResponse x
-> ListDocumentClassificationJobsResponse
forall x.
ListDocumentClassificationJobsResponse
-> Rep ListDocumentClassificationJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDocumentClassificationJobsResponse x
-> ListDocumentClassificationJobsResponse
$cfrom :: forall x.
ListDocumentClassificationJobsResponse
-> Rep ListDocumentClassificationJobsResponse x
Prelude.Generic)
newListDocumentClassificationJobsResponse ::
Prelude.Int ->
ListDocumentClassificationJobsResponse
newListDocumentClassificationJobsResponse :: Int -> ListDocumentClassificationJobsResponse
newListDocumentClassificationJobsResponse
Int
pHttpStatus_ =
ListDocumentClassificationJobsResponse' :: Maybe Text
-> Maybe [DocumentClassificationJobProperties]
-> Int
-> ListDocumentClassificationJobsResponse
ListDocumentClassificationJobsResponse'
{ $sel:nextToken:ListDocumentClassificationJobsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:documentClassificationJobPropertiesList:ListDocumentClassificationJobsResponse' :: Maybe [DocumentClassificationJobProperties]
documentClassificationJobPropertiesList =
Maybe [DocumentClassificationJobProperties]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDocumentClassificationJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listDocumentClassificationJobsResponse_nextToken :: Lens.Lens' ListDocumentClassificationJobsResponse (Prelude.Maybe Prelude.Text)
listDocumentClassificationJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDocumentClassificationJobsResponse
-> f ListDocumentClassificationJobsResponse
listDocumentClassificationJobsResponse_nextToken = (ListDocumentClassificationJobsResponse -> Maybe Text)
-> (ListDocumentClassificationJobsResponse
-> Maybe Text -> ListDocumentClassificationJobsResponse)
-> Lens' ListDocumentClassificationJobsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassificationJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDocumentClassificationJobsResponse' :: ListDocumentClassificationJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDocumentClassificationJobsResponse
s@ListDocumentClassificationJobsResponse' {} Maybe Text
a -> ListDocumentClassificationJobsResponse
s {$sel:nextToken:ListDocumentClassificationJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDocumentClassificationJobsResponse)
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList :: Lens.Lens' ListDocumentClassificationJobsResponse (Prelude.Maybe [DocumentClassificationJobProperties])
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList :: (Maybe [DocumentClassificationJobProperties]
-> f (Maybe [DocumentClassificationJobProperties]))
-> ListDocumentClassificationJobsResponse
-> f ListDocumentClassificationJobsResponse
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList = (ListDocumentClassificationJobsResponse
-> Maybe [DocumentClassificationJobProperties])
-> (ListDocumentClassificationJobsResponse
-> Maybe [DocumentClassificationJobProperties]
-> ListDocumentClassificationJobsResponse)
-> Lens'
ListDocumentClassificationJobsResponse
(Maybe [DocumentClassificationJobProperties])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassificationJobsResponse' {Maybe [DocumentClassificationJobProperties]
documentClassificationJobPropertiesList :: Maybe [DocumentClassificationJobProperties]
$sel:documentClassificationJobPropertiesList:ListDocumentClassificationJobsResponse' :: ListDocumentClassificationJobsResponse
-> Maybe [DocumentClassificationJobProperties]
documentClassificationJobPropertiesList} -> Maybe [DocumentClassificationJobProperties]
documentClassificationJobPropertiesList) (\s :: ListDocumentClassificationJobsResponse
s@ListDocumentClassificationJobsResponse' {} Maybe [DocumentClassificationJobProperties]
a -> ListDocumentClassificationJobsResponse
s {$sel:documentClassificationJobPropertiesList:ListDocumentClassificationJobsResponse' :: Maybe [DocumentClassificationJobProperties]
documentClassificationJobPropertiesList = Maybe [DocumentClassificationJobProperties]
a} :: ListDocumentClassificationJobsResponse) ((Maybe [DocumentClassificationJobProperties]
-> f (Maybe [DocumentClassificationJobProperties]))
-> ListDocumentClassificationJobsResponse
-> f ListDocumentClassificationJobsResponse)
-> ((Maybe [DocumentClassificationJobProperties]
-> f (Maybe [DocumentClassificationJobProperties]))
-> Maybe [DocumentClassificationJobProperties]
-> f (Maybe [DocumentClassificationJobProperties]))
-> (Maybe [DocumentClassificationJobProperties]
-> f (Maybe [DocumentClassificationJobProperties]))
-> ListDocumentClassificationJobsResponse
-> f ListDocumentClassificationJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DocumentClassificationJobProperties]
[DocumentClassificationJobProperties]
[DocumentClassificationJobProperties]
[DocumentClassificationJobProperties]
-> Iso
(Maybe [DocumentClassificationJobProperties])
(Maybe [DocumentClassificationJobProperties])
(Maybe [DocumentClassificationJobProperties])
(Maybe [DocumentClassificationJobProperties])
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
[DocumentClassificationJobProperties]
[DocumentClassificationJobProperties]
[DocumentClassificationJobProperties]
[DocumentClassificationJobProperties]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listDocumentClassificationJobsResponse_httpStatus :: Lens.Lens' ListDocumentClassificationJobsResponse Prelude.Int
listDocumentClassificationJobsResponse_httpStatus :: (Int -> f Int)
-> ListDocumentClassificationJobsResponse
-> f ListDocumentClassificationJobsResponse
listDocumentClassificationJobsResponse_httpStatus = (ListDocumentClassificationJobsResponse -> Int)
-> (ListDocumentClassificationJobsResponse
-> Int -> ListDocumentClassificationJobsResponse)
-> Lens
ListDocumentClassificationJobsResponse
ListDocumentClassificationJobsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassificationJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDocumentClassificationJobsResponse' :: ListDocumentClassificationJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDocumentClassificationJobsResponse
s@ListDocumentClassificationJobsResponse' {} Int
a -> ListDocumentClassificationJobsResponse
s {$sel:httpStatus:ListDocumentClassificationJobsResponse' :: Int
httpStatus = Int
a} :: ListDocumentClassificationJobsResponse)
instance
Prelude.NFData
ListDocumentClassificationJobsResponse