{-# 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.Textract.StartDocumentTextDetection
(
StartDocumentTextDetection (..),
newStartDocumentTextDetection,
startDocumentTextDetection_clientRequestToken,
startDocumentTextDetection_jobTag,
startDocumentTextDetection_kmsKeyId,
startDocumentTextDetection_notificationChannel,
startDocumentTextDetection_outputConfig,
startDocumentTextDetection_documentLocation,
StartDocumentTextDetectionResponse (..),
newStartDocumentTextDetectionResponse,
startDocumentTextDetectionResponse_jobId,
startDocumentTextDetectionResponse_httpStatus,
)
where
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
import Amazonka.Textract.Types
data StartDocumentTextDetection = StartDocumentTextDetection'
{
StartDocumentTextDetection -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
StartDocumentTextDetection -> Maybe Text
jobTag :: Prelude.Maybe Prelude.Text,
StartDocumentTextDetection -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
StartDocumentTextDetection -> Maybe NotificationChannel
notificationChannel :: Prelude.Maybe NotificationChannel,
StartDocumentTextDetection -> Maybe OutputConfig
outputConfig :: Prelude.Maybe OutputConfig,
StartDocumentTextDetection -> DocumentLocation
documentLocation :: DocumentLocation
}
deriving (StartDocumentTextDetection -> StartDocumentTextDetection -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDocumentTextDetection -> StartDocumentTextDetection -> Bool
$c/= :: StartDocumentTextDetection -> StartDocumentTextDetection -> Bool
== :: StartDocumentTextDetection -> StartDocumentTextDetection -> Bool
$c== :: StartDocumentTextDetection -> StartDocumentTextDetection -> Bool
Prelude.Eq, ReadPrec [StartDocumentTextDetection]
ReadPrec StartDocumentTextDetection
Int -> ReadS StartDocumentTextDetection
ReadS [StartDocumentTextDetection]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDocumentTextDetection]
$creadListPrec :: ReadPrec [StartDocumentTextDetection]
readPrec :: ReadPrec StartDocumentTextDetection
$creadPrec :: ReadPrec StartDocumentTextDetection
readList :: ReadS [StartDocumentTextDetection]
$creadList :: ReadS [StartDocumentTextDetection]
readsPrec :: Int -> ReadS StartDocumentTextDetection
$creadsPrec :: Int -> ReadS StartDocumentTextDetection
Prelude.Read, Int -> StartDocumentTextDetection -> ShowS
[StartDocumentTextDetection] -> ShowS
StartDocumentTextDetection -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDocumentTextDetection] -> ShowS
$cshowList :: [StartDocumentTextDetection] -> ShowS
show :: StartDocumentTextDetection -> String
$cshow :: StartDocumentTextDetection -> String
showsPrec :: Int -> StartDocumentTextDetection -> ShowS
$cshowsPrec :: Int -> StartDocumentTextDetection -> ShowS
Prelude.Show, forall x.
Rep StartDocumentTextDetection x -> StartDocumentTextDetection
forall x.
StartDocumentTextDetection -> Rep StartDocumentTextDetection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartDocumentTextDetection x -> StartDocumentTextDetection
$cfrom :: forall x.
StartDocumentTextDetection -> Rep StartDocumentTextDetection x
Prelude.Generic)
newStartDocumentTextDetection ::
DocumentLocation ->
StartDocumentTextDetection
newStartDocumentTextDetection :: DocumentLocation -> StartDocumentTextDetection
newStartDocumentTextDetection DocumentLocation
pDocumentLocation_ =
StartDocumentTextDetection'
{ $sel:clientRequestToken:StartDocumentTextDetection' :: Maybe Text
clientRequestToken =
forall a. Maybe a
Prelude.Nothing,
$sel:jobTag:StartDocumentTextDetection' :: Maybe Text
jobTag = forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:StartDocumentTextDetection' :: Maybe Text
kmsKeyId = forall a. Maybe a
Prelude.Nothing,
$sel:notificationChannel:StartDocumentTextDetection' :: Maybe NotificationChannel
notificationChannel = forall a. Maybe a
Prelude.Nothing,
$sel:outputConfig:StartDocumentTextDetection' :: Maybe OutputConfig
outputConfig = forall a. Maybe a
Prelude.Nothing,
$sel:documentLocation:StartDocumentTextDetection' :: DocumentLocation
documentLocation = DocumentLocation
pDocumentLocation_
}
startDocumentTextDetection_clientRequestToken :: Lens.Lens' StartDocumentTextDetection (Prelude.Maybe Prelude.Text)
startDocumentTextDetection_clientRequestToken :: Lens' StartDocumentTextDetection (Maybe Text)
startDocumentTextDetection_clientRequestToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentTextDetection' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: StartDocumentTextDetection
s@StartDocumentTextDetection' {} Maybe Text
a -> StartDocumentTextDetection
s {$sel:clientRequestToken:StartDocumentTextDetection' :: Maybe Text
clientRequestToken = Maybe Text
a} :: StartDocumentTextDetection)
startDocumentTextDetection_jobTag :: Lens.Lens' StartDocumentTextDetection (Prelude.Maybe Prelude.Text)
startDocumentTextDetection_jobTag :: Lens' StartDocumentTextDetection (Maybe Text)
startDocumentTextDetection_jobTag = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentTextDetection' {Maybe Text
jobTag :: Maybe Text
$sel:jobTag:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe Text
jobTag} -> Maybe Text
jobTag) (\s :: StartDocumentTextDetection
s@StartDocumentTextDetection' {} Maybe Text
a -> StartDocumentTextDetection
s {$sel:jobTag:StartDocumentTextDetection' :: Maybe Text
jobTag = Maybe Text
a} :: StartDocumentTextDetection)
startDocumentTextDetection_kmsKeyId :: Lens.Lens' StartDocumentTextDetection (Prelude.Maybe Prelude.Text)
startDocumentTextDetection_kmsKeyId :: Lens' StartDocumentTextDetection (Maybe Text)
startDocumentTextDetection_kmsKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentTextDetection' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: StartDocumentTextDetection
s@StartDocumentTextDetection' {} Maybe Text
a -> StartDocumentTextDetection
s {$sel:kmsKeyId:StartDocumentTextDetection' :: Maybe Text
kmsKeyId = Maybe Text
a} :: StartDocumentTextDetection)
startDocumentTextDetection_notificationChannel :: Lens.Lens' StartDocumentTextDetection (Prelude.Maybe NotificationChannel)
startDocumentTextDetection_notificationChannel :: Lens' StartDocumentTextDetection (Maybe NotificationChannel)
startDocumentTextDetection_notificationChannel = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentTextDetection' {Maybe NotificationChannel
notificationChannel :: Maybe NotificationChannel
$sel:notificationChannel:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe NotificationChannel
notificationChannel} -> Maybe NotificationChannel
notificationChannel) (\s :: StartDocumentTextDetection
s@StartDocumentTextDetection' {} Maybe NotificationChannel
a -> StartDocumentTextDetection
s {$sel:notificationChannel:StartDocumentTextDetection' :: Maybe NotificationChannel
notificationChannel = Maybe NotificationChannel
a} :: StartDocumentTextDetection)
startDocumentTextDetection_outputConfig :: Lens.Lens' StartDocumentTextDetection (Prelude.Maybe OutputConfig)
startDocumentTextDetection_outputConfig :: Lens' StartDocumentTextDetection (Maybe OutputConfig)
startDocumentTextDetection_outputConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentTextDetection' {Maybe OutputConfig
outputConfig :: Maybe OutputConfig
$sel:outputConfig:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe OutputConfig
outputConfig} -> Maybe OutputConfig
outputConfig) (\s :: StartDocumentTextDetection
s@StartDocumentTextDetection' {} Maybe OutputConfig
a -> StartDocumentTextDetection
s {$sel:outputConfig:StartDocumentTextDetection' :: Maybe OutputConfig
outputConfig = Maybe OutputConfig
a} :: StartDocumentTextDetection)
startDocumentTextDetection_documentLocation :: Lens.Lens' StartDocumentTextDetection DocumentLocation
startDocumentTextDetection_documentLocation :: Lens' StartDocumentTextDetection DocumentLocation
startDocumentTextDetection_documentLocation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentTextDetection' {DocumentLocation
documentLocation :: DocumentLocation
$sel:documentLocation:StartDocumentTextDetection' :: StartDocumentTextDetection -> DocumentLocation
documentLocation} -> DocumentLocation
documentLocation) (\s :: StartDocumentTextDetection
s@StartDocumentTextDetection' {} DocumentLocation
a -> StartDocumentTextDetection
s {$sel:documentLocation:StartDocumentTextDetection' :: DocumentLocation
documentLocation = DocumentLocation
a} :: StartDocumentTextDetection)
instance Core.AWSRequest StartDocumentTextDetection where
type
AWSResponse StartDocumentTextDetection =
StartDocumentTextDetectionResponse
request :: (Service -> Service)
-> StartDocumentTextDetection -> Request StartDocumentTextDetection
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 StartDocumentTextDetection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartDocumentTextDetection)))
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 -> StartDocumentTextDetectionResponse
StartDocumentTextDetectionResponse'
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 StartDocumentTextDetection where
hashWithSalt :: Int -> StartDocumentTextDetection -> Int
hashWithSalt Int
_salt StartDocumentTextDetection' {Maybe Text
Maybe NotificationChannel
Maybe OutputConfig
DocumentLocation
documentLocation :: DocumentLocation
outputConfig :: Maybe OutputConfig
notificationChannel :: Maybe NotificationChannel
kmsKeyId :: Maybe Text
jobTag :: Maybe Text
clientRequestToken :: Maybe Text
$sel:documentLocation:StartDocumentTextDetection' :: StartDocumentTextDetection -> DocumentLocation
$sel:outputConfig:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe OutputConfig
$sel:notificationChannel:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe NotificationChannel
$sel:kmsKeyId:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe Text
$sel:jobTag:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe Text
$sel:clientRequestToken:StartDocumentTextDetection' :: StartDocumentTextDetection -> 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
jobTag
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
kmsKeyId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe NotificationChannel
notificationChannel
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OutputConfig
outputConfig
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` DocumentLocation
documentLocation
instance Prelude.NFData StartDocumentTextDetection where
rnf :: StartDocumentTextDetection -> ()
rnf StartDocumentTextDetection' {Maybe Text
Maybe NotificationChannel
Maybe OutputConfig
DocumentLocation
documentLocation :: DocumentLocation
outputConfig :: Maybe OutputConfig
notificationChannel :: Maybe NotificationChannel
kmsKeyId :: Maybe Text
jobTag :: Maybe Text
clientRequestToken :: Maybe Text
$sel:documentLocation:StartDocumentTextDetection' :: StartDocumentTextDetection -> DocumentLocation
$sel:outputConfig:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe OutputConfig
$sel:notificationChannel:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe NotificationChannel
$sel:kmsKeyId:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe Text
$sel:jobTag:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe Text
$sel:clientRequestToken:StartDocumentTextDetection' :: StartDocumentTextDetection -> 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
jobTag
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsKeyId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe NotificationChannel
notificationChannel
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OutputConfig
outputConfig
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf DocumentLocation
documentLocation
instance Data.ToHeaders StartDocumentTextDetection where
toHeaders :: StartDocumentTextDetection -> 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
"Textract.StartDocumentTextDetection" ::
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 StartDocumentTextDetection where
toJSON :: StartDocumentTextDetection -> Value
toJSON StartDocumentTextDetection' {Maybe Text
Maybe NotificationChannel
Maybe OutputConfig
DocumentLocation
documentLocation :: DocumentLocation
outputConfig :: Maybe OutputConfig
notificationChannel :: Maybe NotificationChannel
kmsKeyId :: Maybe Text
jobTag :: Maybe Text
clientRequestToken :: Maybe Text
$sel:documentLocation:StartDocumentTextDetection' :: StartDocumentTextDetection -> DocumentLocation
$sel:outputConfig:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe OutputConfig
$sel:notificationChannel:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe NotificationChannel
$sel:kmsKeyId:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe Text
$sel:jobTag:StartDocumentTextDetection' :: StartDocumentTextDetection -> Maybe Text
$sel:clientRequestToken:StartDocumentTextDetection' :: StartDocumentTextDetection -> 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
"JobTag" 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
jobTag,
(Key
"KMSKeyId" 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
kmsKeyId,
(Key
"NotificationChannel" 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 NotificationChannel
notificationChannel,
(Key
"OutputConfig" 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 OutputConfig
outputConfig,
forall a. a -> Maybe a
Prelude.Just
(Key
"DocumentLocation" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= DocumentLocation
documentLocation)
]
)
instance Data.ToPath StartDocumentTextDetection where
toPath :: StartDocumentTextDetection -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery StartDocumentTextDetection where
toQuery :: StartDocumentTextDetection -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data StartDocumentTextDetectionResponse = StartDocumentTextDetectionResponse'
{
StartDocumentTextDetectionResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
StartDocumentTextDetectionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartDocumentTextDetectionResponse
-> StartDocumentTextDetectionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDocumentTextDetectionResponse
-> StartDocumentTextDetectionResponse -> Bool
$c/= :: StartDocumentTextDetectionResponse
-> StartDocumentTextDetectionResponse -> Bool
== :: StartDocumentTextDetectionResponse
-> StartDocumentTextDetectionResponse -> Bool
$c== :: StartDocumentTextDetectionResponse
-> StartDocumentTextDetectionResponse -> Bool
Prelude.Eq, ReadPrec [StartDocumentTextDetectionResponse]
ReadPrec StartDocumentTextDetectionResponse
Int -> ReadS StartDocumentTextDetectionResponse
ReadS [StartDocumentTextDetectionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDocumentTextDetectionResponse]
$creadListPrec :: ReadPrec [StartDocumentTextDetectionResponse]
readPrec :: ReadPrec StartDocumentTextDetectionResponse
$creadPrec :: ReadPrec StartDocumentTextDetectionResponse
readList :: ReadS [StartDocumentTextDetectionResponse]
$creadList :: ReadS [StartDocumentTextDetectionResponse]
readsPrec :: Int -> ReadS StartDocumentTextDetectionResponse
$creadsPrec :: Int -> ReadS StartDocumentTextDetectionResponse
Prelude.Read, Int -> StartDocumentTextDetectionResponse -> ShowS
[StartDocumentTextDetectionResponse] -> ShowS
StartDocumentTextDetectionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDocumentTextDetectionResponse] -> ShowS
$cshowList :: [StartDocumentTextDetectionResponse] -> ShowS
show :: StartDocumentTextDetectionResponse -> String
$cshow :: StartDocumentTextDetectionResponse -> String
showsPrec :: Int -> StartDocumentTextDetectionResponse -> ShowS
$cshowsPrec :: Int -> StartDocumentTextDetectionResponse -> ShowS
Prelude.Show, forall x.
Rep StartDocumentTextDetectionResponse x
-> StartDocumentTextDetectionResponse
forall x.
StartDocumentTextDetectionResponse
-> Rep StartDocumentTextDetectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartDocumentTextDetectionResponse x
-> StartDocumentTextDetectionResponse
$cfrom :: forall x.
StartDocumentTextDetectionResponse
-> Rep StartDocumentTextDetectionResponse x
Prelude.Generic)
newStartDocumentTextDetectionResponse ::
Prelude.Int ->
StartDocumentTextDetectionResponse
newStartDocumentTextDetectionResponse :: Int -> StartDocumentTextDetectionResponse
newStartDocumentTextDetectionResponse Int
pHttpStatus_ =
StartDocumentTextDetectionResponse'
{ $sel:jobId:StartDocumentTextDetectionResponse' :: Maybe Text
jobId =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartDocumentTextDetectionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startDocumentTextDetectionResponse_jobId :: Lens.Lens' StartDocumentTextDetectionResponse (Prelude.Maybe Prelude.Text)
startDocumentTextDetectionResponse_jobId :: Lens' StartDocumentTextDetectionResponse (Maybe Text)
startDocumentTextDetectionResponse_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentTextDetectionResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:StartDocumentTextDetectionResponse' :: StartDocumentTextDetectionResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: StartDocumentTextDetectionResponse
s@StartDocumentTextDetectionResponse' {} Maybe Text
a -> StartDocumentTextDetectionResponse
s {$sel:jobId:StartDocumentTextDetectionResponse' :: Maybe Text
jobId = Maybe Text
a} :: StartDocumentTextDetectionResponse)
startDocumentTextDetectionResponse_httpStatus :: Lens.Lens' StartDocumentTextDetectionResponse Prelude.Int
startDocumentTextDetectionResponse_httpStatus :: Lens' StartDocumentTextDetectionResponse Int
startDocumentTextDetectionResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentTextDetectionResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartDocumentTextDetectionResponse' :: StartDocumentTextDetectionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartDocumentTextDetectionResponse
s@StartDocumentTextDetectionResponse' {} Int
a -> StartDocumentTextDetectionResponse
s {$sel:httpStatus:StartDocumentTextDetectionResponse' :: Int
httpStatus = Int
a} :: StartDocumentTextDetectionResponse)
instance
Prelude.NFData
StartDocumentTextDetectionResponse
where
rnf :: StartDocumentTextDetectionResponse -> ()
rnf StartDocumentTextDetectionResponse' {Int
Maybe Text
httpStatus :: Int
jobId :: Maybe Text
$sel:httpStatus:StartDocumentTextDetectionResponse' :: StartDocumentTextDetectionResponse -> Int
$sel:jobId:StartDocumentTextDetectionResponse' :: StartDocumentTextDetectionResponse -> 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