{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ElasticTranscoder.Types.CreateJobPlaylist where

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

-- | Information about the master playlist.
--
-- /See:/ 'newCreateJobPlaylist' smart constructor.
data CreateJobPlaylist = CreateJobPlaylist'
  { -- | The format of the output playlist. Valid formats include @HLSv3@,
    -- @HLSv4@, and @Smooth@.
    CreateJobPlaylist -> Maybe Text
format :: 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,
    -- | 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,
    -- | 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 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
  }
  deriving (CreateJobPlaylist -> CreateJobPlaylist -> Bool
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]
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
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. 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:
--
-- 'format', 'createJobPlaylist_format' - The format of the output playlist. Valid formats include @HLSv3@,
-- @HLSv4@, and @Smooth@.
--
-- '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.
--
-- '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.
--
-- '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.
--
-- 'playReadyDrm', 'createJobPlaylist_playReadyDrm' - The DRM settings, if any, that you want Elastic Transcoder to apply to
-- the output files associated with this playlist.
newCreateJobPlaylist ::
  CreateJobPlaylist
newCreateJobPlaylist :: CreateJobPlaylist
newCreateJobPlaylist =
  CreateJobPlaylist'
    { $sel:format:CreateJobPlaylist' :: Maybe Text
format = forall a. Maybe a
Prelude.Nothing,
      $sel:hlsContentProtection:CreateJobPlaylist' :: Maybe HlsContentProtection
hlsContentProtection = forall a. Maybe a
Prelude.Nothing,
      $sel:name:CreateJobPlaylist' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:outputKeys:CreateJobPlaylist' :: Maybe [Text]
outputKeys = forall a. Maybe a
Prelude.Nothing,
      $sel:playReadyDrm:CreateJobPlaylist' :: Maybe PlayReadyDrm
playReadyDrm = forall a. Maybe a
Prelude.Nothing
    }

-- | The format of the output playlist. Valid formats include @HLSv3@,
-- @HLSv4@, and @Smooth@.
createJobPlaylist_format :: Lens.Lens' CreateJobPlaylist (Prelude.Maybe Prelude.Text)
createJobPlaylist_format :: Lens' CreateJobPlaylist (Maybe Text)
createJobPlaylist_format = 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)

-- | 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 :: Lens' CreateJobPlaylist (Maybe HlsContentProtection)
createJobPlaylist_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)

-- | 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 :: Lens' CreateJobPlaylist (Maybe Text)
createJobPlaylist_name = 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)

-- | 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 :: Lens' CreateJobPlaylist (Maybe [Text])
createJobPlaylist_outputKeys = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | 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 :: Lens' CreateJobPlaylist (Maybe PlayReadyDrm)
createJobPlaylist_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)

instance Prelude.Hashable CreateJobPlaylist where
  hashWithSalt :: Int -> CreateJobPlaylist -> Int
hashWithSalt Int
_salt CreateJobPlaylist' {Maybe [Text]
Maybe Text
Maybe HlsContentProtection
Maybe PlayReadyDrm
playReadyDrm :: Maybe PlayReadyDrm
outputKeys :: Maybe [Text]
name :: Maybe Text
hlsContentProtection :: Maybe HlsContentProtection
format :: Maybe Text
$sel:playReadyDrm:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe PlayReadyDrm
$sel:outputKeys:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe [Text]
$sel:name:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe Text
$sel:hlsContentProtection:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe HlsContentProtection
$sel:format:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
format
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe HlsContentProtection
hlsContentProtection
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
outputKeys
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PlayReadyDrm
playReadyDrm

instance Prelude.NFData CreateJobPlaylist where
  rnf :: CreateJobPlaylist -> ()
rnf CreateJobPlaylist' {Maybe [Text]
Maybe Text
Maybe HlsContentProtection
Maybe PlayReadyDrm
playReadyDrm :: Maybe PlayReadyDrm
outputKeys :: Maybe [Text]
name :: Maybe Text
hlsContentProtection :: Maybe HlsContentProtection
format :: Maybe Text
$sel:playReadyDrm:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe PlayReadyDrm
$sel:outputKeys:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe [Text]
$sel:name:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe Text
$sel:hlsContentProtection:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe HlsContentProtection
$sel:format:CreateJobPlaylist' :: CreateJobPlaylist -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
format
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe HlsContentProtection
hlsContentProtection
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
outputKeys
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PlayReadyDrm
playReadyDrm

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