{-# 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.ComprehendMedical.StartEntitiesDetectionV2Job
(
StartEntitiesDetectionV2Job (..),
newStartEntitiesDetectionV2Job,
startEntitiesDetectionV2Job_clientRequestToken,
startEntitiesDetectionV2Job_jobName,
startEntitiesDetectionV2Job_kmsKey,
startEntitiesDetectionV2Job_inputDataConfig,
startEntitiesDetectionV2Job_outputDataConfig,
startEntitiesDetectionV2Job_dataAccessRoleArn,
startEntitiesDetectionV2Job_languageCode,
StartEntitiesDetectionV2JobResponse (..),
newStartEntitiesDetectionV2JobResponse,
startEntitiesDetectionV2JobResponse_jobId,
startEntitiesDetectionV2JobResponse_httpStatus,
)
where
import Amazonka.ComprehendMedical.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data StartEntitiesDetectionV2Job = StartEntitiesDetectionV2Job'
{
StartEntitiesDetectionV2Job -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
StartEntitiesDetectionV2Job -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
StartEntitiesDetectionV2Job -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
StartEntitiesDetectionV2Job -> InputDataConfig
inputDataConfig :: InputDataConfig,
StartEntitiesDetectionV2Job -> OutputDataConfig
outputDataConfig :: OutputDataConfig,
StartEntitiesDetectionV2Job -> Text
dataAccessRoleArn :: Prelude.Text,
StartEntitiesDetectionV2Job -> LanguageCode
languageCode :: LanguageCode
}
deriving (StartEntitiesDetectionV2Job -> StartEntitiesDetectionV2Job -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartEntitiesDetectionV2Job -> StartEntitiesDetectionV2Job -> Bool
$c/= :: StartEntitiesDetectionV2Job -> StartEntitiesDetectionV2Job -> Bool
== :: StartEntitiesDetectionV2Job -> StartEntitiesDetectionV2Job -> Bool
$c== :: StartEntitiesDetectionV2Job -> StartEntitiesDetectionV2Job -> Bool
Prelude.Eq, ReadPrec [StartEntitiesDetectionV2Job]
ReadPrec StartEntitiesDetectionV2Job
Int -> ReadS StartEntitiesDetectionV2Job
ReadS [StartEntitiesDetectionV2Job]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartEntitiesDetectionV2Job]
$creadListPrec :: ReadPrec [StartEntitiesDetectionV2Job]
readPrec :: ReadPrec StartEntitiesDetectionV2Job
$creadPrec :: ReadPrec StartEntitiesDetectionV2Job
readList :: ReadS [StartEntitiesDetectionV2Job]
$creadList :: ReadS [StartEntitiesDetectionV2Job]
readsPrec :: Int -> ReadS StartEntitiesDetectionV2Job
$creadsPrec :: Int -> ReadS StartEntitiesDetectionV2Job
Prelude.Read, Int -> StartEntitiesDetectionV2Job -> ShowS
[StartEntitiesDetectionV2Job] -> ShowS
StartEntitiesDetectionV2Job -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartEntitiesDetectionV2Job] -> ShowS
$cshowList :: [StartEntitiesDetectionV2Job] -> ShowS
show :: StartEntitiesDetectionV2Job -> String
$cshow :: StartEntitiesDetectionV2Job -> String
showsPrec :: Int -> StartEntitiesDetectionV2Job -> ShowS
$cshowsPrec :: Int -> StartEntitiesDetectionV2Job -> ShowS
Prelude.Show, forall x.
Rep StartEntitiesDetectionV2Job x -> StartEntitiesDetectionV2Job
forall x.
StartEntitiesDetectionV2Job -> Rep StartEntitiesDetectionV2Job x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartEntitiesDetectionV2Job x -> StartEntitiesDetectionV2Job
$cfrom :: forall x.
StartEntitiesDetectionV2Job -> Rep StartEntitiesDetectionV2Job x
Prelude.Generic)
newStartEntitiesDetectionV2Job ::
InputDataConfig ->
OutputDataConfig ->
Prelude.Text ->
LanguageCode ->
StartEntitiesDetectionV2Job
newStartEntitiesDetectionV2Job :: InputDataConfig
-> OutputDataConfig
-> Text
-> LanguageCode
-> StartEntitiesDetectionV2Job
newStartEntitiesDetectionV2Job
InputDataConfig
pInputDataConfig_
OutputDataConfig
pOutputDataConfig_
Text
pDataAccessRoleArn_
LanguageCode
pLanguageCode_ =
StartEntitiesDetectionV2Job'
{ $sel:clientRequestToken:StartEntitiesDetectionV2Job' :: Maybe Text
clientRequestToken =
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:StartEntitiesDetectionV2Job' :: Maybe Text
jobName = forall a. Maybe a
Prelude.Nothing,
$sel:kmsKey:StartEntitiesDetectionV2Job' :: Maybe Text
kmsKey = forall a. Maybe a
Prelude.Nothing,
$sel:inputDataConfig:StartEntitiesDetectionV2Job' :: InputDataConfig
inputDataConfig = InputDataConfig
pInputDataConfig_,
$sel:outputDataConfig:StartEntitiesDetectionV2Job' :: OutputDataConfig
outputDataConfig = OutputDataConfig
pOutputDataConfig_,
$sel:dataAccessRoleArn:StartEntitiesDetectionV2Job' :: Text
dataAccessRoleArn = Text
pDataAccessRoleArn_,
$sel:languageCode:StartEntitiesDetectionV2Job' :: LanguageCode
languageCode = LanguageCode
pLanguageCode_
}
startEntitiesDetectionV2Job_clientRequestToken :: Lens.Lens' StartEntitiesDetectionV2Job (Prelude.Maybe Prelude.Text)
startEntitiesDetectionV2Job_clientRequestToken :: Lens' StartEntitiesDetectionV2Job (Maybe Text)
startEntitiesDetectionV2Job_clientRequestToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartEntitiesDetectionV2Job' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: StartEntitiesDetectionV2Job
s@StartEntitiesDetectionV2Job' {} Maybe Text
a -> StartEntitiesDetectionV2Job
s {$sel:clientRequestToken:StartEntitiesDetectionV2Job' :: Maybe Text
clientRequestToken = Maybe Text
a} :: StartEntitiesDetectionV2Job)
startEntitiesDetectionV2Job_jobName :: Lens.Lens' StartEntitiesDetectionV2Job (Prelude.Maybe Prelude.Text)
startEntitiesDetectionV2Job_jobName :: Lens' StartEntitiesDetectionV2Job (Maybe Text)
startEntitiesDetectionV2Job_jobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartEntitiesDetectionV2Job' {Maybe Text
jobName :: Maybe Text
$sel:jobName:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: StartEntitiesDetectionV2Job
s@StartEntitiesDetectionV2Job' {} Maybe Text
a -> StartEntitiesDetectionV2Job
s {$sel:jobName:StartEntitiesDetectionV2Job' :: Maybe Text
jobName = Maybe Text
a} :: StartEntitiesDetectionV2Job)
startEntitiesDetectionV2Job_kmsKey :: Lens.Lens' StartEntitiesDetectionV2Job (Prelude.Maybe Prelude.Text)
startEntitiesDetectionV2Job_kmsKey :: Lens' StartEntitiesDetectionV2Job (Maybe Text)
startEntitiesDetectionV2Job_kmsKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartEntitiesDetectionV2Job' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: StartEntitiesDetectionV2Job
s@StartEntitiesDetectionV2Job' {} Maybe Text
a -> StartEntitiesDetectionV2Job
s {$sel:kmsKey:StartEntitiesDetectionV2Job' :: Maybe Text
kmsKey = Maybe Text
a} :: StartEntitiesDetectionV2Job)
startEntitiesDetectionV2Job_inputDataConfig :: Lens.Lens' StartEntitiesDetectionV2Job InputDataConfig
startEntitiesDetectionV2Job_inputDataConfig :: Lens' StartEntitiesDetectionV2Job InputDataConfig
startEntitiesDetectionV2Job_inputDataConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartEntitiesDetectionV2Job' {InputDataConfig
inputDataConfig :: InputDataConfig
$sel:inputDataConfig:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> InputDataConfig
inputDataConfig} -> InputDataConfig
inputDataConfig) (\s :: StartEntitiesDetectionV2Job
s@StartEntitiesDetectionV2Job' {} InputDataConfig
a -> StartEntitiesDetectionV2Job
s {$sel:inputDataConfig:StartEntitiesDetectionV2Job' :: InputDataConfig
inputDataConfig = InputDataConfig
a} :: StartEntitiesDetectionV2Job)
startEntitiesDetectionV2Job_outputDataConfig :: Lens.Lens' StartEntitiesDetectionV2Job OutputDataConfig
startEntitiesDetectionV2Job_outputDataConfig :: Lens' StartEntitiesDetectionV2Job OutputDataConfig
startEntitiesDetectionV2Job_outputDataConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartEntitiesDetectionV2Job' {OutputDataConfig
outputDataConfig :: OutputDataConfig
$sel:outputDataConfig:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> OutputDataConfig
outputDataConfig} -> OutputDataConfig
outputDataConfig) (\s :: StartEntitiesDetectionV2Job
s@StartEntitiesDetectionV2Job' {} OutputDataConfig
a -> StartEntitiesDetectionV2Job
s {$sel:outputDataConfig:StartEntitiesDetectionV2Job' :: OutputDataConfig
outputDataConfig = OutputDataConfig
a} :: StartEntitiesDetectionV2Job)
startEntitiesDetectionV2Job_dataAccessRoleArn :: Lens.Lens' StartEntitiesDetectionV2Job Prelude.Text
startEntitiesDetectionV2Job_dataAccessRoleArn :: Lens' StartEntitiesDetectionV2Job Text
startEntitiesDetectionV2Job_dataAccessRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartEntitiesDetectionV2Job' {Text
dataAccessRoleArn :: Text
$sel:dataAccessRoleArn:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Text
dataAccessRoleArn} -> Text
dataAccessRoleArn) (\s :: StartEntitiesDetectionV2Job
s@StartEntitiesDetectionV2Job' {} Text
a -> StartEntitiesDetectionV2Job
s {$sel:dataAccessRoleArn:StartEntitiesDetectionV2Job' :: Text
dataAccessRoleArn = Text
a} :: StartEntitiesDetectionV2Job)
startEntitiesDetectionV2Job_languageCode :: Lens.Lens' StartEntitiesDetectionV2Job LanguageCode
startEntitiesDetectionV2Job_languageCode :: Lens' StartEntitiesDetectionV2Job LanguageCode
startEntitiesDetectionV2Job_languageCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartEntitiesDetectionV2Job' {LanguageCode
languageCode :: LanguageCode
$sel:languageCode:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> LanguageCode
languageCode} -> LanguageCode
languageCode) (\s :: StartEntitiesDetectionV2Job
s@StartEntitiesDetectionV2Job' {} LanguageCode
a -> StartEntitiesDetectionV2Job
s {$sel:languageCode:StartEntitiesDetectionV2Job' :: LanguageCode
languageCode = LanguageCode
a} :: StartEntitiesDetectionV2Job)
instance Core.AWSRequest StartEntitiesDetectionV2Job where
type
AWSResponse StartEntitiesDetectionV2Job =
StartEntitiesDetectionV2JobResponse
request :: (Service -> Service)
-> StartEntitiesDetectionV2Job
-> Request StartEntitiesDetectionV2Job
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy StartEntitiesDetectionV2Job
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartEntitiesDetectionV2Job)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Int -> StartEntitiesDetectionV2JobResponse
StartEntitiesDetectionV2JobResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"JobId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable StartEntitiesDetectionV2Job where
hashWithSalt :: Int -> StartEntitiesDetectionV2Job -> Int
hashWithSalt Int
_salt StartEntitiesDetectionV2Job' {Maybe Text
Text
InputDataConfig
LanguageCode
OutputDataConfig
languageCode :: LanguageCode
dataAccessRoleArn :: Text
outputDataConfig :: OutputDataConfig
inputDataConfig :: InputDataConfig
kmsKey :: Maybe Text
jobName :: Maybe Text
clientRequestToken :: Maybe Text
$sel:languageCode:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> LanguageCode
$sel:dataAccessRoleArn:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Text
$sel:outputDataConfig:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> OutputDataConfig
$sel:inputDataConfig:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> InputDataConfig
$sel:kmsKey:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
$sel:jobName:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
$sel:clientRequestToken:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientRequestToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
kmsKey
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` InputDataConfig
inputDataConfig
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` OutputDataConfig
outputDataConfig
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
dataAccessRoleArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` LanguageCode
languageCode
instance Prelude.NFData StartEntitiesDetectionV2Job where
rnf :: StartEntitiesDetectionV2Job -> ()
rnf StartEntitiesDetectionV2Job' {Maybe Text
Text
InputDataConfig
LanguageCode
OutputDataConfig
languageCode :: LanguageCode
dataAccessRoleArn :: Text
outputDataConfig :: OutputDataConfig
inputDataConfig :: InputDataConfig
kmsKey :: Maybe Text
jobName :: Maybe Text
clientRequestToken :: Maybe Text
$sel:languageCode:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> LanguageCode
$sel:dataAccessRoleArn:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Text
$sel:outputDataConfig:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> OutputDataConfig
$sel:inputDataConfig:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> InputDataConfig
$sel:kmsKey:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
$sel:jobName:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
$sel:clientRequestToken:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
clientRequestToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsKey
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf InputDataConfig
inputDataConfig
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf OutputDataConfig
outputDataConfig
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
dataAccessRoleArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf LanguageCode
languageCode
instance Data.ToHeaders StartEntitiesDetectionV2Job where
toHeaders :: StartEntitiesDetectionV2Job -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"ComprehendMedical_20181030.StartEntitiesDetectionV2Job" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON StartEntitiesDetectionV2Job where
toJSON :: StartEntitiesDetectionV2Job -> Value
toJSON StartEntitiesDetectionV2Job' {Maybe Text
Text
InputDataConfig
LanguageCode
OutputDataConfig
languageCode :: LanguageCode
dataAccessRoleArn :: Text
outputDataConfig :: OutputDataConfig
inputDataConfig :: InputDataConfig
kmsKey :: Maybe Text
jobName :: Maybe Text
clientRequestToken :: Maybe Text
$sel:languageCode:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> LanguageCode
$sel:dataAccessRoleArn:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Text
$sel:outputDataConfig:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> OutputDataConfig
$sel:inputDataConfig:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> InputDataConfig
$sel:kmsKey:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
$sel:jobName:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
$sel:clientRequestToken:StartEntitiesDetectionV2Job' :: StartEntitiesDetectionV2Job -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ClientRequestToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientRequestToken,
(Key
"JobName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
jobName,
(Key
"KMSKey" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
kmsKey,
forall a. a -> Maybe a
Prelude.Just
(Key
"InputDataConfig" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= InputDataConfig
inputDataConfig),
forall a. a -> Maybe a
Prelude.Just
(Key
"OutputDataConfig" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= OutputDataConfig
outputDataConfig),
forall a. a -> Maybe a
Prelude.Just
(Key
"DataAccessRoleArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
dataAccessRoleArn),
forall a. a -> Maybe a
Prelude.Just (Key
"LanguageCode" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= LanguageCode
languageCode)
]
)
instance Data.ToPath StartEntitiesDetectionV2Job where
toPath :: StartEntitiesDetectionV2Job -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery StartEntitiesDetectionV2Job where
toQuery :: StartEntitiesDetectionV2Job -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data StartEntitiesDetectionV2JobResponse = StartEntitiesDetectionV2JobResponse'
{
StartEntitiesDetectionV2JobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
StartEntitiesDetectionV2JobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartEntitiesDetectionV2JobResponse
-> StartEntitiesDetectionV2JobResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartEntitiesDetectionV2JobResponse
-> StartEntitiesDetectionV2JobResponse -> Bool
$c/= :: StartEntitiesDetectionV2JobResponse
-> StartEntitiesDetectionV2JobResponse -> Bool
== :: StartEntitiesDetectionV2JobResponse
-> StartEntitiesDetectionV2JobResponse -> Bool
$c== :: StartEntitiesDetectionV2JobResponse
-> StartEntitiesDetectionV2JobResponse -> Bool
Prelude.Eq, ReadPrec [StartEntitiesDetectionV2JobResponse]
ReadPrec StartEntitiesDetectionV2JobResponse
Int -> ReadS StartEntitiesDetectionV2JobResponse
ReadS [StartEntitiesDetectionV2JobResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartEntitiesDetectionV2JobResponse]
$creadListPrec :: ReadPrec [StartEntitiesDetectionV2JobResponse]
readPrec :: ReadPrec StartEntitiesDetectionV2JobResponse
$creadPrec :: ReadPrec StartEntitiesDetectionV2JobResponse
readList :: ReadS [StartEntitiesDetectionV2JobResponse]
$creadList :: ReadS [StartEntitiesDetectionV2JobResponse]
readsPrec :: Int -> ReadS StartEntitiesDetectionV2JobResponse
$creadsPrec :: Int -> ReadS StartEntitiesDetectionV2JobResponse
Prelude.Read, Int -> StartEntitiesDetectionV2JobResponse -> ShowS
[StartEntitiesDetectionV2JobResponse] -> ShowS
StartEntitiesDetectionV2JobResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartEntitiesDetectionV2JobResponse] -> ShowS
$cshowList :: [StartEntitiesDetectionV2JobResponse] -> ShowS
show :: StartEntitiesDetectionV2JobResponse -> String
$cshow :: StartEntitiesDetectionV2JobResponse -> String
showsPrec :: Int -> StartEntitiesDetectionV2JobResponse -> ShowS
$cshowsPrec :: Int -> StartEntitiesDetectionV2JobResponse -> ShowS
Prelude.Show, forall x.
Rep StartEntitiesDetectionV2JobResponse x
-> StartEntitiesDetectionV2JobResponse
forall x.
StartEntitiesDetectionV2JobResponse
-> Rep StartEntitiesDetectionV2JobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartEntitiesDetectionV2JobResponse x
-> StartEntitiesDetectionV2JobResponse
$cfrom :: forall x.
StartEntitiesDetectionV2JobResponse
-> Rep StartEntitiesDetectionV2JobResponse x
Prelude.Generic)
newStartEntitiesDetectionV2JobResponse ::
Prelude.Int ->
StartEntitiesDetectionV2JobResponse
newStartEntitiesDetectionV2JobResponse :: Int -> StartEntitiesDetectionV2JobResponse
newStartEntitiesDetectionV2JobResponse Int
pHttpStatus_ =
StartEntitiesDetectionV2JobResponse'
{ $sel:jobId:StartEntitiesDetectionV2JobResponse' :: Maybe Text
jobId =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartEntitiesDetectionV2JobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startEntitiesDetectionV2JobResponse_jobId :: Lens.Lens' StartEntitiesDetectionV2JobResponse (Prelude.Maybe Prelude.Text)
startEntitiesDetectionV2JobResponse_jobId :: Lens' StartEntitiesDetectionV2JobResponse (Maybe Text)
startEntitiesDetectionV2JobResponse_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartEntitiesDetectionV2JobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:StartEntitiesDetectionV2JobResponse' :: StartEntitiesDetectionV2JobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: StartEntitiesDetectionV2JobResponse
s@StartEntitiesDetectionV2JobResponse' {} Maybe Text
a -> StartEntitiesDetectionV2JobResponse
s {$sel:jobId:StartEntitiesDetectionV2JobResponse' :: Maybe Text
jobId = Maybe Text
a} :: StartEntitiesDetectionV2JobResponse)
startEntitiesDetectionV2JobResponse_httpStatus :: Lens.Lens' StartEntitiesDetectionV2JobResponse Prelude.Int
startEntitiesDetectionV2JobResponse_httpStatus :: Lens' StartEntitiesDetectionV2JobResponse Int
startEntitiesDetectionV2JobResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartEntitiesDetectionV2JobResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartEntitiesDetectionV2JobResponse' :: StartEntitiesDetectionV2JobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartEntitiesDetectionV2JobResponse
s@StartEntitiesDetectionV2JobResponse' {} Int
a -> StartEntitiesDetectionV2JobResponse
s {$sel:httpStatus:StartEntitiesDetectionV2JobResponse' :: Int
httpStatus = Int
a} :: StartEntitiesDetectionV2JobResponse)
instance
Prelude.NFData
StartEntitiesDetectionV2JobResponse
where
rnf :: StartEntitiesDetectionV2JobResponse -> ()
rnf StartEntitiesDetectionV2JobResponse' {Int
Maybe Text
httpStatus :: Int
jobId :: Maybe Text
$sel:httpStatus:StartEntitiesDetectionV2JobResponse' :: StartEntitiesDetectionV2JobResponse -> Int
$sel:jobId:StartEntitiesDetectionV2JobResponse' :: StartEntitiesDetectionV2JobResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus