{-# 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.GetSegmentDetection
(
GetSegmentDetection (..),
newGetSegmentDetection,
getSegmentDetection_maxResults,
getSegmentDetection_nextToken,
getSegmentDetection_jobId,
GetSegmentDetectionResponse (..),
newGetSegmentDetectionResponse,
getSegmentDetectionResponse_audioMetadata,
getSegmentDetectionResponse_jobStatus,
getSegmentDetectionResponse_nextToken,
getSegmentDetectionResponse_segments,
getSegmentDetectionResponse_selectedSegmentTypes,
getSegmentDetectionResponse_statusMessage,
getSegmentDetectionResponse_videoMetadata,
getSegmentDetectionResponse_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 GetSegmentDetection = GetSegmentDetection'
{
GetSegmentDetection -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetSegmentDetection -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetSegmentDetection -> Text
jobId :: Prelude.Text
}
deriving (GetSegmentDetection -> GetSegmentDetection -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSegmentDetection -> GetSegmentDetection -> Bool
$c/= :: GetSegmentDetection -> GetSegmentDetection -> Bool
== :: GetSegmentDetection -> GetSegmentDetection -> Bool
$c== :: GetSegmentDetection -> GetSegmentDetection -> Bool
Prelude.Eq, ReadPrec [GetSegmentDetection]
ReadPrec GetSegmentDetection
Int -> ReadS GetSegmentDetection
ReadS [GetSegmentDetection]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSegmentDetection]
$creadListPrec :: ReadPrec [GetSegmentDetection]
readPrec :: ReadPrec GetSegmentDetection
$creadPrec :: ReadPrec GetSegmentDetection
readList :: ReadS [GetSegmentDetection]
$creadList :: ReadS [GetSegmentDetection]
readsPrec :: Int -> ReadS GetSegmentDetection
$creadsPrec :: Int -> ReadS GetSegmentDetection
Prelude.Read, Int -> GetSegmentDetection -> ShowS
[GetSegmentDetection] -> ShowS
GetSegmentDetection -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSegmentDetection] -> ShowS
$cshowList :: [GetSegmentDetection] -> ShowS
show :: GetSegmentDetection -> String
$cshow :: GetSegmentDetection -> String
showsPrec :: Int -> GetSegmentDetection -> ShowS
$cshowsPrec :: Int -> GetSegmentDetection -> ShowS
Prelude.Show, forall x. Rep GetSegmentDetection x -> GetSegmentDetection
forall x. GetSegmentDetection -> Rep GetSegmentDetection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetSegmentDetection x -> GetSegmentDetection
$cfrom :: forall x. GetSegmentDetection -> Rep GetSegmentDetection x
Prelude.Generic)
newGetSegmentDetection ::
Prelude.Text ->
GetSegmentDetection
newGetSegmentDetection :: Text -> GetSegmentDetection
newGetSegmentDetection Text
pJobId_ =
GetSegmentDetection'
{ $sel:maxResults:GetSegmentDetection' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetSegmentDetection' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:jobId:GetSegmentDetection' :: Text
jobId = Text
pJobId_
}
getSegmentDetection_maxResults :: Lens.Lens' GetSegmentDetection (Prelude.Maybe Prelude.Natural)
getSegmentDetection_maxResults :: Lens' GetSegmentDetection (Maybe Natural)
getSegmentDetection_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetection' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetSegmentDetection' :: GetSegmentDetection -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetSegmentDetection
s@GetSegmentDetection' {} Maybe Natural
a -> GetSegmentDetection
s {$sel:maxResults:GetSegmentDetection' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetSegmentDetection)
getSegmentDetection_nextToken :: Lens.Lens' GetSegmentDetection (Prelude.Maybe Prelude.Text)
getSegmentDetection_nextToken :: Lens' GetSegmentDetection (Maybe Text)
getSegmentDetection_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetection' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetSegmentDetection' :: GetSegmentDetection -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetSegmentDetection
s@GetSegmentDetection' {} Maybe Text
a -> GetSegmentDetection
s {$sel:nextToken:GetSegmentDetection' :: Maybe Text
nextToken = Maybe Text
a} :: GetSegmentDetection)
getSegmentDetection_jobId :: Lens.Lens' GetSegmentDetection Prelude.Text
getSegmentDetection_jobId :: Lens' GetSegmentDetection Text
getSegmentDetection_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetection' {Text
jobId :: Text
$sel:jobId:GetSegmentDetection' :: GetSegmentDetection -> Text
jobId} -> Text
jobId) (\s :: GetSegmentDetection
s@GetSegmentDetection' {} Text
a -> GetSegmentDetection
s {$sel:jobId:GetSegmentDetection' :: Text
jobId = Text
a} :: GetSegmentDetection)
instance Core.AWSRequest GetSegmentDetection where
type
AWSResponse GetSegmentDetection =
GetSegmentDetectionResponse
request :: (Service -> Service)
-> GetSegmentDetection -> Request GetSegmentDetection
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 GetSegmentDetection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetSegmentDetection)))
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 [AudioMetadata]
-> Maybe VideoJobStatus
-> Maybe Text
-> Maybe [SegmentDetection]
-> Maybe [SegmentTypeInfo]
-> Maybe Text
-> Maybe [VideoMetadata]
-> Int
-> GetSegmentDetectionResponse
GetSegmentDetectionResponse'
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
"AudioMetadata" 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
"Segments" 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
"SelectedSegmentTypes"
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
"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. 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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetSegmentDetection where
hashWithSalt :: Int -> GetSegmentDetection -> Int
hashWithSalt Int
_salt GetSegmentDetection' {Maybe Natural
Maybe Text
Text
jobId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:jobId:GetSegmentDetection' :: GetSegmentDetection -> Text
$sel:nextToken:GetSegmentDetection' :: GetSegmentDetection -> Maybe Text
$sel:maxResults:GetSegmentDetection' :: GetSegmentDetection -> 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` Text
jobId
instance Prelude.NFData GetSegmentDetection where
rnf :: GetSegmentDetection -> ()
rnf GetSegmentDetection' {Maybe Natural
Maybe Text
Text
jobId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:jobId:GetSegmentDetection' :: GetSegmentDetection -> Text
$sel:nextToken:GetSegmentDetection' :: GetSegmentDetection -> Maybe Text
$sel:maxResults:GetSegmentDetection' :: GetSegmentDetection -> 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 Text
jobId
instance Data.ToHeaders GetSegmentDetection where
toHeaders :: GetSegmentDetection -> 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.GetSegmentDetection" ::
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 GetSegmentDetection where
toJSON :: GetSegmentDetection -> Value
toJSON GetSegmentDetection' {Maybe Natural
Maybe Text
Text
jobId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:jobId:GetSegmentDetection' :: GetSegmentDetection -> Text
$sel:nextToken:GetSegmentDetection' :: GetSegmentDetection -> Maybe Text
$sel:maxResults:GetSegmentDetection' :: GetSegmentDetection -> 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,
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 GetSegmentDetection where
toPath :: GetSegmentDetection -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery GetSegmentDetection where
toQuery :: GetSegmentDetection -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data GetSegmentDetectionResponse = GetSegmentDetectionResponse'
{
GetSegmentDetectionResponse -> Maybe [AudioMetadata]
audioMetadata :: Prelude.Maybe [AudioMetadata],
GetSegmentDetectionResponse -> Maybe VideoJobStatus
jobStatus :: Prelude.Maybe VideoJobStatus,
GetSegmentDetectionResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetSegmentDetectionResponse -> Maybe [SegmentDetection]
segments :: Prelude.Maybe [SegmentDetection],
GetSegmentDetectionResponse -> Maybe [SegmentTypeInfo]
selectedSegmentTypes :: Prelude.Maybe [SegmentTypeInfo],
GetSegmentDetectionResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
GetSegmentDetectionResponse -> Maybe [VideoMetadata]
videoMetadata :: Prelude.Maybe [VideoMetadata],
GetSegmentDetectionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetSegmentDetectionResponse -> GetSegmentDetectionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSegmentDetectionResponse -> GetSegmentDetectionResponse -> Bool
$c/= :: GetSegmentDetectionResponse -> GetSegmentDetectionResponse -> Bool
== :: GetSegmentDetectionResponse -> GetSegmentDetectionResponse -> Bool
$c== :: GetSegmentDetectionResponse -> GetSegmentDetectionResponse -> Bool
Prelude.Eq, ReadPrec [GetSegmentDetectionResponse]
ReadPrec GetSegmentDetectionResponse
Int -> ReadS GetSegmentDetectionResponse
ReadS [GetSegmentDetectionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSegmentDetectionResponse]
$creadListPrec :: ReadPrec [GetSegmentDetectionResponse]
readPrec :: ReadPrec GetSegmentDetectionResponse
$creadPrec :: ReadPrec GetSegmentDetectionResponse
readList :: ReadS [GetSegmentDetectionResponse]
$creadList :: ReadS [GetSegmentDetectionResponse]
readsPrec :: Int -> ReadS GetSegmentDetectionResponse
$creadsPrec :: Int -> ReadS GetSegmentDetectionResponse
Prelude.Read, Int -> GetSegmentDetectionResponse -> ShowS
[GetSegmentDetectionResponse] -> ShowS
GetSegmentDetectionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSegmentDetectionResponse] -> ShowS
$cshowList :: [GetSegmentDetectionResponse] -> ShowS
show :: GetSegmentDetectionResponse -> String
$cshow :: GetSegmentDetectionResponse -> String
showsPrec :: Int -> GetSegmentDetectionResponse -> ShowS
$cshowsPrec :: Int -> GetSegmentDetectionResponse -> ShowS
Prelude.Show, forall x.
Rep GetSegmentDetectionResponse x -> GetSegmentDetectionResponse
forall x.
GetSegmentDetectionResponse -> Rep GetSegmentDetectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetSegmentDetectionResponse x -> GetSegmentDetectionResponse
$cfrom :: forall x.
GetSegmentDetectionResponse -> Rep GetSegmentDetectionResponse x
Prelude.Generic)
newGetSegmentDetectionResponse ::
Prelude.Int ->
GetSegmentDetectionResponse
newGetSegmentDetectionResponse :: Int -> GetSegmentDetectionResponse
newGetSegmentDetectionResponse Int
pHttpStatus_ =
GetSegmentDetectionResponse'
{ $sel:audioMetadata:GetSegmentDetectionResponse' :: Maybe [AudioMetadata]
audioMetadata =
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:GetSegmentDetectionResponse' :: Maybe VideoJobStatus
jobStatus = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetSegmentDetectionResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:segments:GetSegmentDetectionResponse' :: Maybe [SegmentDetection]
segments = forall a. Maybe a
Prelude.Nothing,
$sel:selectedSegmentTypes:GetSegmentDetectionResponse' :: Maybe [SegmentTypeInfo]
selectedSegmentTypes = forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:GetSegmentDetectionResponse' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing,
$sel:videoMetadata:GetSegmentDetectionResponse' :: Maybe [VideoMetadata]
videoMetadata = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetSegmentDetectionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getSegmentDetectionResponse_audioMetadata :: Lens.Lens' GetSegmentDetectionResponse (Prelude.Maybe [AudioMetadata])
getSegmentDetectionResponse_audioMetadata :: Lens' GetSegmentDetectionResponse (Maybe [AudioMetadata])
getSegmentDetectionResponse_audioMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetectionResponse' {Maybe [AudioMetadata]
audioMetadata :: Maybe [AudioMetadata]
$sel:audioMetadata:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe [AudioMetadata]
audioMetadata} -> Maybe [AudioMetadata]
audioMetadata) (\s :: GetSegmentDetectionResponse
s@GetSegmentDetectionResponse' {} Maybe [AudioMetadata]
a -> GetSegmentDetectionResponse
s {$sel:audioMetadata:GetSegmentDetectionResponse' :: Maybe [AudioMetadata]
audioMetadata = Maybe [AudioMetadata]
a} :: GetSegmentDetectionResponse) 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
getSegmentDetectionResponse_jobStatus :: Lens.Lens' GetSegmentDetectionResponse (Prelude.Maybe VideoJobStatus)
getSegmentDetectionResponse_jobStatus :: Lens' GetSegmentDetectionResponse (Maybe VideoJobStatus)
getSegmentDetectionResponse_jobStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetectionResponse' {Maybe VideoJobStatus
jobStatus :: Maybe VideoJobStatus
$sel:jobStatus:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe VideoJobStatus
jobStatus} -> Maybe VideoJobStatus
jobStatus) (\s :: GetSegmentDetectionResponse
s@GetSegmentDetectionResponse' {} Maybe VideoJobStatus
a -> GetSegmentDetectionResponse
s {$sel:jobStatus:GetSegmentDetectionResponse' :: Maybe VideoJobStatus
jobStatus = Maybe VideoJobStatus
a} :: GetSegmentDetectionResponse)
getSegmentDetectionResponse_nextToken :: Lens.Lens' GetSegmentDetectionResponse (Prelude.Maybe Prelude.Text)
getSegmentDetectionResponse_nextToken :: Lens' GetSegmentDetectionResponse (Maybe Text)
getSegmentDetectionResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetectionResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetSegmentDetectionResponse
s@GetSegmentDetectionResponse' {} Maybe Text
a -> GetSegmentDetectionResponse
s {$sel:nextToken:GetSegmentDetectionResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetSegmentDetectionResponse)
getSegmentDetectionResponse_segments :: Lens.Lens' GetSegmentDetectionResponse (Prelude.Maybe [SegmentDetection])
getSegmentDetectionResponse_segments :: Lens' GetSegmentDetectionResponse (Maybe [SegmentDetection])
getSegmentDetectionResponse_segments = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetectionResponse' {Maybe [SegmentDetection]
segments :: Maybe [SegmentDetection]
$sel:segments:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe [SegmentDetection]
segments} -> Maybe [SegmentDetection]
segments) (\s :: GetSegmentDetectionResponse
s@GetSegmentDetectionResponse' {} Maybe [SegmentDetection]
a -> GetSegmentDetectionResponse
s {$sel:segments:GetSegmentDetectionResponse' :: Maybe [SegmentDetection]
segments = Maybe [SegmentDetection]
a} :: GetSegmentDetectionResponse) 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
getSegmentDetectionResponse_selectedSegmentTypes :: Lens.Lens' GetSegmentDetectionResponse (Prelude.Maybe [SegmentTypeInfo])
getSegmentDetectionResponse_selectedSegmentTypes :: Lens' GetSegmentDetectionResponse (Maybe [SegmentTypeInfo])
getSegmentDetectionResponse_selectedSegmentTypes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetectionResponse' {Maybe [SegmentTypeInfo]
selectedSegmentTypes :: Maybe [SegmentTypeInfo]
$sel:selectedSegmentTypes:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe [SegmentTypeInfo]
selectedSegmentTypes} -> Maybe [SegmentTypeInfo]
selectedSegmentTypes) (\s :: GetSegmentDetectionResponse
s@GetSegmentDetectionResponse' {} Maybe [SegmentTypeInfo]
a -> GetSegmentDetectionResponse
s {$sel:selectedSegmentTypes:GetSegmentDetectionResponse' :: Maybe [SegmentTypeInfo]
selectedSegmentTypes = Maybe [SegmentTypeInfo]
a} :: GetSegmentDetectionResponse) 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
getSegmentDetectionResponse_statusMessage :: Lens.Lens' GetSegmentDetectionResponse (Prelude.Maybe Prelude.Text)
getSegmentDetectionResponse_statusMessage :: Lens' GetSegmentDetectionResponse (Maybe Text)
getSegmentDetectionResponse_statusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetectionResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: GetSegmentDetectionResponse
s@GetSegmentDetectionResponse' {} Maybe Text
a -> GetSegmentDetectionResponse
s {$sel:statusMessage:GetSegmentDetectionResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: GetSegmentDetectionResponse)
getSegmentDetectionResponse_videoMetadata :: Lens.Lens' GetSegmentDetectionResponse (Prelude.Maybe [VideoMetadata])
getSegmentDetectionResponse_videoMetadata :: Lens' GetSegmentDetectionResponse (Maybe [VideoMetadata])
getSegmentDetectionResponse_videoMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetectionResponse' {Maybe [VideoMetadata]
videoMetadata :: Maybe [VideoMetadata]
$sel:videoMetadata:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe [VideoMetadata]
videoMetadata} -> Maybe [VideoMetadata]
videoMetadata) (\s :: GetSegmentDetectionResponse
s@GetSegmentDetectionResponse' {} Maybe [VideoMetadata]
a -> GetSegmentDetectionResponse
s {$sel:videoMetadata:GetSegmentDetectionResponse' :: Maybe [VideoMetadata]
videoMetadata = Maybe [VideoMetadata]
a} :: GetSegmentDetectionResponse) 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
getSegmentDetectionResponse_httpStatus :: Lens.Lens' GetSegmentDetectionResponse Prelude.Int
getSegmentDetectionResponse_httpStatus :: Lens' GetSegmentDetectionResponse Int
getSegmentDetectionResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSegmentDetectionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetSegmentDetectionResponse
s@GetSegmentDetectionResponse' {} Int
a -> GetSegmentDetectionResponse
s {$sel:httpStatus:GetSegmentDetectionResponse' :: Int
httpStatus = Int
a} :: GetSegmentDetectionResponse)
instance Prelude.NFData GetSegmentDetectionResponse where
rnf :: GetSegmentDetectionResponse -> ()
rnf GetSegmentDetectionResponse' {Int
Maybe [AudioMetadata]
Maybe [SegmentTypeInfo]
Maybe [SegmentDetection]
Maybe [VideoMetadata]
Maybe Text
Maybe VideoJobStatus
httpStatus :: Int
videoMetadata :: Maybe [VideoMetadata]
statusMessage :: Maybe Text
selectedSegmentTypes :: Maybe [SegmentTypeInfo]
segments :: Maybe [SegmentDetection]
nextToken :: Maybe Text
jobStatus :: Maybe VideoJobStatus
audioMetadata :: Maybe [AudioMetadata]
$sel:httpStatus:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Int
$sel:videoMetadata:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe [VideoMetadata]
$sel:statusMessage:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe Text
$sel:selectedSegmentTypes:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe [SegmentTypeInfo]
$sel:segments:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe [SegmentDetection]
$sel:nextToken:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe Text
$sel:jobStatus:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe VideoJobStatus
$sel:audioMetadata:GetSegmentDetectionResponse' :: GetSegmentDetectionResponse -> Maybe [AudioMetadata]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AudioMetadata]
audioMetadata
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 [SegmentDetection]
segments
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [SegmentTypeInfo]
selectedSegmentTypes
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