{-# 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.ListPHIDetectionJobs
-- 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 protected health information (PHI) detection jobs that
-- you have submitted.
module Amazonka.ComprehendMedical.ListPHIDetectionJobs
  ( -- * Creating a Request
    ListPHIDetectionJobs (..),
    newListPHIDetectionJobs,

    -- * Request Lenses
    listPHIDetectionJobs_filter,
    listPHIDetectionJobs_maxResults,
    listPHIDetectionJobs_nextToken,

    -- * Destructuring the Response
    ListPHIDetectionJobsResponse (..),
    newListPHIDetectionJobsResponse,

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

-- |
-- Create a value of 'ListPHIDetectionJobs' 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'', 'listPHIDetectionJobs_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', 'listPHIDetectionJobs_maxResults' - The maximum number of results to return in each page. The default is
-- 100.
--
-- 'nextToken', 'listPHIDetectionJobs_nextToken' - Identifies the next page of results to return.
newListPHIDetectionJobs ::
  ListPHIDetectionJobs
newListPHIDetectionJobs :: ListPHIDetectionJobs
newListPHIDetectionJobs =
  ListPHIDetectionJobs'
    { $sel:filter':ListPHIDetectionJobs' :: Maybe ComprehendMedicalAsyncJobFilter
filter' = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListPHIDetectionJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListPHIDetectionJobs' :: 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.
listPHIDetectionJobs_filter :: Lens.Lens' ListPHIDetectionJobs (Prelude.Maybe ComprehendMedicalAsyncJobFilter)
listPHIDetectionJobs_filter :: Lens' ListPHIDetectionJobs (Maybe ComprehendMedicalAsyncJobFilter)
listPHIDetectionJobs_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPHIDetectionJobs' {Maybe ComprehendMedicalAsyncJobFilter
filter' :: Maybe ComprehendMedicalAsyncJobFilter
$sel:filter':ListPHIDetectionJobs' :: ListPHIDetectionJobs -> Maybe ComprehendMedicalAsyncJobFilter
filter'} -> Maybe ComprehendMedicalAsyncJobFilter
filter') (\s :: ListPHIDetectionJobs
s@ListPHIDetectionJobs' {} Maybe ComprehendMedicalAsyncJobFilter
a -> ListPHIDetectionJobs
s {$sel:filter':ListPHIDetectionJobs' :: Maybe ComprehendMedicalAsyncJobFilter
filter' = Maybe ComprehendMedicalAsyncJobFilter
a} :: ListPHIDetectionJobs)

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

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

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

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

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

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

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

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

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