{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Comprehend.ListDocumentClassifierSummaries
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a list of summaries of the document classifiers that you have
-- created
module Amazonka.Comprehend.ListDocumentClassifierSummaries
  ( -- * Creating a Request
    ListDocumentClassifierSummaries (..),
    newListDocumentClassifierSummaries,

    -- * Request Lenses
    listDocumentClassifierSummaries_nextToken,
    listDocumentClassifierSummaries_maxResults,

    -- * Destructuring the Response
    ListDocumentClassifierSummariesResponse (..),
    newListDocumentClassifierSummariesResponse,

    -- * Response Lenses
    listDocumentClassifierSummariesResponse_nextToken,
    listDocumentClassifierSummariesResponse_documentClassifierSummariesList,
    listDocumentClassifierSummariesResponse_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

-- | /See:/ 'newListDocumentClassifierSummaries' smart constructor.
data ListDocumentClassifierSummaries = ListDocumentClassifierSummaries'
  { -- | Identifies the next page of results to return.
    ListDocumentClassifierSummaries -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return on each page. The default is
    -- 100.
    ListDocumentClassifierSummaries -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListDocumentClassifierSummaries
-> ListDocumentClassifierSummaries -> Bool
(ListDocumentClassifierSummaries
 -> ListDocumentClassifierSummaries -> Bool)
-> (ListDocumentClassifierSummaries
    -> ListDocumentClassifierSummaries -> Bool)
-> Eq ListDocumentClassifierSummaries
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDocumentClassifierSummaries
-> ListDocumentClassifierSummaries -> Bool
$c/= :: ListDocumentClassifierSummaries
-> ListDocumentClassifierSummaries -> Bool
== :: ListDocumentClassifierSummaries
-> ListDocumentClassifierSummaries -> Bool
$c== :: ListDocumentClassifierSummaries
-> ListDocumentClassifierSummaries -> Bool
Prelude.Eq, ReadPrec [ListDocumentClassifierSummaries]
ReadPrec ListDocumentClassifierSummaries
Int -> ReadS ListDocumentClassifierSummaries
ReadS [ListDocumentClassifierSummaries]
(Int -> ReadS ListDocumentClassifierSummaries)
-> ReadS [ListDocumentClassifierSummaries]
-> ReadPrec ListDocumentClassifierSummaries
-> ReadPrec [ListDocumentClassifierSummaries]
-> Read ListDocumentClassifierSummaries
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDocumentClassifierSummaries]
$creadListPrec :: ReadPrec [ListDocumentClassifierSummaries]
readPrec :: ReadPrec ListDocumentClassifierSummaries
$creadPrec :: ReadPrec ListDocumentClassifierSummaries
readList :: ReadS [ListDocumentClassifierSummaries]
$creadList :: ReadS [ListDocumentClassifierSummaries]
readsPrec :: Int -> ReadS ListDocumentClassifierSummaries
$creadsPrec :: Int -> ReadS ListDocumentClassifierSummaries
Prelude.Read, Int -> ListDocumentClassifierSummaries -> ShowS
[ListDocumentClassifierSummaries] -> ShowS
ListDocumentClassifierSummaries -> String
(Int -> ListDocumentClassifierSummaries -> ShowS)
-> (ListDocumentClassifierSummaries -> String)
-> ([ListDocumentClassifierSummaries] -> ShowS)
-> Show ListDocumentClassifierSummaries
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDocumentClassifierSummaries] -> ShowS
$cshowList :: [ListDocumentClassifierSummaries] -> ShowS
show :: ListDocumentClassifierSummaries -> String
$cshow :: ListDocumentClassifierSummaries -> String
showsPrec :: Int -> ListDocumentClassifierSummaries -> ShowS
$cshowsPrec :: Int -> ListDocumentClassifierSummaries -> ShowS
Prelude.Show, (forall x.
 ListDocumentClassifierSummaries
 -> Rep ListDocumentClassifierSummaries x)
-> (forall x.
    Rep ListDocumentClassifierSummaries x
    -> ListDocumentClassifierSummaries)
-> Generic ListDocumentClassifierSummaries
forall x.
Rep ListDocumentClassifierSummaries x
-> ListDocumentClassifierSummaries
forall x.
ListDocumentClassifierSummaries
-> Rep ListDocumentClassifierSummaries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDocumentClassifierSummaries x
-> ListDocumentClassifierSummaries
$cfrom :: forall x.
ListDocumentClassifierSummaries
-> Rep ListDocumentClassifierSummaries x
Prelude.Generic)

