{-# 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.HlsManifestCreateOrUpdateParameters where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaPackage.Types.AdMarkers
import Amazonka.MediaPackage.Types.AdTriggersElement
import Amazonka.MediaPackage.Types.AdsOnDeliveryRestrictions
import Amazonka.MediaPackage.Types.PlaylistType
import qualified Amazonka.Prelude as Prelude
data HlsManifestCreateOrUpdateParameters = HlsManifestCreateOrUpdateParameters'
{ HlsManifestCreateOrUpdateParameters
-> Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions :: Prelude.Maybe AdsOnDeliveryRestrictions,
HlsManifestCreateOrUpdateParameters -> Maybe Text
manifestName :: Prelude.Maybe Prelude.Text,
HlsManifestCreateOrUpdateParameters -> Maybe PlaylistType
playlistType :: Prelude.Maybe PlaylistType,
HlsManifestCreateOrUpdateParameters -> Maybe Int
programDateTimeIntervalSeconds :: Prelude.Maybe Prelude.Int,
HlsManifestCreateOrUpdateParameters -> Maybe AdMarkers
adMarkers :: Prelude.Maybe AdMarkers,
HlsManifestCreateOrUpdateParameters -> Maybe Bool
includeIframeOnlyStream :: Prelude.Maybe Prelude.Bool,
HlsManifestCreateOrUpdateParameters -> Maybe [AdTriggersElement]
adTriggers :: Prelude.Maybe [AdTriggersElement],
HlsManifestCreateOrUpdateParameters -> Maybe Int
playlistWindowSeconds :: Prelude.Maybe Prelude.Int,
HlsManifestCreateOrUpdateParameters -> Text
id :: Prelude.Text
}
deriving (HlsManifestCreateOrUpdateParameters
-> HlsManifestCreateOrUpdateParameters -> Bool
(HlsManifestCreateOrUpdateParameters
-> HlsManifestCreateOrUpdateParameters -> Bool)
-> (HlsManifestCreateOrUpdateParameters
-> HlsManifestCreateOrUpdateParameters -> Bool)
-> Eq HlsManifestCreateOrUpdateParameters
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HlsManifestCreateOrUpdateParameters
-> HlsManifestCreateOrUpdateParameters -> Bool
$c/= :: HlsManifestCreateOrUpdateParameters
-> HlsManifestCreateOrUpdateParameters -> Bool
== :: HlsManifestCreateOrUpdateParameters
-> HlsManifestCreateOrUpdateParameters -> Bool
$c== :: HlsManifestCreateOrUpdateParameters
-> HlsManifestCreateOrUpdateParameters -> Bool
Prelude.Eq, ReadPrec [HlsManifestCreateOrUpdateParameters]
ReadPrec HlsManifestCreateOrUpdateParameters
Int -> ReadS HlsManifestCreateOrUpdateParameters
ReadS [HlsManifestCreateOrUpdateParameters]
(Int -> ReadS HlsManifestCreateOrUpdateParameters)
-> ReadS [HlsManifestCreateOrUpdateParameters]
-> ReadPrec HlsManifestCreateOrUpdateParameters
-> ReadPrec [HlsManifestCreateOrUpdateParameters]
-> Read HlsManifestCreateOrUpdateParameters
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HlsManifestCreateOrUpdateParameters]
$creadListPrec :: ReadPrec [HlsManifestCreateOrUpdateParameters]
readPrec :: ReadPrec HlsManifestCreateOrUpdateParameters
$creadPrec :: ReadPrec HlsManifestCreateOrUpdateParameters
readList :: ReadS [HlsManifestCreateOrUpdateParameters]
$creadList :: ReadS [HlsManifestCreateOrUpdateParameters]
readsPrec :: Int -> ReadS HlsManifestCreateOrUpdateParameters
$creadsPrec :: Int -> ReadS HlsManifestCreateOrUpdateParameters
Prelude.Read, Int -> HlsManifestCreateOrUpdateParameters -> ShowS
[HlsManifestCreateOrUpdateParameters] -> ShowS
HlsManifestCreateOrUpdateParameters -> String
(Int -> HlsManifestCreateOrUpdateParameters -> ShowS)
-> (HlsManifestCreateOrUpdateParameters -> String)
-> ([HlsManifestCreateOrUpdateParameters] -> ShowS)
-> Show HlsManifestCreateOrUpdateParameters
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HlsManifestCreateOrUpdateParameters] -> ShowS
$cshowList :: [HlsManifestCreateOrUpdateParameters] -> ShowS
show :: HlsManifestCreateOrUpdateParameters -> String
$cshow :: HlsManifestCreateOrUpdateParameters -> String
showsPrec :: Int -> HlsManifestCreateOrUpdateParameters -> ShowS
$cshowsPrec :: Int -> HlsManifestCreateOrUpdateParameters -> ShowS
Prelude.Show, (forall x.
HlsManifestCreateOrUpdateParameters
-> Rep HlsManifestCreateOrUpdateParameters x)
-> (forall x.
Rep HlsManifestCreateOrUpdateParameters x
-> HlsManifestCreateOrUpdateParameters)
-> Generic HlsManifestCreateOrUpdateParameters
forall x.
Rep HlsManifestCreateOrUpdateParameters x
-> HlsManifestCreateOrUpdateParameters
forall x.
HlsManifestCreateOrUpdateParameters
-> Rep HlsManifestCreateOrUpdateParameters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep HlsManifestCreateOrUpdateParameters x
-> HlsManifestCreateOrUpdateParameters
$cfrom :: forall x.
HlsManifestCreateOrUpdateParameters
-> Rep HlsManifestCreateOrUpdateParameters x
Prelude.Generic)
newHlsManifestCreateOrUpdateParameters ::
Prelude.Text ->
HlsManifestCreateOrUpdateParameters
newHlsManifestCreateOrUpdateParameters :: Text -> HlsManifestCreateOrUpdateParameters
newHlsManifestCreateOrUpdateParameters Text
pId_ =
HlsManifestCreateOrUpdateParameters' :: Maybe AdsOnDeliveryRestrictions
-> Maybe Text
-> Maybe PlaylistType
-> Maybe Int
-> Maybe AdMarkers
-> Maybe Bool
-> Maybe [AdTriggersElement]
-> Maybe Int
-> Text
-> HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters'
{ $sel:adsOnDeliveryRestrictions:HlsManifestCreateOrUpdateParameters' :: Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions =
Maybe AdsOnDeliveryRestrictions
forall a. Maybe a
Prelude.Nothing,
$sel:manifestName:HlsManifestCreateOrUpdateParameters' :: Maybe Text
manifestName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:playlistType:HlsManifestCreateOrUpdateParameters' :: Maybe PlaylistType
playlistType = Maybe PlaylistType
forall a. Maybe a
Prelude.Nothing,
$sel:programDateTimeIntervalSeconds:HlsManifestCreateOrUpdateParameters' :: Maybe Int
programDateTimeIntervalSeconds =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:adMarkers:HlsManifestCreateOrUpdateParameters' :: Maybe AdMarkers
adMarkers = Maybe AdMarkers
forall a. Maybe a
Prelude.Nothing,
$sel:includeIframeOnlyStream:HlsManifestCreateOrUpdateParameters' :: Maybe Bool
includeIframeOnlyStream =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:adTriggers:HlsManifestCreateOrUpdateParameters' :: Maybe [AdTriggersElement]
adTriggers = Maybe [AdTriggersElement]
forall a. Maybe a
Prelude.Nothing,
$sel:playlistWindowSeconds:HlsManifestCreateOrUpdateParameters' :: Maybe Int
playlistWindowSeconds =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:id:HlsManifestCreateOrUpdateParameters' :: Text
id = Text
pId_
}
hlsManifestCreateOrUpdateParameters_adsOnDeliveryRestrictions :: Lens.Lens' HlsManifestCreateOrUpdateParameters (Prelude.Maybe AdsOnDeliveryRestrictions)
hlsManifestCreateOrUpdateParameters_adsOnDeliveryRestrictions :: (Maybe AdsOnDeliveryRestrictions
-> f (Maybe AdsOnDeliveryRestrictions))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
hlsManifestCreateOrUpdateParameters_adsOnDeliveryRestrictions = (HlsManifestCreateOrUpdateParameters
-> Maybe AdsOnDeliveryRestrictions)
-> (HlsManifestCreateOrUpdateParameters
-> Maybe AdsOnDeliveryRestrictions
-> HlsManifestCreateOrUpdateParameters)
-> Lens
HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters
(Maybe AdsOnDeliveryRestrictions)
(Maybe AdsOnDeliveryRestrictions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsManifestCreateOrUpdateParameters' {Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions :: Maybe AdsOnDeliveryRestrictions
$sel:adsOnDeliveryRestrictions:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters
-> Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions} -> Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions) (\s :: HlsManifestCreateOrUpdateParameters
s@HlsManifestCreateOrUpdateParameters' {} Maybe AdsOnDeliveryRestrictions
a -> HlsManifestCreateOrUpdateParameters
s {$sel:adsOnDeliveryRestrictions:HlsManifestCreateOrUpdateParameters' :: Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions = Maybe AdsOnDeliveryRestrictions
a} :: HlsManifestCreateOrUpdateParameters)
hlsManifestCreateOrUpdateParameters_manifestName :: Lens.Lens' HlsManifestCreateOrUpdateParameters (Prelude.Maybe Prelude.Text)
hlsManifestCreateOrUpdateParameters_manifestName :: (Maybe Text -> f (Maybe Text))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
hlsManifestCreateOrUpdateParameters_manifestName = (HlsManifestCreateOrUpdateParameters -> Maybe Text)
-> (HlsManifestCreateOrUpdateParameters
-> Maybe Text -> HlsManifestCreateOrUpdateParameters)
-> Lens
HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsManifestCreateOrUpdateParameters' {Maybe Text
manifestName :: Maybe Text
$sel:manifestName:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe Text
manifestName} -> Maybe Text
manifestName) (\s :: HlsManifestCreateOrUpdateParameters
s@HlsManifestCreateOrUpdateParameters' {} Maybe Text
a -> HlsManifestCreateOrUpdateParameters
s {$sel:manifestName:HlsManifestCreateOrUpdateParameters' :: Maybe Text
manifestName = Maybe Text
a} :: HlsManifestCreateOrUpdateParameters)
hlsManifestCreateOrUpdateParameters_playlistType :: Lens.Lens' HlsManifestCreateOrUpdateParameters (Prelude.Maybe PlaylistType)
hlsManifestCreateOrUpdateParameters_playlistType :: (Maybe PlaylistType -> f (Maybe PlaylistType))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
hlsManifestCreateOrUpdateParameters_playlistType = (HlsManifestCreateOrUpdateParameters -> Maybe PlaylistType)
-> (HlsManifestCreateOrUpdateParameters
-> Maybe PlaylistType -> HlsManifestCreateOrUpdateParameters)
-> Lens
HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters
(Maybe PlaylistType)
(Maybe PlaylistType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsManifestCreateOrUpdateParameters' {Maybe PlaylistType
playlistType :: Maybe PlaylistType
$sel:playlistType:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe PlaylistType
playlistType} -> Maybe PlaylistType
playlistType) (\s :: HlsManifestCreateOrUpdateParameters
s@HlsManifestCreateOrUpdateParameters' {} Maybe PlaylistType
a -> HlsManifestCreateOrUpdateParameters
s {$sel:playlistType:HlsManifestCreateOrUpdateParameters' :: Maybe PlaylistType
playlistType = Maybe PlaylistType
a} :: HlsManifestCreateOrUpdateParameters)
hlsManifestCreateOrUpdateParameters_programDateTimeIntervalSeconds :: Lens.Lens' HlsManifestCreateOrUpdateParameters (Prelude.Maybe Prelude.Int)
hlsManifestCreateOrUpdateParameters_programDateTimeIntervalSeconds :: (Maybe Int -> f (Maybe Int))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
hlsManifestCreateOrUpdateParameters_programDateTimeIntervalSeconds = (HlsManifestCreateOrUpdateParameters -> Maybe Int)
-> (HlsManifestCreateOrUpdateParameters
-> Maybe Int -> HlsManifestCreateOrUpdateParameters)
-> Lens
HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsManifestCreateOrUpdateParameters' {Maybe Int
programDateTimeIntervalSeconds :: Maybe Int
$sel:programDateTimeIntervalSeconds:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe Int
programDateTimeIntervalSeconds} -> Maybe Int
programDateTimeIntervalSeconds) (\s :: HlsManifestCreateOrUpdateParameters
s@HlsManifestCreateOrUpdateParameters' {} Maybe Int
a -> HlsManifestCreateOrUpdateParameters
s {$sel:programDateTimeIntervalSeconds:HlsManifestCreateOrUpdateParameters' :: Maybe Int
programDateTimeIntervalSeconds = Maybe Int
a} :: HlsManifestCreateOrUpdateParameters)
hlsManifestCreateOrUpdateParameters_adMarkers :: Lens.Lens' HlsManifestCreateOrUpdateParameters (Prelude.Maybe AdMarkers)
hlsManifestCreateOrUpdateParameters_adMarkers :: (Maybe AdMarkers -> f (Maybe AdMarkers))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
hlsManifestCreateOrUpdateParameters_adMarkers = (HlsManifestCreateOrUpdateParameters -> Maybe AdMarkers)
-> (HlsManifestCreateOrUpdateParameters
-> Maybe AdMarkers -> HlsManifestCreateOrUpdateParameters)
-> Lens
HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters
(Maybe AdMarkers)
(Maybe AdMarkers)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsManifestCreateOrUpdateParameters' {Maybe AdMarkers
adMarkers :: Maybe AdMarkers
$sel:adMarkers:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe AdMarkers
adMarkers} -> Maybe AdMarkers
adMarkers) (\s :: HlsManifestCreateOrUpdateParameters
s@HlsManifestCreateOrUpdateParameters' {} Maybe AdMarkers
a -> HlsManifestCreateOrUpdateParameters
s {$sel:adMarkers:HlsManifestCreateOrUpdateParameters' :: Maybe AdMarkers
adMarkers = Maybe AdMarkers
a} :: HlsManifestCreateOrUpdateParameters)
hlsManifestCreateOrUpdateParameters_includeIframeOnlyStream :: Lens.Lens' HlsManifestCreateOrUpdateParameters (Prelude.Maybe Prelude.Bool)
hlsManifestCreateOrUpdateParameters_includeIframeOnlyStream :: (Maybe Bool -> f (Maybe Bool))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
hlsManifestCreateOrUpdateParameters_includeIframeOnlyStream = (HlsManifestCreateOrUpdateParameters -> Maybe Bool)
-> (HlsManifestCreateOrUpdateParameters
-> Maybe Bool -> HlsManifestCreateOrUpdateParameters)
-> Lens
HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsManifestCreateOrUpdateParameters' {Maybe Bool
includeIframeOnlyStream :: Maybe Bool
$sel:includeIframeOnlyStream:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe Bool
includeIframeOnlyStream} -> Maybe Bool
includeIframeOnlyStream) (\s :: HlsManifestCreateOrUpdateParameters
s@HlsManifestCreateOrUpdateParameters' {} Maybe Bool
a -> HlsManifestCreateOrUpdateParameters
s {$sel:includeIframeOnlyStream:HlsManifestCreateOrUpdateParameters' :: Maybe Bool
includeIframeOnlyStream = Maybe Bool
a} :: HlsManifestCreateOrUpdateParameters)
hlsManifestCreateOrUpdateParameters_adTriggers :: Lens.Lens' HlsManifestCreateOrUpdateParameters (Prelude.Maybe [AdTriggersElement])
hlsManifestCreateOrUpdateParameters_adTriggers :: (Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
hlsManifestCreateOrUpdateParameters_adTriggers = (HlsManifestCreateOrUpdateParameters -> Maybe [AdTriggersElement])
-> (HlsManifestCreateOrUpdateParameters
-> Maybe [AdTriggersElement]
-> HlsManifestCreateOrUpdateParameters)
-> Lens
HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters
(Maybe [AdTriggersElement])
(Maybe [AdTriggersElement])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsManifestCreateOrUpdateParameters' {Maybe [AdTriggersElement]
adTriggers :: Maybe [AdTriggersElement]
$sel:adTriggers:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe [AdTriggersElement]
adTriggers} -> Maybe [AdTriggersElement]
adTriggers) (\s :: HlsManifestCreateOrUpdateParameters
s@HlsManifestCreateOrUpdateParameters' {} Maybe [AdTriggersElement]
a -> HlsManifestCreateOrUpdateParameters
s {$sel:adTriggers:HlsManifestCreateOrUpdateParameters' :: Maybe [AdTriggersElement]
adTriggers = Maybe [AdTriggersElement]
a} :: HlsManifestCreateOrUpdateParameters) ((Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters)
-> ((Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> (Maybe [AdTriggersElement] -> f (Maybe [AdTriggersElement]))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
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
hlsManifestCreateOrUpdateParameters_playlistWindowSeconds :: Lens.Lens' HlsManifestCreateOrUpdateParameters (Prelude.Maybe Prelude.Int)
hlsManifestCreateOrUpdateParameters_playlistWindowSeconds :: (Maybe Int -> f (Maybe Int))
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
hlsManifestCreateOrUpdateParameters_playlistWindowSeconds = (HlsManifestCreateOrUpdateParameters -> Maybe Int)
-> (HlsManifestCreateOrUpdateParameters
-> Maybe Int -> HlsManifestCreateOrUpdateParameters)
-> Lens
HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsManifestCreateOrUpdateParameters' {Maybe Int
playlistWindowSeconds :: Maybe Int
$sel:playlistWindowSeconds:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe Int
playlistWindowSeconds} -> Maybe Int
playlistWindowSeconds) (\s :: HlsManifestCreateOrUpdateParameters
s@HlsManifestCreateOrUpdateParameters' {} Maybe Int
a -> HlsManifestCreateOrUpdateParameters
s {$sel:playlistWindowSeconds:HlsManifestCreateOrUpdateParameters' :: Maybe Int
playlistWindowSeconds = Maybe Int
a} :: HlsManifestCreateOrUpdateParameters)
hlsManifestCreateOrUpdateParameters_id :: Lens.Lens' HlsManifestCreateOrUpdateParameters Prelude.Text
hlsManifestCreateOrUpdateParameters_id :: (Text -> f Text)
-> HlsManifestCreateOrUpdateParameters
-> f HlsManifestCreateOrUpdateParameters
hlsManifestCreateOrUpdateParameters_id = (HlsManifestCreateOrUpdateParameters -> Text)
-> (HlsManifestCreateOrUpdateParameters
-> Text -> HlsManifestCreateOrUpdateParameters)
-> Lens
HlsManifestCreateOrUpdateParameters
HlsManifestCreateOrUpdateParameters
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsManifestCreateOrUpdateParameters' {Text
id :: Text
$sel:id:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Text
id} -> Text
id) (\s :: HlsManifestCreateOrUpdateParameters
s@HlsManifestCreateOrUpdateParameters' {} Text
a -> HlsManifestCreateOrUpdateParameters
s {$sel:id:HlsManifestCreateOrUpdateParameters' :: Text
id = Text
a} :: HlsManifestCreateOrUpdateParameters)
instance
Prelude.Hashable
HlsManifestCreateOrUpdateParameters
instance
Prelude.NFData
HlsManifestCreateOrUpdateParameters
instance
Core.ToJSON
HlsManifestCreateOrUpdateParameters
where
toJSON :: HlsManifestCreateOrUpdateParameters -> Value
toJSON HlsManifestCreateOrUpdateParameters' {Maybe Bool
Maybe Int
Maybe [AdTriggersElement]
Maybe Text
Maybe AdMarkers
Maybe AdsOnDeliveryRestrictions
Maybe PlaylistType
Text
id :: Text
playlistWindowSeconds :: Maybe Int
adTriggers :: Maybe [AdTriggersElement]
includeIframeOnlyStream :: Maybe Bool
adMarkers :: Maybe AdMarkers
programDateTimeIntervalSeconds :: Maybe Int
playlistType :: Maybe PlaylistType
manifestName :: Maybe Text
adsOnDeliveryRestrictions :: Maybe AdsOnDeliveryRestrictions
$sel:id:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Text
$sel:playlistWindowSeconds:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe Int
$sel:adTriggers:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe [AdTriggersElement]
$sel:includeIframeOnlyStream:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe Bool
$sel:adMarkers:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe AdMarkers
$sel:programDateTimeIntervalSeconds:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe Int
$sel:playlistType:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe PlaylistType
$sel:manifestName:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters -> Maybe Text
$sel:adsOnDeliveryRestrictions:HlsManifestCreateOrUpdateParameters' :: HlsManifestCreateOrUpdateParameters
-> 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
"manifestName" 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
manifestName,
(Text
"playlistType" Text -> PlaylistType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (PlaylistType -> Pair) -> Maybe PlaylistType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PlaylistType
playlistType,
(Text
"programDateTimeIntervalSeconds" 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
programDateTimeIntervalSeconds,
(Text
"adMarkers" Text -> AdMarkers -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AdMarkers -> Pair) -> Maybe AdMarkers -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AdMarkers
adMarkers,
(Text
"includeIframeOnlyStream" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
includeIframeOnlyStream,
(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
"playlistWindowSeconds" 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
playlistWindowSeconds,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"id" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
id)
]
)