{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.StaticImageActivateScheduleActionSettings
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | Settings for the action to activate a static image.
--
-- /See:/ 'newStaticImageActivateScheduleActionSettings' smart constructor.
data StaticImageActivateScheduleActionSettings = StaticImageActivateScheduleActionSettings'
  { -- | Placement of the left edge of the overlay relative to the left edge of
    -- the video frame, in pixels. 0 (the default) is the left edge of the
    -- frame. If the placement causes the overlay to extend beyond the right
    -- edge of the underlying video, then the overlay is cropped on the right.
    StaticImageActivateScheduleActionSettings -> Maybe Natural
imageX :: Prelude.Maybe Prelude.Natural,
    -- | The height of the image when inserted into the video, in pixels. The
    -- overlay will be scaled up or down to the specified height. Leave blank
    -- to use the native height of the overlay.
    StaticImageActivateScheduleActionSettings -> Maybe Natural
height :: Prelude.Maybe Prelude.Natural,
    -- | Applies only if a duration is specified. The time in milliseconds for
    -- the image to fade out. The fade-out starts when the duration time is
    -- hit, so it effectively extends the duration. Default is 0 (no fade-out).
    StaticImageActivateScheduleActionSettings -> Maybe Natural
fadeOut :: Prelude.Maybe Prelude.Natural,
    -- | The width of the image when inserted into the video, in pixels. The
    -- overlay will be scaled up or down to the specified width. Leave blank to
    -- use the native width of the overlay.
    StaticImageActivateScheduleActionSettings -> Maybe Natural
width :: Prelude.Maybe Prelude.Natural,
    -- | Opacity of image where 0 is transparent and 100 is fully opaque. Default
    -- is 100.
    StaticImageActivateScheduleActionSettings -> Maybe Natural
opacity :: Prelude.Maybe Prelude.Natural,
    -- | The number of the layer, 0 to 7. There are 8 layers that can be overlaid
    -- on the video, each layer with a different image. The layers are in Z
    -- order, which means that overlays with higher values of layer are
    -- inserted on top of overlays with lower values of layer. Default is 0.
    StaticImageActivateScheduleActionSettings -> Maybe Natural
layer :: Prelude.Maybe Prelude.Natural,
    -- | The duration in milliseconds for the image to remain on the video. If
    -- omitted or set to 0 the duration is unlimited and the image will remain
    -- until it is explicitly deactivated.
    StaticImageActivateScheduleActionSettings -> Maybe Natural
duration :: Prelude.Maybe Prelude.Natural,
    -- | Placement of the top edge of the overlay relative to the top edge of the
    -- video frame, in pixels. 0 (the default) is the top edge of the frame. If
    -- the placement causes the overlay to extend beyond the bottom edge of the
    -- underlying video, then the overlay is cropped on the bottom.
    StaticImageActivateScheduleActionSettings -> Maybe Natural
imageY :: Prelude.Maybe Prelude.Natural,
    -- | The time in milliseconds for the image to fade in. The fade-in starts at
    -- the start time of the overlay. Default is 0 (no fade-in).
    StaticImageActivateScheduleActionSettings -> Maybe Natural
fadeIn :: Prelude.Maybe Prelude.Natural,
    -- | The location and filename of the image file to overlay on the video. The
    -- file must be a 32-bit BMP, PNG, or TGA file, and must not be larger (in
    -- pixels) than the input video.
    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)

-- |
-- Create a value of 'StaticImageActivateScheduleActionSettings' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'imageX', 'staticImageActivateScheduleActionSettings_imageX' - Placement of the left edge of the overlay relative to the left edge of
-- the video frame, in pixels. 0 (the default) is the left edge of the
-- frame. If the placement causes the overlay to extend beyond the right
-- edge of the underlying video, then the overlay is cropped on the right.
--
-- 'height', 'staticImageActivateScheduleActionSettings_height' - The height of the image when inserted into the video, in pixels. The
-- overlay will be scaled up or down to the specified height. Leave blank
-- to use the native height of the overlay.
--
-- 'fadeOut', 'staticImageActivateScheduleActionSettings_fadeOut' - Applies only if a duration is specified. The time in milliseconds for
-- the image to fade out. The fade-out starts when the duration time is
-- hit, so it effectively extends the duration. Default is 0 (no fade-out).
--
-- 'width', 'staticImageActivateScheduleActionSettings_width' - The width of the image when inserted into the video, in pixels. The
-- overlay will be scaled up or down to the specified width. Leave blank to
-- use the native width of the overlay.
--
-- 'opacity', 'staticImageActivateScheduleActionSettings_opacity' - Opacity of image where 0 is transparent and 100 is fully opaque. Default
-- is 100.
--
-- 'layer', 'staticImageActivateScheduleActionSettings_layer' - The number of the layer, 0 to 7. There are 8 layers that can be overlaid
-- on the video, each layer with a different image. The layers are in Z
-- order, which means that overlays with higher values of layer are
-- inserted on top of overlays with lower values of layer. Default is 0.
--
-- 'duration', 'staticImageActivateScheduleActionSettings_duration' - The duration in milliseconds for the image to remain on the video. If
-- omitted or set to 0 the duration is unlimited and the image will remain
-- until it is explicitly deactivated.
--
-- 'imageY', 'staticImageActivateScheduleActionSettings_imageY' - Placement of the top edge of the overlay relative to the top edge of the
-- video frame, in pixels. 0 (the default) is the top edge of the frame. If
-- the placement causes the overlay to extend beyond the bottom edge of the
-- underlying video, then the overlay is cropped on the bottom.
--
-- 'fadeIn', 'staticImageActivateScheduleActionSettings_fadeIn' - The time in milliseconds for the image to fade in. The fade-in starts at
-- the start time of the overlay. Default is 0 (no fade-in).
--
-- 'image', 'staticImageActivateScheduleActionSettings_image' - The location and filename of the image file to overlay on the video. The
-- file must be a 32-bit BMP, PNG, or TGA file, and must not be larger (in
-- pixels) than the input video.
newStaticImageActivateScheduleActionSettings ::
  -- | 'image'
  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_
    }

