{-# 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.ElasticTranscoder.Types.CreateJobPlaylist
-- 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.ElasticTranscoder.Types.CreateJobPlaylist where

import qualified Amazonka.Core as Core
import Amazonka.ElasticTranscoder.Types.HlsContentProtection
import Amazonka.ElasticTranscoder.Types.PlayReadyDrm
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Information about the master playlist.
--
-- /See:/ 'newCreateJobPlaylist' smart constructor.
data CreateJobPlaylist = CreateJobPlaylist'
  { -- | The DRM settings, if any, that you want Elastic Transcoder to apply to
    -- the output files associated with this playlist.
    CreateJobPlaylist -> Maybe PlayReadyDrm
playReadyDrm :: Prelude.Maybe PlayReadyDrm,
    -- | The format of the output playlist. Valid formats include @HLSv3@,
    -- @HLSv4@, and @Smooth@.
    CreateJobPlaylist -> Maybe Text
format :: Prelude.Maybe Prelude.Text,
    -- | For each output in this job that you want to include in a master
    -- playlist, the value of the @Outputs:Key@ object.
    --
    -- -   If your output is not @HLS@ or does not have a segment duration set,
    --     the name of the output file is a concatenation of @OutputKeyPrefix@
    --     and @Outputs:Key@:
    --
    --     OutputKeyPrefix@Outputs:Key@
    --
    -- -   If your output is @HLSv3@ and has a segment duration set, or is not
    --     included in a playlist, Elastic Transcoder creates an output
    --     playlist file with a file extension of @.m3u8@, and a series of
    --     @.ts@ files that include a five-digit sequential counter beginning
    --     with 00000:
    --
    --     OutputKeyPrefix@Outputs:Key@.m3u8
    --
    --     OutputKeyPrefix@Outputs:Key@00000.ts
    --
    -- -   If your output is @HLSv4@, has a segment duration set, and is
    --     included in an @HLSv4@ playlist, Elastic Transcoder creates an
    --     output playlist file with a file extension of @_v4.m3u8@. If the
    --     output is video, Elastic Transcoder also creates an output file with
    --     an extension of @_iframe.m3u8@:
    --
    --     OutputKeyPrefix@Outputs:Key@_v4.m3u8
    --
    --     OutputKeyPrefix@Outputs:Key@_iframe.m3u8
    --
    --     OutputKeyPrefix@Outputs:Key@.ts
    --
    -- Elastic Transcoder automatically appends the relevant file extension to
    -- the file name. If you include a file extension in Output Key, the file
    -- name will have two extensions.
    --
    -- If you include more than one output in a playlist, any segment duration
    -- settings, clip settings, or caption settings must be the same for all
    -- outputs in the playlist. For @Smooth@ playlists, the @Audio:Profile@,
    -- @Video:Profile@, and @Video:FrameRate@ to @Video:KeyframesMaxDist@ ratio
    -- must be the same for all outputs.
    CreateJobPlaylist -> Maybe [Text]
outputKeys :: Prelude.Maybe [Prelude.Text],
    -- | The name that you want Elastic Transcoder to assign to the master
    -- playlist, for example, nyc-vacation.m3u8. If the name includes a @\/@
    -- character, the section of the name before the last @\/@ must be
    -- identical for all @Name@ objects. If you create more than one master
    -- playlist, the values of all @Name@ objects must be unique.
    --
    -- Elastic Transcoder automatically appends the relevant file extension to
    -- the file name (@.m3u8@ for @HLSv3@ and @HLSv4@ playlists, and @.ism@ and
    -- @.ismc@ for @Smooth@ playlists). If you include a file extension in
    -- @Name@, the file name will have two extensions.
    CreateJobPlaylist -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The HLS content protection settings, if any, that you want Elastic
    -- Transcoder to apply to the output files associated with this playlist.
    CreateJobPlaylist -> Maybe HlsContentProtection
hlsContentProtection :: Prelude.Maybe HlsContentProtection
  }
  deriving (CreateJobPlaylist -> CreateJobPlaylist -> Bool
(CreateJobPlaylist -> CreateJobPlaylist -> Bool)
-> (CreateJobPlaylist -> CreateJobPlaylist -> Bool)
-> Eq CreateJobPlaylist
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateJobPlaylist -> CreateJobPlaylist -> Bool
$c/= :: CreateJobPlaylist -> CreateJobPlaylist -> Bool
== :: CreateJobPlaylist -> CreateJobPlaylist -> Bool
$c== :: CreateJobPlaylist -> CreateJobPlaylist -> Bool
Prelude.Eq, ReadPrec [CreateJobPlaylist]
ReadPrec CreateJobPlaylist
Int -> ReadS CreateJobPlaylist
ReadS [CreateJobPlaylist]
(Int -> ReadS CreateJobPlaylist)
-> ReadS [CreateJobPlaylist]
-> ReadPrec CreateJobPlaylist
-> ReadPrec [CreateJobPlaylist]
-> Read CreateJobPlaylist
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateJobPlaylist]
$creadListPrec :: ReadPrec [CreateJobPlaylist]
readPrec :: ReadPrec CreateJobPlaylist
$creadPrec :: ReadPrec CreateJobPlaylist
readList :: ReadS [CreateJobPlaylist]
$creadList :: ReadS [CreateJobPlaylist]
readsPrec :: Int -> ReadS CreateJobPlaylist
$creadsPrec :: Int -> ReadS CreateJobPlaylist
Prelude.Read, Int -> CreateJobPlaylist -> ShowS
[CreateJobPlaylist] -> ShowS
CreateJobPlaylist -> String
(Int -> CreateJobPlaylist -> ShowS)
-> (CreateJobPlaylist -> String)
-> ([CreateJobPlaylist] -> ShowS)
-> Show CreateJobPlaylist
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateJobPlaylist] -> ShowS
$cshowList :: [CreateJobPlaylist] -> ShowS
show :: CreateJobPlaylist -> String
$cshow :: CreateJobPlaylist -> String
showsPrec :: Int -> CreateJobPlaylist -> ShowS
$cshowsPrec :: Int -> CreateJobPlaylist -> ShowS
Prelude.Show, (forall x. CreateJobPlaylist -> Rep CreateJobPlaylist x)
-> (forall x. Rep CreateJobPlaylist x -> CreateJobPlaylist)
-> Generic CreateJobPlaylist
forall x. Rep CreateJobPlaylist x -> CreateJobPlaylist
forall x. CreateJobPlaylist -> Rep CreateJobPlaylist x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateJobPlaylist x -> CreateJobPlaylist
$cfrom :: forall x. CreateJobPlaylist -> Rep CreateJobPlaylist x
Prelude.Generic)

