{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Rekognition.Types.StartSegmentDetectionFilters where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Rekognition.Types.StartShotDetectionFilter
import Amazonka.Rekognition.Types.StartTechnicalCueDetectionFilter
data StartSegmentDetectionFilters = StartSegmentDetectionFilters'
{
StartSegmentDetectionFilters
-> Maybe StartTechnicalCueDetectionFilter
technicalCueFilter :: Prelude.Maybe StartTechnicalCueDetectionFilter,
StartSegmentDetectionFilters -> Maybe StartShotDetectionFilter
shotFilter :: Prelude.Maybe StartShotDetectionFilter
}
deriving (StartSegmentDetectionFilters
-> StartSegmentDetectionFilters -> Bool
(StartSegmentDetectionFilters
-> StartSegmentDetectionFilters -> Bool)
-> (StartSegmentDetectionFilters
-> StartSegmentDetectionFilters -> Bool)
-> Eq StartSegmentDetectionFilters
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartSegmentDetectionFilters
-> StartSegmentDetectionFilters -> Bool
$c/= :: StartSegmentDetectionFilters
-> StartSegmentDetectionFilters -> Bool
== :: StartSegmentDetectionFilters
-> StartSegmentDetectionFilters -> Bool
$c== :: StartSegmentDetectionFilters
-> StartSegmentDetectionFilters -> Bool
Prelude.Eq, ReadPrec [StartSegmentDetectionFilters]
ReadPrec StartSegmentDetectionFilters
Int -> ReadS StartSegmentDetectionFilters
ReadS [StartSegmentDetectionFilters]
(Int -> ReadS StartSegmentDetectionFilters)
-> ReadS [StartSegmentDetectionFilters]
-> ReadPrec StartSegmentDetectionFilters
-> ReadPrec [StartSegmentDetectionFilters]
-> Read StartSegmentDetectionFilters
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartSegmentDetectionFilters]
$creadListPrec :: ReadPrec [StartSegmentDetectionFilters]
readPrec :: ReadPrec StartSegmentDetectionFilters
$creadPrec :: ReadPrec StartSegmentDetectionFilters
readList :: ReadS [StartSegmentDetectionFilters]
$creadList :: ReadS [StartSegmentDetectionFilters]
readsPrec :: Int -> ReadS StartSegmentDetectionFilters
$creadsPrec :: Int -> ReadS StartSegmentDetectionFilters
Prelude.Read, Int -> StartSegmentDetectionFilters -> ShowS
[StartSegmentDetectionFilters] -> ShowS
StartSegmentDetectionFilters -> String
(Int -> StartSegmentDetectionFilters -> ShowS)
-> (StartSegmentDetectionFilters -> String)
-> ([StartSegmentDetectionFilters] -> ShowS)
-> Show StartSegmentDetectionFilters
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartSegmentDetectionFilters] -> ShowS
$cshowList :: [StartSegmentDetectionFilters] -> ShowS
show :: StartSegmentDetectionFilters -> String
$cshow :: StartSegmentDetectionFilters -> String
showsPrec :: Int -> StartSegmentDetectionFilters -> ShowS
$cshowsPrec :: Int -> StartSegmentDetectionFilters -> ShowS
Prelude.Show, (forall x.
StartSegmentDetectionFilters -> Rep StartSegmentDetectionFilters x)
-> (forall x.
Rep StartSegmentDetectionFilters x -> StartSegmentDetectionFilters)
-> Generic StartSegmentDetectionFilters
forall x.
Rep StartSegmentDetectionFilters x -> StartSegmentDetectionFilters
forall x.
StartSegmentDetectionFilters -> Rep StartSegmentDetectionFilters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartSegmentDetectionFilters x -> StartSegmentDetectionFilters
$cfrom :: forall x.
StartSegmentDetectionFilters -> Rep StartSegmentDetectionFilters x
Prelude.Generic)
newStartSegmentDetectionFilters ::
StartSegmentDetectionFilters
newStartSegmentDetectionFilters :: StartSegmentDetectionFilters
newStartSegmentDetectionFilters =
StartSegmentDetectionFilters' :: Maybe StartTechnicalCueDetectionFilter
-> Maybe StartShotDetectionFilter -> StartSegmentDetectionFilters
StartSegmentDetectionFilters'
{ $sel:technicalCueFilter:StartSegmentDetectionFilters' :: Maybe StartTechnicalCueDetectionFilter
technicalCueFilter =
Maybe StartTechnicalCueDetectionFilter
forall a. Maybe a
Prelude.Nothing,
$sel:shotFilter:StartSegmentDetectionFilters' :: Maybe StartShotDetectionFilter
shotFilter = Maybe StartShotDetectionFilter
forall a. Maybe a
Prelude.Nothing
}
startSegmentDetectionFilters_technicalCueFilter :: Lens.Lens' StartSegmentDetectionFilters (Prelude.Maybe StartTechnicalCueDetectionFilter)
startSegmentDetectionFilters_technicalCueFilter :: (Maybe StartTechnicalCueDetectionFilter
-> f (Maybe StartTechnicalCueDetectionFilter))
-> StartSegmentDetectionFilters -> f StartSegmentDetectionFilters
startSegmentDetectionFilters_technicalCueFilter = (StartSegmentDetectionFilters
-> Maybe StartTechnicalCueDetectionFilter)
-> (StartSegmentDetectionFilters
-> Maybe StartTechnicalCueDetectionFilter
-> StartSegmentDetectionFilters)
-> Lens
StartSegmentDetectionFilters
StartSegmentDetectionFilters
(Maybe StartTechnicalCueDetectionFilter)
(Maybe StartTechnicalCueDetectionFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSegmentDetectionFilters' {Maybe StartTechnicalCueDetectionFilter
technicalCueFilter :: Maybe StartTechnicalCueDetectionFilter
$sel:technicalCueFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters
-> Maybe StartTechnicalCueDetectionFilter
technicalCueFilter} -> Maybe StartTechnicalCueDetectionFilter
technicalCueFilter) (\s :: StartSegmentDetectionFilters
s@StartSegmentDetectionFilters' {} Maybe StartTechnicalCueDetectionFilter
a -> StartSegmentDetectionFilters
s {$sel:technicalCueFilter:StartSegmentDetectionFilters' :: Maybe StartTechnicalCueDetectionFilter
technicalCueFilter = Maybe StartTechnicalCueDetectionFilter
a} :: StartSegmentDetectionFilters)
startSegmentDetectionFilters_shotFilter :: Lens.Lens' StartSegmentDetectionFilters (Prelude.Maybe StartShotDetectionFilter)
startSegmentDetectionFilters_shotFilter :: (Maybe StartShotDetectionFilter
-> f (Maybe StartShotDetectionFilter))
-> StartSegmentDetectionFilters -> f StartSegmentDetectionFilters
startSegmentDetectionFilters_shotFilter = (StartSegmentDetectionFilters -> Maybe StartShotDetectionFilter)
-> (StartSegmentDetectionFilters
-> Maybe StartShotDetectionFilter -> StartSegmentDetectionFilters)
-> Lens
StartSegmentDetectionFilters
StartSegmentDetectionFilters
(Maybe StartShotDetectionFilter)
(Maybe StartShotDetectionFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSegmentDetectionFilters' {Maybe StartShotDetectionFilter
shotFilter :: Maybe StartShotDetectionFilter
$sel:shotFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters -> Maybe StartShotDetectionFilter
shotFilter} -> Maybe StartShotDetectionFilter
shotFilter) (\s :: StartSegmentDetectionFilters
s@StartSegmentDetectionFilters' {} Maybe StartShotDetectionFilter
a -> StartSegmentDetectionFilters
s {$sel:shotFilter:StartSegmentDetectionFilters' :: Maybe StartShotDetectionFilter
shotFilter = Maybe StartShotDetectionFilter
a} :: StartSegmentDetectionFilters)
instance
Prelude.Hashable
StartSegmentDetectionFilters
instance Prelude.NFData StartSegmentDetectionFilters
instance Core.ToJSON StartSegmentDetectionFilters where
toJSON :: StartSegmentDetectionFilters -> Value
toJSON StartSegmentDetectionFilters' {Maybe StartShotDetectionFilter
Maybe StartTechnicalCueDetectionFilter
shotFilter :: Maybe StartShotDetectionFilter
technicalCueFilter :: Maybe StartTechnicalCueDetectionFilter
$sel:shotFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters -> Maybe StartShotDetectionFilter
$sel:technicalCueFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters
-> Maybe StartTechnicalCueDetectionFilter
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"TechnicalCueFilter" Text -> StartTechnicalCueDetectionFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(StartTechnicalCueDetectionFilter -> Pair)
-> Maybe StartTechnicalCueDetectionFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StartTechnicalCueDetectionFilter
technicalCueFilter,
(Text
"ShotFilter" Text -> StartShotDetectionFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (StartShotDetectionFilter -> Pair)
-> Maybe StartShotDetectionFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StartShotDetectionFilter
shotFilter
]
)