{-# 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.GetCelebrityRecognition
(
GetCelebrityRecognition (..),
newGetCelebrityRecognition,
getCelebrityRecognition_nextToken,
getCelebrityRecognition_maxResults,
getCelebrityRecognition_sortBy,
getCelebrityRecognition_jobId,
GetCelebrityRecognitionResponse (..),
newGetCelebrityRecognitionResponse,
getCelebrityRecognitionResponse_nextToken,
getCelebrityRecognitionResponse_videoMetadata,
getCelebrityRecognitionResponse_statusMessage,
getCelebrityRecognitionResponse_celebrities,
getCelebrityRecognitionResponse_jobStatus,
getCelebrityRecognitionResponse_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 GetCelebrityRecognition = GetCelebrityRecognition'
{
GetCelebrityRecognition -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetCelebrityRecognition -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetCelebrityRecognition -> Maybe CelebrityRecognitionSortBy
sortBy :: Prelude.Maybe CelebrityRecognitionSortBy,
GetCelebrityRecognition -> Text
jobId :: Prelude.Text
}
deriving (GetCelebrityRecognition -> GetCelebrityRecognition -> Bool
(GetCelebrityRecognition -> GetCelebrityRecognition -> Bool)
-> (GetCelebrityRecognition -> GetCelebrityRecognition -> Bool)
-> Eq GetCelebrityRecognition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCelebrityRecognition -> GetCelebrityRecognition -> Bool
$c/= :: GetCelebrityRecognition -> GetCelebrityRecognition -> Bool
== :: GetCelebrityRecognition -> GetCelebrityRecognition -> Bool
$c== :: GetCelebrityRecognition -> GetCelebrityRecognition -> Bool
Prelude.Eq, ReadPrec [GetCelebrityRecognition]
ReadPrec GetCelebrityRecognition
Int -> ReadS GetCelebrityRecognition
ReadS [GetCelebrityRecognition]
(Int -> ReadS GetCelebrityRecognition)
-> ReadS [GetCelebrityRecognition]
-> ReadPrec GetCelebrityRecognition
-> ReadPrec [GetCelebrityRecognition]
-> Read GetCelebrityRecognition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCelebrityRecognition]
$creadListPrec :: ReadPrec [GetCelebrityRecognition]
readPrec :: ReadPrec GetCelebrityRecognition
$creadPrec :: ReadPrec GetCelebrityRecognition
readList :: ReadS [GetCelebrityRecognition]
$creadList :: ReadS [GetCelebrityRecognition]
readsPrec :: Int -> ReadS GetCelebrityRecognition
$creadsPrec :: Int -> ReadS GetCelebrityRecognition
Prelude.Read, Int -> GetCelebrityRecognition -> ShowS
[GetCelebrityRecognition] -> ShowS
GetCelebrityRecognition -> String
(Int -> GetCelebrityRecognition -> ShowS)
-> (GetCelebrityRecognition -> String)
-> ([GetCelebrityRecognition] -> ShowS)
-> Show GetCelebrityRecognition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCelebrityRecognition] -> ShowS
$cshowList :: [GetCelebrityRecognition] -> ShowS
show :: GetCelebrityRecognition -> String
$cshow :: GetCelebrityRecognition -> String
showsPrec :: Int -> GetCelebrityRecognition -> ShowS
$cshowsPrec :: Int -> GetCelebrityRecognition -> ShowS
Prelude.Show, (forall x.
GetCelebrityRecognition -> Rep GetCelebrityRecognition x)
-> (forall x.
Rep GetCelebrityRecognition x -> GetCelebrityRecognition)
-> Generic GetCelebrityRecognition
forall x. Rep GetCelebrityRecognition x -> GetCelebrityRecognition
forall x. GetCelebrityRecognition -> Rep GetCelebrityRecognition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetCelebrityRecognition x -> GetCelebrityRecognition
$cfrom :: forall x. GetCelebrityRecognition -> Rep GetCelebrityRecognition x
Prelude.Generic)
newGetCelebrityRecognition ::
Prelude.Text ->
GetCelebrityRecognition
newGetCelebrityRecognition :: Text -> GetCelebrityRecognition
newGetCelebrityRecognition Text
pJobId_ =
GetCelebrityRecognition' :: Maybe Text
-> Maybe Natural
-> Maybe CelebrityRecognitionSortBy
-> Text
-> GetCelebrityRecognition
GetCelebrityRecognition'
{ $sel:nextToken:GetCelebrityRecognition' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetCelebrityRecognition' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:GetCelebrityRecognition' :: Maybe CelebrityRecognitionSortBy
sortBy = Maybe CelebrityRecognitionSortBy
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:GetCelebrityRecognition' :: Text
jobId = Text
pJobId_
}
getCelebrityRecognition_nextToken :: Lens.Lens' GetCelebrityRecognition (Prelude.Maybe Prelude.Text)
getCelebrityRecognition_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetCelebrityRecognition -> f GetCelebrityRecognition
getCelebrityRecognition_nextToken = (GetCelebrityRecognition -> Maybe Text)
-> (GetCelebrityRecognition
-> Maybe Text -> GetCelebrityRecognition)
-> Lens
GetCelebrityRecognition
GetCelebrityRecognition
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognition' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetCelebrityRecognition
s@GetCelebrityRecognition' {} Maybe Text
a -> GetCelebrityRecognition
s {$sel:nextToken:GetCelebrityRecognition' :: Maybe Text
nextToken = Maybe Text
a} :: GetCelebrityRecognition)
getCelebrityRecognition_maxResults :: Lens.Lens' GetCelebrityRecognition (Prelude.Maybe Prelude.Natural)
getCelebrityRecognition_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetCelebrityRecognition -> f GetCelebrityRecognition
getCelebrityRecognition_maxResults = (GetCelebrityRecognition -> Maybe Natural)
-> (GetCelebrityRecognition
-> Maybe Natural -> GetCelebrityRecognition)
-> Lens
GetCelebrityRecognition
GetCelebrityRecognition
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognition' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetCelebrityRecognition
s@GetCelebrityRecognition' {} Maybe Natural
a -> GetCelebrityRecognition
s {$sel:maxResults:GetCelebrityRecognition' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetCelebrityRecognition)
getCelebrityRecognition_sortBy :: Lens.Lens' GetCelebrityRecognition (Prelude.Maybe CelebrityRecognitionSortBy)
getCelebrityRecognition_sortBy :: (Maybe CelebrityRecognitionSortBy
-> f (Maybe CelebrityRecognitionSortBy))
-> GetCelebrityRecognition -> f GetCelebrityRecognition
getCelebrityRecognition_sortBy = (GetCelebrityRecognition -> Maybe CelebrityRecognitionSortBy)
-> (GetCelebrityRecognition
-> Maybe CelebrityRecognitionSortBy -> GetCelebrityRecognition)
-> Lens
GetCelebrityRecognition
GetCelebrityRecognition
(Maybe CelebrityRecognitionSortBy)
(Maybe CelebrityRecognitionSortBy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognition' {Maybe CelebrityRecognitionSortBy
sortBy :: Maybe CelebrityRecognitionSortBy
$sel:sortBy:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe CelebrityRecognitionSortBy
sortBy} -> Maybe CelebrityRecognitionSortBy
sortBy) (\s :: GetCelebrityRecognition
s@GetCelebrityRecognition' {} Maybe CelebrityRecognitionSortBy
a -> GetCelebrityRecognition
s {$sel:sortBy:GetCelebrityRecognition' :: Maybe CelebrityRecognitionSortBy
sortBy = Maybe CelebrityRecognitionSortBy
a} :: GetCelebrityRecognition)
getCelebrityRecognition_jobId :: Lens.Lens' GetCelebrityRecognition Prelude.Text
getCelebrityRecognition_jobId :: (Text -> f Text)
-> GetCelebrityRecognition -> f GetCelebrityRecognition
getCelebrityRecognition_jobId = (GetCelebrityRecognition -> Text)
-> (GetCelebrityRecognition -> Text -> GetCelebrityRecognition)
-> Lens GetCelebrityRecognition GetCelebrityRecognition Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognition' {Text
jobId :: Text
$sel:jobId:GetCelebrityRecognition' :: GetCelebrityRecognition -> Text
jobId} -> Text
jobId) (\s :: GetCelebrityRecognition
s@GetCelebrityRecognition' {} Text
a -> GetCelebrityRecognition
s {$sel:jobId:GetCelebrityRecognition' :: Text
jobId = Text
a} :: GetCelebrityRecognition)
instance Core.AWSRequest GetCelebrityRecognition where
type
AWSResponse GetCelebrityRecognition =
GetCelebrityRecognitionResponse
request :: GetCelebrityRecognition -> Request GetCelebrityRecognition
request = Service
-> GetCelebrityRecognition -> Request GetCelebrityRecognition
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetCelebrityRecognition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetCelebrityRecognition)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetCelebrityRecognition))
-> Logger
-> Service
-> Proxy GetCelebrityRecognition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetCelebrityRecognition)))
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 [CelebrityRecognition]
-> Maybe VideoJobStatus
-> Int
-> GetCelebrityRecognitionResponse
GetCelebrityRecognitionResponse'
(Maybe Text
-> Maybe VideoMetadata
-> Maybe Text
-> Maybe [CelebrityRecognition]
-> Maybe VideoJobStatus
-> Int
-> GetCelebrityRecognitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe VideoMetadata
-> Maybe Text
-> Maybe [CelebrityRecognition]
-> Maybe VideoJobStatus
-> Int
-> GetCelebrityRecognitionResponse)
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 [CelebrityRecognition]
-> Maybe VideoJobStatus
-> Int
-> GetCelebrityRecognitionResponse)
-> Either String (Maybe VideoMetadata)
-> Either
String
(Maybe Text
-> Maybe [CelebrityRecognition]
-> Maybe VideoJobStatus
-> Int
-> GetCelebrityRecognitionResponse)
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 [CelebrityRecognition]
-> Maybe VideoJobStatus
-> Int
-> GetCelebrityRecognitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [CelebrityRecognition]
-> Maybe VideoJobStatus -> Int -> GetCelebrityRecognitionResponse)
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 [CelebrityRecognition]
-> Maybe VideoJobStatus -> Int -> GetCelebrityRecognitionResponse)
-> Either String (Maybe [CelebrityRecognition])
-> Either
String
(Maybe VideoJobStatus -> Int -> GetCelebrityRecognitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [CelebrityRecognition]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Celebrities" Either String (Maybe (Maybe [CelebrityRecognition]))
-> Maybe [CelebrityRecognition]
-> Either String (Maybe [CelebrityRecognition])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [CelebrityRecognition]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe VideoJobStatus -> Int -> GetCelebrityRecognitionResponse)
-> Either String (Maybe VideoJobStatus)
-> Either String (Int -> GetCelebrityRecognitionResponse)
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 -> GetCelebrityRecognitionResponse)
-> Either String Int
-> Either String GetCelebrityRecognitionResponse
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 GetCelebrityRecognition
instance Prelude.NFData GetCelebrityRecognition
instance Core.ToHeaders GetCelebrityRecognition where
toHeaders :: GetCelebrityRecognition -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetCelebrityRecognition -> 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.GetCelebrityRecognition" ::
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 GetCelebrityRecognition where
toJSON :: GetCelebrityRecognition -> Value
toJSON GetCelebrityRecognition' {Maybe Natural
Maybe Text
Maybe CelebrityRecognitionSortBy
Text
jobId :: Text
sortBy :: Maybe CelebrityRecognitionSortBy
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:jobId:GetCelebrityRecognition' :: GetCelebrityRecognition -> Text
$sel:sortBy:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe CelebrityRecognitionSortBy
$sel:maxResults:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe Natural
$sel:nextToken:GetCelebrityRecognition' :: GetCelebrityRecognition -> 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 -> CelebrityRecognitionSortBy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (CelebrityRecognitionSortBy -> Pair)
-> Maybe CelebrityRecognitionSortBy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CelebrityRecognitionSortBy
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 GetCelebrityRecognition where
toPath :: GetCelebrityRecognition -> ByteString
toPath = ByteString -> GetCelebrityRecognition -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetCelebrityRecognition where
toQuery :: GetCelebrityRecognition -> QueryString
toQuery = QueryString -> GetCelebrityRecognition -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetCelebrityRecognitionResponse = GetCelebrityRecognitionResponse'
{
GetCelebrityRecognitionResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetCelebrityRecognitionResponse -> Maybe VideoMetadata
videoMetadata :: Prelude.Maybe VideoMetadata,
GetCelebrityRecognitionResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
GetCelebrityRecognitionResponse -> Maybe [CelebrityRecognition]
celebrities :: Prelude.Maybe [CelebrityRecognition],
GetCelebrityRecognitionResponse -> Maybe VideoJobStatus
jobStatus :: Prelude.Maybe VideoJobStatus,
GetCelebrityRecognitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetCelebrityRecognitionResponse
-> GetCelebrityRecognitionResponse -> Bool
(GetCelebrityRecognitionResponse
-> GetCelebrityRecognitionResponse -> Bool)
-> (GetCelebrityRecognitionResponse
-> GetCelebrityRecognitionResponse -> Bool)
-> Eq GetCelebrityRecognitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCelebrityRecognitionResponse
-> GetCelebrityRecognitionResponse -> Bool
$c/= :: GetCelebrityRecognitionResponse
-> GetCelebrityRecognitionResponse -> Bool
== :: GetCelebrityRecognitionResponse
-> GetCelebrityRecognitionResponse -> Bool
$c== :: GetCelebrityRecognitionResponse
-> GetCelebrityRecognitionResponse -> Bool
Prelude.Eq, ReadPrec [GetCelebrityRecognitionResponse]
ReadPrec GetCelebrityRecognitionResponse
Int -> ReadS GetCelebrityRecognitionResponse
ReadS [GetCelebrityRecognitionResponse]
(Int -> ReadS GetCelebrityRecognitionResponse)
-> ReadS [GetCelebrityRecognitionResponse]
-> ReadPrec GetCelebrityRecognitionResponse
-> ReadPrec [GetCelebrityRecognitionResponse]
-> Read GetCelebrityRecognitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCelebrityRecognitionResponse]
$creadListPrec :: ReadPrec [GetCelebrityRecognitionResponse]
readPrec :: ReadPrec GetCelebrityRecognitionResponse
$creadPrec :: ReadPrec GetCelebrityRecognitionResponse
readList :: ReadS [GetCelebrityRecognitionResponse]
$creadList :: ReadS [GetCelebrityRecognitionResponse]
readsPrec :: Int -> ReadS GetCelebrityRecognitionResponse
$creadsPrec :: Int -> ReadS GetCelebrityRecognitionResponse
Prelude.Read, Int -> GetCelebrityRecognitionResponse -> ShowS
[GetCelebrityRecognitionResponse] -> ShowS
GetCelebrityRecognitionResponse -> String
(Int -> GetCelebrityRecognitionResponse -> ShowS)
-> (GetCelebrityRecognitionResponse -> String)
-> ([GetCelebrityRecognitionResponse] -> ShowS)
-> Show GetCelebrityRecognitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCelebrityRecognitionResponse] -> ShowS
$cshowList :: [GetCelebrityRecognitionResponse] -> ShowS
show :: GetCelebrityRecognitionResponse -> String
$cshow :: GetCelebrityRecognitionResponse -> String
showsPrec :: Int -> GetCelebrityRecognitionResponse -> ShowS
$cshowsPrec :: Int -> GetCelebrityRecognitionResponse -> ShowS
Prelude.Show, (forall x.
GetCelebrityRecognitionResponse
-> Rep GetCelebrityRecognitionResponse x)
-> (forall x.
Rep GetCelebrityRecognitionResponse x
-> GetCelebrityRecognitionResponse)
-> Generic GetCelebrityRecognitionResponse
forall x.
Rep GetCelebrityRecognitionResponse x
-> GetCelebrityRecognitionResponse
forall x.
GetCelebrityRecognitionResponse
-> Rep GetCelebrityRecognitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetCelebrityRecognitionResponse x
-> GetCelebrityRecognitionResponse
$cfrom :: forall x.
GetCelebrityRecognitionResponse
-> Rep GetCelebrityRecognitionResponse x
Prelude.Generic)
newGetCelebrityRecognitionResponse ::
Prelude.Int ->
GetCelebrityRecognitionResponse
newGetCelebrityRecognitionResponse :: Int -> GetCelebrityRecognitionResponse
newGetCelebrityRecognitionResponse Int
pHttpStatus_ =
GetCelebrityRecognitionResponse' :: Maybe Text
-> Maybe VideoMetadata
-> Maybe Text
-> Maybe [CelebrityRecognition]
-> Maybe VideoJobStatus
-> Int
-> GetCelebrityRecognitionResponse
GetCelebrityRecognitionResponse'
{ $sel:nextToken:GetCelebrityRecognitionResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:videoMetadata:GetCelebrityRecognitionResponse' :: Maybe VideoMetadata
videoMetadata = Maybe VideoMetadata
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:GetCelebrityRecognitionResponse' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:celebrities:GetCelebrityRecognitionResponse' :: Maybe [CelebrityRecognition]
celebrities = Maybe [CelebrityRecognition]
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:GetCelebrityRecognitionResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetCelebrityRecognitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getCelebrityRecognitionResponse_nextToken :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe Prelude.Text)
getCelebrityRecognitionResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetCelebrityRecognitionResponse
-> f GetCelebrityRecognitionResponse
getCelebrityRecognitionResponse_nextToken = (GetCelebrityRecognitionResponse -> Maybe Text)
-> (GetCelebrityRecognitionResponse
-> Maybe Text -> GetCelebrityRecognitionResponse)
-> Lens
GetCelebrityRecognitionResponse
GetCelebrityRecognitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognitionResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetCelebrityRecognitionResponse
s@GetCelebrityRecognitionResponse' {} Maybe Text
a -> GetCelebrityRecognitionResponse
s {$sel:nextToken:GetCelebrityRecognitionResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetCelebrityRecognitionResponse)
getCelebrityRecognitionResponse_videoMetadata :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe VideoMetadata)
getCelebrityRecognitionResponse_videoMetadata :: (Maybe VideoMetadata -> f (Maybe VideoMetadata))
-> GetCelebrityRecognitionResponse
-> f GetCelebrityRecognitionResponse
getCelebrityRecognitionResponse_videoMetadata = (GetCelebrityRecognitionResponse -> Maybe VideoMetadata)
-> (GetCelebrityRecognitionResponse
-> Maybe VideoMetadata -> GetCelebrityRecognitionResponse)
-> Lens
GetCelebrityRecognitionResponse
GetCelebrityRecognitionResponse
(Maybe VideoMetadata)
(Maybe VideoMetadata)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognitionResponse' {Maybe VideoMetadata
videoMetadata :: Maybe VideoMetadata
$sel:videoMetadata:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe VideoMetadata
videoMetadata} -> Maybe VideoMetadata
videoMetadata) (\s :: GetCelebrityRecognitionResponse
s@GetCelebrityRecognitionResponse' {} Maybe VideoMetadata
a -> GetCelebrityRecognitionResponse
s {$sel:videoMetadata:GetCelebrityRecognitionResponse' :: Maybe VideoMetadata
videoMetadata = Maybe VideoMetadata
a} :: GetCelebrityRecognitionResponse)
getCelebrityRecognitionResponse_statusMessage :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe Prelude.Text)
getCelebrityRecognitionResponse_statusMessage :: (Maybe Text -> f (Maybe Text))
-> GetCelebrityRecognitionResponse
-> f GetCelebrityRecognitionResponse
getCelebrityRecognitionResponse_statusMessage = (GetCelebrityRecognitionResponse -> Maybe Text)
-> (GetCelebrityRecognitionResponse
-> Maybe Text -> GetCelebrityRecognitionResponse)
-> Lens
GetCelebrityRecognitionResponse
GetCelebrityRecognitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognitionResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: GetCelebrityRecognitionResponse
s@GetCelebrityRecognitionResponse' {} Maybe Text
a -> GetCelebrityRecognitionResponse
s {$sel:statusMessage:GetCelebrityRecognitionResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: GetCelebrityRecognitionResponse)
getCelebrityRecognitionResponse_celebrities :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe [CelebrityRecognition])
getCelebrityRecognitionResponse_celebrities :: (Maybe [CelebrityRecognition] -> f (Maybe [CelebrityRecognition]))
-> GetCelebrityRecognitionResponse
-> f GetCelebrityRecognitionResponse
getCelebrityRecognitionResponse_celebrities = (GetCelebrityRecognitionResponse -> Maybe [CelebrityRecognition])
-> (GetCelebrityRecognitionResponse
-> Maybe [CelebrityRecognition] -> GetCelebrityRecognitionResponse)
-> Lens
GetCelebrityRecognitionResponse
GetCelebrityRecognitionResponse
(Maybe [CelebrityRecognition])
(Maybe [CelebrityRecognition])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognitionResponse' {Maybe [CelebrityRecognition]
celebrities :: Maybe [CelebrityRecognition]
$sel:celebrities:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe [CelebrityRecognition]
celebrities} -> Maybe [CelebrityRecognition]
celebrities) (\s :: GetCelebrityRecognitionResponse
s@GetCelebrityRecognitionResponse' {} Maybe [CelebrityRecognition]
a -> GetCelebrityRecognitionResponse
s {$sel:celebrities:GetCelebrityRecognitionResponse' :: Maybe [CelebrityRecognition]
celebrities = Maybe [CelebrityRecognition]
a} :: GetCelebrityRecognitionResponse) ((Maybe [CelebrityRecognition] -> f (Maybe [CelebrityRecognition]))
-> GetCelebrityRecognitionResponse
-> f GetCelebrityRecognitionResponse)
-> ((Maybe [CelebrityRecognition]
-> f (Maybe [CelebrityRecognition]))
-> Maybe [CelebrityRecognition]
-> f (Maybe [CelebrityRecognition]))
-> (Maybe [CelebrityRecognition]
-> f (Maybe [CelebrityRecognition]))
-> GetCelebrityRecognitionResponse
-> f GetCelebrityRecognitionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CelebrityRecognition]
[CelebrityRecognition]
[CelebrityRecognition]
[CelebrityRecognition]
-> Iso
(Maybe [CelebrityRecognition])
(Maybe [CelebrityRecognition])
(Maybe [CelebrityRecognition])
(Maybe [CelebrityRecognition])
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
[CelebrityRecognition]
[CelebrityRecognition]
[CelebrityRecognition]
[CelebrityRecognition]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getCelebrityRecognitionResponse_jobStatus :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe VideoJobStatus)
getCelebrityRecognitionResponse_jobStatus :: (Maybe VideoJobStatus -> f (Maybe VideoJobStatus))
-> GetCelebrityRecognitionResponse
-> f GetCelebrityRecognitionResponse
getCelebrityRecognitionResponse_jobStatus = (GetCelebrityRecognitionResponse -> Maybe VideoJobStatus)
-> (GetCelebrityRecognitionResponse
-> Maybe VideoJobStatus -> GetCelebrityRecognitionResponse)
-> Lens
GetCelebrityRecognitionResponse
GetCelebrityRecognitionResponse
(Maybe VideoJobStatus)
(Maybe VideoJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognitionResponse' {Maybe VideoJobStatus
jobStatus :: Maybe VideoJobStatus
$sel:jobStatus:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe VideoJobStatus
jobStatus} -> Maybe VideoJobStatus
jobStatus) (\s :: GetCelebrityRecognitionResponse
s@GetCelebrityRecognitionResponse' {} Maybe VideoJobStatus
a -> GetCelebrityRecognitionResponse
s {$sel:jobStatus:GetCelebrityRecognitionResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
a} :: GetCelebrityRecognitionResponse)
getCelebrityRecognitionResponse_httpStatus :: Lens.Lens' GetCelebrityRecognitionResponse Prelude.Int
getCelebrityRecognitionResponse_httpStatus :: (Int -> f Int)
-> GetCelebrityRecognitionResponse
-> f GetCelebrityRecognitionResponse
getCelebrityRecognitionResponse_httpStatus = (GetCelebrityRecognitionResponse -> Int)
-> (GetCelebrityRecognitionResponse
-> Int -> GetCelebrityRecognitionResponse)
-> Lens
GetCelebrityRecognitionResponse
GetCelebrityRecognitionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCelebrityRecognitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetCelebrityRecognitionResponse
s@GetCelebrityRecognitionResponse' {} Int
a -> GetCelebrityRecognitionResponse
s {$sel:httpStatus:GetCelebrityRecognitionResponse' :: Int
httpStatus = Int
a} :: GetCelebrityRecognitionResponse)
instance
Prelude.NFData
GetCelebrityRecognitionResponse