-- |
-- Create a value of 'CreateJobPlaylist' 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:
--
-- 'playReadyDrm', 'createJobPlaylist_playReadyDrm' - The DRM settings, if any, that you want Elastic Transcoder to apply to
-- the output files associated with this playlist.
--
-- 'format', 'createJobPlaylist_format' - The format of the output playlist. Valid formats include @HLSv3@,
-- @HLSv4@, and @Smooth@.
--
-- 'outputKeys', 'createJobPlaylist_outputKeys' - For each output in this job that you want to include in a master
-- playlist, the value of the @Outputs:Key@ object.
--
-- -   If your output is not @HLS@ or does not have a segment duration set,
--     the name of the output file is a concatenation of @OutputKeyPrefix@
--     and @Outputs:Key@:
--
--     OutputKeyPrefix@Outputs:Key@
--
-- -   If your output is @HLSv3@ and has a segment duration set, or is not
--     included in a playlist, Elastic Transcoder creates an output
--     playlist file with a file extension of @.m3u8@, and a series of
--     @.ts@ files that include a five-digit sequential counter beginning
--     with 00000:
--
--     OutputKeyPrefix@Outputs:Key@.m3u8
--
--     OutputKeyPrefix@Outputs:Key@00000.ts
--
-- -   If your output is @HLSv4@, has a segment duration set, and is
--     included in an @HLSv4@ playlist, Elastic Transcoder creates an
--     output playlist file with a file extension of @_v4.m3u8@. If the
--     output is video, Elastic Transcoder also creates an output file with
--     an extension of @_iframe.m3u8@:
--
--     OutputKeyPrefix@Outputs:Key@_v4.m3u8
--
--     OutputKeyPrefix@Outputs:Key@_iframe.m3u8
--
--     OutputKeyPrefix@Outputs:Key@.ts
--
-- Elastic Transcoder automatically appends the relevant file extension to
-- the file name. If you include a file extension in Output Key, the file
-- name will have two extensions.
--
-- If you include more than one output in a playlist, any segment duration
-- settings, clip settings, or caption settings must be the same for all
-- outputs in the playlist. For @Smooth@ playlists, the @Audio:Profile@,
-- @Video:Profile@, and @Video:FrameRate@ to @Video:KeyframesMaxDist@ ratio
-- must be the same for all outputs.
--
-- 'name', 'createJobPlaylist_name' - The name that you want Elastic Transcoder to assign to the master
-- playlist, for example, nyc-vacation.m3u8. If the name includes a @\/@
-- character, the section of the name before the last @\/@ must be
-- identical for all @Name@ objects. If you create more than one master
-- playlist, the values of all @Name@ objects must be unique.
--
-- Elastic Transcoder automatically appends the relevant file extension to
-- the file name (@.m3u8@ for @HLSv3@ and @HLSv4@ playlists, and @.ism@ and
-- @.ismc@ for @Smooth@ playlists). If you include a file extension in
-- @Name@, the file name will have two extensions.
--
-- 'hlsContentProtection', 'createJobPlaylist_hlsContentProtection' - The HLS content protection settings, if any, that you want Elastic
-- Transcoder to apply to the output files associated with this playlist.
newCreateJobPlaylist ::
  CreateJobPlaylist
newCreateJobPlaylist :: CreateJobPlaylist
newCreateJobPlaylist =
  CreateJobPlaylist' :: Maybe PlayReadyDrm
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe HlsContentProtection
-> CreateJobPlaylist
CreateJobPlaylist'
    { $sel:playReadyDrm:CreateJobPlaylist' :: Maybe PlayReadyDrm
playReadyDrm = Maybe PlayReadyDrm
forall a. Maybe a
Prelude.Nothing,
      $sel:format:CreateJobPlaylist' :: Maybe Text
format = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:outputKeys:CreateJobPlaylist' :: Maybe [Text]
outputKeys = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:name:CreateJobPlaylist' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:hlsContentProtection:CreateJobPlaylist' :: Maybe HlsContentProtection
hlsContentProtection = Maybe HlsContentProtection
forall a. Maybe a
Prelude.Nothing
    }

-- | The DRM settings, if any, that you want Elastic Transcoder to apply to
-- the output files associated with this playlist.
createJobPlaylist_playReadyDrm :: Lens.Lens' CreateJobPlaylist (Prelude.Maybe PlayReadyDrm)
createJobPlaylist_playReadyDrm :: (Maybe PlayReadyDrm -> f (Maybe PlayReadyDrm))
-> CreateJobPlaylist -> f CreateJobPlaylist
createJobPlaylist_playReadyDrm = (CreateJobPlaylist -> Maybe PlayReadyDrm)
-> (CreateJobPlaylist -> Maybe PlayReadyDrm -> CreateJobPlaylist)
-> Lens
     CreateJobPlaylist
     CreateJobPlaylist
     (Maybe PlayReadyDrm)
     (Maybe PlayReadyDrm)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobPlaylist' {Maybe PlayReadyDrm
playReadyDrm :: Maybe PlayReadyDrm
$sel:playReadyDrm:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe PlayReadyDrm
playReadyDrm} -> Maybe PlayReadyDrm
playReadyDrm) (\s :: CreateJobPlaylist
s@CreateJobPlaylist' {} Maybe PlayReadyDrm
a -> CreateJobPlaylist
s {$sel:playReadyDrm:CreateJobPlaylist' :: Maybe PlayReadyDrm
playReadyDrm = Maybe PlayReadyDrm
a} :: CreateJobPlaylist)

