{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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_nextToken,
    listRxNormInferenceJobs_filter,
    listRxNormInferenceJobs_maxResults,

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

    -- * Response Lenses
    listRxNormInferenceJobsResponse_nextToken,
    listRxNormInferenceJobsResponse_comprehendMedicalAsyncJobPropertiesList,
    listRxNormInferenceJobsResponse_httpStatus,
  )
where

import Amazonka.ComprehendMedical.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
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'
  { -- | Identifies the next page of results to return.
    ListRxNormInferenceJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | 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
  }
  deriving (ListRxNormInferenceJobs -> ListRxNormInferenceJobs -> Bool
(ListRxNormInferenceJobs -> ListRxNormInferenceJobs -> Bool)
-> (ListRxNormInferenceJobs -> ListRxNormInferenceJobs -> Bool)
-> Eq ListRxNormInferenceJobs
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]
(Int -> ReadS ListRxNormInferenceJobs)
-> ReadS [ListRxNormInferenceJobs]
-> ReadPrec ListRxNormInferenceJobs
-> ReadPrec [ListRxNormInferenceJobs]
-> Read 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
(Int -> ListRxNormInferenceJobs -> ShowS)
-> (ListRxNormInferenceJobs -> String)
-> ([ListRxNormInferenceJobs] -> ShowS)
-> Show ListRxNormInferenceJobs
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.
 ListRxNormInferenceJobs -> Rep ListRxNormInferenceJobs x)
-> (forall x.
    Rep ListRxNormInferenceJobs x -> ListRxNormInferenceJobs)
-> Generic ListRxNormInferenceJobs
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:
--
-- 'nextToken', 'listRxNormInferenceJobs_nextToken' - Identifies the next page of results to return.
--
-- '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.
newListRxNormInferenceJobs ::
  ListRxNormInferenceJobs
newListRxNormInferenceJobs :: ListRxNormInferenceJobs
newListRxNormInferenceJobs =
  ListRxNormInferenceJobs' :: Maybe Text
-> Maybe ComprehendMedicalAsyncJobFilter
-> Maybe Natural
-> ListRxNormInferenceJobs
ListRxNormInferenceJobs'
    { $sel:nextToken:ListRxNormInferenceJobs' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:filter':ListRxNormInferenceJobs' :: Maybe ComprehendMedicalAsyncJobFilter
filter' = Maybe ComprehendMedicalAsyncJobFilter
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListRxNormInferenceJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Identifies the next page of results to return.
listRxNormInferenceJobs_nextToken :: Lens.Lens' ListRxNormInferenceJobs (Prelude.Maybe Prelude.Text)
listRxNormInferenceJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRxNormInferenceJobs -> f ListRxNormInferenceJobs
listRxNormInferenceJobs_nextToken = (ListRxNormInferenceJobs -> Maybe Text)
-> (ListRxNormInferenceJobs
    -> Maybe Text -> ListRxNormInferenceJobs)
-> Lens
     ListRxNormInferenceJobs
     ListRxNormInferenceJobs
     (Maybe Text)
     (Maybe Text)
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)

-- | 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 :: (Maybe ComprehendMedicalAsyncJobFilter
 -> f (Maybe ComprehendMedicalAsyncJobFilter))
-> ListRxNormInferenceJobs -> f ListRxNormInferenceJobs
listRxNormInferenceJobs_filter = (ListRxNormInferenceJobs -> Maybe ComprehendMedicalAsyncJobFilter)
-> (ListRxNormInferenceJobs
    -> Maybe ComprehendMedicalAsyncJobFilter
    -> ListRxNormInferenceJobs)
-> Lens
     ListRxNormInferenceJobs
     ListRxNormInferenceJobs
     (Maybe ComprehendMedicalAsyncJobFilter)
     (Maybe ComprehendMedicalAsyncJobFilter)
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 :: (Maybe Natural -> f (Maybe Natural))
-> ListRxNormInferenceJobs -> f ListRxNormInferenceJobs
listRxNormInferenceJobs_maxResults = (ListRxNormInferenceJobs -> Maybe Natural)
-> (ListRxNormInferenceJobs
    -> Maybe Natural -> ListRxNormInferenceJobs)
-> Lens
     ListRxNormInferenceJobs
     ListRxNormInferenceJobs
     (Maybe Natural)
     (Maybe Natural)
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)

instance Core.AWSRequest ListRxNormInferenceJobs where
  type
    AWSResponse ListRxNormInferenceJobs =
      ListRxNormInferenceJobsResponse
  request :: ListRxNormInferenceJobs -> Request ListRxNormInferenceJobs
request = Service
-> ListRxNormInferenceJobs -> Request ListRxNormInferenceJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListRxNormInferenceJobs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListRxNormInferenceJobs)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListRxNormInferenceJobs))
-> Logger
-> Service
-> Proxy ListRxNormInferenceJobs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListRxNormInferenceJobs)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe [ComprehendMedicalAsyncJobProperties]
-> Int
-> ListRxNormInferenceJobsResponse
ListRxNormInferenceJobsResponse'
            (Maybe Text
 -> Maybe [ComprehendMedicalAsyncJobProperties]
 -> Int
 -> ListRxNormInferenceJobsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [ComprehendMedicalAsyncJobProperties]
      -> Int -> ListRxNormInferenceJobsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
            Either
  String
  (Maybe [ComprehendMedicalAsyncJobProperties]
   -> Int -> ListRxNormInferenceJobsResponse)
-> Either String (Maybe [ComprehendMedicalAsyncJobProperties])
-> Either String (Int -> ListRxNormInferenceJobsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either
     String (Maybe (Maybe [ComprehendMedicalAsyncJobProperties]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ComprehendMedicalAsyncJobPropertiesList"
                            Either String (Maybe (Maybe [ComprehendMedicalAsyncJobProperties]))
-> Maybe [ComprehendMedicalAsyncJobProperties]
-> Either String (Maybe [ComprehendMedicalAsyncJobProperties])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ComprehendMedicalAsyncJobProperties]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> ListRxNormInferenceJobsResponse)
-> Either String Int
-> Either String ListRxNormInferenceJobsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListRxNormInferenceJobs

instance Prelude.NFData ListRxNormInferenceJobs

instance Core.ToHeaders ListRxNormInferenceJobs where
  toHeaders :: ListRxNormInferenceJobs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListRxNormInferenceJobs -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"ComprehendMedical_20181030.ListRxNormInferenceJobs" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ListRxNormInferenceJobs where
  toJSON :: ListRxNormInferenceJobs -> Value
toJSON ListRxNormInferenceJobs' {Maybe Natural
Maybe Text
Maybe ComprehendMedicalAsyncJobFilter
maxResults :: Maybe Natural
filter' :: Maybe ComprehendMedicalAsyncJobFilter
nextToken :: Maybe Text
$sel:maxResults:ListRxNormInferenceJobs' :: ListRxNormInferenceJobs -> Maybe Natural
$sel:filter':ListRxNormInferenceJobs' :: ListRxNormInferenceJobs -> Maybe ComprehendMedicalAsyncJobFilter
$sel:nextToken:ListRxNormInferenceJobs' :: ListRxNormInferenceJobs -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"Filter" Text -> ComprehendMedicalAsyncJobFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ComprehendMedicalAsyncJobFilter -> Pair)
-> Maybe ComprehendMedicalAsyncJobFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ComprehendMedicalAsyncJobFilter
filter',
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
          ]
      )

instance Core.ToPath ListRxNormInferenceJobs where
  toPath :: ListRxNormInferenceJobs -> ByteString
toPath = ByteString -> ListRxNormInferenceJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newListRxNormInferenceJobsResponse' smart constructor.
data ListRxNormInferenceJobsResponse = ListRxNormInferenceJobsResponse'
  { -- | Identifies the next page of results to return.
    ListRxNormInferenceJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return in each page. The default is
    -- 100.
    ListRxNormInferenceJobsResponse
-> Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList :: Prelude.Maybe [ComprehendMedicalAsyncJobProperties],
    -- | The response's http status code.
    ListRxNormInferenceJobsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListRxNormInferenceJobsResponse
-> ListRxNormInferenceJobsResponse -> Bool
(ListRxNormInferenceJobsResponse
 -> ListRxNormInferenceJobsResponse -> Bool)
-> (ListRxNormInferenceJobsResponse
    -> ListRxNormInferenceJobsResponse -> Bool)
-> Eq ListRxNormInferenceJobsResponse
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]
(Int -> ReadS ListRxNormInferenceJobsResponse)
-> ReadS [ListRxNormInferenceJobsResponse]
-> ReadPrec ListRxNormInferenceJobsResponse
-> ReadPrec [ListRxNormInferenceJobsResponse]
-> Read 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
(Int -> ListRxNormInferenceJobsResponse -> ShowS)
-> (ListRxNormInferenceJobsResponse -> String)
-> ([ListRxNormInferenceJobsResponse] -> ShowS)
-> Show ListRxNormInferenceJobsResponse
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.
 ListRxNormInferenceJobsResponse
 -> Rep ListRxNormInferenceJobsResponse x)
-> (forall x.
    Rep ListRxNormInferenceJobsResponse x
    -> ListRxNormInferenceJobsResponse)
-> Generic ListRxNormInferenceJobsResponse
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:
--
-- 'nextToken', 'listRxNormInferenceJobsResponse_nextToken' - Identifies the next page of results to return.
--
-- 'comprehendMedicalAsyncJobPropertiesList', 'listRxNormInferenceJobsResponse_comprehendMedicalAsyncJobPropertiesList' - The maximum number of results to return in each page. The default is
-- 100.
--
-- 'httpStatus', 'listRxNormInferenceJobsResponse_httpStatus' - The response's http status code.
newListRxNormInferenceJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListRxNormInferenceJobsResponse
newListRxNormInferenceJobsResponse :: Int -> ListRxNormInferenceJobsResponse
newListRxNormInferenceJobsResponse Int
pHttpStatus_ =
  ListRxNormInferenceJobsResponse' :: Maybe Text
