{-# 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 #-}
module Amazonka.HealthLake.ListFHIRImportJobs
(
ListFHIRImportJobs (..),
newListFHIRImportJobs,
listFHIRImportJobs_submittedAfter,
listFHIRImportJobs_jobName,
listFHIRImportJobs_submittedBefore,
listFHIRImportJobs_nextToken,
listFHIRImportJobs_jobStatus,
listFHIRImportJobs_maxResults,
listFHIRImportJobs_datastoreId,
ListFHIRImportJobsResponse (..),
newListFHIRImportJobsResponse,
listFHIRImportJobsResponse_nextToken,
listFHIRImportJobsResponse_httpStatus,
listFHIRImportJobsResponse_importJobPropertiesList,
)
where
import qualified Amazonka.Core as Core
import Amazonka.HealthLake.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListFHIRImportJobs = ListFHIRImportJobs'
{
ListFHIRImportJobs -> Maybe POSIX
submittedAfter :: Prelude.Maybe Core.POSIX,
ListFHIRImportJobs -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
ListFHIRImportJobs -> Maybe POSIX
submittedBefore :: Prelude.Maybe Core.POSIX,
ListFHIRImportJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFHIRImportJobs -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
ListFHIRImportJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListFHIRImportJobs -> Text
datastoreId :: Prelude.Text
}
deriving (ListFHIRImportJobs -> ListFHIRImportJobs -> Bool
(ListFHIRImportJobs -> ListFHIRImportJobs -> Bool)
-> (ListFHIRImportJobs -> ListFHIRImportJobs -> Bool)
-> Eq ListFHIRImportJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFHIRImportJobs -> ListFHIRImportJobs -> Bool
$c/= :: ListFHIRImportJobs -> ListFHIRImportJobs -> Bool
== :: ListFHIRImportJobs -> ListFHIRImportJobs -> Bool
$c== :: ListFHIRImportJobs -> ListFHIRImportJobs -> Bool
Prelude.Eq, ReadPrec [ListFHIRImportJobs]
ReadPrec ListFHIRImportJobs
Int -> ReadS ListFHIRImportJobs
ReadS [ListFHIRImportJobs]
(Int -> ReadS ListFHIRImportJobs)
-> ReadS [ListFHIRImportJobs]
-> ReadPrec ListFHIRImportJobs
-> ReadPrec [ListFHIRImportJobs]
-> Read ListFHIRImportJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFHIRImportJobs]
$creadListPrec :: ReadPrec [ListFHIRImportJobs]
readPrec :: ReadPrec ListFHIRImportJobs
$creadPrec :: ReadPrec ListFHIRImportJobs
readList :: ReadS [ListFHIRImportJobs]
$creadList :: ReadS [ListFHIRImportJobs]
readsPrec :: Int -> ReadS ListFHIRImportJobs
$creadsPrec :: Int -> ReadS ListFHIRImportJobs
Prelude.Read, Int -> ListFHIRImportJobs -> ShowS
[ListFHIRImportJobs] -> ShowS
ListFHIRImportJobs -> String
(Int -> ListFHIRImportJobs -> ShowS)
-> (ListFHIRImportJobs -> String)
-> ([ListFHIRImportJobs] -> ShowS)
-> Show ListFHIRImportJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFHIRImportJobs] -> ShowS
$cshowList :: [ListFHIRImportJobs] -> ShowS
show :: ListFHIRImportJobs -> String
$cshow :: ListFHIRImportJobs -> String
showsPrec :: Int -> ListFHIRImportJobs -> ShowS
$cshowsPrec :: Int -> ListFHIRImportJobs -> ShowS
Prelude.Show, (forall x. ListFHIRImportJobs -> Rep ListFHIRImportJobs x)
-> (forall x. Rep ListFHIRImportJobs x -> ListFHIRImportJobs)
-> Generic ListFHIRImportJobs
forall x. Rep ListFHIRImportJobs x -> ListFHIRImportJobs
forall x. ListFHIRImportJobs -> Rep ListFHIRImportJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListFHIRImportJobs x -> ListFHIRImportJobs
$cfrom :: forall x. ListFHIRImportJobs -> Rep ListFHIRImportJobs x
Prelude.Generic)
newListFHIRImportJobs ::
Prelude.Text ->
ListFHIRImportJobs
newListFHIRImportJobs :: Text -> ListFHIRImportJobs
newListFHIRImportJobs Text
pDatastoreId_ =
ListFHIRImportJobs' :: Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe JobStatus
-> Maybe Natural
-> Text
-> ListFHIRImportJobs
ListFHIRImportJobs'
{ $sel:submittedAfter:ListFHIRImportJobs' :: Maybe POSIX
submittedAfter =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:ListFHIRImportJobs' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:submittedBefore:ListFHIRImportJobs' :: Maybe POSIX
submittedBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListFHIRImportJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:ListFHIRImportJobs' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListFHIRImportJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:datastoreId:ListFHIRImportJobs' :: Text
datastoreId = Text
pDatastoreId_
}
listFHIRImportJobs_submittedAfter :: Lens.Lens' ListFHIRImportJobs (Prelude.Maybe Prelude.UTCTime)
listFHIRImportJobs_submittedAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListFHIRImportJobs -> f ListFHIRImportJobs
listFHIRImportJobs_submittedAfter = (ListFHIRImportJobs -> Maybe POSIX)
-> (ListFHIRImportJobs -> Maybe POSIX -> ListFHIRImportJobs)
-> Lens
ListFHIRImportJobs ListFHIRImportJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobs' {Maybe POSIX
submittedAfter :: Maybe POSIX
$sel:submittedAfter:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe POSIX
submittedAfter} -> Maybe POSIX
submittedAfter) (\s :: ListFHIRImportJobs
s@ListFHIRImportJobs' {} Maybe POSIX
a -> ListFHIRImportJobs
s {$sel:submittedAfter:ListFHIRImportJobs' :: Maybe POSIX
submittedAfter = Maybe POSIX
a} :: ListFHIRImportJobs) ((Maybe POSIX -> f (Maybe POSIX))
-> ListFHIRImportJobs -> f ListFHIRImportJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListFHIRImportJobs
-> f ListFHIRImportJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
listFHIRImportJobs_jobName :: Lens.Lens' ListFHIRImportJobs (Prelude.Maybe Prelude.Text)
listFHIRImportJobs_jobName :: (Maybe Text -> f (Maybe Text))
-> ListFHIRImportJobs -> f ListFHIRImportJobs
listFHIRImportJobs_jobName = (ListFHIRImportJobs -> Maybe Text)
-> (ListFHIRImportJobs -> Maybe Text -> ListFHIRImportJobs)
-> Lens
ListFHIRImportJobs ListFHIRImportJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobs' {Maybe Text
jobName :: Maybe Text
$sel:jobName:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: ListFHIRImportJobs
s@ListFHIRImportJobs' {} Maybe Text
a -> ListFHIRImportJobs
s {$sel:jobName:ListFHIRImportJobs' :: Maybe Text
jobName = Maybe Text
a} :: ListFHIRImportJobs)
listFHIRImportJobs_submittedBefore :: Lens.Lens' ListFHIRImportJobs (Prelude.Maybe Prelude.UTCTime)
listFHIRImportJobs_submittedBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListFHIRImportJobs -> f ListFHIRImportJobs
listFHIRImportJobs_submittedBefore = (ListFHIRImportJobs -> Maybe POSIX)
-> (ListFHIRImportJobs -> Maybe POSIX -> ListFHIRImportJobs)
-> Lens
ListFHIRImportJobs ListFHIRImportJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobs' {Maybe POSIX
submittedBefore :: Maybe POSIX
$sel:submittedBefore:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe POSIX
submittedBefore} -> Maybe POSIX
submittedBefore) (\s :: ListFHIRImportJobs
s@ListFHIRImportJobs' {} Maybe POSIX
a -> ListFHIRImportJobs
s {$sel:submittedBefore:ListFHIRImportJobs' :: Maybe POSIX
submittedBefore = Maybe POSIX
a} :: ListFHIRImportJobs) ((Maybe POSIX -> f (Maybe POSIX))
-> ListFHIRImportJobs -> f ListFHIRImportJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListFHIRImportJobs
-> f ListFHIRImportJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
listFHIRImportJobs_nextToken :: Lens.Lens' ListFHIRImportJobs (Prelude.Maybe Prelude.Text)
listFHIRImportJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFHIRImportJobs -> f ListFHIRImportJobs
listFHIRImportJobs_nextToken = (ListFHIRImportJobs -> Maybe Text)
-> (ListFHIRImportJobs -> Maybe Text -> ListFHIRImportJobs)
-> Lens
ListFHIRImportJobs ListFHIRImportJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFHIRImportJobs
s@ListFHIRImportJobs' {} Maybe Text
a -> ListFHIRImportJobs
s {$sel:nextToken:ListFHIRImportJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListFHIRImportJobs)
listFHIRImportJobs_jobStatus :: Lens.Lens' ListFHIRImportJobs (Prelude.Maybe JobStatus)
listFHIRImportJobs_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> ListFHIRImportJobs -> f ListFHIRImportJobs
listFHIRImportJobs_jobStatus = (ListFHIRImportJobs -> Maybe JobStatus)
-> (ListFHIRImportJobs -> Maybe JobStatus -> ListFHIRImportJobs)
-> Lens
ListFHIRImportJobs
ListFHIRImportJobs
(Maybe JobStatus)
(Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobs' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: ListFHIRImportJobs
s@ListFHIRImportJobs' {} Maybe JobStatus
a -> ListFHIRImportJobs
s {$sel:jobStatus:ListFHIRImportJobs' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: ListFHIRImportJobs)
listFHIRImportJobs_maxResults :: Lens.Lens' ListFHIRImportJobs (Prelude.Maybe Prelude.Natural)
listFHIRImportJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListFHIRImportJobs -> f ListFHIRImportJobs
listFHIRImportJobs_maxResults = (ListFHIRImportJobs -> Maybe Natural)
-> (ListFHIRImportJobs -> Maybe Natural -> ListFHIRImportJobs)
-> Lens
ListFHIRImportJobs
ListFHIRImportJobs
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListFHIRImportJobs
s@ListFHIRImportJobs' {} Maybe Natural
a -> ListFHIRImportJobs
s {$sel:maxResults:ListFHIRImportJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListFHIRImportJobs)
listFHIRImportJobs_datastoreId :: Lens.Lens' ListFHIRImportJobs Prelude.Text
listFHIRImportJobs_datastoreId :: (Text -> f Text) -> ListFHIRImportJobs -> f ListFHIRImportJobs
listFHIRImportJobs_datastoreId = (ListFHIRImportJobs -> Text)
-> (ListFHIRImportJobs -> Text -> ListFHIRImportJobs)
-> Lens ListFHIRImportJobs ListFHIRImportJobs Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobs' {Text
datastoreId :: Text
$sel:datastoreId:ListFHIRImportJobs' :: ListFHIRImportJobs -> Text
datastoreId} -> Text
datastoreId) (\s :: ListFHIRImportJobs
s@ListFHIRImportJobs' {} Text
a -> ListFHIRImportJobs
s {$sel:datastoreId:ListFHIRImportJobs' :: Text
datastoreId = Text
a} :: ListFHIRImportJobs)
instance Core.AWSRequest ListFHIRImportJobs where
type
AWSResponse ListFHIRImportJobs =
ListFHIRImportJobsResponse
request :: ListFHIRImportJobs -> Request ListFHIRImportJobs
request = Service -> ListFHIRImportJobs -> Request ListFHIRImportJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListFHIRImportJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListFHIRImportJobs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListFHIRImportJobs))
-> Logger
-> Service
-> Proxy ListFHIRImportJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListFHIRImportJobs)))
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
-> Int -> [ImportJobProperties] -> ListFHIRImportJobsResponse
ListFHIRImportJobsResponse'
(Maybe Text
-> Int -> [ImportJobProperties] -> ListFHIRImportJobsResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> [ImportJobProperties] -> ListFHIRImportJobsResponse)
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 (Int -> [ImportJobProperties] -> ListFHIRImportJobsResponse)
-> Either String Int
-> Either
String ([ImportJobProperties] -> ListFHIRImportJobsResponse)
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))
Either String ([ImportJobProperties] -> ListFHIRImportJobsResponse)
-> Either String [ImportJobProperties]
-> Either String ListFHIRImportJobsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [ImportJobProperties])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ImportJobPropertiesList"
Either String (Maybe [ImportJobProperties])
-> [ImportJobProperties] -> Either String [ImportJobProperties]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [ImportJobProperties]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListFHIRImportJobs
instance Prelude.NFData ListFHIRImportJobs
instance Core.ToHeaders ListFHIRImportJobs where
toHeaders :: ListFHIRImportJobs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListFHIRImportJobs -> 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
"HealthLake.ListFHIRImportJobs" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListFHIRImportJobs where
toJSON :: ListFHIRImportJobs -> Value
toJSON ListFHIRImportJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe JobStatus
Text
datastoreId :: Text
maxResults :: Maybe Natural
jobStatus :: Maybe JobStatus
nextToken :: Maybe Text
submittedBefore :: Maybe POSIX
jobName :: Maybe Text
submittedAfter :: Maybe POSIX
$sel:datastoreId:ListFHIRImportJobs' :: ListFHIRImportJobs -> Text
$sel:maxResults:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe Natural
$sel:jobStatus:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe JobStatus
$sel:nextToken:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe Text
$sel:submittedBefore:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe POSIX
$sel:jobName:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe Text
$sel:submittedAfter:ListFHIRImportJobs' :: ListFHIRImportJobs -> Maybe POSIX
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"SubmittedAfter" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
submittedAfter,
(Text
"JobName" 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
jobName,
(Text
"SubmittedBefore" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
submittedBefore,
(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
"JobStatus" Text -> JobStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (JobStatus -> Pair) -> Maybe JobStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe JobStatus
jobStatus,
(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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DatastoreId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
datastoreId)
]
)
instance Core.ToPath ListFHIRImportJobs where
toPath :: ListFHIRImportJobs -> ByteString
toPath = ByteString -> ListFHIRImportJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListFHIRImportJobs where
toQuery :: ListFHIRImportJobs -> QueryString
toQuery = QueryString -> ListFHIRImportJobs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListFHIRImportJobsResponse = ListFHIRImportJobsResponse'
{
ListFHIRImportJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFHIRImportJobsResponse -> Int
httpStatus :: Prelude.Int,
ListFHIRImportJobsResponse -> [ImportJobProperties]
importJobPropertiesList :: [ImportJobProperties]
}
deriving (ListFHIRImportJobsResponse -> ListFHIRImportJobsResponse -> Bool
(ListFHIRImportJobsResponse -> ListFHIRImportJobsResponse -> Bool)
-> (ListFHIRImportJobsResponse
-> ListFHIRImportJobsResponse -> Bool)
-> Eq ListFHIRImportJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFHIRImportJobsResponse -> ListFHIRImportJobsResponse -> Bool
$c/= :: ListFHIRImportJobsResponse -> ListFHIRImportJobsResponse -> Bool
== :: ListFHIRImportJobsResponse -> ListFHIRImportJobsResponse -> Bool
$c== :: ListFHIRImportJobsResponse -> ListFHIRImportJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListFHIRImportJobsResponse]
ReadPrec ListFHIRImportJobsResponse
Int -> ReadS ListFHIRImportJobsResponse
ReadS [ListFHIRImportJobsResponse]
(Int -> ReadS ListFHIRImportJobsResponse)
-> ReadS [ListFHIRImportJobsResponse]
-> ReadPrec ListFHIRImportJobsResponse
-> ReadPrec [ListFHIRImportJobsResponse]
-> Read ListFHIRImportJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFHIRImportJobsResponse]
$creadListPrec :: ReadPrec [ListFHIRImportJobsResponse]
readPrec :: ReadPrec ListFHIRImportJobsResponse
$creadPrec :: ReadPrec ListFHIRImportJobsResponse
readList :: ReadS [ListFHIRImportJobsResponse]
$creadList :: ReadS [ListFHIRImportJobsResponse]
readsPrec :: Int -> ReadS ListFHIRImportJobsResponse
$creadsPrec :: Int -> ReadS ListFHIRImportJobsResponse
Prelude.Read, Int -> ListFHIRImportJobsResponse -> ShowS
[ListFHIRImportJobsResponse] -> ShowS
ListFHIRImportJobsResponse -> String
(Int -> ListFHIRImportJobsResponse -> ShowS)
-> (ListFHIRImportJobsResponse -> String)
-> ([ListFHIRImportJobsResponse] -> ShowS)
-> Show ListFHIRImportJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFHIRImportJobsResponse] -> ShowS
$cshowList :: [ListFHIRImportJobsResponse] -> ShowS
show :: ListFHIRImportJobsResponse -> String
$cshow :: ListFHIRImportJobsResponse -> String
showsPrec :: Int -> ListFHIRImportJobsResponse -> ShowS
$cshowsPrec :: Int -> ListFHIRImportJobsResponse -> ShowS
Prelude.Show, (forall x.
ListFHIRImportJobsResponse -> Rep ListFHIRImportJobsResponse x)
-> (forall x.
Rep ListFHIRImportJobsResponse x -> ListFHIRImportJobsResponse)
-> Generic ListFHIRImportJobsResponse
forall x.
Rep ListFHIRImportJobsResponse x -> ListFHIRImportJobsResponse
forall x.
ListFHIRImportJobsResponse -> Rep ListFHIRImportJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFHIRImportJobsResponse x -> ListFHIRImportJobsResponse
$cfrom :: forall x.
ListFHIRImportJobsResponse -> Rep ListFHIRImportJobsResponse x
Prelude.Generic)
newListFHIRImportJobsResponse ::
Prelude.Int ->
ListFHIRImportJobsResponse
newListFHIRImportJobsResponse :: Int -> ListFHIRImportJobsResponse
newListFHIRImportJobsResponse Int
pHttpStatus_ =
ListFHIRImportJobsResponse' :: Maybe Text
-> Int -> [ImportJobProperties] -> ListFHIRImportJobsResponse
ListFHIRImportJobsResponse'
{ $sel:nextToken:ListFHIRImportJobsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListFHIRImportJobsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:importJobPropertiesList:ListFHIRImportJobsResponse' :: [ImportJobProperties]
importJobPropertiesList = [ImportJobProperties]
forall a. Monoid a => a
Prelude.mempty
}
listFHIRImportJobsResponse_nextToken :: Lens.Lens' ListFHIRImportJobsResponse (Prelude.Maybe Prelude.Text)
listFHIRImportJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFHIRImportJobsResponse -> f ListFHIRImportJobsResponse
listFHIRImportJobsResponse_nextToken = (ListFHIRImportJobsResponse -> Maybe Text)
-> (ListFHIRImportJobsResponse
-> Maybe Text -> ListFHIRImportJobsResponse)
-> Lens
ListFHIRImportJobsResponse
ListFHIRImportJobsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFHIRImportJobsResponse' :: ListFHIRImportJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFHIRImportJobsResponse
s@ListFHIRImportJobsResponse' {} Maybe Text
a -> ListFHIRImportJobsResponse
s {$sel:nextToken:ListFHIRImportJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFHIRImportJobsResponse)
listFHIRImportJobsResponse_httpStatus :: Lens.Lens' ListFHIRImportJobsResponse Prelude.Int
listFHIRImportJobsResponse_httpStatus :: (Int -> f Int)
-> ListFHIRImportJobsResponse -> f ListFHIRImportJobsResponse
listFHIRImportJobsResponse_httpStatus = (ListFHIRImportJobsResponse -> Int)
-> (ListFHIRImportJobsResponse
-> Int -> ListFHIRImportJobsResponse)
-> Lens
ListFHIRImportJobsResponse ListFHIRImportJobsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListFHIRImportJobsResponse' :: ListFHIRImportJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListFHIRImportJobsResponse
s@ListFHIRImportJobsResponse' {} Int
a -> ListFHIRImportJobsResponse
s {$sel:httpStatus:ListFHIRImportJobsResponse' :: Int
httpStatus = Int
a} :: ListFHIRImportJobsResponse)
listFHIRImportJobsResponse_importJobPropertiesList :: Lens.Lens' ListFHIRImportJobsResponse [ImportJobProperties]
listFHIRImportJobsResponse_importJobPropertiesList :: ([ImportJobProperties] -> f [ImportJobProperties])
-> ListFHIRImportJobsResponse -> f ListFHIRImportJobsResponse
listFHIRImportJobsResponse_importJobPropertiesList = (ListFHIRImportJobsResponse -> [ImportJobProperties])
-> (ListFHIRImportJobsResponse
-> [ImportJobProperties] -> ListFHIRImportJobsResponse)
-> Lens
ListFHIRImportJobsResponse
ListFHIRImportJobsResponse
[ImportJobProperties]
[ImportJobProperties]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFHIRImportJobsResponse' {[ImportJobProperties]
importJobPropertiesList :: [ImportJobProperties]
$sel:importJobPropertiesList:ListFHIRImportJobsResponse' :: ListFHIRImportJobsResponse -> [ImportJobProperties]
importJobPropertiesList} -> [ImportJobProperties]
importJobPropertiesList) (\s :: ListFHIRImportJobsResponse
s@ListFHIRImportJobsResponse' {} [ImportJobProperties]
a -> ListFHIRImportJobsResponse
s {$sel:importJobPropertiesList:ListFHIRImportJobsResponse' :: [ImportJobProperties]
importJobPropertiesList = [ImportJobProperties]
a} :: ListFHIRImportJobsResponse) (([ImportJobProperties] -> f [ImportJobProperties])
-> ListFHIRImportJobsResponse -> f ListFHIRImportJobsResponse)
-> (([ImportJobProperties] -> f [ImportJobProperties])
-> [ImportJobProperties] -> f [ImportJobProperties])
-> ([ImportJobProperties] -> f [ImportJobProperties])
-> ListFHIRImportJobsResponse
-> f ListFHIRImportJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ImportJobProperties] -> f [ImportJobProperties])
-> [ImportJobProperties] -> f [ImportJobProperties]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListFHIRImportJobsResponse