{-# 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_maxResults,
getCelebrityRecognition_nextToken,
getCelebrityRecognition_sortBy,
getCelebrityRecognition_jobId,
GetCelebrityRecognitionResponse (..),
newGetCelebrityRecognitionResponse,
getCelebrityRecognitionResponse_celebrities,
getCelebrityRecognitionResponse_jobStatus,
getCelebrityRecognitionResponse_nextToken,
getCelebrityRecognitionResponse_statusMessage,
getCelebrityRecognitionResponse_videoMetadata,
getCelebrityRecognitionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Rekognition.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetCelebrityRecognition = GetCelebrityRecognition'
{
GetCelebrityRecognition -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetCelebrityRecognition -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetCelebrityRecognition -> Maybe CelebrityRecognitionSortBy
sortBy :: Prelude.Maybe CelebrityRecognitionSortBy,
GetCelebrityRecognition -> Text
jobId :: Prelude.Text
}
deriving (GetCelebrityRecognition -> GetCelebrityRecognition -> Bool
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]
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
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. 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'
{ $sel:maxResults:GetCelebrityRecognition' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetCelebrityRecognition' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:GetCelebrityRecognition' :: Maybe CelebrityRecognitionSortBy
sortBy = forall a. Maybe a
Prelude.Nothing,
$sel:jobId:GetCelebrityRecognition' :: Text
jobId = Text
pJobId_
}
getCelebrityRecognition_maxResults :: Lens.Lens' GetCelebrityRecognition (Prelude.Maybe Prelude.Natural)
getCelebrityRecognition_maxResults :: Lens' GetCelebrityRecognition (Maybe Natural)
getCelebrityRecognition_maxResults = 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_nextToken :: Lens.Lens' GetCelebrityRecognition (Prelude.Maybe Prelude.Text)
getCelebrityRecognition_nextToken :: Lens' GetCelebrityRecognition (Maybe Text)
getCelebrityRecognition_nextToken = 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_sortBy :: Lens.Lens' GetCelebrityRecognition (Prelude.Maybe CelebrityRecognitionSortBy)
getCelebrityRecognition_sortBy :: Lens' GetCelebrityRecognition (Maybe CelebrityRecognitionSortBy)
getCelebrityRecognition_sortBy = 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 :: Lens' GetCelebrityRecognition Text
getCelebrityRecognition_jobId = 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 :: (Service -> Service)
-> GetCelebrityRecognition -> Request GetCelebrityRecognition
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetCelebrityRecognition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetCelebrityRecognition)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [CelebrityRecognition]
-> Maybe VideoJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe VideoMetadata
-> Int
-> GetCelebrityRecognitionResponse
GetCelebrityRecognitionResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Celebrities" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"JobStatus")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"StatusMessage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"VideoMetadata")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetCelebrityRecognition where
hashWithSalt :: Int -> GetCelebrityRecognition -> Int
hashWithSalt Int
_salt GetCelebrityRecognition' {Maybe Natural
Maybe Text
Maybe CelebrityRecognitionSortBy
Text
jobId :: Text
sortBy :: Maybe CelebrityRecognitionSortBy
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:jobId:GetCelebrityRecognition' :: GetCelebrityRecognition -> Text
$sel:sortBy:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe CelebrityRecognitionSortBy
$sel:nextToken:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe Text
$sel:maxResults:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CelebrityRecognitionSortBy
sortBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
jobId
instance Prelude.NFData GetCelebrityRecognition where
rnf :: GetCelebrityRecognition -> ()
rnf GetCelebrityRecognition' {Maybe Natural
Maybe Text
Maybe CelebrityRecognitionSortBy
Text
jobId :: Text
sortBy :: Maybe CelebrityRecognitionSortBy
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:jobId:GetCelebrityRecognition' :: GetCelebrityRecognition -> Text
$sel:sortBy:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe CelebrityRecognitionSortBy
$sel:nextToken:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe Text
$sel:maxResults:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CelebrityRecognitionSortBy
sortBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
jobId
instance Data.ToHeaders GetCelebrityRecognition where
toHeaders :: GetCelebrityRecognition -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"RekognitionService.GetCelebrityRecognition" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON GetCelebrityRecognition where
toJSON :: GetCelebrityRecognition -> Value
toJSON GetCelebrityRecognition' {Maybe Natural
Maybe Text
Maybe CelebrityRecognitionSortBy
Text
jobId :: Text
sortBy :: Maybe CelebrityRecognitionSortBy
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:jobId:GetCelebrityRecognition' :: GetCelebrityRecognition -> Text
$sel:sortBy:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe CelebrityRecognitionSortBy
$sel:nextToken:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe Text
$sel:maxResults:GetCelebrityRecognition' :: GetCelebrityRecognition -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Key
"SortBy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CelebrityRecognitionSortBy
sortBy,
forall a. a -> Maybe a
Prelude.Just (Key
"JobId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
jobId)
]
)
instance Data.ToPath GetCelebrityRecognition where
toPath :: GetCelebrityRecognition -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery GetCelebrityRecognition where
toQuery :: GetCelebrityRecognition -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data GetCelebrityRecognitionResponse = GetCelebrityRecognitionResponse'
{
GetCelebrityRecognitionResponse -> Maybe [CelebrityRecognition]
celebrities :: Prelude.Maybe [CelebrityRecognition],
GetCelebrityRecognitionResponse -> Maybe VideoJobStatus
jobStatus :: Prelude.Maybe VideoJobStatus,
GetCelebrityRecognitionResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetCelebrityRecognitionResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
GetCelebrityRecognitionResponse -> Maybe VideoMetadata
videoMetadata :: Prelude.Maybe VideoMetadata,
GetCelebrityRecognitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetCelebrityRecognitionResponse
-> GetCelebrityRecognitionResponse -> Bool
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]
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
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.
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'
{ $sel:celebrities:GetCelebrityRecognitionResponse' :: Maybe [CelebrityRecognition]
celebrities =
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:GetCelebrityRecognitionResponse' :: Maybe VideoJobStatus
jobStatus = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetCelebrityRecognitionResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:GetCelebrityRecognitionResponse' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing,
$sel:videoMetadata:GetCelebrityRecognitionResponse' :: Maybe VideoMetadata
videoMetadata = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetCelebrityRecognitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getCelebrityRecognitionResponse_celebrities :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe [CelebrityRecognition])
getCelebrityRecognitionResponse_celebrities :: Lens'
GetCelebrityRecognitionResponse (Maybe [CelebrityRecognition])
getCelebrityRecognitionResponse_celebrities = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getCelebrityRecognitionResponse_jobStatus :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe VideoJobStatus)
getCelebrityRecognitionResponse_jobStatus :: Lens' GetCelebrityRecognitionResponse (Maybe VideoJobStatus)
getCelebrityRecognitionResponse_jobStatus = 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_nextToken :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe Prelude.Text)
getCelebrityRecognitionResponse_nextToken :: Lens' GetCelebrityRecognitionResponse (Maybe Text)
getCelebrityRecognitionResponse_nextToken = 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_statusMessage :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe Prelude.Text)
getCelebrityRecognitionResponse_statusMessage :: Lens' GetCelebrityRecognitionResponse (Maybe Text)
getCelebrityRecognitionResponse_statusMessage = 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_videoMetadata :: Lens.Lens' GetCelebrityRecognitionResponse (Prelude.Maybe VideoMetadata)
getCelebrityRecognitionResponse_videoMetadata :: Lens' GetCelebrityRecognitionResponse (Maybe VideoMetadata)
getCelebrityRecognitionResponse_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_httpStatus :: Lens.Lens' GetCelebrityRecognitionResponse Prelude.Int
getCelebrityRecognitionResponse_httpStatus :: Lens' GetCelebrityRecognitionResponse Int
getCelebrityRecognitionResponse_httpStatus = 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
where
rnf :: GetCelebrityRecognitionResponse -> ()
rnf GetCelebrityRecognitionResponse' {Int
Maybe [CelebrityRecognition]
Maybe Text
Maybe VideoJobStatus
Maybe VideoMetadata
httpStatus :: Int
videoMetadata :: Maybe VideoMetadata
statusMessage :: Maybe Text
nextToken :: Maybe Text
jobStatus :: Maybe VideoJobStatus
celebrities :: Maybe [CelebrityRecognition]
$sel:httpStatus:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Int
$sel:videoMetadata:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe VideoMetadata
$sel:statusMessage:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe Text
$sel:nextToken:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe Text
$sel:jobStatus:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe VideoJobStatus
$sel:celebrities:GetCelebrityRecognitionResponse' :: GetCelebrityRecognitionResponse -> Maybe [CelebrityRecognition]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [CelebrityRecognition]
celebrities
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VideoJobStatus
jobStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VideoMetadata
videoMetadata
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus