{-# 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.MediaLive.Types.StaticImageActivateScheduleActionSettings where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types.InputLocation
import qualified Amazonka.Prelude as Prelude
data StaticImageActivateScheduleActionSettings = StaticImageActivateScheduleActionSettings'
{
StaticImageActivateScheduleActionSettings -> Maybe Natural
imageX :: Prelude.Maybe Prelude.Natural,
StaticImageActivateScheduleActionSettings -> Maybe Natural
height :: Prelude.Maybe Prelude.Natural,
StaticImageActivateScheduleActionSettings -> Maybe Natural
fadeOut :: Prelude.Maybe Prelude.Natural,
StaticImageActivateScheduleActionSettings -> Maybe Natural
width :: Prelude.Maybe Prelude.Natural,
StaticImageActivateScheduleActionSettings -> Maybe Natural
opacity :: Prelude.Maybe Prelude.Natural,
StaticImageActivateScheduleActionSettings -> Maybe Natural
layer :: Prelude.Maybe Prelude.Natural,
StaticImageActivateScheduleActionSettings -> Maybe Natural
duration :: Prelude.Maybe Prelude.Natural,
StaticImageActivateScheduleActionSettings -> Maybe Natural
imageY :: Prelude.Maybe Prelude.Natural,
StaticImageActivateScheduleActionSettings -> Maybe Natural
fadeIn :: Prelude.Maybe Prelude.Natural,
StaticImageActivateScheduleActionSettings -> InputLocation
image :: InputLocation
}
deriving (StaticImageActivateScheduleActionSettings
-> StaticImageActivateScheduleActionSettings -> Bool
(StaticImageActivateScheduleActionSettings
-> StaticImageActivateScheduleActionSettings -> Bool)
-> (StaticImageActivateScheduleActionSettings
-> StaticImageActivateScheduleActionSettings -> Bool)
-> Eq StaticImageActivateScheduleActionSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StaticImageActivateScheduleActionSettings
-> StaticImageActivateScheduleActionSettings -> Bool
$c/= :: StaticImageActivateScheduleActionSettings
-> StaticImageActivateScheduleActionSettings -> Bool
== :: StaticImageActivateScheduleActionSettings
-> StaticImageActivateScheduleActionSettings -> Bool
$c== :: StaticImageActivateScheduleActionSettings
-> StaticImageActivateScheduleActionSettings -> Bool
Prelude.Eq, ReadPrec [StaticImageActivateScheduleActionSettings]
ReadPrec StaticImageActivateScheduleActionSettings
Int -> ReadS StaticImageActivateScheduleActionSettings
ReadS [StaticImageActivateScheduleActionSettings]
(Int -> ReadS StaticImageActivateScheduleActionSettings)
-> ReadS [StaticImageActivateScheduleActionSettings]
-> ReadPrec StaticImageActivateScheduleActionSettings
-> ReadPrec [StaticImageActivateScheduleActionSettings]
-> Read StaticImageActivateScheduleActionSettings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StaticImageActivateScheduleActionSettings]
$creadListPrec :: ReadPrec [StaticImageActivateScheduleActionSettings]
readPrec :: ReadPrec StaticImageActivateScheduleActionSettings
$creadPrec :: ReadPrec StaticImageActivateScheduleActionSettings
readList :: ReadS [StaticImageActivateScheduleActionSettings]
$creadList :: ReadS [StaticImageActivateScheduleActionSettings]
readsPrec :: Int -> ReadS StaticImageActivateScheduleActionSettings
$creadsPrec :: Int -> ReadS StaticImageActivateScheduleActionSettings
Prelude.Read, Int -> StaticImageActivateScheduleActionSettings -> ShowS
[StaticImageActivateScheduleActionSettings] -> ShowS
StaticImageActivateScheduleActionSettings -> String
(Int -> StaticImageActivateScheduleActionSettings -> ShowS)
-> (StaticImageActivateScheduleActionSettings -> String)
-> ([StaticImageActivateScheduleActionSettings] -> ShowS)
-> Show StaticImageActivateScheduleActionSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StaticImageActivateScheduleActionSettings] -> ShowS
$cshowList :: [StaticImageActivateScheduleActionSettings] -> ShowS
show :: StaticImageActivateScheduleActionSettings -> String
$cshow :: StaticImageActivateScheduleActionSettings -> String
showsPrec :: Int -> StaticImageActivateScheduleActionSettings -> ShowS
$cshowsPrec :: Int -> StaticImageActivateScheduleActionSettings -> ShowS
Prelude.Show, (forall x.
StaticImageActivateScheduleActionSettings
-> Rep StaticImageActivateScheduleActionSettings x)
-> (forall x.
Rep StaticImageActivateScheduleActionSettings x
-> StaticImageActivateScheduleActionSettings)
-> Generic StaticImageActivateScheduleActionSettings
forall x.
Rep StaticImageActivateScheduleActionSettings x
-> StaticImageActivateScheduleActionSettings
forall x.
StaticImageActivateScheduleActionSettings
-> Rep StaticImageActivateScheduleActionSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StaticImageActivateScheduleActionSettings x
-> StaticImageActivateScheduleActionSettings
$cfrom :: forall x.
StaticImageActivateScheduleActionSettings
-> Rep StaticImageActivateScheduleActionSettings x
Prelude.Generic)
newStaticImageActivateScheduleActionSettings ::
InputLocation ->
StaticImageActivateScheduleActionSettings
newStaticImageActivateScheduleActionSettings :: InputLocation -> StaticImageActivateScheduleActionSettings
newStaticImageActivateScheduleActionSettings InputLocation
pImage_ =
StaticImageActivateScheduleActionSettings' :: Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings'
{ $sel:imageX:StaticImageActivateScheduleActionSettings' :: Maybe Natural
imageX =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:height:StaticImageActivateScheduleActionSettings' :: Maybe Natural
height = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:fadeOut:StaticImageActivateScheduleActionSettings' :: Maybe Natural
fadeOut = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:width:StaticImageActivateScheduleActionSettings' :: Maybe Natural
width = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:opacity:StaticImageActivateScheduleActionSettings' :: Maybe Natural
opacity = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:layer:StaticImageActivateScheduleActionSettings' :: Maybe Natural
layer = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:duration:StaticImageActivateScheduleActionSettings' :: Maybe Natural
duration = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:imageY:StaticImageActivateScheduleActionSettings' :: Maybe Natural
imageY = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:fadeIn:StaticImageActivateScheduleActionSettings' :: Maybe Natural
fadeIn = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:image:StaticImageActivateScheduleActionSettings' :: InputLocation
image = InputLocation
pImage_
}
staticImageActivateScheduleActionSettings_imageX :: Lens.Lens' StaticImageActivateScheduleActionSettings (Prelude.Maybe Prelude.Natural)
staticImageActivateScheduleActionSettings_imageX :: (Maybe Natural -> f (Maybe Natural))
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_imageX = (StaticImageActivateScheduleActionSettings -> Maybe Natural)
-> (StaticImageActivateScheduleActionSettings
-> Maybe Natural -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {Maybe Natural
imageX :: Maybe Natural
$sel:imageX:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
imageX} -> Maybe Natural
imageX) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} Maybe Natural
a -> StaticImageActivateScheduleActionSettings
s {$sel:imageX:StaticImageActivateScheduleActionSettings' :: Maybe Natural
imageX = Maybe Natural
a} :: StaticImageActivateScheduleActionSettings)
staticImageActivateScheduleActionSettings_height :: Lens.Lens' StaticImageActivateScheduleActionSettings (Prelude.Maybe Prelude.Natural)
staticImageActivateScheduleActionSettings_height :: (Maybe Natural -> f (Maybe Natural))
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_height = (StaticImageActivateScheduleActionSettings -> Maybe Natural)
-> (StaticImageActivateScheduleActionSettings
-> Maybe Natural -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {Maybe Natural
height :: Maybe Natural
$sel:height:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
height} -> Maybe Natural
height) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} Maybe Natural
a -> StaticImageActivateScheduleActionSettings
s {$sel:height:StaticImageActivateScheduleActionSettings' :: Maybe Natural
height = Maybe Natural
a} :: StaticImageActivateScheduleActionSettings)
staticImageActivateScheduleActionSettings_fadeOut :: Lens.Lens' StaticImageActivateScheduleActionSettings (Prelude.Maybe Prelude.Natural)
staticImageActivateScheduleActionSettings_fadeOut :: (Maybe Natural -> f (Maybe Natural))
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_fadeOut = (StaticImageActivateScheduleActionSettings -> Maybe Natural)
-> (StaticImageActivateScheduleActionSettings
-> Maybe Natural -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {Maybe Natural
fadeOut :: Maybe Natural
$sel:fadeOut:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
fadeOut} -> Maybe Natural
fadeOut) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} Maybe Natural
a -> StaticImageActivateScheduleActionSettings
s {$sel:fadeOut:StaticImageActivateScheduleActionSettings' :: Maybe Natural
fadeOut = Maybe Natural
a} :: StaticImageActivateScheduleActionSettings)
staticImageActivateScheduleActionSettings_width :: Lens.Lens' StaticImageActivateScheduleActionSettings (Prelude.Maybe Prelude.Natural)
staticImageActivateScheduleActionSettings_width :: (Maybe Natural -> f (Maybe Natural))
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_width = (StaticImageActivateScheduleActionSettings -> Maybe Natural)
-> (StaticImageActivateScheduleActionSettings
-> Maybe Natural -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {Maybe Natural
width :: Maybe Natural
$sel:width:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
width} -> Maybe Natural
width) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} Maybe Natural
a -> StaticImageActivateScheduleActionSettings
s {$sel:width:StaticImageActivateScheduleActionSettings' :: Maybe Natural
width = Maybe Natural
a} :: StaticImageActivateScheduleActionSettings)
staticImageActivateScheduleActionSettings_opacity :: Lens.Lens' StaticImageActivateScheduleActionSettings (Prelude.Maybe Prelude.Natural)
staticImageActivateScheduleActionSettings_opacity :: (Maybe Natural -> f (Maybe Natural))
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_opacity = (StaticImageActivateScheduleActionSettings -> Maybe Natural)
-> (StaticImageActivateScheduleActionSettings
-> Maybe Natural -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {Maybe Natural
opacity :: Maybe Natural
$sel:opacity:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
opacity} -> Maybe Natural
opacity) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} Maybe Natural
a -> StaticImageActivateScheduleActionSettings
s {$sel:opacity:StaticImageActivateScheduleActionSettings' :: Maybe Natural
opacity = Maybe Natural
a} :: StaticImageActivateScheduleActionSettings)
staticImageActivateScheduleActionSettings_layer :: Lens.Lens' StaticImageActivateScheduleActionSettings (Prelude.Maybe Prelude.Natural)
staticImageActivateScheduleActionSettings_layer :: (Maybe Natural -> f (Maybe Natural))
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_layer = (StaticImageActivateScheduleActionSettings -> Maybe Natural)
-> (StaticImageActivateScheduleActionSettings
-> Maybe Natural -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {Maybe Natural
layer :: Maybe Natural
$sel:layer:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
layer} -> Maybe Natural
layer) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} Maybe Natural
a -> StaticImageActivateScheduleActionSettings
s {$sel:layer:StaticImageActivateScheduleActionSettings' :: Maybe Natural
layer = Maybe Natural
a} :: StaticImageActivateScheduleActionSettings)
staticImageActivateScheduleActionSettings_duration :: Lens.Lens' StaticImageActivateScheduleActionSettings (Prelude.Maybe Prelude.Natural)
staticImageActivateScheduleActionSettings_duration :: (Maybe Natural -> f (Maybe Natural))
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_duration = (StaticImageActivateScheduleActionSettings -> Maybe Natural)
-> (StaticImageActivateScheduleActionSettings
-> Maybe Natural -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {Maybe Natural
duration :: Maybe Natural
$sel:duration:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
duration} -> Maybe Natural
duration) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} Maybe Natural
a -> StaticImageActivateScheduleActionSettings
s {$sel:duration:StaticImageActivateScheduleActionSettings' :: Maybe Natural
duration = Maybe Natural
a} :: StaticImageActivateScheduleActionSettings)
staticImageActivateScheduleActionSettings_imageY :: Lens.Lens' StaticImageActivateScheduleActionSettings (Prelude.Maybe Prelude.Natural)
staticImageActivateScheduleActionSettings_imageY :: (Maybe Natural -> f (Maybe Natural))
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_imageY = (StaticImageActivateScheduleActionSettings -> Maybe Natural)
-> (StaticImageActivateScheduleActionSettings
-> Maybe Natural -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {Maybe Natural
imageY :: Maybe Natural
$sel:imageY:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
imageY} -> Maybe Natural
imageY) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} Maybe Natural
a -> StaticImageActivateScheduleActionSettings
s {$sel:imageY:StaticImageActivateScheduleActionSettings' :: Maybe Natural
imageY = Maybe Natural
a} :: StaticImageActivateScheduleActionSettings)
staticImageActivateScheduleActionSettings_fadeIn :: Lens.Lens' StaticImageActivateScheduleActionSettings (Prelude.Maybe Prelude.Natural)
staticImageActivateScheduleActionSettings_fadeIn :: (Maybe Natural -> f (Maybe Natural))
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_fadeIn = (StaticImageActivateScheduleActionSettings -> Maybe Natural)
-> (StaticImageActivateScheduleActionSettings
-> Maybe Natural -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {Maybe Natural
fadeIn :: Maybe Natural
$sel:fadeIn:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
fadeIn} -> Maybe Natural
fadeIn) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} Maybe Natural
a -> StaticImageActivateScheduleActionSettings
s {$sel:fadeIn:StaticImageActivateScheduleActionSettings' :: Maybe Natural
fadeIn = Maybe Natural
a} :: StaticImageActivateScheduleActionSettings)
staticImageActivateScheduleActionSettings_image :: Lens.Lens' StaticImageActivateScheduleActionSettings InputLocation
staticImageActivateScheduleActionSettings_image :: (InputLocation -> f InputLocation)
-> StaticImageActivateScheduleActionSettings
-> f StaticImageActivateScheduleActionSettings
staticImageActivateScheduleActionSettings_image = (StaticImageActivateScheduleActionSettings -> InputLocation)
-> (StaticImageActivateScheduleActionSettings
-> InputLocation -> StaticImageActivateScheduleActionSettings)
-> Lens
StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings
InputLocation
InputLocation
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StaticImageActivateScheduleActionSettings' {InputLocation
image :: InputLocation
$sel:image:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> InputLocation
image} -> InputLocation
image) (\s :: StaticImageActivateScheduleActionSettings
s@StaticImageActivateScheduleActionSettings' {} InputLocation
a -> StaticImageActivateScheduleActionSettings
s {$sel:image:StaticImageActivateScheduleActionSettings' :: InputLocation
image = InputLocation
a} :: StaticImageActivateScheduleActionSettings)
instance
Core.FromJSON
StaticImageActivateScheduleActionSettings
where
parseJSON :: Value -> Parser StaticImageActivateScheduleActionSettings
parseJSON =
String
-> (Object -> Parser StaticImageActivateScheduleActionSettings)
-> Value
-> Parser StaticImageActivateScheduleActionSettings
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"StaticImageActivateScheduleActionSettings"
( \Object
x ->
Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings
StaticImageActivateScheduleActionSettings'
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"imageX")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"height")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"fadeOut")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"width")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"opacity")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"layer")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"duration")
Parser
(Maybe Natural
-> Maybe Natural
-> InputLocation
-> StaticImageActivateScheduleActionSettings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> InputLocation -> StaticImageActivateScheduleActionSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"imageY")
Parser
(Maybe Natural
-> InputLocation -> StaticImageActivateScheduleActionSettings)
-> Parser (Maybe Natural)
-> Parser
(InputLocation -> StaticImageActivateScheduleActionSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"fadeIn")
Parser (InputLocation -> StaticImageActivateScheduleActionSettings)
-> Parser InputLocation
-> Parser StaticImageActivateScheduleActionSettings
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser InputLocation
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"image")
)
instance
Prelude.Hashable
StaticImageActivateScheduleActionSettings
instance
Prelude.NFData
StaticImageActivateScheduleActionSettings
instance
Core.ToJSON
StaticImageActivateScheduleActionSettings
where
toJSON :: StaticImageActivateScheduleActionSettings -> Value
toJSON StaticImageActivateScheduleActionSettings' {Maybe Natural
InputLocation
image :: InputLocation
fadeIn :: Maybe Natural
imageY :: Maybe Natural
duration :: Maybe Natural
layer :: Maybe Natural
opacity :: Maybe Natural
width :: Maybe Natural
fadeOut :: Maybe Natural
height :: Maybe Natural
imageX :: Maybe Natural
$sel:image:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> InputLocation
$sel:fadeIn:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
$sel:imageY:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
$sel:duration:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
$sel:layer:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
$sel:opacity:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
$sel:width:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
$sel:fadeOut:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
$sel:height:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
$sel:imageX:StaticImageActivateScheduleActionSettings' :: StaticImageActivateScheduleActionSettings -> Maybe Natural
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"imageX" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
imageX,
(Text
"height" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
height,
(Text
"fadeOut" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
fadeOut,
(Text
"width" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
width,
(Text
"opacity" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
opacity,
(Text
"layer" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
layer,
(Text
"duration" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
duration,
(Text
"imageY" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
imageY,
(Text
"fadeIn" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
fadeIn,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"image" Text -> InputLocation -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= InputLocation
image)
]
)