{-# 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.GetFaceDetection
(
GetFaceDetection (..),
newGetFaceDetection,
getFaceDetection_nextToken,
getFaceDetection_maxResults,
getFaceDetection_jobId,
GetFaceDetectionResponse (..),
newGetFaceDetectionResponse,
getFaceDetectionResponse_nextToken,
getFaceDetectionResponse_videoMetadata,
getFaceDetectionResponse_statusMessage,
getFaceDetectionResponse_faces,
getFaceDetectionResponse_jobStatus,
getFaceDetectionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Rekognition.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetFaceDetection = GetFaceDetection'
{
GetFaceDetection -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetFaceDetection -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetFaceDetection -> Text
jobId :: Prelude.Text
}
deriving (GetFaceDetection -> GetFaceDetection -> Bool
(GetFaceDetection -> GetFaceDetection -> Bool)
-> (GetFaceDetection -> GetFaceDetection -> Bool)
-> Eq GetFaceDetection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFaceDetection -> GetFaceDetection -> Bool
$c/= :: GetFaceDetection -> GetFaceDetection -> Bool
== :: GetFaceDetection -> GetFaceDetection -> Bool
$c== :: GetFaceDetection -> GetFaceDetection -> Bool
Prelude.Eq, ReadPrec [GetFaceDetection]
ReadPrec GetFaceDetection
Int -> ReadS GetFaceDetection
ReadS [GetFaceDetection]
(Int -> ReadS GetFaceDetection)
-> ReadS [GetFaceDetection]
-> ReadPrec GetFaceDetection
-> ReadPrec [GetFaceDetection]
-> Read GetFaceDetection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFaceDetection]
$creadListPrec :: ReadPrec [GetFaceDetection]
readPrec :: ReadPrec GetFaceDetection
$creadPrec :: ReadPrec GetFaceDetection
readList :: ReadS [GetFaceDetection]
$creadList :: ReadS [GetFaceDetection]
readsPrec :: Int -> ReadS GetFaceDetection
$creadsPrec :: Int -> ReadS GetFaceDetection
Prelude.Read, Int -> GetFaceDetection -> ShowS
[GetFaceDetection] -> ShowS
GetFaceDetection -> String
(Int -> GetFaceDetection -> ShowS)
-> (GetFaceDetection -> String)
-> ([GetFaceDetection] -> ShowS)
-> Show GetFaceDetection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFaceDetection] -> ShowS
$cshowList :: [GetFaceDetection] -> ShowS
show :: GetFaceDetection -> String
$cshow :: GetFaceDetection -> String
showsPrec :: Int -> GetFaceDetection -> ShowS
$cshowsPrec :: Int -> GetFaceDetection -> ShowS
Prelude.Show, (forall x. GetFaceDetection -> Rep GetFaceDetection x)
-> (forall x. Rep GetFaceDetection x -> GetFaceDetection)
-> Generic GetFaceDetection
forall x. Rep GetFaceDetection x -> GetFaceDetection
forall x. GetFaceDetection -> Rep GetFaceDetection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetFaceDetection x -> GetFaceDetection
$cfrom :: forall x. GetFaceDetection -> Rep GetFaceDetection x
Prelude.Generic)
newGetFaceDetection ::
Prelude.Text ->
GetFaceDetection
newGetFaceDetection :: Text -> GetFaceDetection
newGetFaceDetection Text
pJobId_ =
GetFaceDetection' :: Maybe Text -> Maybe Natural -> Text -> GetFaceDetection
GetFaceDetection'
{ $sel:nextToken:GetFaceDetection' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetFaceDetection' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:GetFaceDetection' :: Text
jobId = Text
pJobId_
}
getFaceDetection_nextToken :: Lens.Lens' GetFaceDetection (Prelude.Maybe Prelude.Text)
getFaceDetection_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetFaceDetection -> f GetFaceDetection
getFaceDetection_nextToken = (GetFaceDetection -> Maybe Text)
-> (GetFaceDetection -> Maybe Text -> GetFaceDetection)
-> Lens GetFaceDetection GetFaceDetection (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceDetection' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetFaceDetection' :: GetFaceDetection -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetFaceDetection
s@GetFaceDetection' {} Maybe Text
a -> GetFaceDetection
s {$sel:nextToken:GetFaceDetection' :: Maybe Text
nextToken = Maybe Text
a} :: GetFaceDetection)
getFaceDetection_maxResults :: Lens.Lens' GetFaceDetection (Prelude.Maybe Prelude.Natural)
getFaceDetection_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetFaceDetection -> f GetFaceDetection
getFaceDetection_maxResults = (GetFaceDetection -> Maybe Natural)
-> (GetFaceDetection -> Maybe Natural -> GetFaceDetection)
-> Lens
GetFaceDetection GetFaceDetection (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceDetection' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetFaceDetection' :: GetFaceDetection -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetFaceDetection
s@GetFaceDetection' {} Maybe Natural
a -> GetFaceDetection
s {$sel:maxResults:GetFaceDetection' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetFaceDetection)
getFaceDetection_jobId :: Lens.Lens' GetFaceDetection Prelude.Text
getFaceDetection_jobId :: (Text -> f Text) -> GetFaceDetection -> f GetFaceDetection
getFaceDetection_jobId = (GetFaceDetection -> Text)
-> (GetFaceDetection -> Text -> GetFaceDetection)
-> Lens GetFaceDetection GetFaceDetection Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceDetection' {Text
jobId :: Text
$sel:jobId:GetFaceDetection' :: GetFaceDetection -> Text
jobId} -> Text
jobId) (\s :: GetFaceDetection
s@GetFaceDetection' {} Text
a -> GetFaceDetection
s {$sel:jobId:GetFaceDetection' :: Text
jobId = Text
a} :: GetFaceDetection)
instance Core.AWSRequest GetFaceDetection where
type
AWSResponse GetFaceDetection =
GetFaceDetectionResponse
request :: GetFaceDetection -> Request GetFaceDetection
request = Service -> GetFaceDetection -> Request GetFaceDetection
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetFaceDetection
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetFaceDetection)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetFaceDetection))
-> Logger
-> Service
-> Proxy GetFaceDetection
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetFaceDetection)))
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
-> Maybe VideoMetadata
-> Maybe Text
-> Maybe [FaceDetection]
-> Maybe VideoJobStatus
-> Int
-> GetFaceDetectionResponse
GetFaceDetectionResponse'
(Maybe Text
-> Maybe VideoMetadata
-> Maybe Text
-> Maybe [FaceDetection]
-> Maybe VideoJobStatus
-> Int
-> GetFaceDetectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe VideoMetadata
-> Maybe Text
-> Maybe [FaceDetection]
-> Maybe VideoJobStatus
-> Int
-> GetFaceDetectionResponse)
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
"NextToken")
Either
String
(Maybe VideoMetadata
-> Maybe Text
-> Maybe [FaceDetection]
-> Maybe VideoJobStatus
-> Int
-> GetFaceDetectionResponse)
-> Either String (Maybe VideoMetadata)
-> Either
String
(Maybe Text
-> Maybe [FaceDetection]
-> Maybe VideoJobStatus
-> Int
-> GetFaceDetectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe VideoMetadata)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VideoMetadata")
Either
String
(Maybe Text
-> Maybe [FaceDetection]
-> Maybe VideoJobStatus
-> Int
-> GetFaceDetectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [FaceDetection]
-> Maybe VideoJobStatus -> Int -> GetFaceDetectionResponse)
forall (f :: * -> *) a b. Applicative f => 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
"StatusMessage")
Either
String
(Maybe [FaceDetection]
-> Maybe VideoJobStatus -> Int -> GetFaceDetectionResponse)
-> Either String (Maybe [FaceDetection])
-> Either
String (Maybe VideoJobStatus -> Int -> GetFaceDetectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [FaceDetection]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Faces" Either String (Maybe (Maybe [FaceDetection]))
-> Maybe [FaceDetection] -> Either String (Maybe [FaceDetection])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FaceDetection]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe VideoJobStatus -> Int -> GetFaceDetectionResponse)
-> Either String (Maybe VideoJobStatus)
-> Either String (Int -> GetFaceDetectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe VideoJobStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"JobStatus")
Either String (Int -> GetFaceDetectionResponse)
-> Either String Int -> Either String GetFaceDetectionResponse
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 GetFaceDetection
instance Prelude.NFData GetFaceDetection
instance Core.ToHeaders GetFaceDetection where
toHeaders :: GetFaceDetection -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetFaceDetection -> 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
"RekognitionService.GetFaceDetection" ::
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 GetFaceDetection where
toJSON :: GetFaceDetection -> Value
toJSON GetFaceDetection' {Maybe Natural
Maybe Text
Text
jobId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:jobId:GetFaceDetection' :: GetFaceDetection -> Text
$sel:maxResults:GetFaceDetection' :: GetFaceDetection -> Maybe Natural
$sel:nextToken:GetFaceDetection' :: GetFaceDetection -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" 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
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"JobId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
jobId)
]
)
instance Core.ToPath GetFaceDetection where
toPath :: GetFaceDetection -> ByteString
toPath = ByteString -> GetFaceDetection -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetFaceDetection where
toQuery :: GetFaceDetection -> QueryString
toQuery = QueryString -> GetFaceDetection -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetFaceDetectionResponse = GetFaceDetectionResponse'
{
GetFaceDetectionResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetFaceDetectionResponse -> Maybe VideoMetadata
videoMetadata :: Prelude.Maybe VideoMetadata,
GetFaceDetectionResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
GetFaceDetectionResponse -> Maybe [FaceDetection]
faces :: Prelude.Maybe [FaceDetection],
GetFaceDetectionResponse -> Maybe VideoJobStatus
jobStatus :: Prelude.Maybe VideoJobStatus,
GetFaceDetectionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetFaceDetectionResponse -> GetFaceDetectionResponse -> Bool
(GetFaceDetectionResponse -> GetFaceDetectionResponse -> Bool)
-> (GetFaceDetectionResponse -> GetFaceDetectionResponse -> Bool)
-> Eq GetFaceDetectionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFaceDetectionResponse -> GetFaceDetectionResponse -> Bool
$c/= :: GetFaceDetectionResponse -> GetFaceDetectionResponse -> Bool
== :: GetFaceDetectionResponse -> GetFaceDetectionResponse -> Bool
$c== :: GetFaceDetectionResponse -> GetFaceDetectionResponse -> Bool
Prelude.Eq, ReadPrec [GetFaceDetectionResponse]
ReadPrec GetFaceDetectionResponse
Int -> ReadS GetFaceDetectionResponse
ReadS [GetFaceDetectionResponse]
(Int -> ReadS GetFaceDetectionResponse)
-> ReadS [GetFaceDetectionResponse]
-> ReadPrec GetFaceDetectionResponse
-> ReadPrec [GetFaceDetectionResponse]
-> Read GetFaceDetectionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFaceDetectionResponse]
$creadListPrec :: ReadPrec [GetFaceDetectionResponse]
readPrec :: ReadPrec GetFaceDetectionResponse
$creadPrec :: ReadPrec GetFaceDetectionResponse
readList :: ReadS [GetFaceDetectionResponse]
$creadList :: ReadS [GetFaceDetectionResponse]
readsPrec :: Int -> ReadS GetFaceDetectionResponse
$creadsPrec :: Int -> ReadS GetFaceDetectionResponse
Prelude.Read, Int -> GetFaceDetectionResponse -> ShowS
[GetFaceDetectionResponse] -> ShowS
GetFaceDetectionResponse -> String
(Int -> GetFaceDetectionResponse -> ShowS)
-> (GetFaceDetectionResponse -> String)
-> ([GetFaceDetectionResponse] -> ShowS)
-> Show GetFaceDetectionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFaceDetectionResponse] -> ShowS
$cshowList :: [GetFaceDetectionResponse] -> ShowS
show :: GetFaceDetectionResponse -> String
$cshow :: GetFaceDetectionResponse -> String
showsPrec :: Int -> GetFaceDetectionResponse -> ShowS
$cshowsPrec :: Int -> GetFaceDetectionResponse -> ShowS
Prelude.Show, (forall x.
GetFaceDetectionResponse -> Rep GetFaceDetectionResponse x)
-> (forall x.
Rep GetFaceDetectionResponse x -> GetFaceDetectionResponse)
-> Generic GetFaceDetectionResponse
forall x.
Rep GetFaceDetectionResponse x -> GetFaceDetectionResponse
forall x.
GetFaceDetectionResponse -> Rep GetFaceDetectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetFaceDetectionResponse x -> GetFaceDetectionResponse
$cfrom :: forall x.
GetFaceDetectionResponse -> Rep GetFaceDetectionResponse x
Prelude.Generic)
newGetFaceDetectionResponse ::
Prelude.Int ->
GetFaceDetectionResponse
newGetFaceDetectionResponse :: Int -> GetFaceDetectionResponse
newGetFaceDetectionResponse Int
pHttpStatus_ =
GetFaceDetectionResponse' :: Maybe Text
-> Maybe VideoMetadata
-> Maybe Text
-> Maybe [FaceDetection]
-> Maybe VideoJobStatus
-> Int
-> GetFaceDetectionResponse
GetFaceDetectionResponse'
{ $sel:nextToken:GetFaceDetectionResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:videoMetadata:GetFaceDetectionResponse' :: Maybe VideoMetadata
videoMetadata = Maybe VideoMetadata
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:GetFaceDetectionResponse' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:faces:GetFaceDetectionResponse' :: Maybe [FaceDetection]
faces = Maybe [FaceDetection]
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:GetFaceDetectionResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetFaceDetectionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getFaceDetectionResponse_nextToken :: Lens.Lens' GetFaceDetectionResponse (Prelude.Maybe Prelude.Text)
getFaceDetectionResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetFaceDetectionResponse -> f GetFaceDetectionResponse
getFaceDetectionResponse_nextToken = (GetFaceDetectionResponse -> Maybe Text)
-> (GetFaceDetectionResponse
-> Maybe Text -> GetFaceDetectionResponse)
-> Lens
GetFaceDetectionResponse
GetFaceDetectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceDetectionResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetFaceDetectionResponse' :: GetFaceDetectionResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetFaceDetectionResponse
s@GetFaceDetectionResponse' {} Maybe Text
a -> GetFaceDetectionResponse
s {$sel:nextToken:GetFaceDetectionResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetFaceDetectionResponse)
getFaceDetectionResponse_videoMetadata :: Lens.Lens' GetFaceDetectionResponse (Prelude.Maybe VideoMetadata)
getFaceDetectionResponse_videoMetadata :: (Maybe VideoMetadata -> f (Maybe VideoMetadata))
-> GetFaceDetectionResponse -> f GetFaceDetectionResponse
getFaceDetectionResponse_videoMetadata = (GetFaceDetectionResponse -> Maybe VideoMetadata)
-> (GetFaceDetectionResponse
-> Maybe VideoMetadata -> GetFaceDetectionResponse)
-> Lens
GetFaceDetectionResponse
GetFaceDetectionResponse
(Maybe VideoMetadata)
(Maybe VideoMetadata)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceDetectionResponse' {Maybe VideoMetadata
videoMetadata :: Maybe VideoMetadata
$sel:videoMetadata:GetFaceDetectionResponse' :: GetFaceDetectionResponse -> Maybe VideoMetadata
videoMetadata} -> Maybe VideoMetadata
videoMetadata) (\s :: GetFaceDetectionResponse
s@GetFaceDetectionResponse' {} Maybe VideoMetadata
a -> GetFaceDetectionResponse
s {$sel:videoMetadata:GetFaceDetectionResponse' :: Maybe VideoMetadata
videoMetadata = Maybe VideoMetadata
a} :: GetFaceDetectionResponse)
getFaceDetectionResponse_statusMessage :: Lens.Lens' GetFaceDetectionResponse (Prelude.Maybe Prelude.Text)
getFaceDetectionResponse_statusMessage :: (Maybe Text -> f (Maybe Text))
-> GetFaceDetectionResponse -> f GetFaceDetectionResponse
getFaceDetectionResponse_statusMessage = (GetFaceDetectionResponse -> Maybe Text)
-> (GetFaceDetectionResponse
-> Maybe Text -> GetFaceDetectionResponse)
-> Lens
GetFaceDetectionResponse
GetFaceDetectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceDetectionResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:GetFaceDetectionResponse' :: GetFaceDetectionResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: GetFaceDetectionResponse
s@GetFaceDetectionResponse' {} Maybe Text
a -> GetFaceDetectionResponse
s {$sel:statusMessage:GetFaceDetectionResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: GetFaceDetectionResponse)
getFaceDetectionResponse_faces :: Lens.Lens' GetFaceDetectionResponse (Prelude.Maybe [FaceDetection])
getFaceDetectionResponse_faces :: (Maybe [FaceDetection] -> f (Maybe [FaceDetection]))
-> GetFaceDetectionResponse -> f GetFaceDetectionResponse
getFaceDetectionResponse_faces = (GetFaceDetectionResponse -> Maybe [FaceDetection])
-> (GetFaceDetectionResponse
-> Maybe [FaceDetection] -> GetFaceDetectionResponse)
-> Lens
GetFaceDetectionResponse
GetFaceDetectionResponse
(Maybe [FaceDetection])
(Maybe [FaceDetection])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceDetectionResponse' {Maybe [FaceDetection]
faces :: Maybe [FaceDetection]
$sel:faces:GetFaceDetectionResponse' :: GetFaceDetectionResponse -> Maybe [FaceDetection]
faces} -> Maybe [FaceDetection]
faces) (\s :: GetFaceDetectionResponse
s@GetFaceDetectionResponse' {} Maybe [FaceDetection]
a -> GetFaceDetectionResponse
s {$sel:faces:GetFaceDetectionResponse' :: Maybe [FaceDetection]
faces = Maybe [FaceDetection]
a} :: GetFaceDetectionResponse) ((Maybe [FaceDetection] -> f (Maybe [FaceDetection]))
-> GetFaceDetectionResponse -> f GetFaceDetectionResponse)
-> ((Maybe [FaceDetection] -> f (Maybe [FaceDetection]))
-> Maybe [FaceDetection] -> f (Maybe [FaceDetection]))
-> (Maybe [FaceDetection] -> f (Maybe [FaceDetection]))
-> GetFaceDetectionResponse
-> f GetFaceDetectionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FaceDetection] [FaceDetection] [FaceDetection] [FaceDetection]
-> Iso
(Maybe [FaceDetection])
(Maybe [FaceDetection])
(Maybe [FaceDetection])
(Maybe [FaceDetection])
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 AnIso
[FaceDetection] [FaceDetection] [FaceDetection] [FaceDetection]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getFaceDetectionResponse_jobStatus :: Lens.Lens' GetFaceDetectionResponse (Prelude.Maybe VideoJobStatus)
getFaceDetectionResponse_jobStatus :: (Maybe VideoJobStatus -> f (Maybe VideoJobStatus))
-> GetFaceDetectionResponse -> f GetFaceDetectionResponse
getFaceDetectionResponse_jobStatus = (GetFaceDetectionResponse -> Maybe VideoJobStatus)
-> (GetFaceDetectionResponse
-> Maybe VideoJobStatus -> GetFaceDetectionResponse)
-> Lens
GetFaceDetectionResponse
GetFaceDetectionResponse
(Maybe VideoJobStatus)
(Maybe VideoJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceDetectionResponse' {Maybe VideoJobStatus
jobStatus :: Maybe VideoJobStatus
$sel:jobStatus:GetFaceDetectionResponse' :: GetFaceDetectionResponse -> Maybe VideoJobStatus
jobStatus} -> Maybe VideoJobStatus
jobStatus) (\s :: GetFaceDetectionResponse
s@GetFaceDetectionResponse' {} Maybe VideoJobStatus
a -> GetFaceDetectionResponse
s {$sel:jobStatus:GetFaceDetectionResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
a} :: GetFaceDetectionResponse)
getFaceDetectionResponse_httpStatus :: Lens.Lens' GetFaceDetectionResponse Prelude.Int
getFaceDetectionResponse_httpStatus :: (Int -> f Int)
-> GetFaceDetectionResponse -> f GetFaceDetectionResponse
getFaceDetectionResponse_httpStatus = (GetFaceDetectionResponse -> Int)
-> (GetFaceDetectionResponse -> Int -> GetFaceDetectionResponse)
-> Lens GetFaceDetectionResponse GetFaceDetectionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceDetectionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetFaceDetectionResponse' :: GetFaceDetectionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetFaceDetectionResponse
s@GetFaceDetectionResponse' {} Int
a -> GetFaceDetectionResponse
s {$sel:httpStatus:GetFaceDetectionResponse' :: Int
httpStatus = Int
a} :: GetFaceDetectionResponse)
instance Prelude.NFData GetFaceDetectionResponse