{-# 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.ComprehendMedical.ListEntitiesDetectionV2Jobs
-- 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 medical entity detection jobs that you have submitted.
module Amazonka.ComprehendMedical.ListEntitiesDetectionV2Jobs
  ( -- * Creating a Request
    ListEntitiesDetectionV2Jobs (..),
    newListEntitiesDetectionV2Jobs,

    -- * Request Lenses
    listEntitiesDetectionV2Jobs_filter,
    listEntitiesDetectionV2Jobs_maxResults,
    listEntitiesDetectionV2Jobs_nextToken,

    -- * Destructuring the Response
    ListEntitiesDetectionV2JobsResponse (..),
    newListEntitiesDetectionV2JobsResponse,

    -- * Response Lenses
    listEntitiesDetectionV2JobsResponse_comprehendMedicalAsyncJobPropertiesList,
    listEntitiesDetectionV2JobsResponse_nextToken,
    listEntitiesDetectionV2JobsResponse_httpStatus,
  )
where

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

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

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

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

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

instance Core.AWSRequest ListEntitiesDetectionV2Jobs where
  type
    AWSResponse ListEntitiesDetectionV2Jobs =
      ListEntitiesDetectionV2JobsResponse
  request :: (Service -> Service)
-> ListEntitiesDetectionV2Jobs
-> Request ListEntitiesDetectionV2Jobs
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 ListEntitiesDetectionV2Jobs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListEntitiesDetectionV2Jobs)))
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 [ComprehendMedicalAsyncJobProperties]
-> Maybe Text -> Int -> ListEntitiesDetectionV2JobsResponse
ListEntitiesDetectionV2JobsResponse'
            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
"ComprehendMedicalAsyncJobPropertiesList"
                            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 ListEntitiesDetectionV2Jobs where
  hashWithSalt :: Int -> ListEntitiesDetectionV2Jobs -> Int
hashWithSalt Int
_salt ListEntitiesDetectionV2Jobs' {Maybe Natural
Maybe Text
Maybe ComprehendMedicalAsyncJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe ComprehendMedicalAsyncJobFilter
$sel:nextToken:ListEntitiesDetectionV2Jobs' :: ListEntitiesDetectionV2Jobs -> Maybe Text
$sel:maxResults:ListEntitiesDetectionV2Jobs' :: ListEntitiesDetectionV2Jobs -> Maybe Natural
$sel:filter':ListEntitiesDetectionV2Jobs' :: ListEntitiesDetectionV2Jobs
-> Maybe ComprehendMedicalAsyncJobFilter
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ComprehendMedicalAsyncJobFilter
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 ListEntitiesDetectionV2Jobs where
  rnf :: ListEntitiesDetectionV2Jobs -> ()
rnf ListEntitiesDetectionV2Jobs' {Maybe Natural
Maybe Text
Maybe ComprehendMedicalAsyncJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe ComprehendMedicalAsyncJobFilter
$sel:nextToken:ListEntitiesDetectionV2Jobs' :: ListEntitiesDetectionV2Jobs -> Maybe Text
$sel:maxResults:ListEntitiesDetectionV2Jobs' :: ListEntitiesDetectionV2Jobs -> Maybe Natural
$sel:filter':ListEntitiesDetectionV2Jobs' :: ListEntitiesDetectionV2Jobs
-> Maybe ComprehendMedicalAsyncJobFilter
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe ComprehendMedicalAsyncJobFilter
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 ListEntitiesDetectionV2Jobs where
  toHeaders :: ListEntitiesDetectionV2Jobs -> 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
"ComprehendMedical_20181030.ListEntitiesDetectionV2Jobs" ::
                          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 ListEntitiesDetectionV2Jobs where
  toJSON :: ListEntitiesDetectionV2Jobs -> Value
toJSON ListEntitiesDetectionV2Jobs' {Maybe Natural
Maybe Text
Maybe ComprehendMedicalAsyncJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe ComprehendMedicalAsyncJobFilter
$sel:nextToken:ListEntitiesDetectionV2Jobs' :: ListEntitiesDetectionV2Jobs -> Maybe Text
$sel:maxResults:ListEntitiesDetectionV2Jobs' :: ListEntitiesDetectionV2Jobs -> Maybe Natural
$sel:filter':ListEntitiesDetectionV2Jobs' :: ListEntitiesDetectionV2Jobs
-> Maybe ComprehendMedicalAsyncJobFilter
..} =
    [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 ComprehendMedicalAsyncJobFilter
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 ListEntitiesDetectionV2Jobs where
  toPath :: ListEntitiesDetectionV2Jobs -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

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

-- |
-- Create a value of 'ListEntitiesDetectionV2JobsResponse' 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:
--
-- 'comprehendMedicalAsyncJobPropertiesList', 'listEntitiesDetectionV2JobsResponse_comprehendMedicalAsyncJobPropertiesList' - A list containing the properties of each job returned.
--
-- 'nextToken', 'listEntitiesDetectionV2JobsResponse_nextToken' - Identifies the next page of results to return.
--
-- 'httpStatus', 'listEntitiesDetectionV2JobsResponse_httpStatus' - The response's http status code.
newListEntitiesDetectionV2JobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListEntitiesDetectionV2JobsResponse
newListEntitiesDetectionV2JobsResponse :: Int -> ListEntitiesDetectionV2JobsResponse
newListEntitiesDetectionV2JobsResponse Int
pHttpStatus_ =
  ListEntitiesDetectionV2JobsResponse'
    { $sel:comprehendMedicalAsyncJobPropertiesList:ListEntitiesDetectionV2JobsResponse' :: Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListEntitiesDetectionV2JobsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListEntitiesDetectionV2JobsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list containing the properties of each job returned.
listEntitiesDetectionV2JobsResponse_comprehendMedicalAsyncJobPropertiesList :: Lens.Lens' ListEntitiesDetectionV2JobsResponse (Prelude.Maybe [ComprehendMedicalAsyncJobProperties])
listEntitiesDetectionV2JobsResponse_comprehendMedicalAsyncJobPropertiesList :: Lens'
  ListEntitiesDetectionV2JobsResponse
  (Maybe [ComprehendMedicalAsyncJobProperties])
listEntitiesDetectionV2JobsResponse_comprehendMedicalAsyncJobPropertiesList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntitiesDetectionV2JobsResponse' {Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList :: Maybe [ComprehendMedicalAsyncJobProperties]
$sel:comprehendMedicalAsyncJobPropertiesList:ListEntitiesDetectionV2JobsResponse' :: ListEntitiesDetectionV2JobsResponse
-> Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList} -> Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList) (\s :: ListEntitiesDetectionV2JobsResponse
s@ListEntitiesDetectionV2JobsResponse' {} Maybe [ComprehendMedicalAsyncJobProperties]
a -> ListEntitiesDetectionV2JobsResponse
s {$sel:comprehendMedicalAsyncJobPropertiesList:ListEntitiesDetectionV2JobsResponse' :: Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList = Maybe [ComprehendMedicalAsyncJobProperties]
a} :: ListEntitiesDetectionV2JobsResponse) 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.
listEntitiesDetectionV2JobsResponse_nextToken :: Lens.Lens' ListEntitiesDetectionV2JobsResponse (Prelude.Maybe Prelude.Text)
listEntitiesDetectionV2JobsResponse_nextToken :: Lens' ListEntitiesDetectionV2JobsResponse (Maybe Text)
listEntitiesDetectionV2JobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntitiesDetectionV2JobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEntitiesDetectionV2JobsResponse' :: ListEntitiesDetectionV2JobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEntitiesDetectionV2JobsResponse
s@ListEntitiesDetectionV2JobsResponse' {} Maybe Text
a -> ListEntitiesDetectionV2JobsResponse
s {$sel:nextToken:ListEntitiesDetectionV2JobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListEntitiesDetectionV2JobsResponse)

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

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