{-# 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.MediaPackage.Types.HlsManifestCreateOrUpdateParameters
-- 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.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

-- | A HTTP Live Streaming (HLS) manifest configuration.
--
-- /See:/ 'newHlsManifestCreateOrUpdateParameters' smart constructor.
data HlsManifestCreateOrUpdateParameters = HlsManifestCreateOrUpdateParameters'
  { HlsManifestCreateOrUpdateParameters
-> Maybe AdsOnDeliveryRestrictions
adsOnDeliveryRestrictions :: Prelude.Maybe AdsOnDeliveryRestrictions,
    -- | An optional short string appended to the end of the OriginEndpoint URL.
    -- If not specified, defaults to the manifestName for the OriginEndpoint.
    HlsManifestCreateOrUpdateParameters -> Maybe Text
manifestName :: Prelude.Maybe Prelude.Text,
    -- | The HTTP Live Streaming (HLS) playlist type. When either \"EVENT\" or
    -- \"VOD\" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be
    -- included in the media playlist.
    HlsManifestCreateOrUpdateParameters -> Maybe PlaylistType
playlistType :: Prelude.Maybe PlaylistType,
    -- | The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
    -- inserted into manifests. Additionally, when an interval is specified
    -- ID3Timed Metadata messages will be generated every 5 seconds using the
    -- ingest time of the content. If the interval is not specified, or set to
    -- 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests
    -- and no ID3Timed Metadata messages will be generated. Note that
    -- irrespective of this parameter, if any ID3 Timed Metadata is found in
    -- HTTP Live Streaming (HLS) input, it will be passed through to HLS
    -- output.
    HlsManifestCreateOrUpdateParameters -> Maybe Int
programDateTimeIntervalSeconds :: Prelude.Maybe Prelude.Int,
    -- | This setting controls how ad markers are included in the packaged
    -- OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the
    -- output. \"PASSTHROUGH\" causes the manifest to contain a copy of the
    -- SCTE-35 ad markers (comments) taken directly from the input HTTP Live
    -- Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and
    -- blackout tags based on SCTE-35 messages in the input source.
    -- \"DATERANGE\" inserts EXT-X-DATERANGE tags to signal ad and program
    -- transition events in HLS and CMAF manifests. For this option, you must
    -- set a programDateTimeIntervalSeconds value that is greater than 0.
    HlsManifestCreateOrUpdateParameters -> Maybe AdMarkers
adMarkers :: Prelude.Maybe AdMarkers,
    -- | When enabled, an I-Frame only stream will be included in the output.
    HlsManifestCreateOrUpdateParameters -> Maybe Bool
includeIframeOnlyStream :: Prelude.Maybe Prelude.Bool,
    HlsManifestCreateOrUpdateParameters -> Maybe [AdTriggersElement]
adTriggers :: Prelude.Maybe [AdTriggersElement],
    -- | Time window (in seconds) contained in each parent manifest.
    HlsManifestCreateOrUpdateParameters -> Maybe Int
playlistWindowSeconds :: Prelude.Maybe Prelude.Int,
    -- | The ID of the manifest. The ID must be unique within the OriginEndpoint
    -- and it cannot be changed after it is created.
    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)

-- |
-- Create a value of 'HlsManifestCreateOrUpdateParameters' 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:
--
-- 'adsOnDeliveryRestrictions', 'hlsManifestCreateOrUpdateParameters_adsOnDeliveryRestrictions' - Undocumented member.
--
-- 'manifestName', 'hlsManifestCreateOrUpdateParameters_manifestName' - An optional short string appended to the end of the OriginEndpoint URL.
-- If not specified, defaults to the manifestName for the OriginEndpoint.
--
-- 'playlistType', 'hlsManifestCreateOrUpdateParameters_playlistType' - The HTTP Live Streaming (HLS) playlist type. When either \"EVENT\" or
-- \"VOD\" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be
-- included in the media playlist.
--
-- 'programDateTimeIntervalSeconds', 'hlsManifestCreateOrUpdateParameters_programDateTimeIntervalSeconds' - The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
-- inserted into manifests. Additionally, when an interval is specified
-- ID3Timed Metadata messages will be generated every 5 seconds using the
-- ingest time of the content. If the interval is not specified, or set to
-- 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests
-- and no ID3Timed Metadata messages will be generated. Note that
-- irrespective of this parameter, if any ID3 Timed Metadata is found in
-- HTTP Live Streaming (HLS) input, it will be passed through to HLS
-- output.
--
-- 'adMarkers', 'hlsManifestCreateOrUpdateParameters_adMarkers' - This setting controls how ad markers are included in the packaged
-- OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the
-- output. \"PASSTHROUGH\" causes the manifest to contain a copy of the
-- SCTE-35 ad markers (comments) taken directly from the input HTTP Live
-- Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and
-- blackout tags based on SCTE-35 messages in the input source.
-- \"DATERANGE\" inserts EXT-X-DATERANGE tags to signal ad and program
-- transition events in HLS and CMAF manifests. For this option, you must
-- set a programDateTimeIntervalSeconds value that is greater than 0.
--
-- 'includeIframeOnlyStream', 'hlsManifestCreateOrUpdateParameters_includeIframeOnlyStream' - When enabled, an I-Frame only stream will be included in the output.
--
-- 'adTriggers', 'hlsManifestCreateOrUpdateParameters_adTriggers' - Undocumented member.
--
-- 'playlistWindowSeconds', 'hlsManifestCreateOrUpdateParameters_playlistWindowSeconds' - Time window (in seconds) contained in each parent manifest.
--
-- 'id', 'hlsManifestCreateOrUpdateParameters_id' - The ID of the manifest. The ID must be unique within the OriginEndpoint
-- and it cannot be changed after it is created.
newHlsManifestCreateOrUpdateParameters ::
  -- | 'id'
  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_
    }

-- | Undocumented member.
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)

-- | An optional short string appended to the end of the OriginEndpoint URL.
-- If not specified, defaults to the manifestName for the OriginEndpoint.
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)

-- | The HTTP Live Streaming (HLS) playlist type. When either \"EVENT\" or
-- \"VOD\" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be
-- included in the media playlist.
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)

-- | The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
-- inserted into manifests. Additionally, when an interval is specified
-- ID3Timed Metadata messages will be generated every 5 seconds using the
-- ingest time of the content. If the interval is not specified, or set to
-- 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests
-- and no ID3Timed Metadata messages will be generated. Note that
-- irrespective of this parameter, if any ID3 Timed Metadata is found in
-- HTTP Live Streaming (HLS) input, it will be passed through to HLS
-- output.
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)

-- | This setting controls how ad markers are included in the packaged
-- OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the
-- output. \"PASSTHROUGH\" causes the manifest to contain a copy of the
-- SCTE-35 ad markers (comments) taken directly from the input HTTP Live
-- Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and
-- blackout tags based on SCTE-35 messages in the input source.
-- \"DATERANGE\" inserts EXT-X-DATERANGE tags to signal ad and program
-- transition events in HLS and CMAF manifests. For this option, you must
-- set a programDateTimeIntervalSeconds value that is greater than 0.
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)

-- | When enabled, an I-Frame only stream will be included in the output.
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)

-- | Undocumented member.
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

-- | Time window (in seconds) contained in each parent manifest.
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)

-- | The ID of the manifest. The ID must be unique within the OriginEndpoint
-- and it cannot be changed after it is created.
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)
          ]
      )