{-# 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.StartFHIRExportJob
(
StartFHIRExportJob (..),
newStartFHIRExportJob,
startFHIRExportJob_jobName,
startFHIRExportJob_outputDataConfig,
startFHIRExportJob_datastoreId,
startFHIRExportJob_dataAccessRoleArn,
startFHIRExportJob_clientToken,
StartFHIRExportJobResponse (..),
newStartFHIRExportJobResponse,
startFHIRExportJobResponse_datastoreId,
startFHIRExportJobResponse_httpStatus,
startFHIRExportJobResponse_jobId,
startFHIRExportJobResponse_jobStatus,
)
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 StartFHIRExportJob = StartFHIRExportJob'
{
StartFHIRExportJob -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
StartFHIRExportJob -> OutputDataConfig
outputDataConfig :: OutputDataConfig,
StartFHIRExportJob -> Text
datastoreId :: Prelude.Text,
StartFHIRExportJob -> Text
dataAccessRoleArn :: Prelude.Text,
StartFHIRExportJob -> Text
clientToken :: Prelude.Text
}
deriving (StartFHIRExportJob -> StartFHIRExportJob -> Bool
(StartFHIRExportJob -> StartFHIRExportJob -> Bool)
-> (StartFHIRExportJob -> StartFHIRExportJob -> Bool)
-> Eq StartFHIRExportJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartFHIRExportJob -> StartFHIRExportJob -> Bool
$c/= :: StartFHIRExportJob -> StartFHIRExportJob -> Bool
== :: StartFHIRExportJob -> StartFHIRExportJob -> Bool
$c== :: StartFHIRExportJob -> StartFHIRExportJob -> Bool
Prelude.Eq, ReadPrec [StartFHIRExportJob]
ReadPrec StartFHIRExportJob
Int -> ReadS StartFHIRExportJob
ReadS [StartFHIRExportJob]
(Int -> ReadS StartFHIRExportJob)
-> ReadS [StartFHIRExportJob]
-> ReadPrec StartFHIRExportJob
-> ReadPrec [StartFHIRExportJob]
-> Read StartFHIRExportJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartFHIRExportJob]
$creadListPrec :: ReadPrec [StartFHIRExportJob]
readPrec :: ReadPrec StartFHIRExportJob
$creadPrec :: ReadPrec StartFHIRExportJob
readList :: ReadS [StartFHIRExportJob]
$creadList :: ReadS [StartFHIRExportJob]
readsPrec :: Int -> ReadS StartFHIRExportJob
$creadsPrec :: Int -> ReadS StartFHIRExportJob
Prelude.Read, Int -> StartFHIRExportJob -> ShowS
[StartFHIRExportJob] -> ShowS
StartFHIRExportJob -> String
(Int -> StartFHIRExportJob -> ShowS)
-> (StartFHIRExportJob -> String)
-> ([StartFHIRExportJob] -> ShowS)
-> Show StartFHIRExportJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartFHIRExportJob] -> ShowS
$cshowList :: [StartFHIRExportJob] -> ShowS
show :: StartFHIRExportJob -> String
$cshow :: StartFHIRExportJob -> String
showsPrec :: Int -> StartFHIRExportJob -> ShowS
$cshowsPrec :: Int -> StartFHIRExportJob -> ShowS
Prelude.Show, (forall x. StartFHIRExportJob -> Rep StartFHIRExportJob x)
-> (forall x. Rep StartFHIRExportJob x -> StartFHIRExportJob)
-> Generic StartFHIRExportJob
forall x. Rep StartFHIRExportJob x -> StartFHIRExportJob
forall x. StartFHIRExportJob -> Rep StartFHIRExportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartFHIRExportJob x -> StartFHIRExportJob
$cfrom :: forall x. StartFHIRExportJob -> Rep StartFHIRExportJob x
Prelude.Generic)
newStartFHIRExportJob ::
OutputDataConfig ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
StartFHIRExportJob
newStartFHIRExportJob :: OutputDataConfig -> Text -> Text -> Text -> StartFHIRExportJob
newStartFHIRExportJob
OutputDataConfig
pOutputDataConfig_
Text
pDatastoreId_
Text
pDataAccessRoleArn_
Text
pClientToken_ =
StartFHIRExportJob' :: Maybe Text
-> OutputDataConfig -> Text -> Text -> Text -> StartFHIRExportJob
StartFHIRExportJob'
{ $sel:jobName:StartFHIRExportJob' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:outputDataConfig:StartFHIRExportJob' :: OutputDataConfig
outputDataConfig = OutputDataConfig
pOutputDataConfig_,
$sel:datastoreId:StartFHIRExportJob' :: Text
datastoreId = Text
pDatastoreId_,
$sel:dataAccessRoleArn:StartFHIRExportJob' :: Text
dataAccessRoleArn = Text
pDataAccessRoleArn_,
$sel:clientToken:StartFHIRExportJob' :: Text
clientToken = Text
pClientToken_
}
startFHIRExportJob_jobName :: Lens.Lens' StartFHIRExportJob (Prelude.Maybe Prelude.Text)
startFHIRExportJob_jobName :: (Maybe Text -> f (Maybe Text))
-> StartFHIRExportJob -> f StartFHIRExportJob
startFHIRExportJob_jobName = (StartFHIRExportJob -> Maybe Text)
-> (StartFHIRExportJob -> Maybe Text -> StartFHIRExportJob)
-> Lens
StartFHIRExportJob StartFHIRExportJob (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRExportJob' {Maybe Text
jobName :: Maybe Text
$sel:jobName:StartFHIRExportJob' :: StartFHIRExportJob -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: StartFHIRExportJob
s@StartFHIRExportJob' {} Maybe Text
a -> StartFHIRExportJob
s {$sel:jobName:StartFHIRExportJob' :: Maybe Text
jobName = Maybe Text
a} :: StartFHIRExportJob)
startFHIRExportJob_outputDataConfig :: Lens.Lens' StartFHIRExportJob OutputDataConfig
startFHIRExportJob_outputDataConfig :: (OutputDataConfig -> f OutputDataConfig)
-> StartFHIRExportJob -> f StartFHIRExportJob
startFHIRExportJob_outputDataConfig = (StartFHIRExportJob -> OutputDataConfig)
-> (StartFHIRExportJob -> OutputDataConfig -> StartFHIRExportJob)
-> Lens
StartFHIRExportJob
StartFHIRExportJob
OutputDataConfig
OutputDataConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRExportJob' {OutputDataConfig
outputDataConfig :: OutputDataConfig
$sel:outputDataConfig:StartFHIRExportJob' :: StartFHIRExportJob -> OutputDataConfig
outputDataConfig} -> OutputDataConfig
outputDataConfig) (\s :: StartFHIRExportJob
s@StartFHIRExportJob' {} OutputDataConfig
a -> StartFHIRExportJob
s {$sel:outputDataConfig:StartFHIRExportJob' :: OutputDataConfig
outputDataConfig = OutputDataConfig
a} :: StartFHIRExportJob)
startFHIRExportJob_datastoreId :: Lens.Lens' StartFHIRExportJob Prelude.Text
startFHIRExportJob_datastoreId :: (Text -> f Text) -> StartFHIRExportJob -> f StartFHIRExportJob
startFHIRExportJob_datastoreId = (StartFHIRExportJob -> Text)
-> (StartFHIRExportJob -> Text -> StartFHIRExportJob)
-> Lens StartFHIRExportJob StartFHIRExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRExportJob' {Text
datastoreId :: Text
$sel:datastoreId:StartFHIRExportJob' :: StartFHIRExportJob -> Text
datastoreId} -> Text
datastoreId) (\s :: StartFHIRExportJob
s@StartFHIRExportJob' {} Text
a -> StartFHIRExportJob
s {$sel:datastoreId:StartFHIRExportJob' :: Text
datastoreId = Text
a} :: StartFHIRExportJob)
startFHIRExportJob_dataAccessRoleArn :: Lens.Lens' StartFHIRExportJob Prelude.Text
startFHIRExportJob_dataAccessRoleArn :: (Text -> f Text) -> StartFHIRExportJob -> f StartFHIRExportJob
startFHIRExportJob_dataAccessRoleArn = (StartFHIRExportJob -> Text)
-> (StartFHIRExportJob -> Text -> StartFHIRExportJob)
-> Lens StartFHIRExportJob StartFHIRExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRExportJob' {Text
dataAccessRoleArn :: Text
$sel:dataAccessRoleArn:StartFHIRExportJob' :: StartFHIRExportJob -> Text
dataAccessRoleArn} -> Text
dataAccessRoleArn) (\s :: StartFHIRExportJob
s@StartFHIRExportJob' {} Text
a -> StartFHIRExportJob
s {$sel:dataAccessRoleArn:StartFHIRExportJob' :: Text
dataAccessRoleArn = Text
a} :: StartFHIRExportJob)
startFHIRExportJob_clientToken :: Lens.Lens' StartFHIRExportJob Prelude.Text
startFHIRExportJob_clientToken :: (Text -> f Text) -> StartFHIRExportJob -> f StartFHIRExportJob
startFHIRExportJob_clientToken = (StartFHIRExportJob -> Text)
-> (StartFHIRExportJob -> Text -> StartFHIRExportJob)
-> Lens StartFHIRExportJob StartFHIRExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRExportJob' {Text
clientToken :: Text
$sel:clientToken:StartFHIRExportJob' :: StartFHIRExportJob -> Text
clientToken} -> Text
clientToken) (\s :: StartFHIRExportJob
s@StartFHIRExportJob' {} Text
a -> StartFHIRExportJob
s {$sel:clientToken:StartFHIRExportJob' :: Text
clientToken = Text
a} :: StartFHIRExportJob)
instance Core.AWSRequest StartFHIRExportJob where
type
AWSResponse StartFHIRExportJob =
StartFHIRExportJobResponse
request :: StartFHIRExportJob -> Request StartFHIRExportJob
request = Service -> StartFHIRExportJob -> Request StartFHIRExportJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartFHIRExportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartFHIRExportJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartFHIRExportJob))
-> Logger
-> Service
-> Proxy StartFHIRExportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartFHIRExportJob)))
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 -> Text -> JobStatus -> StartFHIRExportJobResponse
StartFHIRExportJobResponse'
(Maybe Text
-> Int -> Text -> JobStatus -> StartFHIRExportJobResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> Text -> JobStatus -> StartFHIRExportJobResponse)
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
"DatastoreId")
Either
String (Int -> Text -> JobStatus -> StartFHIRExportJobResponse)
-> Either String Int
-> Either String (Text -> JobStatus -> StartFHIRExportJobResponse)
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 (Text -> JobStatus -> StartFHIRExportJobResponse)
-> Either String Text
-> Either String (JobStatus -> StartFHIRExportJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"JobId")
Either String (JobStatus -> StartFHIRExportJobResponse)
-> Either String JobStatus
-> Either String StartFHIRExportJobResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String JobStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"JobStatus")
)
instance Prelude.Hashable StartFHIRExportJob
instance Prelude.NFData StartFHIRExportJob
instance Core.ToHeaders StartFHIRExportJob where
toHeaders :: StartFHIRExportJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartFHIRExportJob -> 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.StartFHIRExportJob" ::
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 StartFHIRExportJob where
toJSON :: StartFHIRExportJob -> Value
toJSON StartFHIRExportJob' {Maybe Text
Text
OutputDataConfig
clientToken :: Text
dataAccessRoleArn :: Text
datastoreId :: Text
outputDataConfig :: OutputDataConfig
jobName :: Maybe Text
$sel:clientToken:StartFHIRExportJob' :: StartFHIRExportJob -> Text
$sel:dataAccessRoleArn:StartFHIRExportJob' :: StartFHIRExportJob -> Text
$sel:datastoreId:StartFHIRExportJob' :: StartFHIRExportJob -> Text
$sel:outputDataConfig:StartFHIRExportJob' :: StartFHIRExportJob -> OutputDataConfig
$sel:jobName:StartFHIRExportJob' :: StartFHIRExportJob -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"OutputDataConfig" Text -> OutputDataConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= OutputDataConfig
outputDataConfig),
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),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"DataAccessRoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
dataAccessRoleArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ClientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientToken)
]
)
instance Core.ToPath StartFHIRExportJob where
toPath :: StartFHIRExportJob -> ByteString
toPath = ByteString -> StartFHIRExportJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery StartFHIRExportJob where
toQuery :: StartFHIRExportJob -> QueryString
toQuery = QueryString -> StartFHIRExportJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartFHIRExportJobResponse = StartFHIRExportJobResponse'
{
StartFHIRExportJobResponse -> Maybe Text
datastoreId :: Prelude.Maybe Prelude.Text,
StartFHIRExportJobResponse -> Int
httpStatus :: Prelude.Int,
StartFHIRExportJobResponse -> Text
jobId :: Prelude.Text,
StartFHIRExportJobResponse -> JobStatus
jobStatus :: JobStatus
}
deriving (StartFHIRExportJobResponse -> StartFHIRExportJobResponse -> Bool
(StartFHIRExportJobResponse -> StartFHIRExportJobResponse -> Bool)
-> (StartFHIRExportJobResponse
-> StartFHIRExportJobResponse -> Bool)
-> Eq StartFHIRExportJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartFHIRExportJobResponse -> StartFHIRExportJobResponse -> Bool
$c/= :: StartFHIRExportJobResponse -> StartFHIRExportJobResponse -> Bool
== :: StartFHIRExportJobResponse -> StartFHIRExportJobResponse -> Bool
$c== :: StartFHIRExportJobResponse -> StartFHIRExportJobResponse -> Bool
Prelude.Eq, ReadPrec [StartFHIRExportJobResponse]
ReadPrec StartFHIRExportJobResponse
Int -> ReadS StartFHIRExportJobResponse
ReadS [StartFHIRExportJobResponse]
(Int -> ReadS StartFHIRExportJobResponse)
-> ReadS [StartFHIRExportJobResponse]
-> ReadPrec StartFHIRExportJobResponse
-> ReadPrec [StartFHIRExportJobResponse]
-> Read StartFHIRExportJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartFHIRExportJobResponse]
$creadListPrec :: ReadPrec [StartFHIRExportJobResponse]
readPrec :: ReadPrec StartFHIRExportJobResponse
$creadPrec :: ReadPrec StartFHIRExportJobResponse
readList :: ReadS [StartFHIRExportJobResponse]
$creadList :: ReadS [StartFHIRExportJobResponse]
readsPrec :: Int -> ReadS StartFHIRExportJobResponse
$creadsPrec :: Int -> ReadS StartFHIRExportJobResponse
Prelude.Read, Int -> StartFHIRExportJobResponse -> ShowS
[StartFHIRExportJobResponse] -> ShowS
StartFHIRExportJobResponse -> String
(Int -> StartFHIRExportJobResponse -> ShowS)
-> (StartFHIRExportJobResponse -> String)
-> ([StartFHIRExportJobResponse] -> ShowS)
-> Show StartFHIRExportJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartFHIRExportJobResponse] -> ShowS
$cshowList :: [StartFHIRExportJobResponse] -> ShowS
show :: StartFHIRExportJobResponse -> String
$cshow :: StartFHIRExportJobResponse -> String
showsPrec :: Int -> StartFHIRExportJobResponse -> ShowS
$cshowsPrec :: Int -> StartFHIRExportJobResponse -> ShowS
Prelude.Show, (forall x.
StartFHIRExportJobResponse -> Rep StartFHIRExportJobResponse x)
-> (forall x.
Rep StartFHIRExportJobResponse x -> StartFHIRExportJobResponse)
-> Generic StartFHIRExportJobResponse
forall x.
Rep StartFHIRExportJobResponse x -> StartFHIRExportJobResponse
forall x.
StartFHIRExportJobResponse -> Rep StartFHIRExportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartFHIRExportJobResponse x -> StartFHIRExportJobResponse
$cfrom :: forall x.
StartFHIRExportJobResponse -> Rep StartFHIRExportJobResponse x
Prelude.Generic)
newStartFHIRExportJobResponse ::
Prelude.Int ->
Prelude.Text ->
JobStatus ->
StartFHIRExportJobResponse
newStartFHIRExportJobResponse :: Int -> Text -> JobStatus -> StartFHIRExportJobResponse
newStartFHIRExportJobResponse
Int
pHttpStatus_
Text
pJobId_
JobStatus
pJobStatus_ =
StartFHIRExportJobResponse' :: Maybe Text
-> Int -> Text -> JobStatus -> StartFHIRExportJobResponse
StartFHIRExportJobResponse'
{ $sel:datastoreId:StartFHIRExportJobResponse' :: Maybe Text
datastoreId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartFHIRExportJobResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:jobId:StartFHIRExportJobResponse' :: Text
jobId = Text
pJobId_,
$sel:jobStatus:StartFHIRExportJobResponse' :: JobStatus
jobStatus = JobStatus
pJobStatus_
}
startFHIRExportJobResponse_datastoreId :: Lens.Lens' StartFHIRExportJobResponse (Prelude.Maybe Prelude.Text)
startFHIRExportJobResponse_datastoreId :: (Maybe Text -> f (Maybe Text))
-> StartFHIRExportJobResponse -> f StartFHIRExportJobResponse
startFHIRExportJobResponse_datastoreId = (StartFHIRExportJobResponse -> Maybe Text)
-> (StartFHIRExportJobResponse
-> Maybe Text -> StartFHIRExportJobResponse)
-> Lens
StartFHIRExportJobResponse
StartFHIRExportJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRExportJobResponse' {Maybe Text
datastoreId :: Maybe Text
$sel:datastoreId:StartFHIRExportJobResponse' :: StartFHIRExportJobResponse -> Maybe Text
datastoreId} -> Maybe Text
datastoreId) (\s :: StartFHIRExportJobResponse
s@StartFHIRExportJobResponse' {} Maybe Text
a -> StartFHIRExportJobResponse
s {$sel:datastoreId:StartFHIRExportJobResponse' :: Maybe Text
datastoreId = Maybe Text
a} :: StartFHIRExportJobResponse)
startFHIRExportJobResponse_httpStatus :: Lens.Lens' StartFHIRExportJobResponse Prelude.Int
startFHIRExportJobResponse_httpStatus :: (Int -> f Int)
-> StartFHIRExportJobResponse -> f StartFHIRExportJobResponse
startFHIRExportJobResponse_httpStatus = (StartFHIRExportJobResponse -> Int)
-> (StartFHIRExportJobResponse
-> Int -> StartFHIRExportJobResponse)
-> Lens
StartFHIRExportJobResponse StartFHIRExportJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRExportJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartFHIRExportJobResponse' :: StartFHIRExportJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartFHIRExportJobResponse
s@StartFHIRExportJobResponse' {} Int
a -> StartFHIRExportJobResponse
s {$sel:httpStatus:StartFHIRExportJobResponse' :: Int
httpStatus = Int
a} :: StartFHIRExportJobResponse)
startFHIRExportJobResponse_jobId :: Lens.Lens' StartFHIRExportJobResponse Prelude.Text
startFHIRExportJobResponse_jobId :: (Text -> f Text)
-> StartFHIRExportJobResponse -> f StartFHIRExportJobResponse
startFHIRExportJobResponse_jobId = (StartFHIRExportJobResponse -> Text)
-> (StartFHIRExportJobResponse
-> Text -> StartFHIRExportJobResponse)
-> Lens
StartFHIRExportJobResponse StartFHIRExportJobResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRExportJobResponse' {Text
jobId :: Text
$sel:jobId:StartFHIRExportJobResponse' :: StartFHIRExportJobResponse -> Text
jobId} -> Text
jobId) (\s :: StartFHIRExportJobResponse
s@StartFHIRExportJobResponse' {} Text
a -> StartFHIRExportJobResponse
s {$sel:jobId:StartFHIRExportJobResponse' :: Text
jobId = Text
a} :: StartFHIRExportJobResponse)
startFHIRExportJobResponse_jobStatus :: Lens.Lens' StartFHIRExportJobResponse JobStatus
startFHIRExportJobResponse_jobStatus :: (JobStatus -> f JobStatus)
-> StartFHIRExportJobResponse -> f StartFHIRExportJobResponse
startFHIRExportJobResponse_jobStatus = (StartFHIRExportJobResponse -> JobStatus)
-> (StartFHIRExportJobResponse
-> JobStatus -> StartFHIRExportJobResponse)
-> Lens
StartFHIRExportJobResponse
StartFHIRExportJobResponse
JobStatus
JobStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRExportJobResponse' {JobStatus
jobStatus :: JobStatus
$sel:jobStatus:StartFHIRExportJobResponse' :: StartFHIRExportJobResponse -> JobStatus
jobStatus} -> JobStatus
jobStatus) (\s :: StartFHIRExportJobResponse
s@StartFHIRExportJobResponse' {} JobStatus
a -> StartFHIRExportJobResponse
s {$sel:jobStatus:StartFHIRExportJobResponse' :: JobStatus
jobStatus = JobStatus
a} :: StartFHIRExportJobResponse)
instance Prelude.NFData StartFHIRExportJobResponse