{-# 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.SearchFaces
(
SearchFaces (..),
newSearchFaces,
searchFaces_faceMatchThreshold,
searchFaces_maxFaces,
searchFaces_collectionId,
searchFaces_faceId,
SearchFacesResponse (..),
newSearchFacesResponse,
searchFacesResponse_faceMatches,
searchFacesResponse_faceModelVersion,
searchFacesResponse_searchedFaceId,
searchFacesResponse_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 SearchFaces = SearchFaces'
{
SearchFaces -> Maybe Double
faceMatchThreshold :: Prelude.Maybe Prelude.Double,
SearchFaces -> Maybe Natural
maxFaces :: Prelude.Maybe Prelude.Natural,
SearchFaces -> Text
collectionId :: Prelude.Text,
SearchFaces -> Text
faceId :: Prelude.Text
}
deriving (SearchFaces -> SearchFaces -> Bool
(SearchFaces -> SearchFaces -> Bool)
-> (SearchFaces -> SearchFaces -> Bool) -> Eq SearchFaces
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SearchFaces -> SearchFaces -> Bool
$c/= :: SearchFaces -> SearchFaces -> Bool
== :: SearchFaces -> SearchFaces -> Bool
$c== :: SearchFaces -> SearchFaces -> Bool
Prelude.Eq, ReadPrec [SearchFaces]
ReadPrec SearchFaces
Int -> ReadS SearchFaces
ReadS [SearchFaces]
(Int -> ReadS SearchFaces)
-> ReadS [SearchFaces]
-> ReadPrec SearchFaces
-> ReadPrec [SearchFaces]
-> Read SearchFaces
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SearchFaces]
$creadListPrec :: ReadPrec [SearchFaces]
readPrec :: ReadPrec SearchFaces
$creadPrec :: ReadPrec SearchFaces
readList :: ReadS [SearchFaces]
$creadList :: ReadS [SearchFaces]
readsPrec :: Int -> ReadS SearchFaces
$creadsPrec :: Int -> ReadS SearchFaces
Prelude.Read, Int -> SearchFaces -> ShowS
[SearchFaces] -> ShowS
SearchFaces -> String
(Int -> SearchFaces -> ShowS)
-> (SearchFaces -> String)
-> ([SearchFaces] -> ShowS)
-> Show SearchFaces
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SearchFaces] -> ShowS
$cshowList :: [SearchFaces] -> ShowS
show :: SearchFaces -> String
$cshow :: SearchFaces -> String
showsPrec :: Int -> SearchFaces -> ShowS
$cshowsPrec :: Int -> SearchFaces -> ShowS
Prelude.Show, (forall x. SearchFaces -> Rep SearchFaces x)
-> (forall x. Rep SearchFaces x -> SearchFaces)
-> Generic SearchFaces
forall x. Rep SearchFaces x -> SearchFaces
forall x. SearchFaces -> Rep SearchFaces x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SearchFaces x -> SearchFaces
$cfrom :: forall x. SearchFaces -> Rep SearchFaces x
Prelude.Generic)
newSearchFaces ::
Prelude.Text ->
Prelude.Text ->
SearchFaces
newSearchFaces :: Text -> Text -> SearchFaces
newSearchFaces Text
pCollectionId_ Text
pFaceId_ =
SearchFaces' :: Maybe Double -> Maybe Natural -> Text -> Text -> SearchFaces
SearchFaces'
{ $sel:faceMatchThreshold:SearchFaces' :: Maybe Double
faceMatchThreshold = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:maxFaces:SearchFaces' :: Maybe Natural
maxFaces = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:collectionId:SearchFaces' :: Text
collectionId = Text
pCollectionId_,
$sel:faceId:SearchFaces' :: Text
faceId = Text
pFaceId_
}
searchFaces_faceMatchThreshold :: Lens.Lens' SearchFaces (Prelude.Maybe Prelude.Double)
searchFaces_faceMatchThreshold :: (Maybe Double -> f (Maybe Double)) -> SearchFaces -> f SearchFaces
searchFaces_faceMatchThreshold = (SearchFaces -> Maybe Double)
-> (SearchFaces -> Maybe Double -> SearchFaces)
-> Lens SearchFaces SearchFaces (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchFaces' {Maybe Double
faceMatchThreshold :: Maybe Double
$sel:faceMatchThreshold:SearchFaces' :: SearchFaces -> Maybe Double
faceMatchThreshold} -> Maybe Double
faceMatchThreshold) (\s :: SearchFaces
s@SearchFaces' {} Maybe Double
a -> SearchFaces
s {$sel:faceMatchThreshold:SearchFaces' :: Maybe Double
faceMatchThreshold = Maybe Double
a} :: SearchFaces)
searchFaces_maxFaces :: Lens.Lens' SearchFaces (Prelude.Maybe Prelude.Natural)
searchFaces_maxFaces :: (Maybe Natural -> f (Maybe Natural))
-> SearchFaces -> f SearchFaces
searchFaces_maxFaces = (SearchFaces -> Maybe Natural)
-> (SearchFaces -> Maybe Natural -> SearchFaces)
-> Lens SearchFaces SearchFaces (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchFaces' {Maybe Natural
maxFaces :: Maybe Natural
$sel:maxFaces:SearchFaces' :: SearchFaces -> Maybe Natural
maxFaces} -> Maybe Natural
maxFaces) (\s :: SearchFaces
s@SearchFaces' {} Maybe Natural
a -> SearchFaces
s {$sel:maxFaces:SearchFaces' :: Maybe Natural
maxFaces = Maybe Natural
a} :: SearchFaces)
searchFaces_collectionId :: Lens.Lens' SearchFaces Prelude.Text
searchFaces_collectionId :: (Text -> f Text) -> SearchFaces -> f SearchFaces
searchFaces_collectionId = (SearchFaces -> Text)
-> (SearchFaces -> Text -> SearchFaces)
-> Lens SearchFaces SearchFaces Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchFaces' {Text
collectionId :: Text
$sel:collectionId:SearchFaces' :: SearchFaces -> Text
collectionId} -> Text
collectionId) (\s :: SearchFaces
s@SearchFaces' {} Text
a -> SearchFaces
s {$sel:collectionId:SearchFaces' :: Text
collectionId = Text
a} :: SearchFaces)
searchFaces_faceId :: Lens.Lens' SearchFaces Prelude.Text
searchFaces_faceId :: (Text -> f Text) -> SearchFaces -> f SearchFaces
searchFaces_faceId = (SearchFaces -> Text)
-> (SearchFaces -> Text -> SearchFaces)
-> Lens SearchFaces SearchFaces Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchFaces' {Text
faceId :: Text
$sel:faceId:SearchFaces' :: SearchFaces -> Text
faceId} -> Text
faceId) (\s :: SearchFaces
s@SearchFaces' {} Text
a -> SearchFaces
s {$sel:faceId:SearchFaces' :: Text
faceId = Text
a} :: SearchFaces)
instance Core.AWSRequest SearchFaces where
type AWSResponse SearchFaces = SearchFacesResponse
request :: SearchFaces -> Request SearchFaces
request = Service -> SearchFaces -> Request SearchFaces
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy SearchFaces
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse SearchFaces)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse SearchFaces))
-> Logger
-> Service
-> Proxy SearchFaces
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse SearchFaces)))
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 [FaceMatch]
-> Maybe Text -> Maybe Text -> Int -> SearchFacesResponse
SearchFacesResponse'
(Maybe [FaceMatch]
-> Maybe Text -> Maybe Text -> Int -> SearchFacesResponse)
-> Either String (Maybe [FaceMatch])
-> Either
String (Maybe Text -> Maybe Text -> Int -> SearchFacesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [FaceMatch]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FaceMatches" Either String (Maybe (Maybe [FaceMatch]))
-> Maybe [FaceMatch] -> Either String (Maybe [FaceMatch])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FaceMatch]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Text -> Maybe Text -> Int -> SearchFacesResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> SearchFacesResponse)
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
"FaceModelVersion")
Either String (Maybe Text -> Int -> SearchFacesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> SearchFacesResponse)
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
"SearchedFaceId")
Either String (Int -> SearchFacesResponse)
-> Either String Int -> Either String SearchFacesResponse
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 SearchFaces
instance Prelude.NFData SearchFaces
instance Core.ToHeaders SearchFaces where
toHeaders :: SearchFaces -> ResponseHeaders
toHeaders =
ResponseHeaders -> SearchFaces -> 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.SearchFaces" ::
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 SearchFaces where
toJSON :: SearchFaces -> Value
toJSON SearchFaces' {Maybe Double
Maybe Natural
Text
faceId :: Text
collectionId :: Text
maxFaces :: Maybe Natural
faceMatchThreshold :: Maybe Double
$sel:faceId:SearchFaces' :: SearchFaces -> Text
$sel:collectionId:SearchFaces' :: SearchFaces -> Text
$sel:maxFaces:SearchFaces' :: SearchFaces -> Maybe Natural
$sel:faceMatchThreshold:SearchFaces' :: SearchFaces -> Maybe Double
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"FaceMatchThreshold" Text -> Double -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Double -> Pair) -> Maybe Double -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Double
faceMatchThreshold,
(Text
"MaxFaces" 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
maxFaces,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"CollectionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
collectionId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"FaceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
faceId)
]
)
instance Core.ToPath SearchFaces where
toPath :: SearchFaces -> ByteString
toPath = ByteString -> SearchFaces -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery SearchFaces where
toQuery :: SearchFaces -> QueryString
toQuery = QueryString -> SearchFaces -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data SearchFacesResponse = SearchFacesResponse'
{
SearchFacesResponse -> Maybe [FaceMatch]
faceMatches :: Prelude.Maybe [FaceMatch],
SearchFacesResponse -> Maybe Text
faceModelVersion :: Prelude.Maybe Prelude.Text,
SearchFacesResponse -> Maybe Text
searchedFaceId :: Prelude.Maybe Prelude.Text,
SearchFacesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (SearchFacesResponse -> SearchFacesResponse -> Bool
(SearchFacesResponse -> SearchFacesResponse -> Bool)
-> (SearchFacesResponse -> SearchFacesResponse -> Bool)
-> Eq SearchFacesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SearchFacesResponse -> SearchFacesResponse -> Bool
$c/= :: SearchFacesResponse -> SearchFacesResponse -> Bool
== :: SearchFacesResponse -> SearchFacesResponse -> Bool
$c== :: SearchFacesResponse -> SearchFacesResponse -> Bool
Prelude.Eq, ReadPrec [SearchFacesResponse]
ReadPrec SearchFacesResponse
Int -> ReadS SearchFacesResponse
ReadS [SearchFacesResponse]
(Int -> ReadS SearchFacesResponse)
-> ReadS [SearchFacesResponse]
-> ReadPrec SearchFacesResponse
-> ReadPrec [SearchFacesResponse]
-> Read SearchFacesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SearchFacesResponse]
$creadListPrec :: ReadPrec [SearchFacesResponse]
readPrec :: ReadPrec SearchFacesResponse
$creadPrec :: ReadPrec SearchFacesResponse
readList :: ReadS [SearchFacesResponse]
$creadList :: ReadS [SearchFacesResponse]
readsPrec :: Int -> ReadS SearchFacesResponse
$creadsPrec :: Int -> ReadS SearchFacesResponse
Prelude.Read, Int -> SearchFacesResponse -> ShowS
[SearchFacesResponse] -> ShowS
SearchFacesResponse -> String
(Int -> SearchFacesResponse -> ShowS)
-> (SearchFacesResponse -> String)
-> ([SearchFacesResponse] -> ShowS)
-> Show SearchFacesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SearchFacesResponse] -> ShowS
$cshowList :: [SearchFacesResponse] -> ShowS
show :: SearchFacesResponse -> String
$cshow :: SearchFacesResponse -> String
showsPrec :: Int -> SearchFacesResponse -> ShowS
$cshowsPrec :: Int -> SearchFacesResponse -> ShowS
Prelude.Show, (forall x. SearchFacesResponse -> Rep SearchFacesResponse x)
-> (forall x. Rep SearchFacesResponse x -> SearchFacesResponse)
-> Generic SearchFacesResponse
forall x. Rep SearchFacesResponse x -> SearchFacesResponse
forall x. SearchFacesResponse -> Rep SearchFacesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SearchFacesResponse x -> SearchFacesResponse
$cfrom :: forall x. SearchFacesResponse -> Rep SearchFacesResponse x
Prelude.Generic)
newSearchFacesResponse ::
Prelude.Int ->
SearchFacesResponse
newSearchFacesResponse :: Int -> SearchFacesResponse
newSearchFacesResponse Int
pHttpStatus_ =
SearchFacesResponse' :: Maybe [FaceMatch]
-> Maybe Text -> Maybe Text -> Int -> SearchFacesResponse
SearchFacesResponse'
{ $sel:faceMatches:SearchFacesResponse' :: Maybe [FaceMatch]
faceMatches = Maybe [FaceMatch]
forall a. Maybe a
Prelude.Nothing,
$sel:faceModelVersion:SearchFacesResponse' :: Maybe Text
faceModelVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:searchedFaceId:SearchFacesResponse' :: Maybe Text
searchedFaceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:SearchFacesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
searchFacesResponse_faceMatches :: Lens.Lens' SearchFacesResponse (Prelude.Maybe [FaceMatch])
searchFacesResponse_faceMatches :: (Maybe [FaceMatch] -> f (Maybe [FaceMatch]))
-> SearchFacesResponse -> f SearchFacesResponse
searchFacesResponse_faceMatches = (SearchFacesResponse -> Maybe [FaceMatch])
-> (SearchFacesResponse
-> Maybe [FaceMatch] -> SearchFacesResponse)
-> Lens
SearchFacesResponse
SearchFacesResponse
(Maybe [FaceMatch])
(Maybe [FaceMatch])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchFacesResponse' {Maybe [FaceMatch]
faceMatches :: Maybe [FaceMatch]
$sel:faceMatches:SearchFacesResponse' :: SearchFacesResponse -> Maybe [FaceMatch]
faceMatches} -> Maybe [FaceMatch]
faceMatches) (\s :: SearchFacesResponse
s@SearchFacesResponse' {} Maybe [FaceMatch]
a -> SearchFacesResponse
s {$sel:faceMatches:SearchFacesResponse' :: Maybe [FaceMatch]
faceMatches = Maybe [FaceMatch]
a} :: SearchFacesResponse) ((Maybe [FaceMatch] -> f (Maybe [FaceMatch]))
-> SearchFacesResponse -> f SearchFacesResponse)
-> ((Maybe [FaceMatch] -> f (Maybe [FaceMatch]))
-> Maybe [FaceMatch] -> f (Maybe [FaceMatch]))
-> (Maybe [FaceMatch] -> f (Maybe [FaceMatch]))
-> SearchFacesResponse
-> f SearchFacesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [FaceMatch] [FaceMatch] [FaceMatch] [FaceMatch]
-> Iso
(Maybe [FaceMatch])
(Maybe [FaceMatch])
(Maybe [FaceMatch])
(Maybe [FaceMatch])
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 [FaceMatch] [FaceMatch] [FaceMatch] [FaceMatch]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
searchFacesResponse_faceModelVersion :: Lens.Lens' SearchFacesResponse (Prelude.Maybe Prelude.Text)
searchFacesResponse_faceModelVersion :: (Maybe Text -> f (Maybe Text))
-> SearchFacesResponse -> f SearchFacesResponse
searchFacesResponse_faceModelVersion = (SearchFacesResponse -> Maybe Text)
-> (SearchFacesResponse -> Maybe Text -> SearchFacesResponse)
-> Lens
SearchFacesResponse SearchFacesResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchFacesResponse' {Maybe Text
faceModelVersion :: Maybe Text
$sel:faceModelVersion:SearchFacesResponse' :: SearchFacesResponse -> Maybe Text
faceModelVersion} -> Maybe Text
faceModelVersion) (\s :: SearchFacesResponse
s@SearchFacesResponse' {} Maybe Text
a -> SearchFacesResponse
s {$sel:faceModelVersion:SearchFacesResponse' :: Maybe Text
faceModelVersion = Maybe Text
a} :: SearchFacesResponse)
searchFacesResponse_searchedFaceId :: Lens.Lens' SearchFacesResponse (Prelude.Maybe Prelude.Text)
searchFacesResponse_searchedFaceId :: (Maybe Text -> f (Maybe Text))
-> SearchFacesResponse -> f SearchFacesResponse
searchFacesResponse_searchedFaceId = (SearchFacesResponse -> Maybe Text)
-> (SearchFacesResponse -> Maybe Text -> SearchFacesResponse)
-> Lens
SearchFacesResponse SearchFacesResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchFacesResponse' {Maybe Text
searchedFaceId :: Maybe Text
$sel:searchedFaceId:SearchFacesResponse' :: SearchFacesResponse -> Maybe Text
searchedFaceId} -> Maybe Text
searchedFaceId) (\s :: SearchFacesResponse
s@SearchFacesResponse' {} Maybe Text
a -> SearchFacesResponse
s {$sel:searchedFaceId:SearchFacesResponse' :: Maybe Text
searchedFaceId = Maybe Text
a} :: SearchFacesResponse)
searchFacesResponse_httpStatus :: Lens.Lens' SearchFacesResponse Prelude.Int
searchFacesResponse_httpStatus :: (Int -> f Int) -> SearchFacesResponse -> f SearchFacesResponse
searchFacesResponse_httpStatus = (SearchFacesResponse -> Int)
-> (SearchFacesResponse -> Int -> SearchFacesResponse)
-> Lens SearchFacesResponse SearchFacesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchFacesResponse' {Int
httpStatus :: Int
$sel:httpStatus:SearchFacesResponse' :: SearchFacesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: SearchFacesResponse
s@SearchFacesResponse' {} Int
a -> SearchFacesResponse
s {$sel:httpStatus:SearchFacesResponse' :: Int
httpStatus = Int
a} :: SearchFacesResponse)
instance Prelude.NFData SearchFacesResponse