-> Maybe [ComprehendMedicalAsyncJobProperties]
-> Int
-> ListRxNormInferenceJobsResponse
ListRxNormInferenceJobsResponse'
    { $sel:nextToken:ListRxNormInferenceJobsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:comprehendMedicalAsyncJobPropertiesList:ListRxNormInferenceJobsResponse' :: Maybe [ComprehendMedicalAsyncJobProperties]
comprehendMedicalAsyncJobPropertiesList =
        Maybe [ComprehendMedicalAsyncJobProperties]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListRxNormInferenceJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Identifies the next page of results to return.
listRxNormInferenceJobsResponse_nextToken :: Lens.Lens' ListRxNormInferenceJobsResponse (Prelude.Maybe Prelude.Text)
listRxNormInferenceJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRxNormInferenceJobsResponse
-> f ListRxNormInferenceJobsResponse
listRxNormInferenceJobsResponse_nextToken = (ListRxNormInferenceJobsResponse -> Maybe Text)
-> (ListRxNormInferenceJobsResponse
    -> Maybe Text -> ListRxNormInferenceJobsResponse)
-> Lens
     ListRxNormInferenceJobsResponse
     ListRxNormInferenceJobsResponse
     (Maybe Text)
     (Maybe Text)
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 maximum number of results to return in each page. The default is
-- 100.
listRxNormInferenceJobsResponse_comprehendMedicalAsyncJobPropertiesList :: Lens.Lens' ListRxNormInferenceJobsResponse (Prelude.Maybe [ComprehendMedicalAsyncJobProperties])
listRxNormInferenceJobsResponse_comprehendMedicalAsyncJobPropertiesList :: (Maybe [ComprehendMedicalAsyncJobProperties]
 -> f (Maybe [ComprehendMedicalAsyncJobProperties]))
-> ListRxNormInferenceJobsResponse
-> f ListRxNormInferenceJobsResponse
listRxNormInferenceJobsResponse_comprehendMedicalAsyncJobPropertiesList = (ListRxNormInferenceJobsResponse
 -> Maybe [ComprehendMedicalAsyncJobProperties])
-> (ListRxNormInferenceJobsResponse
    -> Maybe [ComprehendMedicalAsyncJobProperties]
    -> ListRxNormInferenceJobsResponse)
-> Lens
     ListRxNormInferenceJobsResponse
     ListRxNormInferenceJobsResponse
     (Maybe [ComprehendMedicalAsyncJobProperties])
     (Maybe [ComprehendMedicalAsyncJobProperties])
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) ((Maybe [ComprehendMedicalAsyncJobProperties]
  -> f (Maybe [ComprehendMedicalAsyncJobProperties]))
 -> ListRxNormInferenceJobsResponse
 -> f ListRxNormInferenceJobsResponse)
-> ((Maybe [ComprehendMedicalAsyncJobProperties]
     -> f (Maybe [ComprehendMedicalAsyncJobProperties]))
    -> Maybe [ComprehendMedicalAsyncJobProperties]
    -> f (Maybe [ComprehendMedicalAsyncJobProperties]))
-> (Maybe [ComprehendMedicalAsyncJobProperties]
    -> f (Maybe [ComprehendMedicalAsyncJobProperties]))
-> ListRxNormInferenceJobsResponse
-> f ListRxNormInferenceJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ComprehendMedicalAsyncJobProperties]
  [ComprehendMedicalAsyncJobProperties]
  [ComprehendMedicalAsyncJobProperties]
  [ComprehendMedicalAsyncJobProperties]
-> Iso
     (Maybe [ComprehendMedicalAsyncJobProperties])
     (Maybe [ComprehendMedicalAsyncJobProperties])
     (Maybe [ComprehendMedicalAsyncJobProperties])
     (Maybe [ComprehendMedicalAsyncJobProperties])
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 AnIso
  [ComprehendMedicalAsyncJobProperties]
  [ComprehendMedicalAsyncJobProperties]
  [ComprehendMedicalAsyncJobProperties]
  [ComprehendMedicalAsyncJobProperties]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
listRxNormInferenceJobsResponse_httpStatus :: Lens.Lens' ListRxNormInferenceJobsResponse Prelude.Int
listRxNormInferenceJobsResponse_httpStatus :: (Int -> f Int)
-> ListRxNormInferenceJobsResponse
-> f ListRxNormInferenceJobsResponse
listRxNormInferenceJobsResponse_httpStatus = (ListRxNormInferenceJobsResponse -> Int)
-> (ListRxNormInferenceJobsResponse
    -> Int -> ListRxNormInferenceJobsResponse)
-> Lens
     ListRxNormInferenceJobsResponse
     ListRxNormInferenceJobsResponse
     Int
     Int
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