{-# 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.ListDocumentClassifiers
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a list of the document classifiers that you have created.
--
-- This operation returns paginated results.
module Amazonka.Comprehend.ListDocumentClassifiers
  ( -- * Creating a Request
    ListDocumentClassifiers (..),
    newListDocumentClassifiers,

    -- * Request Lenses
    listDocumentClassifiers_filter,
    listDocumentClassifiers_maxResults,
    listDocumentClassifiers_nextToken,

    -- * Destructuring the Response
    ListDocumentClassifiersResponse (..),
    newListDocumentClassifiersResponse,

    -- * Response Lenses
    listDocumentClassifiersResponse_documentClassifierPropertiesList,
    listDocumentClassifiersResponse_nextToken,
    listDocumentClassifiersResponse_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

-- | /See:/ 'newListDocumentClassifiers' smart constructor.
data ListDocumentClassifiers = ListDocumentClassifiers'
  { -- | Filters the jobs that are returned. You can filter jobs on their name,
    -- status, or the date and time that they were submitted. You can only set
    -- one filter at a time.
    ListDocumentClassifiers -> Maybe DocumentClassifierFilter
filter' :: Prelude.Maybe DocumentClassifierFilter,
    -- | The maximum number of results to return in each page. The default is
    -- 100.
    ListDocumentClassifiers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Identifies the next page of results to return.
    ListDocumentClassifiers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListDocumentClassifiers -> ListDocumentClassifiers -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDocumentClassifiers -> ListDocumentClassifiers -> Bool
$c/= :: ListDocumentClassifiers -> ListDocumentClassifiers -> Bool
== :: ListDocumentClassifiers -> ListDocumentClassifiers -> Bool
$c== :: ListDocumentClassifiers -> ListDocumentClassifiers -> Bool
Prelude.Eq, ReadPrec [ListDocumentClassifiers]
ReadPrec ListDocumentClassifiers
Int -> ReadS ListDocumentClassifiers
ReadS [ListDocumentClassifiers]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDocumentClassifiers]
$creadListPrec :: ReadPrec [ListDocumentClassifiers]
readPrec :: ReadPrec ListDocumentClassifiers
$creadPrec :: ReadPrec ListDocumentClassifiers
readList :: ReadS [ListDocumentClassifiers]
$creadList :: ReadS [ListDocumentClassifiers]
readsPrec :: Int -> ReadS ListDocumentClassifiers
$creadsPrec :: Int -> ReadS ListDocumentClassifiers
Prelude.Read, Int -> ListDocumentClassifiers -> ShowS
[ListDocumentClassifiers] -> ShowS
ListDocumentClassifiers -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDocumentClassifiers] -> ShowS
$cshowList :: [ListDocumentClassifiers] -> ShowS
show :: ListDocumentClassifiers -> String
$cshow :: ListDocumentClassifiers -> String
showsPrec :: Int -> ListDocumentClassifiers -> ShowS
$cshowsPrec :: Int -> ListDocumentClassifiers -> ShowS
Prelude.Show, forall x. Rep ListDocumentClassifiers x -> ListDocumentClassifiers
forall x. ListDocumentClassifiers -> Rep ListDocumentClassifiers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDocumentClassifiers x -> ListDocumentClassifiers
$cfrom :: forall x. ListDocumentClassifiers -> Rep ListDocumentClassifiers x
Prelude.Generic)

-- |
-- Create a value of 'ListDocumentClassifiers' 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:
--
-- 'filter'', 'listDocumentClassifiers_filter' - Filters the jobs that are returned. You can filter jobs on their name,
-- status, or the date and time that they were submitted. You can only set
-- one filter at a time.
--
-- 'maxResults', 'listDocumentClassifiers_maxResults' - The maximum number of results to return in each page. The default is
-- 100.
--
-- 'nextToken', 'listDocumentClassifiers_nextToken' - Identifies the next page of results to return.
newListDocumentClassifiers ::
  ListDocumentClassifiers
newListDocumentClassifiers :: ListDocumentClassifiers
newListDocumentClassifiers =
  ListDocumentClassifiers'
    { $sel:filter':ListDocumentClassifiers' :: Maybe DocumentClassifierFilter
filter' = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDocumentClassifiers' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDocumentClassifiers' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | Filters the jobs that are returned. You can filter jobs on their name,
-- status, or the date and time that they were submitted. You can only set
-- one filter at a time.
listDocumentClassifiers_filter :: Lens.Lens' ListDocumentClassifiers (Prelude.Maybe DocumentClassifierFilter)
listDocumentClassifiers_filter :: Lens' ListDocumentClassifiers (Maybe DocumentClassifierFilter)
listDocumentClassifiers_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassifiers' {Maybe DocumentClassifierFilter
filter' :: Maybe DocumentClassifierFilter
$sel:filter':ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe DocumentClassifierFilter
filter'} -> Maybe DocumentClassifierFilter
filter') (\s :: ListDocumentClassifiers
s@ListDocumentClassifiers' {} Maybe DocumentClassifierFilter
a -> ListDocumentClassifiers
s {$sel:filter':ListDocumentClassifiers' :: Maybe DocumentClassifierFilter
filter' = Maybe DocumentClassifierFilter
a} :: ListDocumentClassifiers)

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

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

instance Core.AWSPager ListDocumentClassifiers where
  page :: ListDocumentClassifiers
-> AWSResponse ListDocumentClassifiers
-> Maybe ListDocumentClassifiers
page ListDocumentClassifiers
rq AWSResponse ListDocumentClassifiers
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDocumentClassifiers
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDocumentClassifiersResponse (Maybe Text)
listDocumentClassifiersResponse_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 ListDocumentClassifiers
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListDocumentClassifiersResponse
  (Maybe [DocumentClassifierProperties])
listDocumentClassifiersResponse_documentClassifierPropertiesList
            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.$ ListDocumentClassifiers
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListDocumentClassifiers (Maybe Text)
listDocumentClassifiers_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDocumentClassifiers
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDocumentClassifiersResponse (Maybe Text)
listDocumentClassifiersResponse_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 ListDocumentClassifiers where
  type
    AWSResponse ListDocumentClassifiers =
      ListDocumentClassifiersResponse
  request :: (Service -> Service)
-> ListDocumentClassifiers -> Request ListDocumentClassifiers
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 ListDocumentClassifiers
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListDocumentClassifiers)))
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 [DocumentClassifierProperties]
-> Maybe Text -> Int -> ListDocumentClassifiersResponse
ListDocumentClassifiersResponse'
            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
"DocumentClassifierPropertiesList"
                            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 ListDocumentClassifiers where
  hashWithSalt :: Int -> ListDocumentClassifiers -> Int
hashWithSalt Int
_salt ListDocumentClassifiers' {Maybe Natural
Maybe Text
Maybe DocumentClassifierFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DocumentClassifierFilter
$sel:nextToken:ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe Text
$sel:maxResults:ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe Natural
$sel:filter':ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe DocumentClassifierFilter
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DocumentClassifierFilter
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 ListDocumentClassifiers where
  rnf :: ListDocumentClassifiers -> ()
rnf ListDocumentClassifiers' {Maybe Natural
Maybe Text
Maybe DocumentClassifierFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DocumentClassifierFilter
$sel:nextToken:ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe Text
$sel:maxResults:ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe Natural
$sel:filter':ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe DocumentClassifierFilter
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe DocumentClassifierFilter
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 ListDocumentClassifiers where
  toHeaders :: ListDocumentClassifiers -> 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.ListDocumentClassifiers" ::
                          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 ListDocumentClassifiers where
  toJSON :: ListDocumentClassifiers -> Value
