{-# 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.ListEntitiesDetectionJobs
-- 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 entity detection jobs that you have submitted.
--
-- This operation returns paginated results.
module Amazonka.Comprehend.ListEntitiesDetectionJobs
  ( -- * Creating a Request
    ListEntitiesDetectionJobs (..),
    newListEntitiesDetectionJobs,

    -- * Request Lenses
    listEntitiesDetectionJobs_filter,
    listEntitiesDetectionJobs_maxResults,
    listEntitiesDetectionJobs_nextToken,

    -- * Destructuring the Response
    ListEntitiesDetectionJobsResponse (..),
    newListEntitiesDetectionJobsResponse,

    -- * Response Lenses
    listEntitiesDetectionJobsResponse_entitiesDetectionJobPropertiesList,
    listEntitiesDetectionJobsResponse_nextToken,
    listEntitiesDetectionJobsResponse_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:/ 'newListEntitiesDetectionJobs' smart constructor.
data ListEntitiesDetectionJobs = ListEntitiesDetectionJobs'
  { -- | 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.
    ListEntitiesDetectionJobs -> Maybe EntitiesDetectionJobFilter
filter' :: Prelude.Maybe EntitiesDetectionJobFilter,
    -- | The maximum number of results to return in each page. The default is
    -- 100.
    ListEntitiesDetectionJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Identifies the next page of results to return.
    ListEntitiesDetectionJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListEntitiesDetectionJobs -> ListEntitiesDetectionJobs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEntitiesDetectionJobs -> ListEntitiesDetectionJobs -> Bool
$c/= :: ListEntitiesDetectionJobs -> ListEntitiesDetectionJobs -> Bool
== :: ListEntitiesDetectionJobs -> ListEntitiesDetectionJobs -> Bool
$c== :: ListEntitiesDetectionJobs -> ListEntitiesDetectionJobs -> Bool
Prelude.Eq, ReadPrec [ListEntitiesDetectionJobs]
ReadPrec ListEntitiesDetectionJobs
Int -> ReadS ListEntitiesDetectionJobs
ReadS [ListEntitiesDetectionJobs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEntitiesDetectionJobs]
$creadListPrec :: ReadPrec [ListEntitiesDetectionJobs]
readPrec :: ReadPrec ListEntitiesDetectionJobs
$creadPrec :: ReadPrec ListEntitiesDetectionJobs
readList :: ReadS [ListEntitiesDetectionJobs]
$creadList :: ReadS [ListEntitiesDetectionJobs]
readsPrec :: Int -> ReadS ListEntitiesDetectionJobs
$creadsPrec :: Int -> ReadS ListEntitiesDetectionJobs
Prelude.Read, Int -> ListEntitiesDetectionJobs -> ShowS
[ListEntitiesDetectionJobs] -> ShowS
ListEntitiesDetectionJobs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEntitiesDetectionJobs] -> ShowS
$cshowList :: [ListEntitiesDetectionJobs] -> ShowS
show :: ListEntitiesDetectionJobs -> String
$cshow :: ListEntitiesDetectionJobs -> String
showsPrec :: Int -> ListEntitiesDetectionJobs -> ShowS
$cshowsPrec :: Int -> ListEntitiesDetectionJobs -> ShowS
Prelude.Show, forall x.
Rep ListEntitiesDetectionJobs x -> ListEntitiesDetectionJobs
forall x.
ListEntitiesDetectionJobs -> Rep ListEntitiesDetectionJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEntitiesDetectionJobs x -> ListEntitiesDetectionJobs
$cfrom :: forall x.
ListEntitiesDetectionJobs -> Rep ListEntitiesDetectionJobs x
Prelude.Generic)

-- |
-- Create a value of 'ListEntitiesDetectionJobs' 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'', 'listEntitiesDetectionJobs_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', 'listEntitiesDetectionJobs_maxResults' - The maximum number of results to return in each page. The default is
-- 100.
--
-- 'nextToken', 'listEntitiesDetectionJobs_nextToken' - Identifies the next page of results to return.
newListEntitiesDetectionJobs ::
  ListEntitiesDetectionJobs
newListEntitiesDetectionJobs :: ListEntitiesDetectionJobs
newListEntitiesDetectionJobs =
  ListEntitiesDetectionJobs'
    { $sel:filter':ListEntitiesDetectionJobs' :: Maybe EntitiesDetectionJobFilter
filter' =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListEntitiesDetectionJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListEntitiesDetectionJobs' :: 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.
listEntitiesDetectionJobs_filter :: Lens.Lens' ListEntitiesDetectionJobs (Prelude.Maybe EntitiesDetectionJobFilter)
listEntitiesDetectionJobs_filter :: Lens' ListEntitiesDetectionJobs (Maybe EntitiesDetectionJobFilter)
listEntitiesDetectionJobs_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntitiesDetectionJobs' {Maybe EntitiesDetectionJobFilter
filter' :: Maybe EntitiesDetectionJobFilter
$sel:filter':ListEntitiesDetectionJobs' :: ListEntitiesDetectionJobs -> Maybe EntitiesDetectionJobFilter
filter'} -> Maybe EntitiesDetectionJobFilter
filter') (\s :: ListEntitiesDetectionJobs
s@ListEntitiesDetectionJobs' {} Maybe EntitiesDetectionJobFilter
a -> ListEntitiesDetectionJobs
s {$sel:filter':ListEntitiesDetectionJobs' :: Maybe EntitiesDetectionJobFilter
filter' = Maybe EntitiesDetectionJobFilter
a} :: ListEntitiesDetectionJobs)

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

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

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

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

-- | /See:/ 'newListEntitiesDetectionJobsResponse' smart constructor.
data ListEntitiesDetectionJobsResponse = ListEntitiesDetectionJobsResponse'
  { -- | A list containing the properties of each job that is returned.
    ListEntitiesDetectionJobsResponse
-> Maybe [EntitiesDetectionJobProperties]
entitiesDetectionJobPropertiesList :: Prelude.Maybe [EntitiesDetectionJobProperties],
    -- | Identifies the next page of results to return.
    ListEntitiesDetectionJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListEntitiesDetectionJobsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListEntitiesDetectionJobsResponse
-> ListEntitiesDetectionJobsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEntitiesDetectionJobsResponse
-> ListEntitiesDetectionJobsResponse -> Bool
$c/= :: ListEntitiesDetectionJobsResponse
-> ListEntitiesDetectionJobsResponse -> Bool
== :: ListEntitiesDetectionJobsResponse
-> ListEntitiesDetectionJobsResponse -> Bool
$c== :: ListEntitiesDetectionJobsResponse
-> ListEntitiesDetectionJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListEntitiesDetectionJobsResponse]
ReadPrec ListEntitiesDetectionJobsResponse
Int -> ReadS ListEntitiesDetectionJobsResponse
ReadS [ListEntitiesDetectionJobsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEntitiesDetectionJobsResponse]
$creadListPrec :: ReadPrec [ListEntitiesDetectionJobsResponse]
readPrec :: ReadPrec ListEntitiesDetectionJobsResponse
$creadPrec :: ReadPrec ListEntitiesDetectionJobsResponse
readList :: ReadS [ListEntitiesDetectionJobsResponse]
$creadList :: ReadS [ListEntitiesDetectionJobsResponse]
readsPrec :: Int -> ReadS ListEntitiesDetectionJobsResponse
$creadsPrec :: Int -> ReadS ListEntitiesDetectionJobsResponse
Prelude.Read, Int -> ListEntitiesDetectionJobsResponse -> ShowS
[ListEntitiesDetectionJobsResponse] -> ShowS
ListEntitiesDetectionJobsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEntitiesDetectionJobsResponse] -> ShowS
$cshowList :: [ListEntitiesDetectionJobsResponse] -> ShowS
show :: ListEntitiesDetectionJobsResponse -> String
$cshow :: ListEntitiesDetectionJobsResponse -> String
showsPrec :: Int -> ListEntitiesDetectionJobsResponse -> ShowS
$cshowsPrec :: Int -> ListEntitiesDetectionJobsResponse -> ShowS
Prelude.Show, forall x.
Rep ListEntitiesDetectionJobsResponse x
-> ListEntitiesDetectionJobsResponse
forall x.
ListEntitiesDetectionJobsResponse
-> Rep ListEntitiesDetectionJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEntitiesDetectionJobsResponse x
-> ListEntitiesDetectionJobsResponse
$cfrom :: forall x.
ListEntitiesDetectionJobsResponse
-> Rep ListEntitiesDetectionJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListEntitiesDetectionJobsResponse' 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:
--
-- 'entitiesDetectionJobPropertiesList', 'listEntitiesDetectionJobsResponse_entitiesDetectionJobPropertiesList' - A list containing the properties of each job that is returned.
--
-- 'nextToken', 'listEntitiesDetectionJobsResponse_nextToken' - Identifies the next page of results to return.
--
-- 'httpStatus', 'listEntitiesDetectionJobsResponse_httpStatus' - The response's http status code.
newListEntitiesDetectionJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListEntitiesDetectionJobsResponse
newListEntitiesDetectionJobsResponse :: Int -> ListEntitiesDetectionJobsResponse
newListEntitiesDetectionJobsResponse Int
pHttpStatus_ =
  ListEntitiesDetectionJobsResponse'
    { $sel:entitiesDetectionJobPropertiesList:ListEntitiesDetectionJobsResponse' :: Maybe [EntitiesDetectionJobProperties]
entitiesDetectionJobPropertiesList =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListEntitiesDetectionJobsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListEntitiesDetectionJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list containing the properties of each job that is returned.
listEntitiesDetectionJobsResponse_entitiesDetectionJobPropertiesList :: Lens.Lens' ListEntitiesDetectionJobsResponse (Prelude.Maybe [EntitiesDetectionJobProperties])
listEntitiesDetectionJobsResponse_entitiesDetectionJobPropertiesList :: Lens'
  ListEntitiesDetectionJobsResponse
  (Maybe [EntitiesDetectionJobProperties])
listEntitiesDetectionJobsResponse_entitiesDetectionJobPropertiesList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntitiesDetectionJobsResponse' {Maybe [EntitiesDetectionJobProperties]
entitiesDetectionJobPropertiesList :: Maybe [EntitiesDetectionJobProperties]
$sel:entitiesDetectionJobPropertiesList:ListEntitiesDetectionJobsResponse' :: ListEntitiesDetectionJobsResponse
-> Maybe [EntitiesDetectionJobProperties]
entitiesDetectionJobPropertiesList} -> Maybe [EntitiesDetectionJobProperties]
entitiesDetectionJobPropertiesList) (\s :: ListEntitiesDetectionJobsResponse
s@ListEntitiesDetectionJobsResponse' {} Maybe [EntitiesDetectionJobProperties]
a -> ListEntitiesDetectionJobsResponse
s {$sel:entitiesDetectionJobPropertiesList:ListEntitiesDetectionJobsResponse' :: Maybe [EntitiesDetectionJobProperties]
entitiesDetectionJobPropertiesList = Maybe [EntitiesDetectionJobProperties]
a} :: ListEntitiesDetectionJobsResponse) 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.
listEntitiesDetectionJobsResponse_nextToken :: Lens.Lens' ListEntitiesDetectionJobsResponse (Prelude.Maybe Prelude.Text)
listEntitiesDetectionJobsResponse_nextToken :: Lens' ListEntitiesDetectionJobsResponse (Maybe Text)
listEntitiesDetectionJobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntitiesDetectionJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEntitiesDetectionJobsResponse' :: ListEntitiesDetectionJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEntitiesDetectionJobsResponse
s@ListEntitiesDetectionJobsResponse' {} Maybe Text
a -> ListEntitiesDetectionJobsResponse
s {$sel:nextToken:ListEntitiesDetectionJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListEntitiesDetectionJobsResponse)

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

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