{-# 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.Rekognition.GetTextDetection
(
GetTextDetection (..),
newGetTextDetection,
getTextDetection_maxResults,
getTextDetection_nextToken,
getTextDetection_jobId,
GetTextDetectionResponse (..),
newGetTextDetectionResponse,
getTextDetectionResponse_jobStatus,
getTextDetectionResponse_nextToken,
getTextDetectionResponse_statusMessage,
getTextDetectionResponse_textDetections,
getTextDetectionResponse_textModelVersion,
getTextDetectionResponse_videoMetadata,
getTextDetectionResponse_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 Amazonka.Rekognition.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetTextDetection = GetTextDetection'
{
GetTextDetection -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetTextDetection -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTextDetection -> Text
jobId :: Prelude.Text
}
deriving (GetTextDetection -> GetTextDetection -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTextDetection -> GetTextDetection -> Bool
$c/= :: GetTextDetection -> GetTextDetection -> Bool
== :: GetTextDetection -> GetTextDetection -> Bool
$c== :: GetTextDetection -> GetTextDetection -> Bool
Prelude.Eq, ReadPrec [GetTextDetection]
ReadPrec GetTextDetection
Int -> ReadS GetTextDetection
ReadS [GetTextDetection]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTextDetection]
$creadListPrec :: ReadPrec [GetTextDetection]
readPrec :: ReadPrec GetTextDetection
$creadPrec :: ReadPrec GetTextDetection
readList :: ReadS [GetTextDetection]
$creadList :: ReadS [GetTextDetection]
readsPrec :: Int -> ReadS GetTextDetection
$creadsPrec :: Int -> ReadS GetTextDetection
Prelude.Read, Int -> GetTextDetection -> ShowS
[GetTextDetection] -> ShowS
GetTextDetection -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTextDetection] -> ShowS
$cshowList :: [GetTextDetection] -> ShowS
show :: GetTextDetection -> String
$cshow :: GetTextDetection -> String
showsPrec :: Int -> GetTextDetection -> ShowS
$cshowsPrec :: Int -> GetTextDetection -> ShowS
Prelude.Show, forall x. Rep GetTextDetection x -> GetTextDetection
forall x. GetTextDetection -> Rep GetTextDetection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetTextDetection x -> GetTextDetection
$cfrom :: forall x. GetTextDetection -> Rep GetTextDetection x
Prelude.Generic)
newGetTextDetection ::
Prelude.Text ->
GetTextDetection
newGetTextDetection :: Text -> GetTextDetection
newGetTextDetection Text
pJobId_ =
GetTextDetection'
{ $sel:maxResults:GetTextDetection' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetTextDetection' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:jobId:GetTextDetection' :: Text
jobId = Text
pJobId_
}
getTextDetection_maxResults :: Lens.Lens' GetTextDetection (Prelude.Maybe Prelude.Natural)
getTextDetection_maxResults :: Lens' GetTextDetection (Maybe Natural)
getTextDetection_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetection' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetTextDetection' :: GetTextDetection -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetTextDetection
s@GetTextDetection' {} Maybe Natural
a -> GetTextDetection
s {$sel:maxResults:GetTextDetection' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetTextDetection)
getTextDetection_nextToken :: Lens.Lens' GetTextDetection (Prelude.Maybe Prelude.Text)
getTextDetection_nextToken :: Lens' GetTextDetection (Maybe Text)
getTextDetection_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetection' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTextDetection' :: GetTextDetection -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTextDetection
s@GetTextDetection' {} Maybe Text
a -> GetTextDetection
s {$sel:nextToken:GetTextDetection' :: Maybe Text
nextToken = Maybe Text
a} :: GetTextDetection)
getTextDetection_jobId :: Lens.Lens' GetTextDetection Prelude.Text
getTextDetection_jobId :: Lens' GetTextDetection Text
getTextDetection_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetection' {Text
jobId :: Text
$sel:jobId:GetTextDetection' :: GetTextDetection -> Text
jobId} -> Text
jobId) (\s :: GetTextDetection
s@GetTextDetection' {} Text
a -> GetTextDetection
s {$sel:jobId:GetTextDetection' :: Text
jobId = Text
a} :: GetTextDetection)
instance Core.AWSRequest GetTextDetection where
type
AWSResponse GetTextDetection =
GetTextDetectionResponse
request :: (Service -> Service)
-> GetTextDetection -> Request GetTextDetection
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 GetTextDetection
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetTextDetection)))
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 VideoJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe [TextDetectionResult]
-> Maybe Text
-> Maybe VideoMetadata
-> Int
-> GetTextDetectionResponse
GetTextDetectionResponse'
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
"JobStatus")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"StatusMessage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TextDetections" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TextModelVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"VideoMetadata")
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 GetTextDetection where
hashWithSalt :: Int -> GetTextDetection -> Int
hashWithSalt Int
_salt GetTextDetection' {Maybe Natural
Maybe Text
Text
jobId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:jobId:GetTextDetection' :: GetTextDetection -> Text
$sel:nextToken:GetTextDetection' :: GetTextDetection -> Maybe Text
$sel:maxResults:GetTextDetection' :: GetTextDetection -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
jobId
instance Prelude.NFData GetTextDetection where
rnf :: GetTextDetection -> ()
rnf GetTextDetection' {Maybe Natural
Maybe Text
Text
jobId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:jobId:GetTextDetection' :: GetTextDetection -> Text
$sel:nextToken:GetTextDetection' :: GetTextDetection -> Maybe Text
$sel:maxResults:GetTextDetection' :: GetTextDetection -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
jobId
instance Data.ToHeaders GetTextDetection where
toHeaders :: GetTextDetection -> 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
"RekognitionService.GetTextDetection" ::
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 GetTextDetection where
toJSON :: GetTextDetection -> Value
toJSON GetTextDetection' {Maybe Natural
Maybe Text
Text
jobId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:jobId:GetTextDetection' :: GetTextDetection -> Text
$sel:nextToken:GetTextDetection' :: GetTextDetection -> Maybe Text
$sel:maxResults:GetTextDetection' :: GetTextDetection -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"MaxResults" 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 Natural
maxResults,
(Key
"NextToken" 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
nextToken,
forall a. a -> Maybe a
Prelude.Just (Key
"JobId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
jobId)
]
)
instance Data.ToPath GetTextDetection where
toPath :: GetTextDetection -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery GetTextDetection where
toQuery :: GetTextDetection -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data GetTextDetectionResponse = GetTextDetectionResponse'
{
GetTextDetectionResponse -> Maybe VideoJobStatus
jobStatus :: Prelude.Maybe VideoJobStatus,
GetTextDetectionResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTextDetectionResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
GetTextDetectionResponse -> Maybe [TextDetectionResult]
textDetections :: Prelude.Maybe [TextDetectionResult],
GetTextDetectionResponse -> Maybe Text
textModelVersion :: Prelude.Maybe Prelude.Text,
GetTextDetectionResponse -> Maybe VideoMetadata
videoMetadata :: Prelude.Maybe VideoMetadata,
GetTextDetectionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetTextDetectionResponse -> GetTextDetectionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTextDetectionResponse -> GetTextDetectionResponse -> Bool
$c/= :: GetTextDetectionResponse -> GetTextDetectionResponse -> Bool
== :: GetTextDetectionResponse -> GetTextDetectionResponse -> Bool
$c== :: GetTextDetectionResponse -> GetTextDetectionResponse -> Bool
Prelude.Eq, ReadPrec [GetTextDetectionResponse]
ReadPrec GetTextDetectionResponse
Int -> ReadS GetTextDetectionResponse
ReadS [GetTextDetectionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTextDetectionResponse]
$creadListPrec :: ReadPrec [GetTextDetectionResponse]
readPrec :: ReadPrec GetTextDetectionResponse
$creadPrec :: ReadPrec GetTextDetectionResponse
readList :: ReadS [GetTextDetectionResponse]
$creadList :: ReadS [GetTextDetectionResponse]
readsPrec :: Int -> ReadS GetTextDetectionResponse
$creadsPrec :: Int -> ReadS GetTextDetectionResponse
Prelude.Read, Int -> GetTextDetectionResponse -> ShowS
[GetTextDetectionResponse] -> ShowS
GetTextDetectionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTextDetectionResponse] -> ShowS
$cshowList :: [GetTextDetectionResponse] -> ShowS
show :: GetTextDetectionResponse -> String
$cshow :: GetTextDetectionResponse -> String
showsPrec :: Int -> GetTextDetectionResponse -> ShowS
$cshowsPrec :: Int -> GetTextDetectionResponse -> ShowS
Prelude.Show, forall x.
Rep GetTextDetectionResponse x -> GetTextDetectionResponse
forall x.
GetTextDetectionResponse -> Rep GetTextDetectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetTextDetectionResponse x -> GetTextDetectionResponse
$cfrom :: forall x.
GetTextDetectionResponse -> Rep GetTextDetectionResponse x
Prelude.Generic)
newGetTextDetectionResponse ::
Prelude.Int ->
GetTextDetectionResponse
newGetTextDetectionResponse :: Int -> GetTextDetectionResponse
newGetTextDetectionResponse Int
pHttpStatus_ =
GetTextDetectionResponse'
{ $sel:jobStatus:GetTextDetectionResponse' :: Maybe VideoJobStatus
jobStatus =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetTextDetectionResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:GetTextDetectionResponse' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing,
$sel:textDetections:GetTextDetectionResponse' :: Maybe [TextDetectionResult]
textDetections = forall a. Maybe a
Prelude.Nothing,
$sel:textModelVersion:GetTextDetectionResponse' :: Maybe Text
textModelVersion = forall a. Maybe a
Prelude.Nothing,
$sel:videoMetadata:GetTextDetectionResponse' :: Maybe VideoMetadata
videoMetadata = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetTextDetectionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getTextDetectionResponse_jobStatus :: Lens.Lens' GetTextDetectionResponse (Prelude.Maybe VideoJobStatus)
getTextDetectionResponse_jobStatus :: Lens' GetTextDetectionResponse (Maybe VideoJobStatus)
getTextDetectionResponse_jobStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetectionResponse' {Maybe VideoJobStatus
jobStatus :: Maybe VideoJobStatus
$sel:jobStatus:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe VideoJobStatus
jobStatus} -> Maybe VideoJobStatus
jobStatus) (\s :: GetTextDetectionResponse
s@GetTextDetectionResponse' {} Maybe VideoJobStatus
a -> GetTextDetectionResponse
s {$sel:jobStatus:GetTextDetectionResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
a} :: GetTextDetectionResponse)
getTextDetectionResponse_nextToken :: Lens.Lens' GetTextDetectionResponse (Prelude.Maybe Prelude.Text)
getTextDetectionResponse_nextToken :: Lens' GetTextDetectionResponse (Maybe Text)
getTextDetectionResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetectionResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTextDetectionResponse
s@GetTextDetectionResponse' {} Maybe Text
a -> GetTextDetectionResponse
s {$sel:nextToken:GetTextDetectionResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetTextDetectionResponse)
getTextDetectionResponse_statusMessage :: Lens.Lens' GetTextDetectionResponse (Prelude.Maybe Prelude.Text)
getTextDetectionResponse_statusMessage :: Lens' GetTextDetectionResponse (Maybe Text)
getTextDetectionResponse_statusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetectionResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: GetTextDetectionResponse
s@GetTextDetectionResponse' {} Maybe Text
a -> GetTextDetectionResponse
s {$sel:statusMessage:GetTextDetectionResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: GetTextDetectionResponse)
getTextDetectionResponse_textDetections :: Lens.Lens' GetTextDetectionResponse (Prelude.Maybe [TextDetectionResult])
getTextDetectionResponse_textDetections :: Lens' GetTextDetectionResponse (Maybe [TextDetectionResult])
getTextDetectionResponse_textDetections = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetectionResponse' {Maybe [TextDetectionResult]
textDetections :: Maybe [TextDetectionResult]
$sel:textDetections:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe [TextDetectionResult]
textDetections} -> Maybe [TextDetectionResult]
textDetections) (\s :: GetTextDetectionResponse
s@GetTextDetectionResponse' {} Maybe [TextDetectionResult]
a -> GetTextDetectionResponse
s {$sel:textDetections:GetTextDetectionResponse' :: Maybe [TextDetectionResult]
textDetections = Maybe [TextDetectionResult]
a} :: GetTextDetectionResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getTextDetectionResponse_textModelVersion :: Lens.Lens' GetTextDetectionResponse (Prelude.Maybe Prelude.Text)
getTextDetectionResponse_textModelVersion :: Lens' GetTextDetectionResponse (Maybe Text)
getTextDetectionResponse_textModelVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetectionResponse' {Maybe Text
textModelVersion :: Maybe Text
$sel:textModelVersion:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe Text
textModelVersion} -> Maybe Text
textModelVersion) (\s :: GetTextDetectionResponse
s@GetTextDetectionResponse' {} Maybe Text
a -> GetTextDetectionResponse
s {$sel:textModelVersion:GetTextDetectionResponse' :: Maybe Text
textModelVersion = Maybe Text
a} :: GetTextDetectionResponse)
getTextDetectionResponse_videoMetadata :: Lens.Lens' GetTextDetectionResponse (Prelude.Maybe VideoMetadata)
getTextDetectionResponse_videoMetadata :: Lens' GetTextDetectionResponse (Maybe VideoMetadata)
getTextDetectionResponse_videoMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetectionResponse' {Maybe VideoMetadata
videoMetadata :: Maybe VideoMetadata
$sel:videoMetadata:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe VideoMetadata
videoMetadata} -> Maybe VideoMetadata
videoMetadata) (\s :: GetTextDetectionResponse
s@GetTextDetectionResponse' {} Maybe VideoMetadata
a -> GetTextDetectionResponse
s {$sel:videoMetadata:GetTextDetectionResponse' :: Maybe VideoMetadata
videoMetadata = Maybe VideoMetadata
a} :: GetTextDetectionResponse)
getTextDetectionResponse_httpStatus :: Lens.Lens' GetTextDetectionResponse Prelude.Int
getTextDetectionResponse_httpStatus :: Lens' GetTextDetectionResponse Int
getTextDetectionResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTextDetectionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetTextDetectionResponse' :: GetTextDetectionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetTextDetectionResponse
s@GetTextDetectionResponse' {} Int
a -> GetTextDetectionResponse
s {$sel:httpStatus:GetTextDetectionResponse' :: Int
httpStatus = Int
a} :: GetTextDetectionResponse)
instance Prelude.NFData GetTextDetectionResponse where
rnf :: GetTextDetectionResponse -> ()
rnf GetTextDetectionResponse' {Int
Maybe [TextDetectionResult]
Maybe Text
Maybe VideoJobStatus
Maybe VideoMetadata
httpStatus :: Int
videoMetadata :: Maybe VideoMetadata
textModelVersion :: Maybe Text
textDetections :: Maybe [TextDetectionResult]
statusMessage :: Maybe Text
nextToken :: Maybe Text
jobStatus :: Maybe VideoJobStatus
$sel:httpStatus:GetTextDetectionResponse' :: GetTextDetectionResponse -> Int
$sel:videoMetadata:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe VideoMetadata
$sel:textModelVersion:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe Text
$sel:textDetections:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe [TextDetectionResult]
$sel:statusMessage:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe Text
$sel:nextToken:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe Text
$sel:jobStatus:GetTextDetectionResponse' :: GetTextDetectionResponse -> Maybe VideoJobStatus
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe VideoJobStatus
jobStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [TextDetectionResult]
textDetections
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
textModelVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VideoMetadata
videoMetadata
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus