{-# 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.GetLabelDetection
(
GetLabelDetection (..),
newGetLabelDetection,
getLabelDetection_nextToken,
getLabelDetection_maxResults,
getLabelDetection_sortBy,
getLabelDetection_jobId,
GetLabelDetectionResponse (..),
newGetLabelDetectionResponse,
getLabelDetectionResponse_nextToken,
getLabelDetectionResponse_videoMetadata,
getLabelDetectionResponse_statusMessage,
getLabelDetectionResponse_labels,
getLabelDetectionResponse_jobStatus,
getLabelDetectionResponse_labelModelVersion,
getLabelDetectionResponse_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 GetLabelDetection = GetLabelDetection'
{
GetLabelDetection -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetLabelDetection -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetLabelDetection -> Maybe LabelDetectionSortBy
sortBy :: Prelude.Maybe LabelDetectionSortBy,
GetLabelDetection -> Text
jobId :: Prelude.Text
}
deriving (GetLabelDetection -> GetLabelDetection -> Bool
(GetLabelDetection -> GetLabelDetection -> Bool)
-> (GetLabelDetection -> GetLabelDetection -> Bool)
-> Eq GetLabelDetection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetLabelDetection -> GetLabelDetection -> Bool
$c/= :: GetLabelDetection -> GetLabelDetection -> Bool
== :: GetLabelDetection -> GetLabelDetection -> Bool
$c== :: GetLabelDetection -> GetLabelDetection -> Bool
Prelude.Eq, ReadPrec [GetLabelDetection]
ReadPrec GetLabelDetection
Int -> ReadS GetLabelDetection
ReadS [GetLabelDetection]
(Int -> ReadS GetLabelDetection)
-> ReadS [GetLabelDetection]
-> ReadPrec GetLabelDetection
-> ReadPrec [GetLabelDetection]
-> Read GetLabelDetection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetLabelDetection]
$creadListPrec :: ReadPrec [GetLabelDetection]
readPrec :: ReadPrec GetLabelDetection
$creadPrec :: ReadPrec GetLabelDetection
readList :: ReadS [GetLabelDetection]
$creadList :: ReadS [GetLabelDetection]
readsPrec :: Int -> ReadS GetLabelDetection
$creadsPrec :: Int -> ReadS GetLabelDetection
Prelude.Read, Int -> GetLabelDetection -> ShowS
[GetLabelDetection] -> ShowS
GetLabelDetection -> String
(Int -> GetLabelDetection -> ShowS)
-> (GetLabelDetection -> String)
-> ([GetLabelDetection] -> ShowS)
-> Show GetLabelDetection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetLabelDetection] -> ShowS
$cshowList :: [GetLabelDetection] -> ShowS
show :: GetLabelDetection -> String
$cshow :: GetLabelDetection -> String
showsPrec :: Int -> GetLabelDetection -> ShowS
$cshowsPrec :: Int -> GetLabelDetection -> ShowS
Prelude.Show, (forall x. GetLabelDetection -> Rep GetLabelDetection x)
-> (forall x. Rep GetLabelDetection x -> GetLabelDetection)
-> Generic GetLabelDetection
forall x. Rep GetLabelDetection x -> GetLabelDetection
forall x. GetLabelDetection -> Rep GetLabelDetection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetLabelDetection x -> GetLabelDetection
$cfrom :: forall x. GetLabelDetection -> Rep GetLabelDetection x
Prelude.Generic)
newGetLabelDetection ::
Prelude.Text ->
GetLabelDetection
newGetLabelDetection :: Text -> GetLabelDetection
newGetLabelDetection Text
pJobId_ =
GetLabelDetection' :: Maybe Text
-> Maybe Natural
-> Maybe LabelDetectionSortBy
-> Text
-> GetLabelDetection
GetLabelDetection'
{ $sel:nextToken:GetLabelDetection' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetLabelDetection' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:GetLabelDetection' :: Maybe LabelDetectionSortBy
sortBy = Maybe LabelDetectionSortBy
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:GetLabelDetection' :: Text
jobId = Text
pJobId_
}
getLabelDetection_nextToken :: Lens.Lens' GetLabelDetection (Prelude.Maybe Prelude.Text)
getLabelDetection_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetLabelDetection -> f GetLabelDetection
getLabelDetection_nextToken = (GetLabelDetection -> Maybe Text)
-> (GetLabelDetection -> Maybe Text -> GetLabelDetection)
-> Lens
GetLabelDetection GetLabelDetection (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetection' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetLabelDetection' :: GetLabelDetection -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetLabelDetection
s@GetLabelDetection' {} Maybe Text
a -> GetLabelDetection
s {$sel:nextToken:GetLabelDetection' :: Maybe Text
nextToken = Maybe Text
a} :: GetLabelDetection)
getLabelDetection_maxResults :: Lens.Lens' GetLabelDetection (Prelude.Maybe Prelude.Natural)
getLabelDetection_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetLabelDetection -> f GetLabelDetection
getLabelDetection_maxResults = (GetLabelDetection -> Maybe Natural)
-> (GetLabelDetection -> Maybe Natural -> GetLabelDetection)
-> Lens
GetLabelDetection GetLabelDetection (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetection' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetLabelDetection' :: GetLabelDetection -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetLabelDetection
s@GetLabelDetection' {} Maybe Natural
a -> GetLabelDetection
s {$sel:maxResults:GetLabelDetection' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetLabelDetection)
getLabelDetection_sortBy :: Lens.Lens' GetLabelDetection (Prelude.Maybe LabelDetectionSortBy)
getLabelDetection_sortBy :: (Maybe LabelDetectionSortBy -> f (Maybe LabelDetectionSortBy))
-> GetLabelDetection -> f GetLabelDetection
getLabelDetection_sortBy = (GetLabelDetection -> Maybe LabelDetectionSortBy)
-> (GetLabelDetection
-> Maybe LabelDetectionSortBy -> GetLabelDetection)
-> Lens
GetLabelDetection
GetLabelDetection
(Maybe LabelDetectionSortBy)
(Maybe LabelDetectionSortBy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetection' {Maybe LabelDetectionSortBy
sortBy :: Maybe LabelDetectionSortBy
$sel:sortBy:GetLabelDetection' :: GetLabelDetection -> Maybe LabelDetectionSortBy
sortBy} -> Maybe LabelDetectionSortBy
sortBy) (\s :: GetLabelDetection
s@GetLabelDetection' {} Maybe LabelDetectionSortBy
a -> GetLabelDetection
s {$sel:sortBy:GetLabelDetection' :: Maybe LabelDetectionSortBy
sortBy = Maybe LabelDetectionSortBy
a} :: GetLabelDetection)
getLabelDetection_jobId :: Lens.Lens' GetLabelDetection Prelude.Text
getLabelDetection_jobId :: (Text -> f Text) -> GetLabelDetection -> f GetLabelDetection
getLabelDetection_jobId = (GetLabelDetection -> Text)
-> (GetLabelDetection -> Text -> GetLabelDetection)
-> Lens GetLabelDetection GetLabelDetection Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetection' {Text
jobId :: Text
$sel:jobId:GetLabelDetection' :: GetLabelDetection -> Text
jobId} -> Text
jobId) (\s :: GetLabelDetection
s@GetLabelDetection' {} Text
a -> GetLabelDetection
s {$sel:jobId:GetLabelDetection' :: Text
jobId = Text
a} :: GetLabelDetection)
instance Core.AWSRequest GetLabelDetection where
type
AWSResponse GetLabelDetection =
GetLabelDetectionResponse
request :: GetLabelDetection -> Request GetLabelDetection
request = Service -> GetLabelDetection -> Request GetLabelDetection
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetLabelDetection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetLabelDetection)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetLabelDetection))
-> Logger
-> Service
-> Proxy GetLabelDetection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetLabelDetection)))
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 [LabelDetection]
-> Maybe VideoJobStatus
-> Maybe Text
-> Int
-> GetLabelDetectionResponse
GetLabelDetectionResponse'
(Maybe Text
-> Maybe VideoMetadata
-> Maybe Text
-> Maybe [LabelDetection]
-> Maybe VideoJobStatus
-> Maybe Text
-> Int
-> GetLabelDetectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe VideoMetadata
-> Maybe Text
-> Maybe [LabelDetection]
-> Maybe VideoJobStatus
-> Maybe Text
-> Int
-> GetLabelDetectionResponse)
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 [LabelDetection]
-> Maybe VideoJobStatus
-> Maybe Text
-> Int
-> GetLabelDetectionResponse)
-> Either String (Maybe VideoMetadata)
-> Either
String
(Maybe Text
-> Maybe [LabelDetection]
-> Maybe VideoJobStatus
-> Maybe Text
-> Int
-> GetLabelDetectionResponse)
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 [LabelDetection]
-> Maybe VideoJobStatus
-> Maybe Text
-> Int
-> GetLabelDetectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [LabelDetection]
-> Maybe VideoJobStatus
-> Maybe Text
-> Int
-> GetLabelDetectionResponse)
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 [LabelDetection]
-> Maybe VideoJobStatus
-> Maybe Text
-> Int
-> GetLabelDetectionResponse)
-> Either String (Maybe [LabelDetection])
-> Either
String
(Maybe VideoJobStatus
-> Maybe Text -> Int -> GetLabelDetectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [LabelDetection]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Labels" Either String (Maybe (Maybe [LabelDetection]))
-> Maybe [LabelDetection] -> Either String (Maybe [LabelDetection])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LabelDetection]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe VideoJobStatus
-> Maybe Text -> Int -> GetLabelDetectionResponse)
-> Either String (Maybe VideoJobStatus)
-> Either String (Maybe Text -> Int -> GetLabelDetectionResponse)
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 Text -> Int -> GetLabelDetectionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetLabelDetectionResponse)
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
"LabelModelVersion")
Either String (Int -> GetLabelDetectionResponse)
-> Either String Int -> Either String GetLabelDetectionResponse
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 GetLabelDetection
instance Prelude.NFData GetLabelDetection
instance Core.ToHeaders GetLabelDetection where
toHeaders :: GetLabelDetection -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetLabelDetection -> 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.GetLabelDetection" ::
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 GetLabelDetection where
toJSON :: GetLabelDetection -> Value
toJSON GetLabelDetection' {Maybe Natural
Maybe Text
Maybe LabelDetectionSortBy
Text
jobId :: Text
sortBy :: Maybe LabelDetectionSortBy
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:jobId:GetLabelDetection' :: GetLabelDetection -> Text
$sel:sortBy:GetLabelDetection' :: GetLabelDetection -> Maybe LabelDetectionSortBy
$sel:maxResults:GetLabelDetection' :: GetLabelDetection -> Maybe Natural
$sel:nextToken:GetLabelDetection' :: GetLabelDetection -> 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 -> LabelDetectionSortBy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (LabelDetectionSortBy -> Pair)
-> Maybe LabelDetectionSortBy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LabelDetectionSortBy
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 GetLabelDetection where
toPath :: GetLabelDetection -> ByteString
toPath = ByteString -> GetLabelDetection -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetLabelDetection where
toQuery :: GetLabelDetection -> QueryString
toQuery = QueryString -> GetLabelDetection -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetLabelDetectionResponse = GetLabelDetectionResponse'
{
GetLabelDetectionResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetLabelDetectionResponse -> Maybe VideoMetadata
videoMetadata :: Prelude.Maybe VideoMetadata,
GetLabelDetectionResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
GetLabelDetectionResponse -> Maybe [LabelDetection]
labels :: Prelude.Maybe [LabelDetection],
GetLabelDetectionResponse -> Maybe VideoJobStatus
jobStatus :: Prelude.Maybe VideoJobStatus,
GetLabelDetectionResponse -> Maybe Text
labelModelVersion :: Prelude.Maybe Prelude.Text,
GetLabelDetectionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetLabelDetectionResponse -> GetLabelDetectionResponse -> Bool
(GetLabelDetectionResponse -> GetLabelDetectionResponse -> Bool)
-> (GetLabelDetectionResponse -> GetLabelDetectionResponse -> Bool)
-> Eq GetLabelDetectionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetLabelDetectionResponse -> GetLabelDetectionResponse -> Bool
$c/= :: GetLabelDetectionResponse -> GetLabelDetectionResponse -> Bool
== :: GetLabelDetectionResponse -> GetLabelDetectionResponse -> Bool
$c== :: GetLabelDetectionResponse -> GetLabelDetectionResponse -> Bool
Prelude.Eq, ReadPrec [GetLabelDetectionResponse]
ReadPrec GetLabelDetectionResponse
Int -> ReadS GetLabelDetectionResponse
ReadS [GetLabelDetectionResponse]
(Int -> ReadS GetLabelDetectionResponse)
-> ReadS [GetLabelDetectionResponse]
-> ReadPrec GetLabelDetectionResponse
-> ReadPrec [GetLabelDetectionResponse]
-> Read GetLabelDetectionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetLabelDetectionResponse]
$creadListPrec :: ReadPrec [GetLabelDetectionResponse]
readPrec :: ReadPrec GetLabelDetectionResponse
$creadPrec :: ReadPrec GetLabelDetectionResponse
readList :: ReadS [GetLabelDetectionResponse]
$creadList :: ReadS [GetLabelDetectionResponse]
readsPrec :: Int -> ReadS GetLabelDetectionResponse
$creadsPrec :: Int -> ReadS GetLabelDetectionResponse
Prelude.Read, Int -> GetLabelDetectionResponse -> ShowS
[GetLabelDetectionResponse] -> ShowS
GetLabelDetectionResponse -> String
(Int -> GetLabelDetectionResponse -> ShowS)
-> (GetLabelDetectionResponse -> String)
-> ([GetLabelDetectionResponse] -> ShowS)
-> Show GetLabelDetectionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetLabelDetectionResponse] -> ShowS
$cshowList :: [GetLabelDetectionResponse] -> ShowS
show :: GetLabelDetectionResponse -> String
$cshow :: GetLabelDetectionResponse -> String
showsPrec :: Int -> GetLabelDetectionResponse -> ShowS
$cshowsPrec :: Int -> GetLabelDetectionResponse -> ShowS
Prelude.Show, (forall x.
GetLabelDetectionResponse -> Rep GetLabelDetectionResponse x)
-> (forall x.
Rep GetLabelDetectionResponse x -> GetLabelDetectionResponse)
-> Generic GetLabelDetectionResponse
forall x.
Rep GetLabelDetectionResponse x -> GetLabelDetectionResponse
forall x.
GetLabelDetectionResponse -> Rep GetLabelDetectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetLabelDetectionResponse x -> GetLabelDetectionResponse
$cfrom :: forall x.
GetLabelDetectionResponse -> Rep GetLabelDetectionResponse x
Prelude.Generic)
newGetLabelDetectionResponse ::
Prelude.Int ->
GetLabelDetectionResponse
newGetLabelDetectionResponse :: Int -> GetLabelDetectionResponse
newGetLabelDetectionResponse Int
pHttpStatus_ =
GetLabelDetectionResponse' :: Maybe Text
-> Maybe VideoMetadata
-> Maybe Text
-> Maybe [LabelDetection]
-> Maybe VideoJobStatus
-> Maybe Text
-> Int
-> GetLabelDetectionResponse
GetLabelDetectionResponse'
{ $sel:nextToken:GetLabelDetectionResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:videoMetadata:GetLabelDetectionResponse' :: Maybe VideoMetadata
videoMetadata = Maybe VideoMetadata
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:GetLabelDetectionResponse' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:labels:GetLabelDetectionResponse' :: Maybe [LabelDetection]
labels = Maybe [LabelDetection]
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:GetLabelDetectionResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:labelModelVersion:GetLabelDetectionResponse' :: Maybe Text
labelModelVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetLabelDetectionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getLabelDetectionResponse_nextToken :: Lens.Lens' GetLabelDetectionResponse (Prelude.Maybe Prelude.Text)
getLabelDetectionResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetLabelDetectionResponse -> f GetLabelDetectionResponse
getLabelDetectionResponse_nextToken = (GetLabelDetectionResponse -> Maybe Text)
-> (GetLabelDetectionResponse
-> Maybe Text -> GetLabelDetectionResponse)
-> Lens
GetLabelDetectionResponse
GetLabelDetectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetectionResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetLabelDetectionResponse' :: GetLabelDetectionResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetLabelDetectionResponse
s@GetLabelDetectionResponse' {} Maybe Text
a -> GetLabelDetectionResponse
s {$sel:nextToken:GetLabelDetectionResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetLabelDetectionResponse)
getLabelDetectionResponse_videoMetadata :: Lens.Lens' GetLabelDetectionResponse (Prelude.Maybe VideoMetadata)
getLabelDetectionResponse_videoMetadata :: (Maybe VideoMetadata -> f (Maybe VideoMetadata))
-> GetLabelDetectionResponse -> f GetLabelDetectionResponse
getLabelDetectionResponse_videoMetadata = (GetLabelDetectionResponse -> Maybe VideoMetadata)
-> (GetLabelDetectionResponse
-> Maybe VideoMetadata -> GetLabelDetectionResponse)
-> Lens
GetLabelDetectionResponse
GetLabelDetectionResponse
(Maybe VideoMetadata)
(Maybe VideoMetadata)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetectionResponse' {Maybe VideoMetadata
videoMetadata :: Maybe VideoMetadata
$sel:videoMetadata:GetLabelDetectionResponse' :: GetLabelDetectionResponse -> Maybe VideoMetadata
videoMetadata} -> Maybe VideoMetadata
videoMetadata) (\s :: GetLabelDetectionResponse
s@GetLabelDetectionResponse' {} Maybe VideoMetadata
a -> GetLabelDetectionResponse
s {$sel:videoMetadata:GetLabelDetectionResponse' :: Maybe VideoMetadata
videoMetadata = Maybe VideoMetadata
a} :: GetLabelDetectionResponse)
getLabelDetectionResponse_statusMessage :: Lens.Lens' GetLabelDetectionResponse (Prelude.Maybe Prelude.Text)
getLabelDetectionResponse_statusMessage :: (Maybe Text -> f (Maybe Text))
-> GetLabelDetectionResponse -> f GetLabelDetectionResponse
getLabelDetectionResponse_statusMessage = (GetLabelDetectionResponse -> Maybe Text)
-> (GetLabelDetectionResponse
-> Maybe Text -> GetLabelDetectionResponse)
-> Lens
GetLabelDetectionResponse
GetLabelDetectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetectionResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:GetLabelDetectionResponse' :: GetLabelDetectionResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: GetLabelDetectionResponse
s@GetLabelDetectionResponse' {} Maybe Text
a -> GetLabelDetectionResponse
s {$sel:statusMessage:GetLabelDetectionResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: GetLabelDetectionResponse)
getLabelDetectionResponse_labels :: Lens.Lens' GetLabelDetectionResponse (Prelude.Maybe [LabelDetection])
getLabelDetectionResponse_labels :: (Maybe [LabelDetection] -> f (Maybe [LabelDetection]))
-> GetLabelDetectionResponse -> f GetLabelDetectionResponse
getLabelDetectionResponse_labels = (GetLabelDetectionResponse -> Maybe [LabelDetection])
-> (GetLabelDetectionResponse
-> Maybe [LabelDetection] -> GetLabelDetectionResponse)
-> Lens
GetLabelDetectionResponse
GetLabelDetectionResponse
(Maybe [LabelDetection])
(Maybe [LabelDetection])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetectionResponse' {Maybe [LabelDetection]
labels :: Maybe [LabelDetection]
$sel:labels:GetLabelDetectionResponse' :: GetLabelDetectionResponse -> Maybe [LabelDetection]
labels} -> Maybe [LabelDetection]
labels) (\s :: GetLabelDetectionResponse
s@GetLabelDetectionResponse' {} Maybe [LabelDetection]
a -> GetLabelDetectionResponse
s {$sel:labels:GetLabelDetectionResponse' :: Maybe [LabelDetection]
labels = Maybe [LabelDetection]
a} :: GetLabelDetectionResponse) ((Maybe [LabelDetection] -> f (Maybe [LabelDetection]))
-> GetLabelDetectionResponse -> f GetLabelDetectionResponse)
-> ((Maybe [LabelDetection] -> f (Maybe [LabelDetection]))
-> Maybe [LabelDetection] -> f (Maybe [LabelDetection]))
-> (Maybe [LabelDetection] -> f (Maybe [LabelDetection]))
-> GetLabelDetectionResponse
-> f GetLabelDetectionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[LabelDetection] [LabelDetection] [LabelDetection] [LabelDetection]
-> Iso
(Maybe [LabelDetection])
(Maybe [LabelDetection])
(Maybe [LabelDetection])
(Maybe [LabelDetection])
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
[LabelDetection] [LabelDetection] [LabelDetection] [LabelDetection]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getLabelDetectionResponse_jobStatus :: Lens.Lens' GetLabelDetectionResponse (Prelude.Maybe VideoJobStatus)
getLabelDetectionResponse_jobStatus :: (Maybe VideoJobStatus -> f (Maybe VideoJobStatus))
-> GetLabelDetectionResponse -> f GetLabelDetectionResponse
getLabelDetectionResponse_jobStatus = (GetLabelDetectionResponse -> Maybe VideoJobStatus)
-> (GetLabelDetectionResponse
-> Maybe VideoJobStatus -> GetLabelDetectionResponse)
-> Lens
GetLabelDetectionResponse
GetLabelDetectionResponse
(Maybe VideoJobStatus)
(Maybe VideoJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetectionResponse' {Maybe VideoJobStatus
jobStatus :: Maybe VideoJobStatus
$sel:jobStatus:GetLabelDetectionResponse' :: GetLabelDetectionResponse -> Maybe VideoJobStatus
jobStatus} -> Maybe VideoJobStatus
jobStatus) (\s :: GetLabelDetectionResponse
s@GetLabelDetectionResponse' {} Maybe VideoJobStatus
a -> GetLabelDetectionResponse
s {$sel:jobStatus:GetLabelDetectionResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
a} :: GetLabelDetectionResponse)
getLabelDetectionResponse_labelModelVersion :: Lens.Lens' GetLabelDetectionResponse (Prelude.Maybe Prelude.Text)
getLabelDetectionResponse_labelModelVersion :: (Maybe Text -> f (Maybe Text))
-> GetLabelDetectionResponse -> f GetLabelDetectionResponse
getLabelDetectionResponse_labelModelVersion = (GetLabelDetectionResponse -> Maybe Text)
-> (GetLabelDetectionResponse
-> Maybe Text -> GetLabelDetectionResponse)
-> Lens
GetLabelDetectionResponse
GetLabelDetectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetectionResponse' {Maybe Text
labelModelVersion :: Maybe Text
$sel:labelModelVersion:GetLabelDetectionResponse' :: GetLabelDetectionResponse -> Maybe Text
labelModelVersion} -> Maybe Text
labelModelVersion) (\s :: GetLabelDetectionResponse
s@GetLabelDetectionResponse' {} Maybe Text
a -> GetLabelDetectionResponse
s {$sel:labelModelVersion:GetLabelDetectionResponse' :: Maybe Text
labelModelVersion = Maybe Text
a} :: GetLabelDetectionResponse)
getLabelDetectionResponse_httpStatus :: Lens.Lens' GetLabelDetectionResponse Prelude.Int
getLabelDetectionResponse_httpStatus :: (Int -> f Int)
-> GetLabelDetectionResponse -> f GetLabelDetectionResponse
getLabelDetectionResponse_httpStatus = (GetLabelDetectionResponse -> Int)
-> (GetLabelDetectionResponse -> Int -> GetLabelDetectionResponse)
-> Lens GetLabelDetectionResponse GetLabelDetectionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLabelDetectionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetLabelDetectionResponse' :: GetLabelDetectionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetLabelDetectionResponse
s@GetLabelDetectionResponse' {} Int
a -> GetLabelDetectionResponse
s {$sel:httpStatus:GetLabelDetectionResponse' :: Int
httpStatus = Int
a} :: GetLabelDetectionResponse)
instance Prelude.NFData GetLabelDetectionResponse