-- |
-- Create a value of 'ListDocumentClassifierSummaries' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listDocumentClassifierSummaries_nextToken' - Identifies the next page of results to return.
--
-- 'maxResults', 'listDocumentClassifierSummaries_maxResults' - The maximum number of results to return on each page. The default is
-- 100.
newListDocumentClassifierSummaries ::
  ListDocumentClassifierSummaries
newListDocumentClassifierSummaries :: ListDocumentClassifierSummaries
newListDocumentClassifierSummaries =
  ListDocumentClassifierSummaries' :: Maybe Text -> Maybe Natural -> ListDocumentClassifierSummaries
ListDocumentClassifierSummaries'
    { $sel:nextToken:ListDocumentClassifierSummaries' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDocumentClassifierSummaries' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Identifies the next page of results to return.
listDocumentClassifierSummaries_nextToken :: Lens.Lens' ListDocumentClassifierSummaries (Prelude.Maybe Prelude.Text)
listDocumentClassifierSummaries_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDocumentClassifierSummaries
-> f ListDocumentClassifierSummaries
listDocumentClassifierSummaries_nextToken = (ListDocumentClassifierSummaries -> Maybe Text)
-> (ListDocumentClassifierSummaries
    -> Maybe Text -> ListDocumentClassifierSummaries)
-> Lens
     ListDocumentClassifierSummaries
     ListDocumentClassifierSummaries
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassifierSummaries' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDocumentClassifierSummaries' :: ListDocumentClassifierSummaries -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDocumentClassifierSummaries
s@ListDocumentClassifierSummaries' {} Maybe Text
a -> ListDocumentClassifierSummaries
s {$sel:nextToken:ListDocumentClassifierSummaries' :: Maybe Text
nextToken = Maybe Text
a} :: ListDocumentClassifierSummaries)

-- | The maximum number of results to return on each page. The default is
-- 100.
listDocumentClassifierSummaries_maxResults :: Lens.Lens' ListDocumentClassifierSummaries (Prelude.Maybe Prelude.Natural)
listDocumentClassifierSummaries_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDocumentClassifierSummaries
-> f ListDocumentClassifierSummaries
listDocumentClassifierSummaries_maxResults = (ListDocumentClassifierSummaries -> Maybe Natural)
-> (ListDocumentClassifierSummaries
    -> Maybe Natural -> ListDocumentClassifierSummaries)
-> Lens
     ListDocumentClassifierSummaries
     ListDocumentClassifierSummaries
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassifierSummaries' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDocumentClassifierSummaries' :: ListDocumentClassifierSummaries -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDocumentClassifierSummaries
s@ListDocumentClassifierSummaries' {} Maybe Natural
a -> ListDocumentClassifierSummaries
s {$sel:maxResults:ListDocumentClassifierSummaries' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDocumentClassifierSummaries)

instance
  Core.AWSRequest
    ListDocumentClassifierSummaries
  where
  type
    AWSResponse ListDocumentClassifierSummaries =
      ListDocumentClassifierSummariesResponse
  request :: ListDocumentClassifierSummaries
-> Request ListDocumentClassifierSummaries
request = Service
-> ListDocumentClassifierSummaries
-> Request ListDocumentClassifierSummaries
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListDocumentClassifierSummaries
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListDocumentClassifierSummaries)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListDocumentClassifierSummaries))
-> Logger
-> Service
-> Proxy ListDocumentClassifierSummaries
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListDocumentClassifierSummaries)))
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 [DocumentClassifierSummary]
-> Int
-> ListDocumentClassifierSummariesResponse
ListDocumentClassifierSummariesResponse'
            (Maybe Text
 -> Maybe [DocumentClassifierSummary]
 -> Int
 -> ListDocumentClassifierSummariesResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [DocumentClassifierSummary]
      -> Int -> ListDocumentClassifierSummariesResponse)
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 [DocumentClassifierSummary]
   -> Int -> ListDocumentClassifierSummariesResponse)