-- | Placement of the left edge of the overlay relative to the left edge of
-- the video frame, in pixels. 0 (the default) is the left edge of the
-- frame. If the placement causes the overlay to extend beyond the right
-- edge of the underlying video, then the overlay is cropped on the right.
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)

-- | The height of the image when inserted into the video, in pixels. The
-- overlay will be scaled up or down to the specified height. Leave blank
-- to use the native height of the overlay.
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)

-- | Applies only if a duration is specified. The time in milliseconds for
-- the image to fade out. The fade-out starts when the duration time is
-- hit, so it effectively extends the duration. Default is 0 (no fade-out).
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)

-- | The width of the image when inserted into the video, in pixels. The
-- overlay will be scaled up or down to the specified width. Leave blank to
-- use the native width of the overlay.
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)

-- | Opacity of image where 0 is transparent and 100 is fully opaque. Default
-- is 100.
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)

-- | The number of the layer, 0 to 7. There are 8 layers that can be overlaid
-- on the video, each layer with a different image. The layers are in Z
-- order, which means that overlays with higher values of layer are
-- inserted on top of overlays with lower values of layer. Default is 0.
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)

-- | The duration in milliseconds for the image to remain on the video. If
-- omitted or set to 0 the duration is unlimited and the image will remain
-- until it is explicitly deactivated.
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)

-- | Placement of the top edge of the overlay relative to the top edge of the
-- video frame, in pixels. 0 (the default) is the top edge of the frame. If
-- the placement causes the overlay to extend beyond the bottom edge of the
-- underlying video, then the overlay is cropped on the bottom.
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)

-- | The time in milliseconds for the image to fade in. The fade-in starts at
-- the start time of the overlay. Default is 0 (no fade-in).
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)

-- | The location and filename of the image file to overlay on the video. The
-- file must be a 32-bit BMP, PNG, or TGA file, and must not be larger (in
-- pixels) than the input video.
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)
          ]
      )