{-# 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.MediaConvert.Types.NoiseReducerFilterSettings 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
data NoiseReducerFilterSettings = NoiseReducerFilterSettings'
{
NoiseReducerFilterSettings -> Maybe Natural
strength :: Prelude.Maybe Prelude.Natural
}
deriving (NoiseReducerFilterSettings -> NoiseReducerFilterSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NoiseReducerFilterSettings -> NoiseReducerFilterSettings -> Bool
$c/= :: NoiseReducerFilterSettings -> NoiseReducerFilterSettings -> Bool
== :: NoiseReducerFilterSettings -> NoiseReducerFilterSettings -> Bool
$c== :: NoiseReducerFilterSettings -> NoiseReducerFilterSettings -> Bool
Prelude.Eq, ReadPrec [NoiseReducerFilterSettings]
ReadPrec NoiseReducerFilterSettings
Int -> ReadS NoiseReducerFilterSettings
ReadS [NoiseReducerFilterSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NoiseReducerFilterSettings]
$creadListPrec :: ReadPrec [NoiseReducerFilterSettings]
readPrec :: ReadPrec NoiseReducerFilterSettings
$creadPrec :: ReadPrec NoiseReducerFilterSettings
readList :: ReadS [NoiseReducerFilterSettings]
$creadList :: ReadS [NoiseReducerFilterSettings]
readsPrec :: Int -> ReadS NoiseReducerFilterSettings
$creadsPrec :: Int -> ReadS NoiseReducerFilterSettings
Prelude.Read, Int -> NoiseReducerFilterSettings -> ShowS
[NoiseReducerFilterSettings] -> ShowS
NoiseReducerFilterSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NoiseReducerFilterSettings] -> ShowS
$cshowList :: [NoiseReducerFilterSettings] -> ShowS
show :: NoiseReducerFilterSettings -> String
$cshow :: NoiseReducerFilterSettings -> String
showsPrec :: Int -> NoiseReducerFilterSettings -> ShowS
$cshowsPrec :: Int -> NoiseReducerFilterSettings -> ShowS
Prelude.Show, forall x.
Rep NoiseReducerFilterSettings x -> NoiseReducerFilterSettings
forall x.
NoiseReducerFilterSettings -> Rep NoiseReducerFilterSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NoiseReducerFilterSettings x -> NoiseReducerFilterSettings
$cfrom :: forall x.
NoiseReducerFilterSettings -> Rep NoiseReducerFilterSettings x
Prelude.Generic)
newNoiseReducerFilterSettings ::
NoiseReducerFilterSettings
newNoiseReducerFilterSettings :: NoiseReducerFilterSettings
newNoiseReducerFilterSettings =
NoiseReducerFilterSettings'
{ $sel:strength:NoiseReducerFilterSettings' :: Maybe Natural
strength =
forall a. Maybe a
Prelude.Nothing
}
noiseReducerFilterSettings_strength :: Lens.Lens' NoiseReducerFilterSettings (Prelude.Maybe Prelude.Natural)
noiseReducerFilterSettings_strength :: Lens' NoiseReducerFilterSettings (Maybe Natural)
noiseReducerFilterSettings_strength = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NoiseReducerFilterSettings' {Maybe Natural
strength :: Maybe Natural
$sel:strength:NoiseReducerFilterSettings' :: NoiseReducerFilterSettings -> Maybe Natural
strength} -> Maybe Natural
strength) (\s :: NoiseReducerFilterSettings
s@NoiseReducerFilterSettings' {} Maybe Natural
a -> NoiseReducerFilterSettings
s {$sel:strength:NoiseReducerFilterSettings' :: Maybe Natural
strength = Maybe Natural
a} :: NoiseReducerFilterSettings)
instance Data.FromJSON NoiseReducerFilterSettings where
parseJSON :: Value -> Parser NoiseReducerFilterSettings
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"NoiseReducerFilterSettings"
( \Object
x ->
Maybe Natural -> NoiseReducerFilterSettings
NoiseReducerFilterSettings'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"strength")
)
instance Prelude.Hashable NoiseReducerFilterSettings where
hashWithSalt :: Int -> NoiseReducerFilterSettings -> Int
hashWithSalt Int
_salt NoiseReducerFilterSettings' {Maybe Natural
strength :: Maybe Natural
$sel:strength:NoiseReducerFilterSettings' :: NoiseReducerFilterSettings -> Maybe Natural
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
strength
instance Prelude.NFData NoiseReducerFilterSettings where
rnf :: NoiseReducerFilterSettings -> ()
rnf NoiseReducerFilterSettings' {Maybe Natural
strength :: Maybe Natural
$sel:strength:NoiseReducerFilterSettings' :: NoiseReducerFilterSettings -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
strength
instance Data.ToJSON NoiseReducerFilterSettings where
toJSON :: NoiseReducerFilterSettings -> Value
toJSON NoiseReducerFilterSettings' {Maybe Natural
strength :: Maybe Natural
$sel:strength:NoiseReducerFilterSettings' :: NoiseReducerFilterSettings -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Key
"strength" 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
strength]
)