{-# 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.StartFHIRImportJob
(
StartFHIRImportJob (..),
newStartFHIRImportJob,
startFHIRImportJob_jobName,
startFHIRImportJob_inputDataConfig,
startFHIRImportJob_jobOutputDataConfig,
startFHIRImportJob_datastoreId,
startFHIRImportJob_dataAccessRoleArn,
startFHIRImportJob_clientToken,
StartFHIRImportJobResponse (..),
newStartFHIRImportJobResponse,
startFHIRImportJobResponse_datastoreId,
startFHIRImportJobResponse_httpStatus,
startFHIRImportJobResponse_jobId,
startFHIRImportJobResponse_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 StartFHIRImportJob = StartFHIRImportJob'
{
StartFHIRImportJob -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
StartFHIRImportJob -> InputDataConfig
inputDataConfig :: InputDataConfig,
StartFHIRImportJob -> OutputDataConfig
jobOutputDataConfig :: OutputDataConfig,
StartFHIRImportJob -> Text
datastoreId :: Prelude.Text,
StartFHIRImportJob -> Text
dataAccessRoleArn :: Prelude.Text,
StartFHIRImportJob -> Text
clientToken :: Prelude.Text
}
deriving (StartFHIRImportJob -> StartFHIRImportJob -> Bool
(StartFHIRImportJob -> StartFHIRImportJob -> Bool)
-> (StartFHIRImportJob -> StartFHIRImportJob -> Bool)
-> Eq StartFHIRImportJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartFHIRImportJob -> StartFHIRImportJob -> Bool
$c/= :: StartFHIRImportJob -> StartFHIRImportJob -> Bool
== :: StartFHIRImportJob -> StartFHIRImportJob -> Bool
$c== :: StartFHIRImportJob -> StartFHIRImportJob -> Bool
Prelude.Eq, ReadPrec [StartFHIRImportJob]
ReadPrec StartFHIRImportJob
Int -> ReadS StartFHIRImportJob
ReadS [StartFHIRImportJob]
(Int -> ReadS StartFHIRImportJob)
-> ReadS [StartFHIRImportJob]
-> ReadPrec StartFHIRImportJob
-> ReadPrec [StartFHIRImportJob]
-> Read StartFHIRImportJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartFHIRImportJob]
$creadListPrec :: ReadPrec [StartFHIRImportJob]
readPrec :: ReadPrec StartFHIRImportJob
$creadPrec :: ReadPrec StartFHIRImportJob
readList :: ReadS [StartFHIRImportJob]
$creadList :: ReadS [StartFHIRImportJob]
readsPrec :: Int -> ReadS StartFHIRImportJob
$creadsPrec :: Int -> ReadS StartFHIRImportJob
Prelude.Read, Int -> StartFHIRImportJob -> ShowS
[StartFHIRImportJob] -> ShowS
StartFHIRImportJob -> String
(Int -> StartFHIRImportJob -> ShowS)
-> (StartFHIRImportJob -> String)
-> ([StartFHIRImportJob] -> ShowS)
-> Show StartFHIRImportJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartFHIRImportJob] -> ShowS
$cshowList :: [StartFHIRImportJob] -> ShowS
show :: StartFHIRImportJob -> String
$cshow :: StartFHIRImportJob -> String
showsPrec :: Int -> StartFHIRImportJob -> ShowS
$cshowsPrec :: Int -> StartFHIRImportJob -> ShowS
Prelude.Show, (forall x. StartFHIRImportJob -> Rep StartFHIRImportJob x)
-> (forall x. Rep StartFHIRImportJob x -> StartFHIRImportJob)
-> Generic StartFHIRImportJob
forall x. Rep StartFHIRImportJob x -> StartFHIRImportJob
forall x. StartFHIRImportJob -> Rep StartFHIRImportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartFHIRImportJob x -> StartFHIRImportJob
$cfrom :: forall x. StartFHIRImportJob -> Rep StartFHIRImportJob x
Prelude.Generic)
newStartFHIRImportJob ::
InputDataConfig ->
OutputDataConfig ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
StartFHIRImportJob
newStartFHIRImportJob :: InputDataConfig
-> OutputDataConfig -> Text -> Text -> Text -> StartFHIRImportJob
newStartFHIRImportJob
InputDataConfig
pInputDataConfig_
OutputDataConfig
pJobOutputDataConfig_
Text
pDatastoreId_
Text
pDataAccessRoleArn_
Text
pClientToken_ =
StartFHIRImportJob' :: Maybe Text
-> InputDataConfig
-> OutputDataConfig
-> Text
-> Text
-> Text
-> StartFHIRImportJob
StartFHIRImportJob'
{ $sel:jobName:StartFHIRImportJob' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inputDataConfig:StartFHIRImportJob' :: InputDataConfig
inputDataConfig = InputDataConfig
pInputDataConfig_,
$sel:jobOutputDataConfig:StartFHIRImportJob' :: OutputDataConfig
jobOutputDataConfig = OutputDataConfig
pJobOutputDataConfig_,
$sel:datastoreId:StartFHIRImportJob' :: Text
datastoreId = Text
pDatastoreId_,
$sel:dataAccessRoleArn:StartFHIRImportJob' :: Text
dataAccessRoleArn = Text
pDataAccessRoleArn_,
$sel:clientToken:StartFHIRImportJob' :: Text
clientToken = Text
pClientToken_
}
startFHIRImportJob_jobName :: Lens.Lens' StartFHIRImportJob (Prelude.Maybe Prelude.Text)
startFHIRImportJob_jobName :: (Maybe Text -> f (Maybe Text))
-> StartFHIRImportJob -> f StartFHIRImportJob
startFHIRImportJob_jobName = (StartFHIRImportJob -> Maybe Text)
-> (StartFHIRImportJob -> Maybe Text -> StartFHIRImportJob)
-> Lens
StartFHIRImportJob StartFHIRImportJob (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJob' {Maybe Text
jobName :: Maybe Text
$sel:jobName:StartFHIRImportJob' :: StartFHIRImportJob -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: StartFHIRImportJob
s@StartFHIRImportJob' {} Maybe Text
a -> StartFHIRImportJob
s {$sel:jobName:StartFHIRImportJob' :: Maybe Text
jobName = Maybe Text
a} :: StartFHIRImportJob)
startFHIRImportJob_inputDataConfig :: Lens.Lens' StartFHIRImportJob InputDataConfig
startFHIRImportJob_inputDataConfig :: (InputDataConfig -> f InputDataConfig)
-> StartFHIRImportJob -> f StartFHIRImportJob
startFHIRImportJob_inputDataConfig = (StartFHIRImportJob -> InputDataConfig)
-> (StartFHIRImportJob -> InputDataConfig -> StartFHIRImportJob)
-> Lens
StartFHIRImportJob
StartFHIRImportJob
InputDataConfig
InputDataConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJob' {InputDataConfig
inputDataConfig :: InputDataConfig
$sel:inputDataConfig:StartFHIRImportJob' :: StartFHIRImportJob -> InputDataConfig
inputDataConfig} -> InputDataConfig
inputDataConfig) (\s :: StartFHIRImportJob
s@StartFHIRImportJob' {} InputDataConfig
a -> StartFHIRImportJob
s {$sel:inputDataConfig:StartFHIRImportJob' :: InputDataConfig
inputDataConfig = InputDataConfig
a} :: StartFHIRImportJob)
startFHIRImportJob_jobOutputDataConfig :: Lens.Lens' StartFHIRImportJob OutputDataConfig
startFHIRImportJob_jobOutputDataConfig :: (OutputDataConfig -> f OutputDataConfig)
-> StartFHIRImportJob -> f StartFHIRImportJob
startFHIRImportJob_jobOutputDataConfig = (StartFHIRImportJob -> OutputDataConfig)
-> (StartFHIRImportJob -> OutputDataConfig -> StartFHIRImportJob)
-> Lens
StartFHIRImportJob
StartFHIRImportJob
OutputDataConfig
OutputDataConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJob' {OutputDataConfig
jobOutputDataConfig :: OutputDataConfig
$sel:jobOutputDataConfig:StartFHIRImportJob' :: StartFHIRImportJob -> OutputDataConfig
jobOutputDataConfig} -> OutputDataConfig
jobOutputDataConfig) (\s :: StartFHIRImportJob
s@StartFHIRImportJob' {} OutputDataConfig
a -> StartFHIRImportJob
s {$sel:jobOutputDataConfig:StartFHIRImportJob' :: OutputDataConfig
jobOutputDataConfig = OutputDataConfig
a} :: StartFHIRImportJob)
startFHIRImportJob_datastoreId :: Lens.Lens' StartFHIRImportJob Prelude.Text
startFHIRImportJob_datastoreId :: (Text -> f Text) -> StartFHIRImportJob -> f StartFHIRImportJob
startFHIRImportJob_datastoreId = (StartFHIRImportJob -> Text)
-> (StartFHIRImportJob -> Text -> StartFHIRImportJob)
-> Lens StartFHIRImportJob StartFHIRImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJob' {Text
datastoreId :: Text
$sel:datastoreId:StartFHIRImportJob' :: StartFHIRImportJob -> Text
datastoreId} -> Text
datastoreId) (\s :: StartFHIRImportJob
s@StartFHIRImportJob' {} Text
a -> StartFHIRImportJob
s {$sel:datastoreId:StartFHIRImportJob' :: Text
datastoreId = Text
a} :: StartFHIRImportJob)
startFHIRImportJob_dataAccessRoleArn :: Lens.Lens' StartFHIRImportJob Prelude.Text
startFHIRImportJob_dataAccessRoleArn :: (Text -> f Text) -> StartFHIRImportJob -> f StartFHIRImportJob
startFHIRImportJob_dataAccessRoleArn = (StartFHIRImportJob -> Text)
-> (StartFHIRImportJob -> Text -> StartFHIRImportJob)
-> Lens StartFHIRImportJob StartFHIRImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJob' {Text
dataAccessRoleArn :: Text
$sel:dataAccessRoleArn:StartFHIRImportJob' :: StartFHIRImportJob -> Text
dataAccessRoleArn} -> Text
dataAccessRoleArn) (\s :: StartFHIRImportJob
s@StartFHIRImportJob' {} Text
a -> StartFHIRImportJob
s {$sel:dataAccessRoleArn:StartFHIRImportJob' :: Text
dataAccessRoleArn = Text
a} :: StartFHIRImportJob)
startFHIRImportJob_clientToken :: Lens.Lens' StartFHIRImportJob Prelude.Text
startFHIRImportJob_clientToken :: (Text -> f Text) -> StartFHIRImportJob -> f StartFHIRImportJob
startFHIRImportJob_clientToken = (StartFHIRImportJob -> Text)
-> (StartFHIRImportJob -> Text -> StartFHIRImportJob)
-> Lens StartFHIRImportJob StartFHIRImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJob' {Text
clientToken :: Text
$sel:clientToken:StartFHIRImportJob' :: StartFHIRImportJob -> Text
clientToken} -> Text
clientToken) (\s :: StartFHIRImportJob
s@StartFHIRImportJob' {} Text
a -> StartFHIRImportJob
s {$sel:clientToken:StartFHIRImportJob' :: Text
clientToken = Text
a} :: StartFHIRImportJob)
instance Core.AWSRequest StartFHIRImportJob where
type
AWSResponse StartFHIRImportJob =
StartFHIRImportJobResponse
request :: StartFHIRImportJob -> Request StartFHIRImportJob
request = Service -> StartFHIRImportJob -> Request StartFHIRImportJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartFHIRImportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartFHIRImportJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartFHIRImportJob))
-> Logger
-> Service
-> Proxy StartFHIRImportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartFHIRImportJob)))
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 -> StartFHIRImportJobResponse
StartFHIRImportJobResponse'
(Maybe Text
-> Int -> Text -> JobStatus -> StartFHIRImportJobResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> Text -> JobStatus -> StartFHIRImportJobResponse)
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 -> StartFHIRImportJobResponse)
-> Either String Int
-> Either String (Text -> JobStatus -> StartFHIRImportJobResponse)
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 -> StartFHIRImportJobResponse)
-> Either String Text
-> Either String (JobStatus -> StartFHIRImportJobResponse)
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 -> StartFHIRImportJobResponse)
-> Either String JobStatus
-> Either String StartFHIRImportJobResponse
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 StartFHIRImportJob
instance Prelude.NFData StartFHIRImportJob
instance Core.ToHeaders StartFHIRImportJob where
toHeaders :: StartFHIRImportJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartFHIRImportJob -> 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.StartFHIRImportJob" ::
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 StartFHIRImportJob where
toJSON :: StartFHIRImportJob -> Value
toJSON StartFHIRImportJob' {Maybe Text
Text
InputDataConfig
OutputDataConfig
clientToken :: Text
dataAccessRoleArn :: Text
datastoreId :: Text
jobOutputDataConfig :: OutputDataConfig
inputDataConfig :: InputDataConfig
jobName :: Maybe Text
$sel:clientToken:StartFHIRImportJob' :: StartFHIRImportJob -> Text
$sel:dataAccessRoleArn:StartFHIRImportJob' :: StartFHIRImportJob -> Text
$sel:datastoreId:StartFHIRImportJob' :: StartFHIRImportJob -> Text
$sel:jobOutputDataConfig:StartFHIRImportJob' :: StartFHIRImportJob -> OutputDataConfig
$sel:inputDataConfig:StartFHIRImportJob' :: StartFHIRImportJob -> InputDataConfig
$sel:jobName:StartFHIRImportJob' :: StartFHIRImportJob -> 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
"InputDataConfig" Text -> InputDataConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= InputDataConfig
inputDataConfig),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"JobOutputDataConfig" Text -> OutputDataConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= OutputDataConfig
jobOutputDataConfig),
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 StartFHIRImportJob where
toPath :: StartFHIRImportJob -> ByteString
toPath = ByteString -> StartFHIRImportJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery StartFHIRImportJob where
toQuery :: StartFHIRImportJob -> QueryString
toQuery = QueryString -> StartFHIRImportJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartFHIRImportJobResponse = StartFHIRImportJobResponse'
{
StartFHIRImportJobResponse -> Maybe Text
datastoreId :: Prelude.Maybe Prelude.Text,
StartFHIRImportJobResponse -> Int
httpStatus :: Prelude.Int,
StartFHIRImportJobResponse -> Text
jobId :: Prelude.Text,
StartFHIRImportJobResponse -> JobStatus
jobStatus :: JobStatus
}
deriving (StartFHIRImportJobResponse -> StartFHIRImportJobResponse -> Bool
(StartFHIRImportJobResponse -> StartFHIRImportJobResponse -> Bool)
-> (StartFHIRImportJobResponse
-> StartFHIRImportJobResponse -> Bool)
-> Eq StartFHIRImportJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartFHIRImportJobResponse -> StartFHIRImportJobResponse -> Bool
$c/= :: StartFHIRImportJobResponse -> StartFHIRImportJobResponse -> Bool
== :: StartFHIRImportJobResponse -> StartFHIRImportJobResponse -> Bool
$c== :: StartFHIRImportJobResponse -> StartFHIRImportJobResponse -> Bool
Prelude.Eq, ReadPrec [StartFHIRImportJobResponse]
ReadPrec StartFHIRImportJobResponse
Int -> ReadS StartFHIRImportJobResponse
ReadS [StartFHIRImportJobResponse]
(Int -> ReadS StartFHIRImportJobResponse)
-> ReadS [StartFHIRImportJobResponse]
-> ReadPrec StartFHIRImportJobResponse
-> ReadPrec [StartFHIRImportJobResponse]
-> Read StartFHIRImportJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartFHIRImportJobResponse]
$creadListPrec :: ReadPrec [StartFHIRImportJobResponse]
readPrec :: ReadPrec StartFHIRImportJobResponse
$creadPrec :: ReadPrec StartFHIRImportJobResponse
readList :: ReadS [StartFHIRImportJobResponse]
$creadList :: ReadS [StartFHIRImportJobResponse]
readsPrec :: Int -> ReadS StartFHIRImportJobResponse
$creadsPrec :: Int -> ReadS StartFHIRImportJobResponse
Prelude.Read, Int -> StartFHIRImportJobResponse -> ShowS
[StartFHIRImportJobResponse] -> ShowS
StartFHIRImportJobResponse -> String
(Int -> StartFHIRImportJobResponse -> ShowS)
-> (StartFHIRImportJobResponse -> String)
-> ([StartFHIRImportJobResponse] -> ShowS)
-> Show StartFHIRImportJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartFHIRImportJobResponse] -> ShowS
$cshowList :: [StartFHIRImportJobResponse] -> ShowS
show :: StartFHIRImportJobResponse -> String
$cshow :: StartFHIRImportJobResponse -> String
showsPrec :: Int -> StartFHIRImportJobResponse -> ShowS
$cshowsPrec :: Int -> StartFHIRImportJobResponse -> ShowS
Prelude.Show, (forall x.
StartFHIRImportJobResponse -> Rep StartFHIRImportJobResponse x)
-> (forall x.
Rep StartFHIRImportJobResponse x -> StartFHIRImportJobResponse)
-> Generic StartFHIRImportJobResponse
forall x.
Rep StartFHIRImportJobResponse x -> StartFHIRImportJobResponse
forall x.
StartFHIRImportJobResponse -> Rep StartFHIRImportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartFHIRImportJobResponse x -> StartFHIRImportJobResponse
$cfrom :: forall x.
StartFHIRImportJobResponse -> Rep StartFHIRImportJobResponse x
Prelude.Generic)
newStartFHIRImportJobResponse ::
Prelude.Int ->
Prelude.Text ->
JobStatus ->
StartFHIRImportJobResponse
newStartFHIRImportJobResponse :: Int -> Text -> JobStatus -> StartFHIRImportJobResponse
newStartFHIRImportJobResponse
Int
pHttpStatus_
Text
pJobId_
JobStatus
pJobStatus_ =
StartFHIRImportJobResponse' :: Maybe Text
-> Int -> Text -> JobStatus -> StartFHIRImportJobResponse
StartFHIRImportJobResponse'
{ $sel:datastoreId:StartFHIRImportJobResponse' :: Maybe Text
datastoreId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartFHIRImportJobResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:jobId:StartFHIRImportJobResponse' :: Text
jobId = Text
pJobId_,
$sel:jobStatus:StartFHIRImportJobResponse' :: JobStatus
jobStatus = JobStatus
pJobStatus_
}
startFHIRImportJobResponse_datastoreId :: Lens.Lens' StartFHIRImportJobResponse (Prelude.Maybe Prelude.Text)
startFHIRImportJobResponse_datastoreId :: (Maybe Text -> f (Maybe Text))
-> StartFHIRImportJobResponse -> f StartFHIRImportJobResponse
startFHIRImportJobResponse_datastoreId = (StartFHIRImportJobResponse -> Maybe Text)
-> (StartFHIRImportJobResponse
-> Maybe Text -> StartFHIRImportJobResponse)
-> Lens
StartFHIRImportJobResponse
StartFHIRImportJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJobResponse' {Maybe Text
datastoreId :: Maybe Text
$sel:datastoreId:StartFHIRImportJobResponse' :: StartFHIRImportJobResponse -> Maybe Text
datastoreId} -> Maybe Text
datastoreId) (\s :: StartFHIRImportJobResponse
s@StartFHIRImportJobResponse' {} Maybe Text
a -> StartFHIRImportJobResponse
s {$sel:datastoreId:StartFHIRImportJobResponse' :: Maybe Text
datastoreId = Maybe Text
a} :: StartFHIRImportJobResponse)
startFHIRImportJobResponse_httpStatus :: Lens.Lens' StartFHIRImportJobResponse Prelude.Int
startFHIRImportJobResponse_httpStatus :: (Int -> f Int)
-> StartFHIRImportJobResponse -> f StartFHIRImportJobResponse
startFHIRImportJobResponse_httpStatus = (StartFHIRImportJobResponse -> Int)
-> (StartFHIRImportJobResponse
-> Int -> StartFHIRImportJobResponse)
-> Lens
StartFHIRImportJobResponse StartFHIRImportJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartFHIRImportJobResponse' :: StartFHIRImportJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartFHIRImportJobResponse
s@StartFHIRImportJobResponse' {} Int
a -> StartFHIRImportJobResponse
s {$sel:httpStatus:StartFHIRImportJobResponse' :: Int
httpStatus = Int
a} :: StartFHIRImportJobResponse)
startFHIRImportJobResponse_jobId :: Lens.Lens' StartFHIRImportJobResponse Prelude.Text
startFHIRImportJobResponse_jobId :: (Text -> f Text)
-> StartFHIRImportJobResponse -> f StartFHIRImportJobResponse
startFHIRImportJobResponse_jobId = (StartFHIRImportJobResponse -> Text)
-> (StartFHIRImportJobResponse
-> Text -> StartFHIRImportJobResponse)
-> Lens
StartFHIRImportJobResponse StartFHIRImportJobResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJobResponse' {Text
jobId :: Text
$sel:jobId:StartFHIRImportJobResponse' :: StartFHIRImportJobResponse -> Text
jobId} -> Text
jobId) (\s :: StartFHIRImportJobResponse
s@StartFHIRImportJobResponse' {} Text
a -> StartFHIRImportJobResponse
s {$sel:jobId:StartFHIRImportJobResponse' :: Text
jobId = Text
a} :: StartFHIRImportJobResponse)
startFHIRImportJobResponse_jobStatus :: Lens.Lens' StartFHIRImportJobResponse JobStatus
startFHIRImportJobResponse_jobStatus :: (JobStatus -> f JobStatus)
-> StartFHIRImportJobResponse -> f StartFHIRImportJobResponse
startFHIRImportJobResponse_jobStatus = (StartFHIRImportJobResponse -> JobStatus)
-> (StartFHIRImportJobResponse
-> JobStatus -> StartFHIRImportJobResponse)
-> Lens
StartFHIRImportJobResponse
StartFHIRImportJobResponse
JobStatus
JobStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartFHIRImportJobResponse' {JobStatus
jobStatus :: JobStatus
$sel:jobStatus:StartFHIRImportJobResponse' :: StartFHIRImportJobResponse -> JobStatus
jobStatus} -> JobStatus
jobStatus) (\s :: StartFHIRImportJobResponse
s@StartFHIRImportJobResponse' {} JobStatus
a -> StartFHIRImportJobResponse
s {$sel:jobStatus:StartFHIRImportJobResponse' :: JobStatus
jobStatus = JobStatus
a} :: StartFHIRImportJobResponse)
instance Prelude.NFData StartFHIRImportJobResponse