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