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