{-# 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.GetFaceSearch
(
GetFaceSearch (..),
newGetFaceSearch,
getFaceSearch_nextToken,
getFaceSearch_maxResults,
getFaceSearch_sortBy,
getFaceSearch_jobId,
GetFaceSearchResponse (..),
newGetFaceSearchResponse,
getFaceSearchResponse_nextToken,
getFaceSearchResponse_videoMetadata,
getFaceSearchResponse_statusMessage,
getFaceSearchResponse_jobStatus,
getFaceSearchResponse_persons,
getFaceSearchResponse_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 GetFaceSearch = GetFaceSearch'
{
GetFaceSearch -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetFaceSearch -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetFaceSearch -> Maybe FaceSearchSortBy
sortBy :: Prelude.Maybe FaceSearchSortBy,
GetFaceSearch -> Text
jobId :: Prelude.Text
}
deriving (GetFaceSearch -> GetFaceSearch -> Bool
(GetFaceSearch -> GetFaceSearch -> Bool)
-> (GetFaceSearch -> GetFaceSearch -> Bool) -> Eq GetFaceSearch
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFaceSearch -> GetFaceSearch -> Bool
$c/= :: GetFaceSearch -> GetFaceSearch -> Bool
== :: GetFaceSearch -> GetFaceSearch -> Bool
$c== :: GetFaceSearch -> GetFaceSearch -> Bool
Prelude.Eq, ReadPrec [GetFaceSearch]
ReadPrec GetFaceSearch
Int -> ReadS GetFaceSearch
ReadS [GetFaceSearch]
(Int -> ReadS GetFaceSearch)
-> ReadS [GetFaceSearch]
-> ReadPrec GetFaceSearch
-> ReadPrec [GetFaceSearch]
-> Read GetFaceSearch
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFaceSearch]
$creadListPrec :: ReadPrec [GetFaceSearch]
readPrec :: ReadPrec GetFaceSearch
$creadPrec :: ReadPrec GetFaceSearch
readList :: ReadS [GetFaceSearch]
$creadList :: ReadS [GetFaceSearch]
readsPrec :: Int -> ReadS GetFaceSearch
$creadsPrec :: Int -> ReadS GetFaceSearch
Prelude.Read, Int -> GetFaceSearch -> ShowS
[GetFaceSearch] -> ShowS
GetFaceSearch -> String
(Int -> GetFaceSearch -> ShowS)
-> (GetFaceSearch -> String)
-> ([GetFaceSearch] -> ShowS)
-> Show GetFaceSearch
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFaceSearch] -> ShowS
$cshowList :: [GetFaceSearch] -> ShowS
show :: GetFaceSearch -> String
$cshow :: GetFaceSearch -> String
showsPrec :: Int -> GetFaceSearch -> ShowS
$cshowsPrec :: Int -> GetFaceSearch -> ShowS
Prelude.Show, (forall x. GetFaceSearch -> Rep GetFaceSearch x)
-> (forall x. Rep GetFaceSearch x -> GetFaceSearch)
-> Generic GetFaceSearch
forall x. Rep GetFaceSearch x -> GetFaceSearch
forall x. GetFaceSearch -> Rep GetFaceSearch x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetFaceSearch x -> GetFaceSearch
$cfrom :: forall x. GetFaceSearch -> Rep GetFaceSearch x
Prelude.Generic)
newGetFaceSearch ::
Prelude.Text ->
GetFaceSearch
newGetFaceSearch :: Text -> GetFaceSearch
newGetFaceSearch Text
pJobId_ =
GetFaceSearch' :: Maybe Text
-> Maybe Natural -> Maybe FaceSearchSortBy -> Text -> GetFaceSearch
GetFaceSearch'
{ $sel:nextToken:GetFaceSearch' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetFaceSearch' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:GetFaceSearch' :: Maybe FaceSearchSortBy
sortBy = Maybe FaceSearchSortBy
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:GetFaceSearch' :: Text
jobId = Text
pJobId_
}
getFaceSearch_nextToken :: Lens.Lens' GetFaceSearch (Prelude.Maybe Prelude.Text)
getFaceSearch_nextToken :: (Maybe Text -> f (Maybe Text)) -> GetFaceSearch -> f GetFaceSearch
getFaceSearch_nextToken = (GetFaceSearch -> Maybe Text)
-> (GetFaceSearch -> Maybe Text -> GetFaceSearch)
-> Lens GetFaceSearch GetFaceSearch (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearch' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetFaceSearch' :: GetFaceSearch -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetFaceSearch
s@GetFaceSearch' {} Maybe Text
a -> GetFaceSearch
s {$sel:nextToken:GetFaceSearch' :: Maybe Text
nextToken = Maybe Text
a} :: GetFaceSearch)
getFaceSearch_maxResults :: Lens.Lens' GetFaceSearch (Prelude.Maybe Prelude.Natural)
getFaceSearch_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetFaceSearch -> f GetFaceSearch
getFaceSearch_maxResults = (GetFaceSearch -> Maybe Natural)
-> (GetFaceSearch -> Maybe Natural -> GetFaceSearch)
-> Lens GetFaceSearch GetFaceSearch (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearch' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetFaceSearch' :: GetFaceSearch -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetFaceSearch
s@GetFaceSearch' {} Maybe Natural
a -> GetFaceSearch
s {$sel:maxResults:GetFaceSearch' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetFaceSearch)
getFaceSearch_sortBy :: Lens.Lens' GetFaceSearch (Prelude.Maybe FaceSearchSortBy)
getFaceSearch_sortBy :: (Maybe FaceSearchSortBy -> f (Maybe FaceSearchSortBy))
-> GetFaceSearch -> f GetFaceSearch
getFaceSearch_sortBy = (GetFaceSearch -> Maybe FaceSearchSortBy)
-> (GetFaceSearch -> Maybe FaceSearchSortBy -> GetFaceSearch)
-> Lens
GetFaceSearch
GetFaceSearch
(Maybe FaceSearchSortBy)
(Maybe FaceSearchSortBy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearch' {Maybe FaceSearchSortBy
sortBy :: Maybe FaceSearchSortBy
$sel:sortBy:GetFaceSearch' :: GetFaceSearch -> Maybe FaceSearchSortBy
sortBy} -> Maybe FaceSearchSortBy
sortBy) (\s :: GetFaceSearch
s@GetFaceSearch' {} Maybe FaceSearchSortBy
a -> GetFaceSearch
s {$sel:sortBy:GetFaceSearch' :: Maybe FaceSearchSortBy
sortBy = Maybe FaceSearchSortBy
a} :: GetFaceSearch)
getFaceSearch_jobId :: Lens.Lens' GetFaceSearch Prelude.Text
getFaceSearch_jobId :: (Text -> f Text) -> GetFaceSearch -> f GetFaceSearch
getFaceSearch_jobId = (GetFaceSearch -> Text)
-> (GetFaceSearch -> Text -> GetFaceSearch)
-> Lens GetFaceSearch GetFaceSearch Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearch' {Text
jobId :: Text
$sel:jobId:GetFaceSearch' :: GetFaceSearch -> Text
jobId} -> Text
jobId) (\s :: GetFaceSearch
s@GetFaceSearch' {} Text
a -> GetFaceSearch
s {$sel:jobId:GetFaceSearch' :: Text
jobId = Text
a} :: GetFaceSearch)
instance Core.AWSRequest GetFaceSearch where
type
AWSResponse GetFaceSearch =
GetFaceSearchResponse
request :: GetFaceSearch -> Request GetFaceSearch
request = Service -> GetFaceSearch -> Request GetFaceSearch
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetFaceSearch
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetFaceSearch)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetFaceSearch))
-> Logger
-> Service
-> Proxy GetFaceSearch
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetFaceSearch)))
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 VideoJobStatus
-> Maybe [PersonMatch]
-> Int
-> GetFaceSearchResponse
GetFaceSearchResponse'
(Maybe Text
-> Maybe VideoMetadata
-> Maybe Text
-> Maybe VideoJobStatus
-> Maybe [PersonMatch]
-> Int
-> GetFaceSearchResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe VideoMetadata
-> Maybe Text
-> Maybe VideoJobStatus
-> Maybe [PersonMatch]
-> Int
-> GetFaceSearchResponse)
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 VideoJobStatus
-> Maybe [PersonMatch]
-> Int
-> GetFaceSearchResponse)
-> Either String (Maybe VideoMetadata)
-> Either
String
(Maybe Text
-> Maybe VideoJobStatus
-> Maybe [PersonMatch]
-> Int
-> GetFaceSearchResponse)
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 VideoJobStatus
-> Maybe [PersonMatch]
-> Int
-> GetFaceSearchResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe VideoJobStatus
-> Maybe [PersonMatch] -> Int -> GetFaceSearchResponse)
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 VideoJobStatus
-> Maybe [PersonMatch] -> Int -> GetFaceSearchResponse)
-> Either String (Maybe VideoJobStatus)
-> Either
String (Maybe [PersonMatch] -> Int -> GetFaceSearchResponse)
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 (Maybe [PersonMatch] -> Int -> GetFaceSearchResponse)
-> Either String (Maybe [PersonMatch])
-> Either String (Int -> GetFaceSearchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [PersonMatch]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Persons" Either String (Maybe (Maybe [PersonMatch]))
-> Maybe [PersonMatch] -> Either String (Maybe [PersonMatch])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PersonMatch]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetFaceSearchResponse)
-> Either String Int -> Either String GetFaceSearchResponse
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 GetFaceSearch
instance Prelude.NFData GetFaceSearch
instance Core.ToHeaders GetFaceSearch where
toHeaders :: GetFaceSearch -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetFaceSearch -> 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.GetFaceSearch" ::
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 GetFaceSearch where
toJSON :: GetFaceSearch -> Value
toJSON GetFaceSearch' {Maybe Natural
Maybe Text
Maybe FaceSearchSortBy
Text
jobId :: Text
sortBy :: Maybe FaceSearchSortBy
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:jobId:GetFaceSearch' :: GetFaceSearch -> Text
$sel:sortBy:GetFaceSearch' :: GetFaceSearch -> Maybe FaceSearchSortBy
$sel:maxResults:GetFaceSearch' :: GetFaceSearch -> Maybe Natural
$sel:nextToken:GetFaceSearch' :: GetFaceSearch -> 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,
(Text
"SortBy" Text -> FaceSearchSortBy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (FaceSearchSortBy -> Pair) -> Maybe FaceSearchSortBy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FaceSearchSortBy
sortBy,
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 GetFaceSearch where
toPath :: GetFaceSearch -> ByteString
toPath = ByteString -> GetFaceSearch -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetFaceSearch where
toQuery :: GetFaceSearch -> QueryString
toQuery = QueryString -> GetFaceSearch -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetFaceSearchResponse = GetFaceSearchResponse'
{
GetFaceSearchResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetFaceSearchResponse -> Maybe VideoMetadata
videoMetadata :: Prelude.Maybe VideoMetadata,
GetFaceSearchResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
GetFaceSearchResponse -> Maybe VideoJobStatus
jobStatus :: Prelude.Maybe VideoJobStatus,
GetFaceSearchResponse -> Maybe [PersonMatch]
persons :: Prelude.Maybe [PersonMatch],
GetFaceSearchResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetFaceSearchResponse -> GetFaceSearchResponse -> Bool
(GetFaceSearchResponse -> GetFaceSearchResponse -> Bool)
-> (GetFaceSearchResponse -> GetFaceSearchResponse -> Bool)
-> Eq GetFaceSearchResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFaceSearchResponse -> GetFaceSearchResponse -> Bool
$c/= :: GetFaceSearchResponse -> GetFaceSearchResponse -> Bool
== :: GetFaceSearchResponse -> GetFaceSearchResponse -> Bool
$c== :: GetFaceSearchResponse -> GetFaceSearchResponse -> Bool
Prelude.Eq, ReadPrec [GetFaceSearchResponse]
ReadPrec GetFaceSearchResponse
Int -> ReadS GetFaceSearchResponse
ReadS [GetFaceSearchResponse]
(Int -> ReadS GetFaceSearchResponse)
-> ReadS [GetFaceSearchResponse]
-> ReadPrec GetFaceSearchResponse
-> ReadPrec [GetFaceSearchResponse]
-> Read GetFaceSearchResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFaceSearchResponse]
$creadListPrec :: ReadPrec [GetFaceSearchResponse]
readPrec :: ReadPrec GetFaceSearchResponse
$creadPrec :: ReadPrec GetFaceSearchResponse
readList :: ReadS [GetFaceSearchResponse]
$creadList :: ReadS [GetFaceSearchResponse]
readsPrec :: Int -> ReadS GetFaceSearchResponse
$creadsPrec :: Int -> ReadS GetFaceSearchResponse
Prelude.Read, Int -> GetFaceSearchResponse -> ShowS
[GetFaceSearchResponse] -> ShowS
GetFaceSearchResponse -> String
(Int -> GetFaceSearchResponse -> ShowS)
-> (GetFaceSearchResponse -> String)
-> ([GetFaceSearchResponse] -> ShowS)
-> Show GetFaceSearchResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFaceSearchResponse] -> ShowS
$cshowList :: [GetFaceSearchResponse] -> ShowS
show :: GetFaceSearchResponse -> String
$cshow :: GetFaceSearchResponse -> String
showsPrec :: Int -> GetFaceSearchResponse -> ShowS
$cshowsPrec :: Int -> GetFaceSearchResponse -> ShowS
Prelude.Show, (forall x. GetFaceSearchResponse -> Rep GetFaceSearchResponse x)
-> (forall x. Rep GetFaceSearchResponse x -> GetFaceSearchResponse)
-> Generic GetFaceSearchResponse
forall x. Rep GetFaceSearchResponse x -> GetFaceSearchResponse
forall x. GetFaceSearchResponse -> Rep GetFaceSearchResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetFaceSearchResponse x -> GetFaceSearchResponse
$cfrom :: forall x. GetFaceSearchResponse -> Rep GetFaceSearchResponse x
Prelude.Generic)
newGetFaceSearchResponse ::
Prelude.Int ->
GetFaceSearchResponse
newGetFaceSearchResponse :: Int -> GetFaceSearchResponse
newGetFaceSearchResponse Int
pHttpStatus_ =
GetFaceSearchResponse' :: Maybe Text
-> Maybe VideoMetadata
-> Maybe Text
-> Maybe VideoJobStatus
-> Maybe [PersonMatch]
-> Int
-> GetFaceSearchResponse
GetFaceSearchResponse'
{ $sel:nextToken:GetFaceSearchResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:videoMetadata:GetFaceSearchResponse' :: Maybe VideoMetadata
videoMetadata = Maybe VideoMetadata
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:GetFaceSearchResponse' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:GetFaceSearchResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:persons:GetFaceSearchResponse' :: Maybe [PersonMatch]
persons = Maybe [PersonMatch]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetFaceSearchResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getFaceSearchResponse_nextToken :: Lens.Lens' GetFaceSearchResponse (Prelude.Maybe Prelude.Text)
getFaceSearchResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetFaceSearchResponse -> f GetFaceSearchResponse
getFaceSearchResponse_nextToken = (GetFaceSearchResponse -> Maybe Text)
-> (GetFaceSearchResponse -> Maybe Text -> GetFaceSearchResponse)
-> Lens
GetFaceSearchResponse
GetFaceSearchResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearchResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetFaceSearchResponse' :: GetFaceSearchResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetFaceSearchResponse
s@GetFaceSearchResponse' {} Maybe Text
a -> GetFaceSearchResponse
s {$sel:nextToken:GetFaceSearchResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetFaceSearchResponse)
getFaceSearchResponse_videoMetadata :: Lens.Lens' GetFaceSearchResponse (Prelude.Maybe VideoMetadata)
getFaceSearchResponse_videoMetadata :: (Maybe VideoMetadata -> f (Maybe VideoMetadata))
-> GetFaceSearchResponse -> f GetFaceSearchResponse
getFaceSearchResponse_videoMetadata = (GetFaceSearchResponse -> Maybe VideoMetadata)
-> (GetFaceSearchResponse
-> Maybe VideoMetadata -> GetFaceSearchResponse)
-> Lens
GetFaceSearchResponse
GetFaceSearchResponse
(Maybe VideoMetadata)
(Maybe VideoMetadata)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearchResponse' {Maybe VideoMetadata
videoMetadata :: Maybe VideoMetadata
$sel:videoMetadata:GetFaceSearchResponse' :: GetFaceSearchResponse -> Maybe VideoMetadata
videoMetadata} -> Maybe VideoMetadata
videoMetadata) (\s :: GetFaceSearchResponse
s@GetFaceSearchResponse' {} Maybe VideoMetadata
a -> GetFaceSearchResponse
s {$sel:videoMetadata:GetFaceSearchResponse' :: Maybe VideoMetadata
videoMetadata = Maybe VideoMetadata
a} :: GetFaceSearchResponse)
getFaceSearchResponse_statusMessage :: Lens.Lens' GetFaceSearchResponse (Prelude.Maybe Prelude.Text)
getFaceSearchResponse_statusMessage :: (Maybe Text -> f (Maybe Text))
-> GetFaceSearchResponse -> f GetFaceSearchResponse
getFaceSearchResponse_statusMessage = (GetFaceSearchResponse -> Maybe Text)
-> (GetFaceSearchResponse -> Maybe Text -> GetFaceSearchResponse)
-> Lens
GetFaceSearchResponse
GetFaceSearchResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearchResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:GetFaceSearchResponse' :: GetFaceSearchResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: GetFaceSearchResponse
s@GetFaceSearchResponse' {} Maybe Text
a -> GetFaceSearchResponse
s {$sel:statusMessage:GetFaceSearchResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: GetFaceSearchResponse)
getFaceSearchResponse_jobStatus :: Lens.Lens' GetFaceSearchResponse (Prelude.Maybe VideoJobStatus)
getFaceSearchResponse_jobStatus :: (Maybe VideoJobStatus -> f (Maybe VideoJobStatus))
-> GetFaceSearchResponse -> f GetFaceSearchResponse
getFaceSearchResponse_jobStatus = (GetFaceSearchResponse -> Maybe VideoJobStatus)
-> (GetFaceSearchResponse
-> Maybe VideoJobStatus -> GetFaceSearchResponse)
-> Lens
GetFaceSearchResponse
GetFaceSearchResponse
(Maybe VideoJobStatus)
(Maybe VideoJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearchResponse' {Maybe VideoJobStatus
jobStatus :: Maybe VideoJobStatus
$sel:jobStatus:GetFaceSearchResponse' :: GetFaceSearchResponse -> Maybe VideoJobStatus
jobStatus} -> Maybe VideoJobStatus
jobStatus) (\s :: GetFaceSearchResponse
s@GetFaceSearchResponse' {} Maybe VideoJobStatus
a -> GetFaceSearchResponse
s {$sel:jobStatus:GetFaceSearchResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
a} :: GetFaceSearchResponse)
getFaceSearchResponse_persons :: Lens.Lens' GetFaceSearchResponse (Prelude.Maybe [PersonMatch])
getFaceSearchResponse_persons :: (Maybe [PersonMatch] -> f (Maybe [PersonMatch]))
-> GetFaceSearchResponse -> f GetFaceSearchResponse
getFaceSearchResponse_persons = (GetFaceSearchResponse -> Maybe [PersonMatch])
-> (GetFaceSearchResponse
-> Maybe [PersonMatch] -> GetFaceSearchResponse)
-> Lens
GetFaceSearchResponse
GetFaceSearchResponse
(Maybe [PersonMatch])
(Maybe [PersonMatch])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearchResponse' {Maybe [PersonMatch]
persons :: Maybe [PersonMatch]
$sel:persons:GetFaceSearchResponse' :: GetFaceSearchResponse -> Maybe [PersonMatch]
persons} -> Maybe [PersonMatch]
persons) (\s :: GetFaceSearchResponse
s@GetFaceSearchResponse' {} Maybe [PersonMatch]
a -> GetFaceSearchResponse
s {$sel:persons:GetFaceSearchResponse' :: Maybe [PersonMatch]
persons = Maybe [PersonMatch]
a} :: GetFaceSearchResponse) ((Maybe [PersonMatch] -> f (Maybe [PersonMatch]))
-> GetFaceSearchResponse -> f GetFaceSearchResponse)
-> ((Maybe [PersonMatch] -> f (Maybe [PersonMatch]))
-> Maybe [PersonMatch] -> f (Maybe [PersonMatch]))
-> (Maybe [PersonMatch] -> f (Maybe [PersonMatch]))
-> GetFaceSearchResponse
-> f GetFaceSearchResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [PersonMatch] [PersonMatch] [PersonMatch] [PersonMatch]
-> Iso
(Maybe [PersonMatch])
(Maybe [PersonMatch])
(Maybe [PersonMatch])
(Maybe [PersonMatch])
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 [PersonMatch] [PersonMatch] [PersonMatch] [PersonMatch]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getFaceSearchResponse_httpStatus :: Lens.Lens' GetFaceSearchResponse Prelude.Int
getFaceSearchResponse_httpStatus :: (Int -> f Int) -> GetFaceSearchResponse -> f GetFaceSearchResponse
getFaceSearchResponse_httpStatus = (GetFaceSearchResponse -> Int)
-> (GetFaceSearchResponse -> Int -> GetFaceSearchResponse)
-> Lens GetFaceSearchResponse GetFaceSearchResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFaceSearchResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetFaceSearchResponse' :: GetFaceSearchResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetFaceSearchResponse
s@GetFaceSearchResponse' {} Int
a -> GetFaceSearchResponse
s {$sel:httpStatus:GetFaceSearchResponse' :: Int
httpStatus = Int
a} :: GetFaceSearchResponse)
instance Prelude.NFData GetFaceSearchResponse