-- | The format of the output playlist. Valid formats include @HLSv3@,
-- @HLSv4@, and @Smooth@.
createJobPlaylist_format :: Lens.Lens' CreateJobPlaylist (Prelude.Maybe Prelude.Text)
createJobPlaylist_format :: (Maybe Text -> f (Maybe Text))
-> CreateJobPlaylist -> f CreateJobPlaylist
createJobPlaylist_format = (CreateJobPlaylist -> Maybe Text)
-> (CreateJobPlaylist -> Maybe Text -> CreateJobPlaylist)
-> Lens
     CreateJobPlaylist CreateJobPlaylist (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobPlaylist' {Maybe Text
format :: Maybe Text
$sel:format:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe Text
format} -> Maybe Text
format) (\s :: CreateJobPlaylist
s@CreateJobPlaylist' {} Maybe Text
a -> CreateJobPlaylist
s {$sel:format:CreateJobPlaylist' :: Maybe Text
format = Maybe Text
a} :: CreateJobPlaylist)

-- | For each output in this job that you want to include in a master
-- playlist, the value of the @Outputs:Key@ object.
--
-- -   If your output is not @HLS@ or does not have a segment duration set,
--     the name of the output file is a concatenation of @OutputKeyPrefix@
--     and @Outputs:Key@:
--
--     OutputKeyPrefix@Outputs:Key@
--
-- -   If your output is @HLSv3@ and has a segment duration set, or is not
--     included in a playlist, Elastic Transcoder creates an output
--     playlist file with a file extension of @.m3u8@, and a series of
--     @.ts@ files that include a five-digit sequential counter beginning
--     with 00000:
--
--     OutputKeyPrefix@Outputs:Key@.m3u8
--
--     OutputKeyPrefix@Outputs:Key@00000.ts
--
-- -   If your output is @HLSv4@, has a segment duration set, and is
--     included in an @HLSv4@ playlist, Elastic Transcoder creates an
--     output playlist file with a file extension of @_v4.m3u8@. If the
--     output is video, Elastic Transcoder also creates an output file with
--     an extension of @_iframe.m3u8@:
--
--     OutputKeyPrefix@Outputs:Key@_v4.m3u8
--
--     OutputKeyPrefix@Outputs:Key@_iframe.m3u8
--
--     OutputKeyPrefix@Outputs:Key@.ts
--
-- Elastic Transcoder automatically appends the relevant file extension to
-- the file name. If you include a file extension in Output Key, the file
-- name will have two extensions.
--
-- If you include more than one output in a playlist, any segment duration
-- settings, clip settings, or caption settings must be the same for all
-- outputs in the playlist. For @Smooth@ playlists, the @Audio:Profile@,
-- @Video:Profile@, and @Video:FrameRate@ to @Video:KeyframesMaxDist@ ratio
-- must be the same for all outputs.
createJobPlaylist_outputKeys :: Lens.Lens' CreateJobPlaylist (Prelude.Maybe [Prelude.Text])
createJobPlaylist_outputKeys :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateJobPlaylist -> f CreateJobPlaylist
createJobPlaylist_outputKeys = (CreateJobPlaylist -> Maybe [Text])
-> (CreateJobPlaylist -> Maybe [Text] -> CreateJobPlaylist)
-> Lens
     CreateJobPlaylist CreateJobPlaylist (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobPlaylist' {Maybe [Text]
outputKeys :: Maybe [Text]
$sel:outputKeys:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe [Text]
outputKeys} -> Maybe [Text]
outputKeys) (\s :: CreateJobPlaylist
s@CreateJobPlaylist' {} Maybe [Text]
a -> CreateJobPlaylist
s {$sel:outputKeys:CreateJobPlaylist' :: Maybe [Text]
outputKeys = Maybe [Text]
a} :: CreateJobPlaylist) ((Maybe [Text] -> f (Maybe [Text]))
 -> CreateJobPlaylist -> f CreateJobPlaylist)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateJobPlaylist
