{-# 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.StartDocumentAnalysis
(
StartDocumentAnalysis (..),
newStartDocumentAnalysis,
startDocumentAnalysis_jobTag,
startDocumentAnalysis_notificationChannel,
startDocumentAnalysis_kmsKeyId,
startDocumentAnalysis_outputConfig,
startDocumentAnalysis_clientRequestToken,
startDocumentAnalysis_documentLocation,
startDocumentAnalysis_featureTypes,
StartDocumentAnalysisResponse (..),
newStartDocumentAnalysisResponse,
startDocumentAnalysisResponse_jobId,
startDocumentAnalysisResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Textract.Types
data StartDocumentAnalysis = StartDocumentAnalysis'
{
StartDocumentAnalysis -> Maybe Text
jobTag :: Prelude.Maybe Prelude.Text,
StartDocumentAnalysis -> Maybe NotificationChannel
notificationChannel :: Prelude.Maybe NotificationChannel,
StartDocumentAnalysis -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
StartDocumentAnalysis -> Maybe OutputConfig
outputConfig :: Prelude.Maybe OutputConfig,
StartDocumentAnalysis -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
StartDocumentAnalysis -> DocumentLocation
documentLocation :: DocumentLocation,
StartDocumentAnalysis -> [FeatureType]
featureTypes :: [FeatureType]
}
deriving (StartDocumentAnalysis -> StartDocumentAnalysis -> Bool
(StartDocumentAnalysis -> StartDocumentAnalysis -> Bool)
-> (StartDocumentAnalysis -> StartDocumentAnalysis -> Bool)
-> Eq StartDocumentAnalysis
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDocumentAnalysis -> StartDocumentAnalysis -> Bool
$c/= :: StartDocumentAnalysis -> StartDocumentAnalysis -> Bool
== :: StartDocumentAnalysis -> StartDocumentAnalysis -> Bool
$c== :: StartDocumentAnalysis -> StartDocumentAnalysis -> Bool
Prelude.Eq, ReadPrec [StartDocumentAnalysis]
ReadPrec StartDocumentAnalysis
Int -> ReadS StartDocumentAnalysis
ReadS [StartDocumentAnalysis]
(Int -> ReadS StartDocumentAnalysis)
-> ReadS [StartDocumentAnalysis]
-> ReadPrec StartDocumentAnalysis
-> ReadPrec [StartDocumentAnalysis]
-> Read StartDocumentAnalysis
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDocumentAnalysis]
$creadListPrec :: ReadPrec [StartDocumentAnalysis]
readPrec :: ReadPrec StartDocumentAnalysis
$creadPrec :: ReadPrec StartDocumentAnalysis
readList :: ReadS [StartDocumentAnalysis]
$creadList :: ReadS [StartDocumentAnalysis]
readsPrec :: Int -> ReadS StartDocumentAnalysis
$creadsPrec :: Int -> ReadS StartDocumentAnalysis
Prelude.Read, Int -> StartDocumentAnalysis -> ShowS
[StartDocumentAnalysis] -> ShowS
StartDocumentAnalysis -> String
(Int -> StartDocumentAnalysis -> ShowS)
-> (StartDocumentAnalysis -> String)
-> ([StartDocumentAnalysis] -> ShowS)
-> Show StartDocumentAnalysis
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDocumentAnalysis] -> ShowS
$cshowList :: [StartDocumentAnalysis] -> ShowS
show :: StartDocumentAnalysis -> String
$cshow :: StartDocumentAnalysis -> String
showsPrec :: Int -> StartDocumentAnalysis -> ShowS
$cshowsPrec :: Int -> StartDocumentAnalysis -> ShowS
Prelude.Show, (forall x. StartDocumentAnalysis -> Rep StartDocumentAnalysis x)
-> (forall x. Rep StartDocumentAnalysis x -> StartDocumentAnalysis)
-> Generic StartDocumentAnalysis
forall x. Rep StartDocumentAnalysis x -> StartDocumentAnalysis
forall x. StartDocumentAnalysis -> Rep StartDocumentAnalysis x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartDocumentAnalysis x -> StartDocumentAnalysis
$cfrom :: forall x. StartDocumentAnalysis -> Rep StartDocumentAnalysis x
Prelude.Generic)
newStartDocumentAnalysis ::
DocumentLocation ->
StartDocumentAnalysis
newStartDocumentAnalysis :: DocumentLocation -> StartDocumentAnalysis
newStartDocumentAnalysis DocumentLocation
pDocumentLocation_ =
StartDocumentAnalysis' :: Maybe Text
-> Maybe NotificationChannel
-> Maybe Text
-> Maybe OutputConfig
-> Maybe Text
-> DocumentLocation
-> [FeatureType]
-> StartDocumentAnalysis
StartDocumentAnalysis'
{ $sel:jobTag:StartDocumentAnalysis' :: Maybe Text
jobTag = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:notificationChannel:StartDocumentAnalysis' :: Maybe NotificationChannel
notificationChannel = Maybe NotificationChannel
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:StartDocumentAnalysis' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:outputConfig:StartDocumentAnalysis' :: Maybe OutputConfig
outputConfig = Maybe OutputConfig
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:StartDocumentAnalysis' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:documentLocation:StartDocumentAnalysis' :: DocumentLocation
documentLocation = DocumentLocation
pDocumentLocation_,
$sel:featureTypes:StartDocumentAnalysis' :: [FeatureType]
featureTypes = [FeatureType]
forall a. Monoid a => a
Prelude.mempty
}
startDocumentAnalysis_jobTag :: Lens.Lens' StartDocumentAnalysis (Prelude.Maybe Prelude.Text)
startDocumentAnalysis_jobTag :: (Maybe Text -> f (Maybe Text))
-> StartDocumentAnalysis -> f StartDocumentAnalysis
startDocumentAnalysis_jobTag = (StartDocumentAnalysis -> Maybe Text)
-> (StartDocumentAnalysis -> Maybe Text -> StartDocumentAnalysis)
-> Lens
StartDocumentAnalysis
StartDocumentAnalysis
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentAnalysis' {Maybe Text
jobTag :: Maybe Text
$sel:jobTag:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe Text
jobTag} -> Maybe Text
jobTag) (\s :: StartDocumentAnalysis
s@StartDocumentAnalysis' {} Maybe Text
a -> StartDocumentAnalysis
s {$sel:jobTag:StartDocumentAnalysis' :: Maybe Text
jobTag = Maybe Text
a} :: StartDocumentAnalysis)
startDocumentAnalysis_notificationChannel :: Lens.Lens' StartDocumentAnalysis (Prelude.Maybe NotificationChannel)
startDocumentAnalysis_notificationChannel :: (Maybe NotificationChannel -> f (Maybe NotificationChannel))
-> StartDocumentAnalysis -> f StartDocumentAnalysis
startDocumentAnalysis_notificationChannel = (StartDocumentAnalysis -> Maybe NotificationChannel)
-> (StartDocumentAnalysis
-> Maybe NotificationChannel -> StartDocumentAnalysis)
-> Lens
StartDocumentAnalysis
StartDocumentAnalysis
(Maybe NotificationChannel)
(Maybe NotificationChannel)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentAnalysis' {Maybe NotificationChannel
notificationChannel :: Maybe NotificationChannel
$sel:notificationChannel:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe NotificationChannel
notificationChannel} -> Maybe NotificationChannel
notificationChannel) (\s :: StartDocumentAnalysis
s@StartDocumentAnalysis' {} Maybe NotificationChannel
a -> StartDocumentAnalysis
s {$sel:notificationChannel:StartDocumentAnalysis' :: Maybe NotificationChannel
notificationChannel = Maybe NotificationChannel
a} :: StartDocumentAnalysis)
startDocumentAnalysis_kmsKeyId :: Lens.Lens' StartDocumentAnalysis (Prelude.Maybe Prelude.Text)
startDocumentAnalysis_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> StartDocumentAnalysis -> f StartDocumentAnalysis
startDocumentAnalysis_kmsKeyId = (StartDocumentAnalysis -> Maybe Text)
-> (StartDocumentAnalysis -> Maybe Text -> StartDocumentAnalysis)
-> Lens
StartDocumentAnalysis
StartDocumentAnalysis
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentAnalysis' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: StartDocumentAnalysis
s@StartDocumentAnalysis' {} Maybe Text
a -> StartDocumentAnalysis
s {$sel:kmsKeyId:StartDocumentAnalysis' :: Maybe Text
kmsKeyId = Maybe Text
a} :: StartDocumentAnalysis)
startDocumentAnalysis_outputConfig :: Lens.Lens' StartDocumentAnalysis (Prelude.Maybe OutputConfig)
startDocumentAnalysis_outputConfig :: (Maybe OutputConfig -> f (Maybe OutputConfig))
-> StartDocumentAnalysis -> f StartDocumentAnalysis
startDocumentAnalysis_outputConfig = (StartDocumentAnalysis -> Maybe OutputConfig)
-> (StartDocumentAnalysis
-> Maybe OutputConfig -> StartDocumentAnalysis)
-> Lens
StartDocumentAnalysis
StartDocumentAnalysis
(Maybe OutputConfig)
(Maybe OutputConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentAnalysis' {Maybe OutputConfig
outputConfig :: Maybe OutputConfig
$sel:outputConfig:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe OutputConfig
outputConfig} -> Maybe OutputConfig
outputConfig) (\s :: StartDocumentAnalysis
s@StartDocumentAnalysis' {} Maybe OutputConfig
a -> StartDocumentAnalysis
s {$sel:outputConfig:StartDocumentAnalysis' :: Maybe OutputConfig
outputConfig = Maybe OutputConfig
a} :: StartDocumentAnalysis)
startDocumentAnalysis_clientRequestToken :: Lens.Lens' StartDocumentAnalysis (Prelude.Maybe Prelude.Text)
startDocumentAnalysis_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> StartDocumentAnalysis -> f StartDocumentAnalysis
startDocumentAnalysis_clientRequestToken = (StartDocumentAnalysis -> Maybe Text)
-> (StartDocumentAnalysis -> Maybe Text -> StartDocumentAnalysis)
-> Lens
StartDocumentAnalysis
StartDocumentAnalysis
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentAnalysis' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: StartDocumentAnalysis
s@StartDocumentAnalysis' {} Maybe Text
a -> StartDocumentAnalysis
s {$sel:clientRequestToken:StartDocumentAnalysis' :: Maybe Text
clientRequestToken = Maybe Text
a} :: StartDocumentAnalysis)
startDocumentAnalysis_documentLocation :: Lens.Lens' StartDocumentAnalysis DocumentLocation
startDocumentAnalysis_documentLocation :: (DocumentLocation -> f DocumentLocation)
-> StartDocumentAnalysis -> f StartDocumentAnalysis
startDocumentAnalysis_documentLocation = (StartDocumentAnalysis -> DocumentLocation)
-> (StartDocumentAnalysis
-> DocumentLocation -> StartDocumentAnalysis)
-> Lens
StartDocumentAnalysis
StartDocumentAnalysis
DocumentLocation
DocumentLocation
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentAnalysis' {DocumentLocation
documentLocation :: DocumentLocation
$sel:documentLocation:StartDocumentAnalysis' :: StartDocumentAnalysis -> DocumentLocation
documentLocation} -> DocumentLocation
documentLocation) (\s :: StartDocumentAnalysis
s@StartDocumentAnalysis' {} DocumentLocation
a -> StartDocumentAnalysis
s {$sel:documentLocation:StartDocumentAnalysis' :: DocumentLocation
documentLocation = DocumentLocation
a} :: StartDocumentAnalysis)
startDocumentAnalysis_featureTypes :: Lens.Lens' StartDocumentAnalysis [FeatureType]
startDocumentAnalysis_featureTypes :: ([FeatureType] -> f [FeatureType])
-> StartDocumentAnalysis -> f StartDocumentAnalysis
startDocumentAnalysis_featureTypes = (StartDocumentAnalysis -> [FeatureType])
-> (StartDocumentAnalysis
-> [FeatureType] -> StartDocumentAnalysis)
-> Lens
StartDocumentAnalysis
StartDocumentAnalysis
[FeatureType]
[FeatureType]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentAnalysis' {[FeatureType]
featureTypes :: [FeatureType]
$sel:featureTypes:StartDocumentAnalysis' :: StartDocumentAnalysis -> [FeatureType]
featureTypes} -> [FeatureType]
featureTypes) (\s :: StartDocumentAnalysis
s@StartDocumentAnalysis' {} [FeatureType]
a -> StartDocumentAnalysis
s {$sel:featureTypes:StartDocumentAnalysis' :: [FeatureType]
featureTypes = [FeatureType]
a} :: StartDocumentAnalysis) (([FeatureType] -> f [FeatureType])
-> StartDocumentAnalysis -> f StartDocumentAnalysis)
-> (([FeatureType] -> f [FeatureType])
-> [FeatureType] -> f [FeatureType])
-> ([FeatureType] -> f [FeatureType])
-> StartDocumentAnalysis
-> f StartDocumentAnalysis
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([FeatureType] -> f [FeatureType])
-> [FeatureType] -> f [FeatureType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest StartDocumentAnalysis where
type
AWSResponse StartDocumentAnalysis =
StartDocumentAnalysisResponse
request :: StartDocumentAnalysis -> Request StartDocumentAnalysis
request = Service -> StartDocumentAnalysis -> Request StartDocumentAnalysis
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartDocumentAnalysis
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartDocumentAnalysis)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartDocumentAnalysis))
-> Logger
-> Service
-> Proxy StartDocumentAnalysis
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartDocumentAnalysis)))
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 -> StartDocumentAnalysisResponse
StartDocumentAnalysisResponse'
(Maybe Text -> Int -> StartDocumentAnalysisResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StartDocumentAnalysisResponse)
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
"JobId")
Either String (Int -> StartDocumentAnalysisResponse)
-> Either String Int -> Either String StartDocumentAnalysisResponse
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))
)
instance Prelude.Hashable StartDocumentAnalysis
instance Prelude.NFData StartDocumentAnalysis
instance Core.ToHeaders StartDocumentAnalysis where
toHeaders :: StartDocumentAnalysis -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartDocumentAnalysis -> 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
"Textract.StartDocumentAnalysis" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON StartDocumentAnalysis where
toJSON :: StartDocumentAnalysis -> Value
toJSON StartDocumentAnalysis' {[FeatureType]
Maybe Text
Maybe NotificationChannel
Maybe OutputConfig
DocumentLocation
featureTypes :: [FeatureType]
documentLocation :: DocumentLocation
clientRequestToken :: Maybe Text
outputConfig :: Maybe OutputConfig
kmsKeyId :: Maybe Text
notificationChannel :: Maybe NotificationChannel
jobTag :: Maybe Text
$sel:featureTypes:StartDocumentAnalysis' :: StartDocumentAnalysis -> [FeatureType]
$sel:documentLocation:StartDocumentAnalysis' :: StartDocumentAnalysis -> DocumentLocation
$sel:clientRequestToken:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe Text
$sel:outputConfig:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe OutputConfig
$sel:kmsKeyId:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe Text
$sel:notificationChannel:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe NotificationChannel
$sel:jobTag:StartDocumentAnalysis' :: StartDocumentAnalysis -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"JobTag" 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
jobTag,
(Text
"NotificationChannel" Text -> NotificationChannel -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NotificationChannel -> Pair)
-> Maybe NotificationChannel -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NotificationChannel
notificationChannel,
(Text
"KMSKeyId" 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
kmsKeyId,
(Text
"OutputConfig" Text -> OutputConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (OutputConfig -> Pair) -> Maybe OutputConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputConfig
outputConfig,
(Text
"ClientRequestToken" 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
clientRequestToken,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"DocumentLocation" Text -> DocumentLocation -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= DocumentLocation
documentLocation),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"FeatureTypes" Text -> [FeatureType] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [FeatureType]
featureTypes)
]
)
instance Core.ToPath StartDocumentAnalysis where
toPath :: StartDocumentAnalysis -> ByteString
toPath = ByteString -> StartDocumentAnalysis -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery StartDocumentAnalysis where
toQuery :: StartDocumentAnalysis -> QueryString
toQuery = QueryString -> StartDocumentAnalysis -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartDocumentAnalysisResponse = StartDocumentAnalysisResponse'
{
StartDocumentAnalysisResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
StartDocumentAnalysisResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartDocumentAnalysisResponse
-> StartDocumentAnalysisResponse -> Bool
(StartDocumentAnalysisResponse
-> StartDocumentAnalysisResponse -> Bool)
-> (StartDocumentAnalysisResponse
-> StartDocumentAnalysisResponse -> Bool)
-> Eq StartDocumentAnalysisResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDocumentAnalysisResponse
-> StartDocumentAnalysisResponse -> Bool
$c/= :: StartDocumentAnalysisResponse
-> StartDocumentAnalysisResponse -> Bool
== :: StartDocumentAnalysisResponse
-> StartDocumentAnalysisResponse -> Bool
$c== :: StartDocumentAnalysisResponse
-> StartDocumentAnalysisResponse -> Bool
Prelude.Eq, ReadPrec [StartDocumentAnalysisResponse]
ReadPrec StartDocumentAnalysisResponse
Int -> ReadS StartDocumentAnalysisResponse
ReadS [StartDocumentAnalysisResponse]
(Int -> ReadS StartDocumentAnalysisResponse)
-> ReadS [StartDocumentAnalysisResponse]
-> ReadPrec StartDocumentAnalysisResponse
-> ReadPrec [StartDocumentAnalysisResponse]
-> Read StartDocumentAnalysisResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDocumentAnalysisResponse]
$creadListPrec :: ReadPrec [StartDocumentAnalysisResponse]
readPrec :: ReadPrec StartDocumentAnalysisResponse
$creadPrec :: ReadPrec StartDocumentAnalysisResponse
readList :: ReadS [StartDocumentAnalysisResponse]
$creadList :: ReadS [StartDocumentAnalysisResponse]
readsPrec :: Int -> ReadS StartDocumentAnalysisResponse
$creadsPrec :: Int -> ReadS StartDocumentAnalysisResponse
Prelude.Read, Int -> StartDocumentAnalysisResponse -> ShowS
[StartDocumentAnalysisResponse] -> ShowS
StartDocumentAnalysisResponse -> String
(Int -> StartDocumentAnalysisResponse -> ShowS)
-> (StartDocumentAnalysisResponse -> String)
-> ([StartDocumentAnalysisResponse] -> ShowS)
-> Show StartDocumentAnalysisResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDocumentAnalysisResponse] -> ShowS
$cshowList :: [StartDocumentAnalysisResponse] -> ShowS
show :: StartDocumentAnalysisResponse -> String
$cshow :: StartDocumentAnalysisResponse -> String
showsPrec :: Int -> StartDocumentAnalysisResponse -> ShowS
$cshowsPrec :: Int -> StartDocumentAnalysisResponse -> ShowS
Prelude.Show, (forall x.
StartDocumentAnalysisResponse
-> Rep StartDocumentAnalysisResponse x)
-> (forall x.
Rep StartDocumentAnalysisResponse x
-> StartDocumentAnalysisResponse)
-> Generic StartDocumentAnalysisResponse
forall x.
Rep StartDocumentAnalysisResponse x
-> StartDocumentAnalysisResponse
forall x.
StartDocumentAnalysisResponse
-> Rep StartDocumentAnalysisResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartDocumentAnalysisResponse x
-> StartDocumentAnalysisResponse
$cfrom :: forall x.
StartDocumentAnalysisResponse
-> Rep StartDocumentAnalysisResponse x
Prelude.Generic)
newStartDocumentAnalysisResponse ::
Prelude.Int ->
StartDocumentAnalysisResponse
newStartDocumentAnalysisResponse :: Int -> StartDocumentAnalysisResponse
newStartDocumentAnalysisResponse Int
pHttpStatus_ =
StartDocumentAnalysisResponse' :: Maybe Text -> Int -> StartDocumentAnalysisResponse
StartDocumentAnalysisResponse'
{ $sel:jobId:StartDocumentAnalysisResponse' :: Maybe Text
jobId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartDocumentAnalysisResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startDocumentAnalysisResponse_jobId :: Lens.Lens' StartDocumentAnalysisResponse (Prelude.Maybe Prelude.Text)
startDocumentAnalysisResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> StartDocumentAnalysisResponse -> f StartDocumentAnalysisResponse
startDocumentAnalysisResponse_jobId = (StartDocumentAnalysisResponse -> Maybe Text)
-> (StartDocumentAnalysisResponse
-> Maybe Text -> StartDocumentAnalysisResponse)
-> Lens
StartDocumentAnalysisResponse
StartDocumentAnalysisResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentAnalysisResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:StartDocumentAnalysisResponse' :: StartDocumentAnalysisResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: StartDocumentAnalysisResponse
s@StartDocumentAnalysisResponse' {} Maybe Text
a -> StartDocumentAnalysisResponse
s {$sel:jobId:StartDocumentAnalysisResponse' :: Maybe Text
jobId = Maybe Text
a} :: StartDocumentAnalysisResponse)
startDocumentAnalysisResponse_httpStatus :: Lens.Lens' StartDocumentAnalysisResponse Prelude.Int
startDocumentAnalysisResponse_httpStatus :: (Int -> f Int)
-> StartDocumentAnalysisResponse -> f StartDocumentAnalysisResponse
startDocumentAnalysisResponse_httpStatus = (StartDocumentAnalysisResponse -> Int)
-> (StartDocumentAnalysisResponse
-> Int -> StartDocumentAnalysisResponse)
-> Lens
StartDocumentAnalysisResponse StartDocumentAnalysisResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentAnalysisResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartDocumentAnalysisResponse' :: StartDocumentAnalysisResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartDocumentAnalysisResponse
s@StartDocumentAnalysisResponse' {} Int
a -> StartDocumentAnalysisResponse
s {$sel:httpStatus:StartDocumentAnalysisResponse' :: Int
httpStatus = Int
a} :: StartDocumentAnalysisResponse)
instance Prelude.NFData StartDocumentAnalysisResponse