-> Either String (Maybe [DocumentClassifierSummary])
-> Either String (Int -> ListDocumentClassifierSummariesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [DocumentClassifierSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DocumentClassifierSummariesList"
                            Either String (Maybe (Maybe [DocumentClassifierSummary]))
-> Maybe [DocumentClassifierSummary]
-> Either String (Maybe [DocumentClassifierSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DocumentClassifierSummary]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> ListDocumentClassifierSummariesResponse)
-> Either String Int
-> Either String ListDocumentClassifierSummariesResponse
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
    ListDocumentClassifierSummaries

instance
  Prelude.NFData
    ListDocumentClassifierSummaries

instance
  Core.ToHeaders
    ListDocumentClassifierSummaries
  where
  toHeaders :: ListDocumentClassifierSummaries -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> ListDocumentClassifierSummaries -> 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.ListDocumentClassifierSummaries" ::
                          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 ListDocumentClassifierSummaries where
  toJSON :: ListDocumentClassifierSummaries -> Value
toJSON ListDocumentClassifierSummaries' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListDocumentClassifierSummaries' :: ListDocumentClassifierSummaries -> Maybe Natural
$sel:nextToken:ListDocumentClassifierSummaries' :: ListDocumentClassifierSummaries -> 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 ListDocumentClassifierSummaries where
  toPath :: ListDocumentClassifierSummaries -> ByteString
toPath = ByteString -> ListDocumentClassifierSummaries -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ListDocumentClassifierSummaries where
  toQuery :: ListDocumentClassifierSummaries -> QueryString
toQuery = QueryString -> ListDocumentClassifierSummaries -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListDocumentClassifierSummariesResponse' smart constructor.
data ListDocumentClassifierSummariesResponse = ListDocumentClassifierSummariesResponse'
  { -- | Identifies the next page of results to return.
    ListDocumentClassifierSummariesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The list of summaries of document classifiers.
    ListDocumentClassifierSummariesResponse
-> Maybe [DocumentClassifierSummary]
documentClassifierSummariesList :: Prelude.Maybe [DocumentClassifierSummary],
    -- | The response's http status code.
    ListDocumentClassifierSummariesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDocumentClassifierSummariesResponse
-> ListDocumentClassifierSummariesResponse -> Bool
(ListDocumentClassifierSummariesResponse
 -> ListDocumentClassifierSummariesResponse -> Bool)
-> (ListDocumentClassifierSummariesResponse
    -> ListDocumentClassifierSummariesResponse -> Bool)
-> Eq ListDocumentClassifierSummariesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDocumentClassifierSummariesResponse
-> ListDocumentClassifierSummariesResponse -> Bool
$c/= :: ListDocumentClassifierSummariesResponse
-> ListDocumentClassifierSummariesResponse -> Bool
== :: ListDocumentClassifierSummariesResponse
-> ListDocumentClassifierSummariesResponse -> Bool
$c== :: ListDocumentClassifierSummariesResponse
-> ListDocumentClassifierSummariesResponse -> Bool
Prelude.Eq, ReadPrec [ListDocumentClassifierSummariesResponse]
ReadPrec ListDocumentClassifierSummariesResponse
Int -> ReadS ListDocumentClassifierSummariesResponse
ReadS [ListDocumentClassifierSummariesResponse]
(Int -> ReadS ListDocumentClassifierSummariesResponse)
-> ReadS [ListDocumentClassifierSummariesResponse]
-> ReadPrec ListDocumentClassifierSummariesResponse
-> ReadPrec [ListDocumentClassifierSummariesResponse]
-> Read ListDocumentClassifierSummariesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDocumentClassifierSummariesResponse]
$creadListPrec :: ReadPrec [ListDocumentClassifierSummariesResponse]
readPrec :: ReadPrec ListDocumentClassifierSummariesResponse
$creadPrec :: ReadPrec ListDocumentClassifierSummariesResponse
readList :: ReadS [ListDocumentClassifierSummariesResponse]
$creadList :: ReadS [ListDocumentClassifierSummariesResponse]
readsPrec :: Int -> ReadS ListDocumentClassifierSummariesResponse
$creadsPrec :: Int -> ReadS ListDocumentClassifierSummariesResponse
Prelude.Read, Int -> ListDocumentClassifierSummariesResponse -> ShowS
[ListDocumentClassifierSummariesResponse] -> ShowS
ListDocumentClassifierSummariesResponse -> String
(Int -> ListDocumentClassifierSummariesResponse -> ShowS)
-> (ListDocumentClassifierSummariesResponse -> String)
-> ([ListDocumentClassifierSummariesResponse] -> ShowS)
-> Show ListDocumentClassifierSummariesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDocumentClassifierSummariesResponse] -> ShowS
$cshowList :: [ListDocumentClassifierSummariesResponse] -> ShowS
show :: ListDocumentClassifierSummariesResponse -> String
$cshow :: ListDocumentClassifierSummariesResponse -> String
showsPrec :: Int -> ListDocumentClassifierSummariesResponse -> ShowS
$cshowsPrec :: Int -> ListDocumentClassifierSummariesResponse -> ShowS
Prelude.Show, (forall x.
 ListDocumentClassifierSummariesResponse
 -> Rep ListDocumentClassifierSummariesResponse x)
-> (forall x.
    Rep ListDocumentClassifierSummariesResponse x
    -> ListDocumentClassifierSummariesResponse)
-> Generic ListDocumentClassifierSummariesResponse
forall x.
Rep ListDocumentClassifierSummariesResponse x
-> ListDocumentClassifierSummariesResponse
forall x.
ListDocumentClassifierSummariesResponse
-> Rep ListDocumentClassifierSummariesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDocumentClassifierSummariesResponse x
-> ListDocumentClassifierSummariesResponse
$cfrom :: forall x.
ListDocumentClassifierSummariesResponse
-> Rep ListDocumentClassifierSummariesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDocumentClassifierSummariesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listDocumentClassifierSummariesResponse_nextToken' - Identifies the next page of results to return.
--
-- 'documentClassifierSummariesList', 'listDocumentClassifierSummariesResponse_documentClassifierSummariesList' - The list of summaries of document classifiers.
--
-- 'httpStatus', 'listDocumentClassifierSummariesResponse_httpStatus' - The response's http status code.
newListDocumentClassifierSummariesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDocumentClassifierSummariesResponse
newListDocumentClassifierSummariesResponse :: Int -> ListDocumentClassifierSummariesResponse
newListDocumentClassifierSummariesResponse
  Int
pHttpStatus_ =
    ListDocumentClassifierSummariesResponse' :: Maybe Text
-> Maybe [DocumentClassifierSummary]
-> Int
-> ListDocumentClassifierSummariesResponse
ListDocumentClassifierSummariesResponse'
      { $sel:nextToken:ListDocumentClassifierSummariesResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:documentClassifierSummariesList:ListDocumentClassifierSummariesResponse' :: Maybe [DocumentClassifierSummary]
documentClassifierSummariesList =
          Maybe [DocumentClassifierSummary]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListDocumentClassifierSummariesResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Identifies the next page of results to return.
listDocumentClassifierSummariesResponse_nextToken :: Lens.Lens' ListDocumentClassifierSummariesResponse (Prelude.Maybe Prelude.Text)
listDocumentClassifierSummariesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDocumentClassifierSummariesResponse
-> f ListDocumentClassifierSummariesResponse
listDocumentClassifierSummariesResponse_nextToken = (ListDocumentClassifierSummariesResponse -> Maybe Text)
-> (ListDocumentClassifierSummariesResponse
    -> Maybe Text -> ListDocumentClassifierSummariesResponse)
-> Lens
     ListDocumentClassifierSummariesResponse
     ListDocumentClassifierSummariesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassifierSummariesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDocumentClassifierSummariesResponse' :: ListDocumentClassifierSummariesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDocumentClassifierSummariesResponse
s@ListDocumentClassifierSummariesResponse' {} Maybe Text
a -> ListDocumentClassifierSummariesResponse
s {$sel:nextToken:ListDocumentClassifierSummariesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDocumentClassifierSummariesResponse)

-- | The list of summaries of document classifiers.
listDocumentClassifierSummariesResponse_documentClassifierSummariesList :: Lens.Lens' ListDocumentClassifierSummariesResponse (Prelude.Maybe [DocumentClassifierSummary])
listDocumentClassifierSummariesResponse_documentClassifierSummariesList :: (Maybe [DocumentClassifierSummary]
 -> f (Maybe [DocumentClassifierSummary]))
-> ListDocumentClassifierSummariesResponse
-> f ListDocumentClassifierSummariesResponse
listDocumentClassifierSummariesResponse_documentClassifierSummariesList = (ListDocumentClassifierSummariesResponse
 -> Maybe [DocumentClassifierSummary])
-> (ListDocumentClassifierSummariesResponse
    -> Maybe [DocumentClassifierSummary]
    -> ListDocumentClassifierSummariesResponse)
-> Lens
     ListDocumentClassifierSummariesResponse
     ListDocumentClassifierSummariesResponse
     (Maybe [DocumentClassifierSummary])
     (Maybe [DocumentClassifierSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassifierSummariesResponse' {Maybe [DocumentClassifierSummary]
documentClassifierSummariesList :: Maybe [DocumentClassifierSummary]
$sel:documentClassifierSummariesList:ListDocumentClassifierSummariesResponse' :: ListDocumentClassifierSummariesResponse
-> Maybe [DocumentClassifierSummary]
documentClassifierSummariesList} -> Maybe [DocumentClassifierSummary]
documentClassifierSummariesList) (\s :: ListDocumentClassifierSummariesResponse
s@ListDocumentClassifierSummariesResponse' {} Maybe [DocumentClassifierSummary]
a -> ListDocumentClassifierSummariesResponse
s {$sel:documentClassifierSummariesList:ListDocumentClassifierSummariesResponse' :: Maybe [DocumentClassifierSummary]
documentClassifierSummariesList = Maybe [DocumentClassifierSummary]
a} :: ListDocumentClassifierSummariesResponse) ((Maybe [DocumentClassifierSummary]
  -> f (Maybe [DocumentClassifierSummary]))
 -> ListDocumentClassifierSummariesResponse
 -> f ListDocumentClassifierSummariesResponse)
-> ((Maybe [DocumentClassifierSummary]
     -> f (Maybe [DocumentClassifierSummary]))
    -> Maybe [DocumentClassifierSummary]
    -> f (Maybe [DocumentClassifierSummary]))
-> (Maybe [DocumentClassifierSummary]
    -> f (Maybe [DocumentClassifierSummary]))
-> ListDocumentClassifierSummariesResponse
-> f ListDocumentClassifierSummariesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [DocumentClassifierSummary]
  [DocumentClassifierSummary]
  [DocumentClassifierSummary]
  [DocumentClassifierSummary]
-> Iso
     (Maybe [DocumentClassifierSummary])
     (Maybe [DocumentClassifierSummary])
     (Maybe [DocumentClassifierSummary])
     (Maybe [DocumentClassifierSummary])
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
  [DocumentClassifierSummary]
  [DocumentClassifierSummary]
  [DocumentClassifierSummary]
  [DocumentClassifierSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
listDocumentClassifierSummariesResponse_httpStatus :: Lens.Lens' ListDocumentClassifierSummariesResponse Prelude.Int
listDocumentClassifierSummariesResponse_httpStatus :: (Int -> f Int)
-> ListDocumentClassifierSummariesResponse
-> f ListDocumentClassifierSummariesResponse
listDocumentClassifierSummariesResponse_httpStatus = (ListDocumentClassifierSummariesResponse -> Int)
-> (ListDocumentClassifierSummariesResponse
    -> Int -> ListDocumentClassifierSummariesResponse)
-> Lens
     ListDocumentClassifierSummariesResponse
     ListDocumentClassifierSummariesResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassifierSummariesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDocumentClassifierSummariesResponse' :: ListDocumentClassifierSummariesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDocumentClassifierSummariesResponse
s@ListDocumentClassifierSummariesResponse' {} Int
a -> ListDocumentClassifierSummariesResponse
s {$sel:httpStatus:ListDocumentClassifierSummariesResponse' :: Int
httpStatus = Int
a} :: ListDocumentClassifierSummariesResponse)

instance
  Prelude.NFData
    ListDocumentClassifierSummariesResponse