toJSON ListDocumentClassifiers' {Maybe Natural
Maybe Text
Maybe DocumentClassifierFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DocumentClassifierFilter
$sel:nextToken:ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe Text
$sel:maxResults:ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe Natural
$sel:filter':ListDocumentClassifiers' :: ListDocumentClassifiers -> Maybe DocumentClassifierFilter
..} =
    [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 DocumentClassifierFilter
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 ListDocumentClassifiers where
  toPath :: ListDocumentClassifiers -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newListDocumentClassifiersResponse' smart constructor.
data ListDocumentClassifiersResponse = ListDocumentClassifiersResponse'
  { -- | A list containing the properties of each job returned.
    ListDocumentClassifiersResponse
-> Maybe [DocumentClassifierProperties]
documentClassifierPropertiesList :: Prelude.Maybe [DocumentClassifierProperties],
    -- | Identifies the next page of results to return.
    ListDocumentClassifiersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListDocumentClassifiersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDocumentClassifiersResponse
-> ListDocumentClassifiersResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDocumentClassifiersResponse
-> ListDocumentClassifiersResponse -> Bool
$c/= :: ListDocumentClassifiersResponse
-> ListDocumentClassifiersResponse -> Bool
== :: ListDocumentClassifiersResponse
-> ListDocumentClassifiersResponse -> Bool
$c== :: ListDocumentClassifiersResponse
-> ListDocumentClassifiersResponse -> Bool
Prelude.Eq, Int -> ListDocumentClassifiersResponse -> ShowS
[ListDocumentClassifiersResponse] -> ShowS
ListDocumentClassifiersResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDocumentClassifiersResponse] -> ShowS
$cshowList :: [ListDocumentClassifiersResponse] -> ShowS
show :: ListDocumentClassifiersResponse -> String
$cshow :: ListDocumentClassifiersResponse -> String
showsPrec :: Int -> ListDocumentClassifiersResponse -> ShowS
$cshowsPrec :: Int -> ListDocumentClassifiersResponse -> ShowS
Prelude.Show, forall x.
Rep ListDocumentClassifiersResponse x
-> ListDocumentClassifiersResponse
forall x.
ListDocumentClassifiersResponse
-> Rep ListDocumentClassifiersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDocumentClassifiersResponse x
-> ListDocumentClassifiersResponse
$cfrom :: forall x.
ListDocumentClassifiersResponse
-> Rep ListDocumentClassifiersResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDocumentClassifiersResponse' 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:
--
-- 'documentClassifierPropertiesList', 'listDocumentClassifiersResponse_documentClassifierPropertiesList' - A list containing the properties of each job returned.
--
-- 'nextToken', 'listDocumentClassifiersResponse_nextToken' - Identifies the next page of results to return.
--
-- 'httpStatus', 'listDocumentClassifiersResponse_httpStatus' - The response's http status code.
newListDocumentClassifiersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDocumentClassifiersResponse
newListDocumentClassifiersResponse :: Int -> ListDocumentClassifiersResponse
newListDocumentClassifiersResponse Int
pHttpStatus_ =
  ListDocumentClassifiersResponse'
    { $sel:documentClassifierPropertiesList:ListDocumentClassifiersResponse' :: Maybe [DocumentClassifierProperties]
documentClassifierPropertiesList =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDocumentClassifiersResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDocumentClassifiersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list containing the properties of each job returned.
listDocumentClassifiersResponse_documentClassifierPropertiesList :: Lens.Lens' ListDocumentClassifiersResponse (Prelude.Maybe [DocumentClassifierProperties])
listDocumentClassifiersResponse_documentClassifierPropertiesList :: Lens'
  ListDocumentClassifiersResponse
  (Maybe [DocumentClassifierProperties])
listDocumentClassifiersResponse_documentClassifierPropertiesList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentClassifiersResponse' {Maybe [DocumentClassifierProperties]
documentClassifierPropertiesList :: Maybe [DocumentClassifierProperties]
$sel:documentClassifierPropertiesList:ListDocumentClassifiersResponse' :: ListDocumentClassifiersResponse
-> Maybe [DocumentClassifierProperties]
documentClassifierPropertiesList} -> Maybe [DocumentClassifierProperties]
documentClassifierPropertiesList) (\s :: ListDocumentClassifiersResponse
s@ListDocumentClassifiersResponse' {} Maybe [DocumentClassifierProperties]
a -> ListDocumentClassifiersResponse
s {$sel:documentClassifierPropertiesList:ListDocumentClassifiersResponse' :: Maybe [DocumentClassifierProperties]
documentClassifierPropertiesList = Maybe [DocumentClassifierProperties]
a} :: ListDocumentClassifiersResponse) 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

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

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

instance
  Prelude.NFData
    ListDocumentClassifiersResponse
  where
  rnf :: ListDocumentClassifiersResponse -> ()
rnf ListDocumentClassifiersResponse' {Int
Maybe [DocumentClassifierProperties]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
documentClassifierPropertiesList :: Maybe [DocumentClassifierProperties]
$sel:httpStatus:ListDocumentClassifiersResponse' :: ListDocumentClassifiersResponse -> Int
$sel:nextToken:ListDocumentClassifiersResponse' :: ListDocumentClassifiersResponse -> Maybe Text
$sel:documentClassifierPropertiesList:ListDocumentClassifiersResponse' :: ListDocumentClassifiersResponse
-> Maybe [DocumentClassifierProperties]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [DocumentClassifierProperties]
documentClassifierPropertiesList
      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