-> f CreateJobPlaylist
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name that you want Elastic Transcoder to assign to the master
-- playlist, for example, nyc-vacation.m3u8. If the name includes a @\/@
-- character, the section of the name before the last @\/@ must be
-- identical for all @Name@ objects. If you create more than one master
-- playlist, the values of all @Name@ objects must be unique.
--
-- Elastic Transcoder automatically appends the relevant file extension to
-- the file name (@.m3u8@ for @HLSv3@ and @HLSv4@ playlists, and @.ism@ and
-- @.ismc@ for @Smooth@ playlists). If you include a file extension in
-- @Name@, the file name will have two extensions.
createJobPlaylist_name :: Lens.Lens' CreateJobPlaylist (Prelude.Maybe Prelude.Text)
createJobPlaylist_name :: (Maybe Text -> f (Maybe Text))
-> CreateJobPlaylist -> f CreateJobPlaylist
createJobPlaylist_name = (CreateJobPlaylist -> Maybe Text)
-> (CreateJobPlaylist -> Maybe Text -> CreateJobPlaylist)
-> Lens
     CreateJobPlaylist CreateJobPlaylist (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobPlaylist' {Maybe Text
name :: Maybe Text
$sel:name:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateJobPlaylist
s@CreateJobPlaylist' {} Maybe Text
a -> CreateJobPlaylist
s {$sel:name:CreateJobPlaylist' :: Maybe Text
name = Maybe Text
a} :: CreateJobPlaylist)

-- | The HLS content protection settings, if any, that you want Elastic
-- Transcoder to apply to the output files associated with this playlist.
createJobPlaylist_hlsContentProtection :: Lens.Lens' CreateJobPlaylist (Prelude.Maybe HlsContentProtection)
createJobPlaylist_hlsContentProtection :: (Maybe HlsContentProtection -> f (Maybe HlsContentProtection))
-> CreateJobPlaylist -> f CreateJobPlaylist
createJobPlaylist_hlsContentProtection = (CreateJobPlaylist -> Maybe HlsContentProtection)
-> (CreateJobPlaylist
    -> Maybe HlsContentProtection -> CreateJobPlaylist)
-> Lens
     CreateJobPlaylist
     CreateJobPlaylist
     (Maybe HlsContentProtection)
     (Maybe HlsContentProtection)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobPlaylist' {Maybe HlsContentProtection
hlsContentProtection :: Maybe HlsContentProtection
$sel:hlsContentProtection:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe HlsContentProtection
hlsContentProtection} -> Maybe HlsContentProtection
hlsContentProtection) (\s :: CreateJobPlaylist
s@CreateJobPlaylist' {} Maybe HlsContentProtection
a -> CreateJobPlaylist
s {$sel:hlsContentProtection:CreateJobPlaylist' :: Maybe HlsContentProtection
hlsContentProtection = Maybe HlsContentProtection
a} :: CreateJobPlaylist)

instance Prelude.Hashable CreateJobPlaylist

instance Prelude.NFData CreateJobPlaylist

instance Core.ToJSON CreateJobPlaylist where
  toJSON :: CreateJobPlaylist -> Value
toJSON CreateJobPlaylist' {Maybe [Text]
Maybe Text
Maybe HlsContentProtection
Maybe PlayReadyDrm
hlsContentProtection :: Maybe HlsContentProtection
name :: Maybe Text
outputKeys :: Maybe [Text]
format :: Maybe Text
playReadyDrm :: Maybe PlayReadyDrm
$sel:hlsContentProtection:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe HlsContentProtection
$sel:name:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe Text
$sel:outputKeys:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe [Text]
$sel:format:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe Text
$sel:playReadyDrm:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe PlayReadyDrm
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"PlayReadyDrm" Text -> PlayReadyDrm -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (PlayReadyDrm -> Pair) -> Maybe PlayReadyDrm -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PlayReadyDrm
playReadyDrm,
            (Text
"Format" 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
format,
            (Text
"OutputKeys" 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]
outputKeys,
            (Text
"Name" 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
name,
            (Text
"HlsContentProtection" Text -> HlsContentProtection -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (HlsContentProtection -> Pair)
-> Maybe HlsContentProtection -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HlsContentProtection
hlsContentProtection
          ]
      )