{-# 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_filter,
listDocumentClassificationJobs_maxResults,
listDocumentClassificationJobs_nextToken,
ListDocumentClassificationJobsResponse (..),
newListDocumentClassificationJobsResponse,
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList,
listDocumentClassificationJobsResponse_nextToken,
listDocumentClassificationJobsResponse_httpStatus,
)
where
import Amazonka.Comprehend.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListDocumentClassificationJobs = ListDocumentClassificationJobs'
{
ListDocumentClassificationJobs
-> Maybe DocumentClassificationJobFilter
filter' :: Prelude.Maybe DocumentClassificationJobFilter,
ListDocumentClassificationJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListDocumentClassificationJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (ListDocumentClassificationJobs
-> ListDocumentClassificationJobs -> Bool
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]
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
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.
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'
{ $sel:filter':ListDocumentClassificationJobs' :: Maybe DocumentClassificationJobFilter
filter' =
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListDocumentClassificationJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListDocumentClassificationJobs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
}
listDocumentClassificationJobs_filter :: Lens.Lens' ListDocumentClassificationJobs (Prelude.Maybe DocumentClassificationJobFilter)
listDocumentClassificationJobs_filter :: Lens'
ListDocumentClassificationJobs
(Maybe DocumentClassificationJobFilter)
listDocumentClassificationJobs_filter = 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 :: Lens' ListDocumentClassificationJobs (Maybe Natural)
listDocumentClassificationJobs_maxResults = 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)
listDocumentClassificationJobs_nextToken :: Lens.Lens' ListDocumentClassificationJobs (Prelude.Maybe Prelude.Text)
listDocumentClassificationJobs_nextToken :: Lens' ListDocumentClassificationJobs (Maybe Text)
listDocumentClassificationJobs_nextToken = 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)
instance Core.AWSPager ListDocumentClassificationJobs where
page :: ListDocumentClassificationJobs
-> AWSResponse ListDocumentClassificationJobs
-> Maybe ListDocumentClassificationJobs
page ListDocumentClassificationJobs
rq AWSResponse ListDocumentClassificationJobs
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDocumentClassificationJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDocumentClassificationJobsResponse (Maybe Text)
listDocumentClassificationJobsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDocumentClassificationJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListDocumentClassificationJobsResponse
(Maybe [DocumentClassificationJobProperties])
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListDocumentClassificationJobs
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListDocumentClassificationJobs (Maybe Text)
listDocumentClassificationJobs_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDocumentClassificationJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDocumentClassificationJobsResponse (Maybe Text)
listDocumentClassificationJobsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
ListDocumentClassificationJobs
where
type
AWSResponse ListDocumentClassificationJobs =
ListDocumentClassificationJobsResponse
request :: (Service -> Service)
-> ListDocumentClassificationJobs
-> Request ListDocumentClassificationJobs
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListDocumentClassificationJobs
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListDocumentClassificationJobs)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [DocumentClassificationJobProperties]
-> Maybe Text -> Int -> ListDocumentClassificationJobsResponse
ListDocumentClassificationJobsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DocumentClassificationJobPropertiesList"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
ListDocumentClassificationJobs
where
hashWithSalt :: Int -> ListDocumentClassificationJobs -> Int
hashWithSalt
Int
_salt
ListDocumentClassificationJobs' {Maybe Natural
Maybe Text
Maybe DocumentClassificationJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DocumentClassificationJobFilter
$sel:nextToken:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> Maybe Text
$sel:maxResults:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> Maybe Natural
$sel:filter':ListDocumentClassificationJobs' :: ListDocumentClassificationJobs
-> Maybe DocumentClassificationJobFilter
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DocumentClassificationJobFilter
filter'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
instance
Prelude.NFData
ListDocumentClassificationJobs
where
rnf :: ListDocumentClassificationJobs -> ()
rnf ListDocumentClassificationJobs' {Maybe Natural
Maybe Text
Maybe DocumentClassificationJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DocumentClassificationJobFilter
$sel:nextToken:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> Maybe Text
$sel:maxResults:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> Maybe Natural
$sel:filter':ListDocumentClassificationJobs' :: ListDocumentClassificationJobs
-> Maybe DocumentClassificationJobFilter
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe DocumentClassificationJobFilter
filter'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
instance
Data.ToHeaders
ListDocumentClassificationJobs
where
toHeaders :: ListDocumentClassificationJobs -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"Comprehend_20171127.ListDocumentClassificationJobs" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON ListDocumentClassificationJobs where
toJSON :: ListDocumentClassificationJobs -> Value
toJSON ListDocumentClassificationJobs' {Maybe Natural
Maybe Text
Maybe DocumentClassificationJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DocumentClassificationJobFilter
$sel:nextToken:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> Maybe Text
$sel:maxResults:ListDocumentClassificationJobs' :: ListDocumentClassificationJobs -> Maybe Natural
$sel:filter':ListDocumentClassificationJobs' :: ListDocumentClassificationJobs
-> Maybe DocumentClassificationJobFilter
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"Filter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DocumentClassificationJobFilter
filter',
(Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
]
)
instance Data.ToPath ListDocumentClassificationJobs where
toPath :: ListDocumentClassificationJobs -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListDocumentClassificationJobs where
toQuery :: ListDocumentClassificationJobs -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListDocumentClassificationJobsResponse = ListDocumentClassificationJobsResponse'
{
ListDocumentClassificationJobsResponse
-> Maybe [DocumentClassificationJobProperties]
documentClassificationJobPropertiesList :: Prelude.Maybe [DocumentClassificationJobProperties],
ListDocumentClassificationJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDocumentClassificationJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListDocumentClassificationJobsResponse
-> ListDocumentClassificationJobsResponse -> Bool
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]
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
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.
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'
{ $sel:documentClassificationJobPropertiesList:ListDocumentClassificationJobsResponse' :: Maybe [DocumentClassificationJobProperties]
documentClassificationJobPropertiesList =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListDocumentClassificationJobsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDocumentClassificationJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList :: Lens.Lens' ListDocumentClassificationJobsResponse (Prelude.Maybe [DocumentClassificationJobProperties])
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList :: Lens'
ListDocumentClassificationJobsResponse
(Maybe [DocumentClassificationJobProperties])
listDocumentClassificationJobsResponse_documentClassificationJobPropertiesList = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listDocumentClassificationJobsResponse_nextToken :: Lens.Lens' ListDocumentClassificationJobsResponse (Prelude.Maybe Prelude.Text)
listDocumentClassificationJobsResponse_nextToken :: Lens' ListDocumentClassificationJobsResponse (Maybe Text)
listDocumentClassificationJobsResponse_nextToken = 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_httpStatus :: Lens.Lens' ListDocumentClassificationJobsResponse Prelude.Int
listDocumentClassificationJobsResponse_httpStatus :: Lens' ListDocumentClassificationJobsResponse Int
listDocumentClassificationJobsResponse_httpStatus = 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
where
rnf :: ListDocumentClassificationJobsResponse -> ()
rnf ListDocumentClassificationJobsResponse' {Int
Maybe [DocumentClassificationJobProperties]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
documentClassificationJobPropertiesList :: Maybe [DocumentClassificationJobProperties]
$sel:httpStatus:ListDocumentClassificationJobsResponse' :: ListDocumentClassificationJobsResponse -> Int
$sel:nextToken:ListDocumentClassificationJobsResponse' :: ListDocumentClassificationJobsResponse -> Maybe Text
$sel:documentClassificationJobPropertiesList:ListDocumentClassificationJobsResponse' :: ListDocumentClassificationJobsResponse
-> Maybe [DocumentClassificationJobProperties]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [DocumentClassificationJobProperties]
documentClassificationJobPropertiesList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus