{-# 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.ListRxNormInferenceJobs
-- 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 InferRxNorm jobs that you have submitted.
module Amazonka.ComprehendMedical.ListRxNormInferenceJobs
  ( -- * Creating a Request
    ListRxNormInferenceJobs (..),
    newListRxNormInferenceJobs,

    -- * Request Lenses
    listRxNormInferenceJobs_filter,
    listRxNormInferenceJobs_maxResults,
    listRxNormInferenceJobs_nextToken,

    -- * Destructuring the Response
    ListRxNormInferenceJobsResponse (..),
    newListRxNormInferenceJobsResponse,

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

-- |
-- Create a value of 'ListRxNormInferenceJobs' 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'', 'listRxNormInferenceJobs_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', 'listRxNormInferenceJobs_maxResults' - Identifies the next page of results to return.
--
-- 'nextToken', 'listRxNormInferenceJobs_nextToken' - Identifies the next page of results to return.
newListRxNormInferenceJobs ::
  ListRxNormInferenceJobs
newListRxNormInferenceJobs :: ListRxNormInferenceJobs
newListRxNormInferenceJobs =
  ListRxNormInferenceJobs'
    { $sel:filter':ListRxNormInferenceJobs' :: Maybe ComprehendMedicalAsyncJobFilter
filter' = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListRxNormInferenceJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListRxNormInferenceJobs' :: 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.
listRxNormInferenceJobs_filter :: Lens.Lens' ListRxNormInferenceJobs (Prelude.Maybe ComprehendMedicalAsyncJobFilter)
listRxNormInferenceJobs_filter :: Lens'
  ListRxNormInferenceJobs (Maybe ComprehendMedicalAsyncJobFilter)
listRxNormInferenceJobs_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRxNormInferenceJobs' {Maybe ComprehendMedicalAsyncJobFilter
filter' :: Maybe ComprehendMedicalAsyncJobFilter
$sel:filter':ListRxNormInferenceJobs' :: ListRxNormInferenceJobs -> Maybe ComprehendMedicalAsyncJobFilter
filter'} -> Maybe ComprehendMedicalAsyncJobFilter
filter') (\s :: ListRxNormInferenceJobs
s@ListRxNormInferenceJobs' {} Maybe ComprehendMedicalAsyncJobFilter
a -> ListRxNormInferenceJobs
s {$sel:filter':ListRxNormInferenceJobs' :: Maybe ComprehendMedicalAsyncJobFilter
filter' = Maybe ComprehendMedicalAsyncJobFilter
a} :: ListRxNormInferenceJobs)

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

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

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

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

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

-- |
-- Create a value of 'ListRxNormInferenceJobsResponse' 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', 'listRxNormInferenceJobsResponse_comprehendMedicalAsyncJobPropertiesList' - The maximum number of results to return in each page. The default is
-- 100.
--
-- 'nextToken', 'listRxNormInferenceJobsResponse_nextToken' - Identifies the next page of results to return.
--
-- 'httpStatus', 'listRxNormInferenceJobsResponse_httpStatus' - The response's http status code.
newListRxNormInferenceJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListRxNormInferenceJobsResponse
newListRxNormInferenceJobsResponse :: Int -> ListRxNormInferenceJobsResponse
newListRxNormInferenceJobsResponse Int
pHttpStatus_ =
  ListRxNormInferenceJobsResponse'
    { $sel:comprehendMedicalAsyncJobPropertiesList:ListRxNormInferenceJobsResponse' :: Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListRxNormInferenceJobsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListRxNormInferenceJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The maximum number of results to return in each page. The default is
-- 100.
listRxNormInferenceJobsResponse_comprehendMedicalAsyncJobPropertiesList :: Lens.Lens' ListRxNormInferenceJobsResponse (Prelude.Maybe [ComprehendMedicalAsyncJobProperties])
listRxNormInferenceJobsResponse_comprehendMedicalAsyncJobPropertiesList :: Lens'
  ListRxNormInferenceJobsResponse
  (Maybe [ComprehendMedicalAsyncJobProperties])
listRxNormInferenceJobsResponse_comprehendMedicalAsyncJobPropertiesList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRxNormInferenceJobsResponse' {Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList :: Maybe [ComprehendMedicalAsyncJobProperties]
$sel:comprehendMedicalAsyncJobPropertiesList:ListRxNormInferenceJobsResponse' :: ListRxNormInferenceJobsResponse
-> Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList} -> Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList) (\s :: ListRxNormInferenceJobsResponse
s@ListRxNormInferenceJobsResponse' {} Maybe [ComprehendMedicalAsyncJobProperties]
a -> ListRxNormInferenceJobsResponse
s {$sel:comprehendMedicalAsyncJobPropertiesList:ListRxNormInferenceJobsResponse' :: Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList = Maybe [ComprehendMedicalAsyncJobProperties]
a} :: ListRxNormInferenceJobsResponse) 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.
listRxNormInferenceJobsResponse_nextToken :: Lens.Lens' ListRxNormInferenceJobsResponse (Prelude.Maybe Prelude.Text)
listRxNormInferenceJobsResponse_nextToken :: Lens' ListRxNormInferenceJobsResponse (Maybe Text)
listRxNormInferenceJobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRxNormInferenceJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRxNormInferenceJobsResponse' :: ListRxNormInferenceJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRxNormInferenceJobsResponse
s@ListRxNormInferenceJobsResponse' {} Maybe Text
a -> ListRxNormInferenceJobsResponse
s {$sel:nextToken:ListRxNormInferenceJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRxNormInferenceJobsResponse)

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

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