{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Rekognition.Types.StartShotDetectionFilter
import Amazonka.Rekognition.Types.StartTechnicalCueDetectionFilter
data StartSegmentDetectionFilters = StartSegmentDetectionFilters'
{
StartSegmentDetectionFilters -> Maybe StartShotDetectionFilter
shotFilter :: Prelude.Maybe StartShotDetectionFilter,
StartSegmentDetectionFilters
-> Maybe StartTechnicalCueDetectionFilter
technicalCueFilter :: Prelude.Maybe StartTechnicalCueDetectionFilter
}
deriving (StartSegmentDetectionFilters
-> StartSegmentDetectionFilters -> Bool
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]
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
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.
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'
{ $sel:shotFilter:StartSegmentDetectionFilters' :: Maybe StartShotDetectionFilter
shotFilter =
forall a. Maybe a
Prelude.Nothing,
$sel:technicalCueFilter:StartSegmentDetectionFilters' :: Maybe StartTechnicalCueDetectionFilter
technicalCueFilter = forall a. Maybe a
Prelude.Nothing
}
startSegmentDetectionFilters_shotFilter :: Lens.Lens' StartSegmentDetectionFilters (Prelude.Maybe StartShotDetectionFilter)
startSegmentDetectionFilters_shotFilter :: Lens' StartSegmentDetectionFilters (Maybe StartShotDetectionFilter)
startSegmentDetectionFilters_shotFilter = 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)
startSegmentDetectionFilters_technicalCueFilter :: Lens.Lens' StartSegmentDetectionFilters (Prelude.Maybe StartTechnicalCueDetectionFilter)
startSegmentDetectionFilters_technicalCueFilter :: Lens'
StartSegmentDetectionFilters
(Maybe StartTechnicalCueDetectionFilter)
startSegmentDetectionFilters_technicalCueFilter = 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)
instance
Prelude.Hashable
StartSegmentDetectionFilters
where
hashWithSalt :: Int -> StartSegmentDetectionFilters -> Int
hashWithSalt Int
_salt StartSegmentDetectionFilters' {Maybe StartShotDetectionFilter
Maybe StartTechnicalCueDetectionFilter
technicalCueFilter :: Maybe StartTechnicalCueDetectionFilter
shotFilter :: Maybe StartShotDetectionFilter
$sel:technicalCueFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters
-> Maybe StartTechnicalCueDetectionFilter
$sel:shotFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters -> Maybe StartShotDetectionFilter
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StartShotDetectionFilter
shotFilter
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StartTechnicalCueDetectionFilter
technicalCueFilter
instance Prelude.NFData StartSegmentDetectionFilters where
rnf :: StartSegmentDetectionFilters -> ()
rnf StartSegmentDetectionFilters' {Maybe StartShotDetectionFilter
Maybe StartTechnicalCueDetectionFilter
technicalCueFilter :: Maybe StartTechnicalCueDetectionFilter
shotFilter :: Maybe StartShotDetectionFilter
$sel:technicalCueFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters
-> Maybe StartTechnicalCueDetectionFilter
$sel:shotFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters -> Maybe StartShotDetectionFilter
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe StartShotDetectionFilter
shotFilter
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StartTechnicalCueDetectionFilter
technicalCueFilter
instance Data.ToJSON StartSegmentDetectionFilters where
toJSON :: StartSegmentDetectionFilters -> Value
toJSON StartSegmentDetectionFilters' {Maybe StartShotDetectionFilter
Maybe StartTechnicalCueDetectionFilter
technicalCueFilter :: Maybe StartTechnicalCueDetectionFilter
shotFilter :: Maybe StartShotDetectionFilter
$sel:technicalCueFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters
-> Maybe StartTechnicalCueDetectionFilter
$sel:shotFilter:StartSegmentDetectionFilters' :: StartSegmentDetectionFilters -> Maybe StartShotDetectionFilter
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ShotFilter" 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 StartShotDetectionFilter
shotFilter,
(Key
"TechnicalCueFilter" 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 StartTechnicalCueDetectionFilter
technicalCueFilter
]
)