{-# 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.MediaPackage.Types.DashPackage where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaPackage.Types.AdTriggersElement
import Amazonka.MediaPackage.Types.AdsOnDeliveryRestrictions
import Amazonka.MediaPackage.Types.DashEncryption
import Amazonka.MediaPackage.Types.ManifestLayout
import Amazonka.MediaPackage.Types.PeriodTriggersElement
import Amazonka.MediaPackage.Types.Profile
import Amazonka.MediaPackage.Types.SegmentTemplateFormat
import Amazonka.MediaPackage.Types.StreamSelection
import Amazonka.MediaPackage.Types.UtcTiming
import qualified Amazonka.Prelude as Prelude
data DashPackage = DashPackage'
{ DashPackage -> Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions :: Prelude.Maybe AdsOnDeliveryRestrictions,
DashPackage -> Maybe Int
minBufferTimeSeconds :: Prelude.Maybe Prelude.Int,
DashPackage -> Maybe UtcTiming
utcTiming :: Prelude.Maybe UtcTiming,
DashPackage -> Maybe SegmentTemplateFormat
segmentTemplateFormat :: Prelude.Maybe SegmentTemplateFormat,
DashPackage -> Maybe Profile
profile :: Prelude.Maybe Profile,
DashPackage -> Maybe Int
segmentDurationSeconds :: Prelude.Maybe Prelude.Int,
DashPackage -> Maybe Text
utcTimingUri :: Prelude.Maybe Prelude.Text,
DashPackage -> Maybe StreamSelection
streamSelection :: Prelude.Maybe StreamSelection,
DashPackage -> Maybe DashEncryption
encryption :: Prelude.Maybe DashEncryption,
DashPackage -> Maybe Int
minUpdatePeriodSeconds :: Prelude.Maybe Prelude.Int,
DashPackage -> Maybe ManifestLayout
manifestLayout :: Prelude.Maybe ManifestLayout,
DashPackage -> Maybe Int
suggestedPresentationDelaySeconds :: Prelude.Maybe Prelude.Int,
DashPackage -> Maybe Int
manifestWindowSeconds :: Prelude.Maybe Prelude.Int,
DashPackage -> Maybe [AdTriggersElement]
adTriggers :: Prelude.Maybe [AdTriggersElement],
DashPackage -> Maybe [PeriodTriggersElement]
periodTriggers :: Prelude.Maybe [PeriodTriggersElement]
}
deriving (DashPackage -> DashPackage -> Bool
(DashPackage -> DashPackage -> Bool)
-> (DashPackage -> DashPackage -> Bool) -> Eq DashPackage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DashPackage -> DashPackage -> Bool
$c/= :: DashPackage -> DashPackage -> Bool
== :: DashPackage -> DashPackage -> Bool
$c== :: DashPackage -> DashPackage -> Bool
Prelude.Eq, ReadPrec [DashPackage]
ReadPrec DashPackage
Int -> ReadS DashPackage
ReadS [DashPackage]
(Int -> ReadS DashPackage)
-> ReadS [DashPackage]
-> ReadPrec DashPackage
-> ReadPrec [DashPackage]
-> Read DashPackage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DashPackage]
$creadListPrec :: ReadPrec [DashPackage]
readPrec :: ReadPrec DashPackage
$creadPrec :: ReadPrec DashPackage
readList :: ReadS [DashPackage]
$creadList :: ReadS [DashPackage]
readsPrec :: Int -> ReadS DashPackage
$creadsPrec :: Int -> ReadS DashPackage
Prelude.Read, Int -> DashPackage -> ShowS
[DashPackage] -> ShowS
DashPackage -> String
(Int -> DashPackage -> ShowS)
-> (DashPackage -> String)
-> ([DashPackage] -> ShowS)
-> Show DashPackage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DashPackage] -> ShowS
$cshowList :: [DashPackage] -> ShowS
show :: DashPackage -> String
$cshow :: DashPackage -> String
showsPrec :: Int -> DashPackage -> ShowS
$cshowsPrec :: Int -> DashPackage -> ShowS
Prelude.Show, (forall x. DashPackage -> Rep DashPackage x)
-> (forall x. Rep DashPackage x -> DashPackage)
-> Generic DashPackage
forall x. Rep DashPackage x -> DashPackage
forall x. DashPackage -> Rep DashPackage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DashPackage x -> DashPackage
$cfrom :: forall x. DashPackage -> Rep DashPackage x
Prelude.Generic)
newDashPackage ::
DashPackage
newDashPackage :: DashPackage
newDashPackage =
DashPackage' :: Maybe AdsOnDeliveryRestrictions
-> Maybe Int
-> Maybe UtcTiming
-> Maybe SegmentTemplateFormat
-> Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage
DashPackage'
{ $sel:adsOnDeliveryRestrictions:DashPackage' :: Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions =
Maybe AdsOnDeliveryRestrictions
forall a. Maybe a
Prelude.Nothing,
$sel:minBufferTimeSeconds:DashPackage' :: Maybe Int
minBufferTimeSeconds = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:utcTiming:DashPackage' :: Maybe UtcTiming
utcTiming = Maybe UtcTiming
forall a. Maybe a
Prelude.Nothing,
$sel:segmentTemplateFormat:DashPackage' :: Maybe SegmentTemplateFormat
segmentTemplateFormat = Maybe SegmentTemplateFormat
forall a. Maybe a
Prelude.Nothing,
$sel:profile:DashPackage' :: Maybe Profile
profile = Maybe Profile
forall a. Maybe a
Prelude.Nothing,
$sel:segmentDurationSeconds:DashPackage' :: Maybe Int
segmentDurationSeconds = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:utcTimingUri:DashPackage' :: Maybe Text
utcTimingUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:streamSelection:DashPackage' :: Maybe StreamSelection
streamSelection = Maybe StreamSelection
forall a. Maybe a
Prelude.Nothing,
$sel:encryption:DashPackage' :: Maybe DashEncryption
encryption = Maybe DashEncryption
forall a. Maybe a
Prelude.Nothing,
$sel:minUpdatePeriodSeconds:DashPackage' :: Maybe Int
minUpdatePeriodSeconds = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:manifestLayout:DashPackage' :: Maybe ManifestLayout
manifestLayout = Maybe ManifestLayout
forall a. Maybe a
Prelude.Nothing,
$sel:suggestedPresentationDelaySeconds:DashPackage' :: Maybe Int
suggestedPresentationDelaySeconds = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:manifestWindowSeconds:DashPackage' :: Maybe Int
manifestWindowSeconds = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:adTriggers:DashPackage' :: Maybe [AdTriggersElement]
adTriggers = Maybe [AdTriggersElement]
forall a. Maybe a
Prelude.Nothing,
$sel:periodTriggers:DashPackage' :: Maybe [PeriodTriggersElement]
periodTriggers = Maybe [PeriodTriggersElement]
forall a. Maybe a
Prelude.Nothing
}
dashPackage_adsOnDeliveryRestrictions :: Lens.Lens' DashPackage (Prelude.Maybe AdsOnDeliveryRestrictions)
dashPackage_adsOnDeliveryRestrictions :: (Maybe AdsOnDeliveryRestrictions
-> f (Maybe AdsOnDeliveryRestrictions))
-> DashPackage -> f DashPackage
dashPackage_adsOnDeliveryRestrictions = (DashPackage -> Maybe AdsOnDeliveryRestrictions)
-> (DashPackage -> Maybe AdsOnDeliveryRestrictions -> DashPackage)
-> Lens
DashPackage
DashPackage
(Maybe AdsOnDeliveryRestrictions)
(Maybe AdsOnDeliveryRestrictions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions :: Maybe AdsOnDeliveryRestrictions
$sel:adsOnDeliveryRestrictions:DashPackage' :: DashPackage -> Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions} -> Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions) (\s :: DashPackage
s@DashPackage' {} Maybe AdsOnDeliveryRestrictions
a -> DashPackage
s {$sel:adsOnDeliveryRestrictions:DashPackage' :: Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions = Maybe AdsOnDeliveryRestrictions
a} :: DashPackage)
dashPackage_minBufferTimeSeconds :: Lens.Lens' DashPackage (Prelude.Maybe Prelude.Int)
dashPackage_minBufferTimeSeconds :: (Maybe Int -> f (Maybe Int)) -> DashPackage -> f DashPackage
dashPackage_minBufferTimeSeconds = (DashPackage -> Maybe Int)
-> (DashPackage -> Maybe Int -> DashPackage)
-> Lens DashPackage DashPackage (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe Int
minBufferTimeSeconds :: Maybe Int
$sel:minBufferTimeSeconds:DashPackage' :: DashPackage -> Maybe Int
minBufferTimeSeconds} -> Maybe Int
minBufferTimeSeconds) (\s :: DashPackage
s@DashPackage' {} Maybe Int
a -> DashPackage
s {$sel:minBufferTimeSeconds:DashPackage' :: Maybe Int
minBufferTimeSeconds = Maybe Int
a} :: DashPackage)
dashPackage_utcTiming :: Lens.Lens' DashPackage (Prelude.Maybe UtcTiming)
dashPackage_utcTiming :: (Maybe UtcTiming -> f (Maybe UtcTiming))
-> DashPackage -> f DashPackage
dashPackage_utcTiming = (DashPackage -> Maybe UtcTiming)
-> (DashPackage -> Maybe UtcTiming -> DashPackage)
-> Lens DashPackage DashPackage (Maybe UtcTiming) (Maybe UtcTiming)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe UtcTiming
utcTiming :: Maybe UtcTiming
$sel:utcTiming:DashPackage' :: DashPackage -> Maybe UtcTiming
utcTiming} -> Maybe UtcTiming
utcTiming) (\s :: DashPackage
s@DashPackage' {} Maybe UtcTiming
a -> DashPackage
s {$sel:utcTiming:DashPackage' :: Maybe UtcTiming
utcTiming = Maybe UtcTiming
a} :: DashPackage)
dashPackage_segmentTemplateFormat :: Lens.Lens' DashPackage (Prelude.Maybe SegmentTemplateFormat)
dashPackage_segmentTemplateFormat :: (Maybe SegmentTemplateFormat -> f (Maybe SegmentTemplateFormat))
-> DashPackage -> f DashPackage
dashPackage_segmentTemplateFormat = (DashPackage -> Maybe SegmentTemplateFormat)
-> (DashPackage -> Maybe SegmentTemplateFormat -> DashPackage)
-> Lens
DashPackage
DashPackage
(Maybe SegmentTemplateFormat)
(Maybe SegmentTemplateFormat)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe SegmentTemplateFormat
segmentTemplateFormat :: Maybe SegmentTemplateFormat
$sel:segmentTemplateFormat:DashPackage' :: DashPackage -> Maybe SegmentTemplateFormat
segmentTemplateFormat} -> Maybe SegmentTemplateFormat
segmentTemplateFormat) (\s :: DashPackage
s@DashPackage' {} Maybe SegmentTemplateFormat
a -> DashPackage
s {$sel:segmentTemplateFormat:DashPackage' :: Maybe SegmentTemplateFormat
segmentTemplateFormat = Maybe SegmentTemplateFormat
a} :: DashPackage)
dashPackage_profile :: Lens.Lens' DashPackage (Prelude.Maybe Profile)
dashPackage_profile :: (Maybe Profile -> f (Maybe Profile))
-> DashPackage -> f DashPackage
dashPackage_profile = (DashPackage -> Maybe Profile)
-> (DashPackage -> Maybe Profile -> DashPackage)
-> Lens DashPackage DashPackage (Maybe Profile) (Maybe Profile)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe Profile
profile :: Maybe Profile
$sel:profile:DashPackage' :: DashPackage -> Maybe Profile
profile} -> Maybe Profile
profile) (\s :: DashPackage
s@DashPackage' {} Maybe Profile
a -> DashPackage
s {$sel:profile:DashPackage' :: Maybe Profile
profile = Maybe Profile
a} :: DashPackage)
dashPackage_segmentDurationSeconds :: Lens.Lens' DashPackage (Prelude.Maybe Prelude.Int)
dashPackage_segmentDurationSeconds :: (Maybe Int -> f (Maybe Int)) -> DashPackage -> f DashPackage
dashPackage_segmentDurationSeconds = (DashPackage -> Maybe Int)
-> (DashPackage -> Maybe Int -> DashPackage)
-> Lens DashPackage DashPackage (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe Int
segmentDurationSeconds :: Maybe Int
$sel:segmentDurationSeconds:DashPackage' :: DashPackage -> Maybe Int
segmentDurationSeconds} -> Maybe Int
segmentDurationSeconds) (\s :: DashPackage
s@DashPackage' {} Maybe Int
a -> DashPackage
s {$sel:segmentDurationSeconds:DashPackage' :: Maybe Int
segmentDurationSeconds = Maybe Int
a} :: DashPackage)
dashPackage_utcTimingUri :: Lens.Lens' DashPackage (Prelude.Maybe Prelude.Text)
dashPackage_utcTimingUri :: (Maybe Text -> f (Maybe Text)) -> DashPackage -> f DashPackage
dashPackage_utcTimingUri = (DashPackage -> Maybe Text)
-> (DashPackage -> Maybe Text -> DashPackage)
-> Lens DashPackage DashPackage (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe Text
utcTimingUri :: Maybe Text
$sel:utcTimingUri:DashPackage' :: DashPackage -> Maybe Text
utcTimingUri} -> Maybe Text
utcTimingUri) (\s :: DashPackage
s@DashPackage' {} Maybe Text
a -> DashPackage
s {$sel:utcTimingUri:DashPackage' :: Maybe Text
utcTimingUri = Maybe Text
a} :: DashPackage)
dashPackage_streamSelection :: Lens.Lens' DashPackage (Prelude.Maybe StreamSelection)
dashPackage_streamSelection :: (Maybe StreamSelection -> f (Maybe StreamSelection))
-> DashPackage -> f DashPackage
dashPackage_streamSelection = (DashPackage -> Maybe StreamSelection)
-> (DashPackage -> Maybe StreamSelection -> DashPackage)
-> Lens
DashPackage
DashPackage
(Maybe StreamSelection)
(Maybe StreamSelection)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe StreamSelection
streamSelection :: Maybe StreamSelection
$sel:streamSelection:DashPackage' :: DashPackage -> Maybe StreamSelection
streamSelection} -> Maybe StreamSelection
streamSelection) (\s :: DashPackage
s@DashPackage' {} Maybe StreamSelection
a -> DashPackage
s {$sel:streamSelection:DashPackage' :: Maybe StreamSelection
streamSelection = Maybe StreamSelection
a} :: DashPackage)
dashPackage_encryption :: Lens.Lens' DashPackage (Prelude.Maybe DashEncryption)
dashPackage_encryption :: (Maybe DashEncryption -> f (Maybe DashEncryption))
-> DashPackage -> f DashPackage
dashPackage_encryption = (DashPackage -> Maybe DashEncryption)
-> (DashPackage -> Maybe DashEncryption -> DashPackage)
-> Lens
DashPackage
DashPackage
(Maybe DashEncryption)
(Maybe DashEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe DashEncryption
encryption :: Maybe DashEncryption
$sel:encryption:DashPackage' :: DashPackage -> Maybe DashEncryption
encryption} -> Maybe DashEncryption
encryption) (\s :: DashPackage
s@DashPackage' {} Maybe DashEncryption
a -> DashPackage
s {$sel:encryption:DashPackage' :: Maybe DashEncryption
encryption = Maybe DashEncryption
a} :: DashPackage)
dashPackage_minUpdatePeriodSeconds :: Lens.Lens' DashPackage (Prelude.Maybe Prelude.Int)
dashPackage_minUpdatePeriodSeconds :: (Maybe Int -> f (Maybe Int)) -> DashPackage -> f DashPackage
dashPackage_minUpdatePeriodSeconds = (DashPackage -> Maybe Int)
-> (DashPackage -> Maybe Int -> DashPackage)
-> Lens DashPackage DashPackage (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe Int
minUpdatePeriodSeconds :: Maybe Int
$sel:minUpdatePeriodSeconds:DashPackage' :: DashPackage -> Maybe Int
minUpdatePeriodSeconds} -> Maybe Int
minUpdatePeriodSeconds) (\s :: DashPackage
s@DashPackage' {} Maybe Int
a -> DashPackage
s {$sel:minUpdatePeriodSeconds:DashPackage' :: Maybe Int
minUpdatePeriodSeconds = Maybe Int
a} :: DashPackage)
dashPackage_manifestLayout :: Lens.Lens' DashPackage (Prelude.Maybe ManifestLayout)
dashPackage_manifestLayout :: (Maybe ManifestLayout -> f (Maybe ManifestLayout))
-> DashPackage -> f DashPackage
dashPackage_manifestLayout = (DashPackage -> Maybe ManifestLayout)
-> (DashPackage -> Maybe ManifestLayout -> DashPackage)
-> Lens
DashPackage
DashPackage
(Maybe ManifestLayout)
(Maybe ManifestLayout)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe ManifestLayout
manifestLayout :: Maybe ManifestLayout
$sel:manifestLayout:DashPackage' :: DashPackage -> Maybe ManifestLayout
manifestLayout} -> Maybe ManifestLayout
manifestLayout) (\s :: DashPackage
s@DashPackage' {} Maybe ManifestLayout
a -> DashPackage
s {$sel:manifestLayout:DashPackage' :: Maybe ManifestLayout
manifestLayout = Maybe ManifestLayout
a} :: DashPackage)
dashPackage_suggestedPresentationDelaySeconds :: Lens.Lens' DashPackage (Prelude.Maybe Prelude.Int)
dashPackage_suggestedPresentationDelaySeconds :: (Maybe Int -> f (Maybe Int)) -> DashPackage -> f DashPackage
dashPackage_suggestedPresentationDelaySeconds = (DashPackage -> Maybe Int)
-> (DashPackage -> Maybe Int -> DashPackage)
-> Lens DashPackage DashPackage (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe Int
suggestedPresentationDelaySeconds :: Maybe Int
$sel:suggestedPresentationDelaySeconds:DashPackage' :: DashPackage -> Maybe Int
suggestedPresentationDelaySeconds} -> Maybe Int
suggestedPresentationDelaySeconds) (\s :: DashPackage
s@DashPackage' {} Maybe Int
a -> DashPackage
s {$sel:suggestedPresentationDelaySeconds:DashPackage' :: Maybe Int
suggestedPresentationDelaySeconds = Maybe Int
a} :: DashPackage)
dashPackage_manifestWindowSeconds :: Lens.Lens' DashPackage (Prelude.Maybe Prelude.Int)
dashPackage_manifestWindowSeconds :: (Maybe Int -> f (Maybe Int)) -> DashPackage -> f DashPackage
dashPackage_manifestWindowSeconds = (DashPackage -> Maybe Int)
-> (DashPackage -> Maybe Int -> DashPackage)
-> Lens DashPackage DashPackage (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe Int
manifestWindowSeconds :: Maybe Int
$sel:manifestWindowSeconds:DashPackage' :: DashPackage -> Maybe Int
manifestWindowSeconds} -> Maybe Int
manifestWindowSeconds) (\s :: DashPackage
s@DashPackage' {} Maybe Int
a -> DashPackage
s {$sel:manifestWindowSeconds:DashPackage' :: Maybe Int
manifestWindowSeconds = Maybe Int
a} :: DashPackage)
dashPackage_adTriggers :: Lens.Lens' DashPackage (Prelude.Maybe [AdTriggersElement])
dashPackage_adTriggers :: (Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> DashPackage -> f DashPackage
dashPackage_adTriggers = (DashPackage -> Maybe [AdTriggersElement])
-> (DashPackage -> Maybe [AdTriggersElement] -> DashPackage)
-> Lens
DashPackage
DashPackage
(Maybe [AdTriggersElement])
(Maybe [AdTriggersElement])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe [AdTriggersElement]
adTriggers :: Maybe [AdTriggersElement]
$sel:adTriggers:DashPackage' :: DashPackage -> Maybe [AdTriggersElement]
adTriggers} -> Maybe [AdTriggersElement]
adTriggers) (\s :: DashPackage
s@DashPackage' {} Maybe [AdTriggersElement]
a -> DashPackage
s {$sel:adTriggers:DashPackage' :: Maybe [AdTriggersElement]
adTriggers = Maybe [AdTriggersElement]
a} :: DashPackage) ((Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> DashPackage -> f DashPackage)
-> ((Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> (Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> DashPackage
-> f DashPackage
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AdTriggersElement]
[AdTriggersElement]
[AdTriggersElement]
[AdTriggersElement]
-> Iso
(Maybe [AdTriggersElement])
(Maybe [AdTriggersElement])
(Maybe [AdTriggersElement])
(Maybe [AdTriggersElement])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[AdTriggersElement]
[AdTriggersElement]
[AdTriggersElement]
[AdTriggersElement]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
dashPackage_periodTriggers :: Lens.Lens' DashPackage (Prelude.Maybe [PeriodTriggersElement])
dashPackage_periodTriggers :: (Maybe [PeriodTriggersElement]
-> f (Maybe [PeriodTriggersElement]))
-> DashPackage -> f DashPackage
dashPackage_periodTriggers = (DashPackage -> Maybe [PeriodTriggersElement])
-> (DashPackage -> Maybe [PeriodTriggersElement] -> DashPackage)
-> Lens
DashPackage
DashPackage
(Maybe [PeriodTriggersElement])
(Maybe [PeriodTriggersElement])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashPackage' {Maybe [PeriodTriggersElement]
periodTriggers :: Maybe [PeriodTriggersElement]
$sel:periodTriggers:DashPackage' :: DashPackage -> Maybe [PeriodTriggersElement]
periodTriggers} -> Maybe [PeriodTriggersElement]
periodTriggers) (\s :: DashPackage
s@DashPackage' {} Maybe [PeriodTriggersElement]
a -> DashPackage
s {$sel:periodTriggers:DashPackage' :: Maybe [PeriodTriggersElement]
periodTriggers = Maybe [PeriodTriggersElement]
a} :: DashPackage) ((Maybe [PeriodTriggersElement]
-> f (Maybe [PeriodTriggersElement]))
-> DashPackage -> f DashPackage)
-> ((Maybe [PeriodTriggersElement]
-> f (Maybe [PeriodTriggersElement]))
-> Maybe [PeriodTriggersElement]
-> f (Maybe [PeriodTriggersElement]))
-> (Maybe [PeriodTriggersElement]
-> f (Maybe [PeriodTriggersElement]))
-> DashPackage
-> f DashPackage
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PeriodTriggersElement]
[PeriodTriggersElement]
[PeriodTriggersElement]
[PeriodTriggersElement]
-> Iso
(Maybe [PeriodTriggersElement])
(Maybe [PeriodTriggersElement])
(Maybe [PeriodTriggersElement])
(Maybe [PeriodTriggersElement])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[PeriodTriggersElement]
[PeriodTriggersElement]
[PeriodTriggersElement]
[PeriodTriggersElement]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.FromJSON DashPackage where
parseJSON :: Value -> Parser DashPackage
parseJSON =
String
-> (Object -> Parser DashPackage) -> Value -> Parser DashPackage
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DashPackage"
( \Object
x ->
Maybe AdsOnDeliveryRestrictions
-> Maybe Int
-> Maybe UtcTiming
-> Maybe SegmentTemplateFormat
-> Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage
DashPackage'
(Maybe AdsOnDeliveryRestrictions
-> Maybe Int
-> Maybe UtcTiming
-> Maybe SegmentTemplateFormat
-> Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe AdsOnDeliveryRestrictions)
-> Parser
(Maybe Int
-> Maybe UtcTiming
-> Maybe SegmentTemplateFormat
-> Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe AdsOnDeliveryRestrictions)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"adsOnDeliveryRestrictions")
Parser
(Maybe Int
-> Maybe UtcTiming
-> Maybe SegmentTemplateFormat
-> Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe Int)
-> Parser
(Maybe UtcTiming
-> Maybe SegmentTemplateFormat
-> Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"minBufferTimeSeconds")
Parser
(Maybe UtcTiming
-> Maybe SegmentTemplateFormat
-> Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe UtcTiming)
-> Parser
(Maybe SegmentTemplateFormat
-> Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe UtcTiming)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"utcTiming")
Parser
(Maybe SegmentTemplateFormat
-> Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe SegmentTemplateFormat)
-> Parser
(Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SegmentTemplateFormat)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"segmentTemplateFormat")
Parser
(Maybe Profile
-> Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe Profile)
-> Parser
(Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Profile)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"profile")
Parser
(Maybe Int
-> Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe Int)
-> Parser
(Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"segmentDurationSeconds")
Parser
(Maybe Text
-> Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe Text)
-> Parser
(Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
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
"utcTimingUri")
Parser
(Maybe StreamSelection
-> Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe StreamSelection)
-> Parser
(Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe StreamSelection)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"streamSelection")
Parser
(Maybe DashEncryption
-> Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe DashEncryption)
-> Parser
(Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DashEncryption)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"encryption")
Parser
(Maybe Int
-> Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe Int)
-> Parser
(Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"minUpdatePeriodSeconds")
Parser
(Maybe ManifestLayout
-> Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe ManifestLayout)
-> Parser
(Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ManifestLayout)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"manifestLayout")
Parser
(Maybe Int
-> Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"suggestedPresentationDelaySeconds")
Parser
(Maybe Int
-> Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement]
-> DashPackage)
-> Parser (Maybe Int)
-> Parser
(Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement] -> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"manifestWindowSeconds")
Parser
(Maybe [AdTriggersElement]
-> Maybe [PeriodTriggersElement] -> DashPackage)
-> Parser (Maybe [AdTriggersElement])
-> Parser (Maybe [PeriodTriggersElement] -> DashPackage)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [AdTriggersElement]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"adTriggers" Parser (Maybe (Maybe [AdTriggersElement]))
-> Maybe [AdTriggersElement] -> Parser (Maybe [AdTriggersElement])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AdTriggersElement]
forall a. Monoid a => a
Prelude.mempty)
Parser (Maybe [PeriodTriggersElement] -> DashPackage)
-> Parser (Maybe [PeriodTriggersElement]) -> Parser DashPackage
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [PeriodTriggersElement]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"periodTriggers"
Parser (Maybe (Maybe [PeriodTriggersElement]))
-> Maybe [PeriodTriggersElement]
-> Parser (Maybe [PeriodTriggersElement])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [PeriodTriggersElement]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable DashPackage
instance Prelude.NFData DashPackage
instance Core.ToJSON DashPackage where
toJSON :: DashPackage -> Value
toJSON DashPackage' {Maybe Int
Maybe [AdTriggersElement]
Maybe [PeriodTriggersElement]
Maybe Text
Maybe AdsOnDeliveryRestrictions
Maybe ManifestLayout
Maybe Profile
Maybe SegmentTemplateFormat
Maybe DashEncryption
Maybe StreamSelection
Maybe UtcTiming
periodTriggers :: Maybe [PeriodTriggersElement]
adTriggers :: Maybe [AdTriggersElement]
manifestWindowSeconds :: Maybe Int
suggestedPresentationDelaySeconds :: Maybe Int
manifestLayout :: Maybe ManifestLayout
minUpdatePeriodSeconds :: Maybe Int
encryption :: Maybe DashEncryption
streamSelection :: Maybe StreamSelection
utcTimingUri :: Maybe Text
segmentDurationSeconds :: Maybe Int
profile :: Maybe Profile
segmentTemplateFormat :: Maybe SegmentTemplateFormat
utcTiming :: Maybe UtcTiming
minBufferTimeSeconds :: Maybe Int
adsOnDeliveryRestrictions :: Maybe AdsOnDeliveryRestrictions
$sel:periodTriggers:DashPackage' :: DashPackage -> Maybe [PeriodTriggersElement]
$sel:adTriggers:DashPackage' :: DashPackage -> Maybe [AdTriggersElement]
$sel:manifestWindowSeconds:DashPackage' :: DashPackage -> Maybe Int
$sel:suggestedPresentationDelaySeconds:DashPackage' :: DashPackage -> Maybe Int
$sel:manifestLayout:DashPackage' :: DashPackage -> Maybe ManifestLayout
$sel:minUpdatePeriodSeconds:DashPackage' :: DashPackage -> Maybe Int
$sel:encryption:DashPackage' :: DashPackage -> Maybe DashEncryption
$sel:streamSelection:DashPackage' :: DashPackage -> Maybe StreamSelection
$sel:utcTimingUri:DashPackage' :: DashPackage -> Maybe Text
$sel:segmentDurationSeconds:DashPackage' :: DashPackage -> Maybe Int
$sel:profile:DashPackage' :: DashPackage -> Maybe Profile
$sel:segmentTemplateFormat:DashPackage' :: DashPackage -> Maybe SegmentTemplateFormat
$sel:utcTiming:DashPackage' :: DashPackage -> Maybe UtcTiming
$sel:minBufferTimeSeconds:DashPackage' :: DashPackage -> Maybe Int
$sel:adsOnDeliveryRestrictions:DashPackage' :: DashPackage -> Maybe AdsOnDeliveryRestrictions
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"adsOnDeliveryRestrictions" Text -> AdsOnDeliveryRestrictions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AdsOnDeliveryRestrictions -> Pair)
-> Maybe AdsOnDeliveryRestrictions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions,
(Text
"minBufferTimeSeconds" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
minBufferTimeSeconds,
(Text
"utcTiming" Text -> UtcTiming -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (UtcTiming -> Pair) -> Maybe UtcTiming -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UtcTiming
utcTiming,
(Text
"segmentTemplateFormat" Text -> SegmentTemplateFormat -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(SegmentTemplateFormat -> Pair)
-> Maybe SegmentTemplateFormat -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SegmentTemplateFormat
segmentTemplateFormat,
(Text
"profile" Text -> Profile -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Profile -> Pair) -> Maybe Profile -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Profile
profile,
(Text
"segmentDurationSeconds" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
segmentDurationSeconds,
(Text
"utcTimingUri" 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
utcTimingUri,
(Text
"streamSelection" Text -> StreamSelection -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(StreamSelection -> Pair) -> Maybe StreamSelection -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StreamSelection
streamSelection,
(Text
"encryption" Text -> DashEncryption -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (DashEncryption -> Pair) -> Maybe DashEncryption -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DashEncryption
encryption,
(Text
"minUpdatePeriodSeconds" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
minUpdatePeriodSeconds,
(Text
"manifestLayout" Text -> ManifestLayout -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ManifestLayout -> Pair) -> Maybe ManifestLayout -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ManifestLayout
manifestLayout,
(Text
"suggestedPresentationDelaySeconds" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
suggestedPresentationDelaySeconds,
(Text
"manifestWindowSeconds" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
manifestWindowSeconds,
(Text
"adTriggers" Text -> [AdTriggersElement] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([AdTriggersElement] -> Pair)
-> Maybe [AdTriggersElement] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AdTriggersElement]
adTriggers,
(Text
"periodTriggers" Text -> [PeriodTriggersElement] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([PeriodTriggersElement] -> Pair)
-> Maybe [PeriodTriggersElement] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PeriodTriggersElement]
periodTriggers
]
)