{-# 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.F4vSettings where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaConvert.Types.F4vMoovPlacement
import qualified Amazonka.Prelude as Prelude
data F4vSettings = F4vSettings'
{
F4vSettings -> Maybe F4vMoovPlacement
moovPlacement :: Prelude.Maybe F4vMoovPlacement
}
deriving (F4vSettings -> F4vSettings -> Bool
(F4vSettings -> F4vSettings -> Bool)
-> (F4vSettings -> F4vSettings -> Bool) -> Eq F4vSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: F4vSettings -> F4vSettings -> Bool
$c/= :: F4vSettings -> F4vSettings -> Bool
== :: F4vSettings -> F4vSettings -> Bool
$c== :: F4vSettings -> F4vSettings -> Bool
Prelude.Eq, ReadPrec [F4vSettings]
ReadPrec F4vSettings
Int -> ReadS F4vSettings
ReadS [F4vSettings]
(Int -> ReadS F4vSettings)
-> ReadS [F4vSettings]
-> ReadPrec F4vSettings
-> ReadPrec [F4vSettings]
-> Read F4vSettings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [F4vSettings]
$creadListPrec :: ReadPrec [F4vSettings]
readPrec :: ReadPrec F4vSettings
$creadPrec :: ReadPrec F4vSettings
readList :: ReadS [F4vSettings]
$creadList :: ReadS [F4vSettings]
readsPrec :: Int -> ReadS F4vSettings
$creadsPrec :: Int -> ReadS F4vSettings
Prelude.Read, Int -> F4vSettings -> ShowS
[F4vSettings] -> ShowS
F4vSettings -> String
(Int -> F4vSettings -> ShowS)
-> (F4vSettings -> String)
-> ([F4vSettings] -> ShowS)
-> Show F4vSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [F4vSettings] -> ShowS
$cshowList :: [F4vSettings] -> ShowS
show :: F4vSettings -> String
$cshow :: F4vSettings -> String
showsPrec :: Int -> F4vSettings -> ShowS
$cshowsPrec :: Int -> F4vSettings -> ShowS
Prelude.Show, (forall x. F4vSettings -> Rep F4vSettings x)
-> (forall x. Rep F4vSettings x -> F4vSettings)
-> Generic F4vSettings
forall x. Rep F4vSettings x -> F4vSettings
forall x. F4vSettings -> Rep F4vSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep F4vSettings x -> F4vSettings
$cfrom :: forall x. F4vSettings -> Rep F4vSettings x
Prelude.Generic)
newF4vSettings ::
F4vSettings
newF4vSettings :: F4vSettings
newF4vSettings =
F4vSettings' :: Maybe F4vMoovPlacement -> F4vSettings
F4vSettings' {$sel:moovPlacement:F4vSettings' :: Maybe F4vMoovPlacement
moovPlacement = Maybe F4vMoovPlacement
forall a. Maybe a
Prelude.Nothing}
f4vSettings_moovPlacement :: Lens.Lens' F4vSettings (Prelude.Maybe F4vMoovPlacement)
f4vSettings_moovPlacement :: (Maybe F4vMoovPlacement -> f (Maybe F4vMoovPlacement))
-> F4vSettings -> f F4vSettings
f4vSettings_moovPlacement = (F4vSettings -> Maybe F4vMoovPlacement)
-> (F4vSettings -> Maybe F4vMoovPlacement -> F4vSettings)
-> Lens
F4vSettings
F4vSettings
(Maybe F4vMoovPlacement)
(Maybe F4vMoovPlacement)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\F4vSettings' {Maybe F4vMoovPlacement
moovPlacement :: Maybe F4vMoovPlacement
$sel:moovPlacement:F4vSettings' :: F4vSettings -> Maybe F4vMoovPlacement
moovPlacement} -> Maybe F4vMoovPlacement
moovPlacement) (\s :: F4vSettings
s@F4vSettings' {} Maybe F4vMoovPlacement
a -> F4vSettings
s {$sel:moovPlacement:F4vSettings' :: Maybe F4vMoovPlacement
moovPlacement = Maybe F4vMoovPlacement
a} :: F4vSettings)
instance Core.FromJSON F4vSettings where
parseJSON :: Value -> Parser F4vSettings
parseJSON =
String
-> (Object -> Parser F4vSettings) -> Value -> Parser F4vSettings
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"F4vSettings"
( \Object
x ->
Maybe F4vMoovPlacement -> F4vSettings
F4vSettings'
(Maybe F4vMoovPlacement -> F4vSettings)
-> Parser (Maybe F4vMoovPlacement) -> Parser F4vSettings
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe F4vMoovPlacement)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"moovPlacement")
)
instance Prelude.Hashable F4vSettings
instance Prelude.NFData F4vSettings
instance Core.ToJSON F4vSettings where
toJSON :: F4vSettings -> Value
toJSON F4vSettings' {Maybe F4vMoovPlacement
moovPlacement :: Maybe F4vMoovPlacement
$sel:moovPlacement:F4vSettings' :: F4vSettings -> Maybe F4vMoovPlacement
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"moovPlacement" Text -> F4vMoovPlacement -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(F4vMoovPlacement -> Pair) -> Maybe F4vMoovPlacement -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe F4vMoovPlacement
moovPlacement
]
)