{-# 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.MediaConvert.Types.MpdSettings
-- 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.MediaConvert.Types.MpdSettings where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaConvert.Types.MpdAccessibilityCaptionHints
import Amazonka.MediaConvert.Types.MpdAudioDuration
import Amazonka.MediaConvert.Types.MpdCaptionContainerType
import Amazonka.MediaConvert.Types.MpdKlvMetadata
import Amazonka.MediaConvert.Types.MpdManifestMetadataSignaling
import Amazonka.MediaConvert.Types.MpdScte35Esam
import Amazonka.MediaConvert.Types.MpdScte35Source
import Amazonka.MediaConvert.Types.MpdTimedMetadata
import Amazonka.MediaConvert.Types.MpdTimedMetadataBoxVersion
import qualified Amazonka.Prelude as Prelude

-- | These settings relate to the fragmented MP4 container for the segments
-- in your DASH outputs.
--
-- /See:/ 'newMpdSettings' smart constructor.
data MpdSettings = MpdSettings'
  { -- | Optional. Choose Include (INCLUDE) to have MediaConvert mark up your
    -- DASH manifest with elements for embedded 608 captions. This markup
    -- isn\'t generally required, but some video players require it to discover
    -- and play embedded 608 captions. Keep the default value, Exclude
    -- (EXCLUDE), to leave these elements out. When you enable this setting,
    -- this is the markup that MediaConvert includes in your manifest:
    MpdSettings -> Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints :: Prelude.Maybe MpdAccessibilityCaptionHints,
    -- | Specify this setting only when your output will be consumed by a
    -- downstream repackaging workflow that is sensitive to very small duration
    -- differences between video and audio. For this situation, choose Match
    -- video duration (MATCH_VIDEO_DURATION). In all other cases, keep the
    -- default value, Default codec duration (DEFAULT_CODEC_DURATION). When you
    -- choose Match video duration, MediaConvert pads the output audio streams
    -- with silence or trims them to ensure that the total duration of each
    -- audio stream is at least as long as the total duration of the video
    -- stream. After padding or trimming, the audio stream duration is no more
    -- than one frame longer than the video stream. MediaConvert applies audio
    -- padding or trimming only to the end of the last segment of the output.
    -- For unsegmented outputs, MediaConvert adds padding only to the end of
    -- the file. When you keep the default value, any minor discrepancies
    -- between audio and video duration will depend on your output audio codec.
    MpdSettings -> Maybe MpdAudioDuration
audioDuration :: Prelude.Maybe MpdAudioDuration,
    -- | Use this setting only in DASH output groups that include sidecar TTML or
    -- IMSC captions. You specify sidecar captions in a separate output from
    -- your audio and video. Choose Raw (RAW) for captions in a single XML file
    -- in a raw container. Choose Fragmented MPEG-4 (FRAGMENTED_MP4) for
    -- captions in XML format contained within fragmented MP4 files. This set
    -- of fragmented MP4 files is separate from your video and audio fragmented
    -- MP4 files.
    MpdSettings -> Maybe MpdCaptionContainerType
captionContainerType :: Prelude.Maybe MpdCaptionContainerType,
    -- | To include key-length-value metadata in this output: Set KLV metadata
    -- insertion to Passthrough. MediaConvert reads KLV metadata present in
    -- your input and writes each instance to a separate event message box in
    -- the output, according to MISB ST1910.1. To exclude this KLV metadata:
    -- Set KLV metadata insertion to None or leave blank.
    MpdSettings -> Maybe MpdKlvMetadata
klvMetadata :: Prelude.Maybe MpdKlvMetadata,
    -- | To add an InbandEventStream element in your output MPD manifest for each
    -- type of event message, set Manifest metadata signaling to Enabled. For
    -- ID3 event messages, the InbandEventStream element schemeIdUri will be
    -- same value that you specify for ID3 metadata scheme ID URI. For SCTE35
    -- event messages, the InbandEventStream element schemeIdUri will be
    -- \"urn:scte:scte35:2013:bin\". To leave these elements out of your output
    -- MPD manifest, set Manifest metadata signaling to Disabled.
    MpdSettings -> Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling :: Prelude.Maybe MpdManifestMetadataSignaling,
    -- | Use this setting only when you specify SCTE-35 markers from ESAM. Choose
    -- INSERT to put SCTE-35 markers in this output at the insertion points
    -- that you specify in an ESAM XML document. Provide the document in the
    -- setting SCC XML (sccXml).
    MpdSettings -> Maybe MpdScte35Esam
scte35Esam :: Prelude.Maybe MpdScte35Esam,
    -- | Ignore this setting unless you have SCTE-35 markers in your input video
    -- file. Choose Passthrough (PASSTHROUGH) if you want SCTE-35 markers that
    -- appear in your input to also appear in this output. Choose None (NONE)
    -- if you don\'t want those SCTE-35 markers in this output.
    MpdSettings -> Maybe MpdScte35Source
scte35Source :: Prelude.Maybe MpdScte35Source,
    -- | To include ID3 metadata in this output: Set ID3 metadata (timedMetadata)
    -- to Passthrough (PASSTHROUGH). Specify this ID3 metadata in Custom ID3
    -- metadata inserter (timedMetadataInsertion). MediaConvert writes each
    -- instance of ID3 metadata in a separate Event Message (eMSG) box. To
    -- exclude this ID3 metadata: Set ID3 metadata to None (NONE) or leave
    -- blank.
    MpdSettings -> Maybe MpdTimedMetadata
timedMetadata :: Prelude.Maybe MpdTimedMetadata,
    -- | Specify the event message box (eMSG) version for ID3 timed metadata in
    -- your output. For more information, see ISO\/IEC 23009-1:2022 section
    -- 5.10.3.3.3 Syntax. Leave blank to use the default value Version 0. When
    -- you specify Version 1, you must also set ID3 metadata (timedMetadata) to
    -- Passthrough.
    MpdSettings -> Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion :: Prelude.Maybe MpdTimedMetadataBoxVersion,
    -- | Specify the event message box (eMSG) scheme ID URI (scheme_id_uri) for
    -- ID3 timed metadata in your output. For more informaiton, see ISO\/IEC
    -- 23009-1:2022 section 5.10.3.3.4 Semantics. Leave blank to use the
    -- default value: https:\/\/aomedia.org\/emsg\/ID3 When you specify a value
    -- for ID3 metadata scheme ID URI, you must also set ID3 metadata
    -- (timedMetadata) to Passthrough.
    MpdSettings -> Maybe Text
timedMetadataSchemeIdUri :: Prelude.Maybe Prelude.Text,
    -- | Specify the event message box (eMSG) value for ID3 timed metadata in
    -- your output. For more informaiton, see ISO\/IEC 23009-1:2022 section
    -- 5.10.3.3.4 Semantics. When you specify a value for ID3 Metadata Value,
    -- you must also set ID3 metadata (timedMetadata) to Passthrough.
    MpdSettings -> Maybe Text
timedMetadataValue :: Prelude.Maybe Prelude.Text
  }
  deriving (MpdSettings -> MpdSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MpdSettings -> MpdSettings -> Bool
$c/= :: MpdSettings -> MpdSettings -> Bool
== :: MpdSettings -> MpdSettings -> Bool
$c== :: MpdSettings -> MpdSettings -> Bool
Prelude.Eq, ReadPrec [MpdSettings]
ReadPrec MpdSettings
Int -> ReadS MpdSettings
ReadS [MpdSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MpdSettings]
$creadListPrec :: ReadPrec [MpdSettings]
readPrec :: ReadPrec MpdSettings
$creadPrec :: ReadPrec MpdSettings
readList :: ReadS [MpdSettings]
$creadList :: ReadS [MpdSettings]
readsPrec :: Int -> ReadS MpdSettings
$creadsPrec :: Int -> ReadS MpdSettings
Prelude.Read, Int -> MpdSettings -> ShowS
[MpdSettings] -> ShowS
MpdSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MpdSettings] -> ShowS
$cshowList :: [MpdSettings] -> ShowS
show :: MpdSettings -> String
$cshow :: MpdSettings -> String
showsPrec :: Int -> MpdSettings -> ShowS
$cshowsPrec :: Int -> MpdSettings -> ShowS
Prelude.Show, forall x. Rep MpdSettings x -> MpdSettings
forall x. MpdSettings -> Rep MpdSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MpdSettings x -> MpdSettings
$cfrom :: forall x. MpdSettings -> Rep MpdSettings x
Prelude.Generic)

-- |
-- Create a value of 'MpdSettings' 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:
--
-- 'accessibilityCaptionHints', 'mpdSettings_accessibilityCaptionHints' - Optional. Choose Include (INCLUDE) to have MediaConvert mark up your
-- DASH manifest with elements for embedded 608 captions. This markup
-- isn\'t generally required, but some video players require it to discover
-- and play embedded 608 captions. Keep the default value, Exclude
-- (EXCLUDE), to leave these elements out. When you enable this setting,
-- this is the markup that MediaConvert includes in your manifest:
--
-- 'audioDuration', 'mpdSettings_audioDuration' - Specify this setting only when your output will be consumed by a
-- downstream repackaging workflow that is sensitive to very small duration
-- differences between video and audio. For this situation, choose Match
-- video duration (MATCH_VIDEO_DURATION). In all other cases, keep the
-- default value, Default codec duration (DEFAULT_CODEC_DURATION). When you
-- choose Match video duration, MediaConvert pads the output audio streams
-- with silence or trims them to ensure that the total duration of each
-- audio stream is at least as long as the total duration of the video
-- stream. After padding or trimming, the audio stream duration is no more
-- than one frame longer than the video stream. MediaConvert applies audio
-- padding or trimming only to the end of the last segment of the output.
-- For unsegmented outputs, MediaConvert adds padding only to the end of
-- the file. When you keep the default value, any minor discrepancies
-- between audio and video duration will depend on your output audio codec.
--
-- 'captionContainerType', 'mpdSettings_captionContainerType' - Use this setting only in DASH output groups that include sidecar TTML or
-- IMSC captions. You specify sidecar captions in a separate output from
-- your audio and video. Choose Raw (RAW) for captions in a single XML file
-- in a raw container. Choose Fragmented MPEG-4 (FRAGMENTED_MP4) for
-- captions in XML format contained within fragmented MP4 files. This set
-- of fragmented MP4 files is separate from your video and audio fragmented
-- MP4 files.
--
-- 'klvMetadata', 'mpdSettings_klvMetadata' - To include key-length-value metadata in this output: Set KLV metadata
-- insertion to Passthrough. MediaConvert reads KLV metadata present in
-- your input and writes each instance to a separate event message box in
-- the output, according to MISB ST1910.1. To exclude this KLV metadata:
-- Set KLV metadata insertion to None or leave blank.
--
-- 'manifestMetadataSignaling', 'mpdSettings_manifestMetadataSignaling' - To add an InbandEventStream element in your output MPD manifest for each
-- type of event message, set Manifest metadata signaling to Enabled. For
-- ID3 event messages, the InbandEventStream element schemeIdUri will be
-- same value that you specify for ID3 metadata scheme ID URI. For SCTE35
-- event messages, the InbandEventStream element schemeIdUri will be
-- \"urn:scte:scte35:2013:bin\". To leave these elements out of your output
-- MPD manifest, set Manifest metadata signaling to Disabled.
--
-- 'scte35Esam', 'mpdSettings_scte35Esam' - Use this setting only when you specify SCTE-35 markers from ESAM. Choose
-- INSERT to put SCTE-35 markers in this output at the insertion points
-- that you specify in an ESAM XML document. Provide the document in the
-- setting SCC XML (sccXml).
--
-- 'scte35Source', 'mpdSettings_scte35Source' - Ignore this setting unless you have SCTE-35 markers in your input video
-- file. Choose Passthrough (PASSTHROUGH) if you want SCTE-35 markers that
-- appear in your input to also appear in this output. Choose None (NONE)
-- if you don\'t want those SCTE-35 markers in this output.
--
-- 'timedMetadata', 'mpdSettings_timedMetadata' - To include ID3 metadata in this output: Set ID3 metadata (timedMetadata)
-- to Passthrough (PASSTHROUGH). Specify this ID3 metadata in Custom ID3
-- metadata inserter (timedMetadataInsertion). MediaConvert writes each
-- instance of ID3 metadata in a separate Event Message (eMSG) box. To
-- exclude this ID3 metadata: Set ID3 metadata to None (NONE) or leave
-- blank.
--
-- 'timedMetadataBoxVersion', 'mpdSettings_timedMetadataBoxVersion' - Specify the event message box (eMSG) version for ID3 timed metadata in
-- your output. For more information, see ISO\/IEC 23009-1:2022 section
-- 5.10.3.3.3 Syntax. Leave blank to use the default value Version 0. When
-- you specify Version 1, you must also set ID3 metadata (timedMetadata) to
-- Passthrough.
--
-- 'timedMetadataSchemeIdUri', 'mpdSettings_timedMetadataSchemeIdUri' - Specify the event message box (eMSG) scheme ID URI (scheme_id_uri) for
-- ID3 timed metadata in your output. For more informaiton, see ISO\/IEC
-- 23009-1:2022 section 5.10.3.3.4 Semantics. Leave blank to use the
-- default value: https:\/\/aomedia.org\/emsg\/ID3 When you specify a value
-- for ID3 metadata scheme ID URI, you must also set ID3 metadata
-- (timedMetadata) to Passthrough.
--
-- 'timedMetadataValue', 'mpdSettings_timedMetadataValue' - Specify the event message box (eMSG) value for ID3 timed metadata in
-- your output. For more informaiton, see ISO\/IEC 23009-1:2022 section
-- 5.10.3.3.4 Semantics. When you specify a value for ID3 Metadata Value,
-- you must also set ID3 metadata (timedMetadata) to Passthrough.
newMpdSettings ::
  MpdSettings
newMpdSettings :: MpdSettings
newMpdSettings =
  MpdSettings'
    { $sel:accessibilityCaptionHints:MpdSettings' :: Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints =
        forall a. Maybe a
Prelude.Nothing,
      $sel:audioDuration:MpdSettings' :: Maybe MpdAudioDuration
audioDuration = forall a. Maybe a
Prelude.Nothing,
      $sel:captionContainerType:MpdSettings' :: Maybe MpdCaptionContainerType
captionContainerType = forall a. Maybe a
Prelude.Nothing,
      $sel:klvMetadata:MpdSettings' :: Maybe MpdKlvMetadata
klvMetadata = forall a. Maybe a
Prelude.Nothing,
      $sel:manifestMetadataSignaling:MpdSettings' :: Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling = forall a. Maybe a
Prelude.Nothing,
      $sel:scte35Esam:MpdSettings' :: Maybe MpdScte35Esam
scte35Esam = forall a. Maybe a
Prelude.Nothing,
      $sel:scte35Source:MpdSettings' :: Maybe MpdScte35Source
scte35Source = forall a. Maybe a
Prelude.Nothing,
      $sel:timedMetadata:MpdSettings' :: Maybe MpdTimedMetadata
timedMetadata = forall a. Maybe a
Prelude.Nothing,
      $sel:timedMetadataBoxVersion:MpdSettings' :: Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion = forall a. Maybe a
Prelude.Nothing,
      $sel:timedMetadataSchemeIdUri:MpdSettings' :: Maybe Text
timedMetadataSchemeIdUri = forall a. Maybe a
Prelude.Nothing,
      $sel:timedMetadataValue:MpdSettings' :: Maybe Text
timedMetadataValue = forall a. Maybe a
Prelude.Nothing
    }

-- | Optional. Choose Include (INCLUDE) to have MediaConvert mark up your
-- DASH manifest with elements for embedded 608 captions. This markup
-- isn\'t generally required, but some video players require it to discover
-- and play embedded 608 captions. Keep the default value, Exclude
-- (EXCLUDE), to leave these elements out. When you enable this setting,
-- this is the markup that MediaConvert includes in your manifest:
mpdSettings_accessibilityCaptionHints :: Lens.Lens' MpdSettings (Prelude.Maybe MpdAccessibilityCaptionHints)
mpdSettings_accessibilityCaptionHints :: Lens' MpdSettings (Maybe MpdAccessibilityCaptionHints)
mpdSettings_accessibilityCaptionHints = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints :: Maybe MpdAccessibilityCaptionHints
$sel:accessibilityCaptionHints:MpdSettings' :: MpdSettings -> Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints} -> Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdAccessibilityCaptionHints
a -> MpdSettings
s {$sel:accessibilityCaptionHints:MpdSettings' :: Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints = Maybe MpdAccessibilityCaptionHints
a} :: MpdSettings)

-- | Specify this setting only when your output will be consumed by a
-- downstream repackaging workflow that is sensitive to very small duration
-- differences between video and audio. For this situation, choose Match
-- video duration (MATCH_VIDEO_DURATION). In all other cases, keep the
-- default value, Default codec duration (DEFAULT_CODEC_DURATION). When you
-- choose Match video duration, MediaConvert pads the output audio streams
-- with silence or trims them to ensure that the total duration of each
-- audio stream is at least as long as the total duration of the video
-- stream. After padding or trimming, the audio stream duration is no more
-- than one frame longer than the video stream. MediaConvert applies audio
-- padding or trimming only to the end of the last segment of the output.
-- For unsegmented outputs, MediaConvert adds padding only to the end of
-- the file. When you keep the default value, any minor discrepancies
-- between audio and video duration will depend on your output audio codec.
mpdSettings_audioDuration :: Lens.Lens' MpdSettings (Prelude.Maybe MpdAudioDuration)
mpdSettings_audioDuration :: Lens' MpdSettings (Maybe MpdAudioDuration)
mpdSettings_audioDuration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdAudioDuration
audioDuration :: Maybe MpdAudioDuration
$sel:audioDuration:MpdSettings' :: MpdSettings -> Maybe MpdAudioDuration
audioDuration} -> Maybe MpdAudioDuration
audioDuration) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdAudioDuration
a -> MpdSettings
s {$sel:audioDuration:MpdSettings' :: Maybe MpdAudioDuration
audioDuration = Maybe MpdAudioDuration
a} :: MpdSettings)

-- | Use this setting only in DASH output groups that include sidecar TTML or
-- IMSC captions. You specify sidecar captions in a separate output from
-- your audio and video. Choose Raw (RAW) for captions in a single XML file
-- in a raw container. Choose Fragmented MPEG-4 (FRAGMENTED_MP4) for
-- captions in XML format contained within fragmented MP4 files. This set
-- of fragmented MP4 files is separate from your video and audio fragmented
-- MP4 files.
mpdSettings_captionContainerType :: Lens.Lens' MpdSettings (Prelude.Maybe MpdCaptionContainerType)
mpdSettings_captionContainerType :: Lens' MpdSettings (Maybe MpdCaptionContainerType)
mpdSettings_captionContainerType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdCaptionContainerType
captionContainerType :: Maybe MpdCaptionContainerType
$sel:captionContainerType:MpdSettings' :: MpdSettings -> Maybe MpdCaptionContainerType
captionContainerType} -> Maybe MpdCaptionContainerType
captionContainerType) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdCaptionContainerType
a -> MpdSettings
s {$sel:captionContainerType:MpdSettings' :: Maybe MpdCaptionContainerType
captionContainerType = Maybe MpdCaptionContainerType
a} :: MpdSettings)

-- | To include key-length-value metadata in this output: Set KLV metadata
-- insertion to Passthrough. MediaConvert reads KLV metadata present in
-- your input and writes each instance to a separate event message box in
-- the output, according to MISB ST1910.1. To exclude this KLV metadata:
-- Set KLV metadata insertion to None or leave blank.
mpdSettings_klvMetadata :: Lens.Lens' MpdSettings (Prelude.Maybe MpdKlvMetadata)
mpdSettings_klvMetadata :: Lens' MpdSettings (Maybe MpdKlvMetadata)
mpdSettings_klvMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdKlvMetadata
klvMetadata :: Maybe MpdKlvMetadata
$sel:klvMetadata:MpdSettings' :: MpdSettings -> Maybe MpdKlvMetadata
klvMetadata} -> Maybe MpdKlvMetadata
klvMetadata) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdKlvMetadata
a -> MpdSettings
s {$sel:klvMetadata:MpdSettings' :: Maybe MpdKlvMetadata
klvMetadata = Maybe MpdKlvMetadata
a} :: MpdSettings)

-- | To add an InbandEventStream element in your output MPD manifest for each
-- type of event message, set Manifest metadata signaling to Enabled. For
-- ID3 event messages, the InbandEventStream element schemeIdUri will be
-- same value that you specify for ID3 metadata scheme ID URI. For SCTE35
-- event messages, the InbandEventStream element schemeIdUri will be
-- \"urn:scte:scte35:2013:bin\". To leave these elements out of your output
-- MPD manifest, set Manifest metadata signaling to Disabled.
mpdSettings_manifestMetadataSignaling :: Lens.Lens' MpdSettings (Prelude.Maybe MpdManifestMetadataSignaling)
mpdSettings_manifestMetadataSignaling :: Lens' MpdSettings (Maybe MpdManifestMetadataSignaling)
mpdSettings_manifestMetadataSignaling = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling :: Maybe MpdManifestMetadataSignaling
$sel:manifestMetadataSignaling:MpdSettings' :: MpdSettings -> Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling} -> Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdManifestMetadataSignaling
a -> MpdSettings
s {$sel:manifestMetadataSignaling:MpdSettings' :: Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling = Maybe MpdManifestMetadataSignaling
a} :: MpdSettings)

-- | Use this setting only when you specify SCTE-35 markers from ESAM. Choose
-- INSERT to put SCTE-35 markers in this output at the insertion points
-- that you specify in an ESAM XML document. Provide the document in the
-- setting SCC XML (sccXml).
mpdSettings_scte35Esam :: Lens.Lens' MpdSettings (Prelude.Maybe MpdScte35Esam)
mpdSettings_scte35Esam :: Lens' MpdSettings (Maybe MpdScte35Esam)
mpdSettings_scte35Esam = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdScte35Esam
scte35Esam :: Maybe MpdScte35Esam
$sel:scte35Esam:MpdSettings' :: MpdSettings -> Maybe MpdScte35Esam
scte35Esam} -> Maybe MpdScte35Esam
scte35Esam) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdScte35Esam
a -> MpdSettings
s {$sel:scte35Esam:MpdSettings' :: Maybe MpdScte35Esam
scte35Esam = Maybe MpdScte35Esam
a} :: MpdSettings)

-- | Ignore this setting unless you have SCTE-35 markers in your input video
-- file. Choose Passthrough (PASSTHROUGH) if you want SCTE-35 markers that
-- appear in your input to also appear in this output. Choose None (NONE)
-- if you don\'t want those SCTE-35 markers in this output.
mpdSettings_scte35Source :: Lens.Lens' MpdSettings (Prelude.Maybe MpdScte35Source)
mpdSettings_scte35Source :: Lens' MpdSettings (Maybe MpdScte35Source)
mpdSettings_scte35Source = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdScte35Source
scte35Source :: Maybe MpdScte35Source
$sel:scte35Source:MpdSettings' :: MpdSettings -> Maybe MpdScte35Source
scte35Source} -> Maybe MpdScte35Source
scte35Source) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdScte35Source
a -> MpdSettings
s {$sel:scte35Source:MpdSettings' :: Maybe MpdScte35Source
scte35Source = Maybe MpdScte35Source
a} :: MpdSettings)

-- | To include ID3 metadata in this output: Set ID3 metadata (timedMetadata)
-- to Passthrough (PASSTHROUGH). Specify this ID3 metadata in Custom ID3
-- metadata inserter (timedMetadataInsertion). MediaConvert writes each
-- instance of ID3 metadata in a separate Event Message (eMSG) box. To
-- exclude this ID3 metadata: Set ID3 metadata to None (NONE) or leave
-- blank.
mpdSettings_timedMetadata :: Lens.Lens' MpdSettings (Prelude.Maybe MpdTimedMetadata)
mpdSettings_timedMetadata :: Lens' MpdSettings (Maybe MpdTimedMetadata)
mpdSettings_timedMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdTimedMetadata
timedMetadata :: Maybe MpdTimedMetadata
$sel:timedMetadata:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadata
timedMetadata} -> Maybe MpdTimedMetadata
timedMetadata) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdTimedMetadata
a -> MpdSettings
s {$sel:timedMetadata:MpdSettings' :: Maybe MpdTimedMetadata
timedMetadata = Maybe MpdTimedMetadata
a} :: MpdSettings)

-- | Specify the event message box (eMSG) version for ID3 timed metadata in
-- your output. For more information, see ISO\/IEC 23009-1:2022 section
-- 5.10.3.3.3 Syntax. Leave blank to use the default value Version 0. When
-- you specify Version 1, you must also set ID3 metadata (timedMetadata) to
-- Passthrough.
mpdSettings_timedMetadataBoxVersion :: Lens.Lens' MpdSettings (Prelude.Maybe MpdTimedMetadataBoxVersion)
mpdSettings_timedMetadataBoxVersion :: Lens' MpdSettings (Maybe MpdTimedMetadataBoxVersion)
mpdSettings_timedMetadataBoxVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion :: Maybe MpdTimedMetadataBoxVersion
$sel:timedMetadataBoxVersion:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion} -> Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdTimedMetadataBoxVersion
a -> MpdSettings
s {$sel:timedMetadataBoxVersion:MpdSettings' :: Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion = Maybe MpdTimedMetadataBoxVersion
a} :: MpdSettings)

-- | Specify the event message box (eMSG) scheme ID URI (scheme_id_uri) for
-- ID3 timed metadata in your output. For more informaiton, see ISO\/IEC
-- 23009-1:2022 section 5.10.3.3.4 Semantics. Leave blank to use the
-- default value: https:\/\/aomedia.org\/emsg\/ID3 When you specify a value
-- for ID3 metadata scheme ID URI, you must also set ID3 metadata
-- (timedMetadata) to Passthrough.
mpdSettings_timedMetadataSchemeIdUri :: Lens.Lens' MpdSettings (Prelude.Maybe Prelude.Text)
mpdSettings_timedMetadataSchemeIdUri :: Lens' MpdSettings (Maybe Text)
mpdSettings_timedMetadataSchemeIdUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
$sel:timedMetadataSchemeIdUri:MpdSettings' :: MpdSettings -> Maybe Text
timedMetadataSchemeIdUri} -> Maybe Text
timedMetadataSchemeIdUri) (\s :: MpdSettings
s@MpdSettings' {} Maybe Text
a -> MpdSettings
s {$sel:timedMetadataSchemeIdUri:MpdSettings' :: Maybe Text
timedMetadataSchemeIdUri = Maybe Text
a} :: MpdSettings)

-- | Specify the event message box (eMSG) value for ID3 timed metadata in
-- your output. For more informaiton, see ISO\/IEC 23009-1:2022 section
-- 5.10.3.3.4 Semantics. When you specify a value for ID3 Metadata Value,
-- you must also set ID3 metadata (timedMetadata) to Passthrough.
mpdSettings_timedMetadataValue :: Lens.Lens' MpdSettings (Prelude.Maybe Prelude.Text)
mpdSettings_timedMetadataValue :: Lens' MpdSettings (Maybe Text)
mpdSettings_timedMetadataValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe Text
timedMetadataValue :: Maybe Text
$sel:timedMetadataValue:MpdSettings' :: MpdSettings -> Maybe Text
timedMetadataValue} -> Maybe Text
timedMetadataValue) (\s :: MpdSettings
s@MpdSettings' {} Maybe Text
a -> MpdSettings
s {$sel:timedMetadataValue:MpdSettings' :: Maybe Text
timedMetadataValue = Maybe Text
a} :: MpdSettings)

instance Data.FromJSON MpdSettings where
  parseJSON :: Value -> Parser MpdSettings
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"MpdSettings"
      ( \Object
x ->
          Maybe MpdAccessibilityCaptionHints
-> Maybe MpdAudioDuration
-> Maybe MpdCaptionContainerType
-> Maybe MpdKlvMetadata
-> Maybe MpdManifestMetadataSignaling
-> Maybe MpdScte35Esam
-> Maybe MpdScte35Source
-> Maybe MpdTimedMetadata
-> Maybe MpdTimedMetadataBoxVersion
-> Maybe Text
-> Maybe Text
-> MpdSettings
MpdSettings'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"accessibilityCaptionHints")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"audioDuration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"captionContainerType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"klvMetadata")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"manifestMetadataSignaling")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"scte35Esam")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"scte35Source")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadata")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadataBoxVersion")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadataSchemeIdUri")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadataValue")
      )

instance Prelude.Hashable MpdSettings where
  hashWithSalt :: Int -> MpdSettings -> Int
hashWithSalt Int
_salt MpdSettings' {Maybe Text
Maybe MpdAccessibilityCaptionHints
Maybe MpdAudioDuration
Maybe MpdCaptionContainerType
Maybe MpdKlvMetadata
Maybe MpdManifestMetadataSignaling
Maybe MpdScte35Esam
Maybe MpdScte35Source
Maybe MpdTimedMetadata
Maybe MpdTimedMetadataBoxVersion
timedMetadataValue :: Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
timedMetadataBoxVersion :: Maybe MpdTimedMetadataBoxVersion
timedMetadata :: Maybe MpdTimedMetadata
scte35Source :: Maybe MpdScte35Source
scte35Esam :: Maybe MpdScte35Esam
manifestMetadataSignaling :: Maybe MpdManifestMetadataSignaling
klvMetadata :: Maybe MpdKlvMetadata
captionContainerType :: Maybe MpdCaptionContainerType
audioDuration :: Maybe MpdAudioDuration
accessibilityCaptionHints :: Maybe MpdAccessibilityCaptionHints
$sel:timedMetadataValue:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataSchemeIdUri:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataBoxVersion:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadataBoxVersion
$sel:timedMetadata:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadata
$sel:scte35Source:MpdSettings' :: MpdSettings -> Maybe MpdScte35Source
$sel:scte35Esam:MpdSettings' :: MpdSettings -> Maybe MpdScte35Esam
$sel:manifestMetadataSignaling:MpdSettings' :: MpdSettings -> Maybe MpdManifestMetadataSignaling
$sel:klvMetadata:MpdSettings' :: MpdSettings -> Maybe MpdKlvMetadata
$sel:captionContainerType:MpdSettings' :: MpdSettings -> Maybe MpdCaptionContainerType
$sel:audioDuration:MpdSettings' :: MpdSettings -> Maybe MpdAudioDuration
$sel:accessibilityCaptionHints:MpdSettings' :: MpdSettings -> Maybe MpdAccessibilityCaptionHints
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdAudioDuration
audioDuration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdCaptionContainerType
captionContainerType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdKlvMetadata
klvMetadata
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdScte35Esam
scte35Esam
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdScte35Source
scte35Source
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdTimedMetadata
timedMetadata
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timedMetadataSchemeIdUri
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timedMetadataValue

instance Prelude.NFData MpdSettings where
  rnf :: MpdSettings -> ()
rnf MpdSettings' {Maybe Text
Maybe MpdAccessibilityCaptionHints
Maybe MpdAudioDuration
Maybe MpdCaptionContainerType
Maybe MpdKlvMetadata
Maybe MpdManifestMetadataSignaling
Maybe MpdScte35Esam
Maybe MpdScte35Source
Maybe MpdTimedMetadata
Maybe MpdTimedMetadataBoxVersion
timedMetadataValue :: Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
timedMetadataBoxVersion :: Maybe MpdTimedMetadataBoxVersion
timedMetadata :: Maybe MpdTimedMetadata
scte35Source :: Maybe MpdScte35Source
scte35Esam :: Maybe MpdScte35Esam
manifestMetadataSignaling :: Maybe MpdManifestMetadataSignaling
klvMetadata :: Maybe MpdKlvMetadata
captionContainerType :: Maybe MpdCaptionContainerType
audioDuration :: Maybe MpdAudioDuration
accessibilityCaptionHints :: Maybe MpdAccessibilityCaptionHints
$sel:timedMetadataValue:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataSchemeIdUri:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataBoxVersion:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadataBoxVersion
$sel:timedMetadata:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadata
$sel:scte35Source:MpdSettings' :: MpdSettings -> Maybe MpdScte35Source
$sel:scte35Esam:MpdSettings' :: MpdSettings -> Maybe MpdScte35Esam
$sel:manifestMetadataSignaling:MpdSettings' :: MpdSettings -> Maybe MpdManifestMetadataSignaling
$sel:klvMetadata:MpdSettings' :: MpdSettings -> Maybe MpdKlvMetadata
$sel:captionContainerType:MpdSettings' :: MpdSettings -> Maybe MpdCaptionContainerType
$sel:audioDuration:MpdSettings' :: MpdSettings -> Maybe MpdAudioDuration
$sel:accessibilityCaptionHints:MpdSettings' :: MpdSettings -> Maybe MpdAccessibilityCaptionHints
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdAudioDuration
audioDuration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdCaptionContainerType
captionContainerType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdKlvMetadata
klvMetadata
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdScte35Esam
scte35Esam
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdScte35Source
scte35Source
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdTimedMetadata
timedMetadata
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timedMetadataSchemeIdUri
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timedMetadataValue

instance Data.ToJSON MpdSettings where
  toJSON :: MpdSettings -> Value
toJSON MpdSettings' {Maybe Text
Maybe MpdAccessibilityCaptionHints
Maybe MpdAudioDuration
Maybe MpdCaptionContainerType
Maybe MpdKlvMetadata
Maybe MpdManifestMetadataSignaling
Maybe MpdScte35Esam
Maybe MpdScte35Source
Maybe MpdTimedMetadata
Maybe MpdTimedMetadataBoxVersion
timedMetadataValue :: Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
timedMetadataBoxVersion :: Maybe MpdTimedMetadataBoxVersion
timedMetadata :: Maybe MpdTimedMetadata
scte35Source :: Maybe MpdScte35Source
scte35Esam :: Maybe MpdScte35Esam
manifestMetadataSignaling :: Maybe MpdManifestMetadataSignaling
klvMetadata :: Maybe MpdKlvMetadata
captionContainerType :: Maybe MpdCaptionContainerType
audioDuration :: Maybe MpdAudioDuration
accessibilityCaptionHints :: Maybe MpdAccessibilityCaptionHints
$sel:timedMetadataValue:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataSchemeIdUri:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataBoxVersion:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadataBoxVersion
$sel:timedMetadata:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadata
$sel:scte35Source:MpdSettings' :: MpdSettings -> Maybe MpdScte35Source
$sel:scte35Esam:MpdSettings' :: MpdSettings -> Maybe MpdScte35Esam
$sel:manifestMetadataSignaling:MpdSettings' :: MpdSettings -> Maybe MpdManifestMetadataSignaling
$sel:klvMetadata:MpdSettings' :: MpdSettings -> Maybe MpdKlvMetadata
$sel:captionContainerType:MpdSettings' :: MpdSettings -> Maybe MpdCaptionContainerType
$sel:audioDuration:MpdSettings' :: MpdSettings -> Maybe MpdAudioDuration
$sel:accessibilityCaptionHints:MpdSettings' :: MpdSettings -> Maybe MpdAccessibilityCaptionHints
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"accessibilityCaptionHints" 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 MpdAccessibilityCaptionHints
accessibilityCaptionHints,
            (Key
"audioDuration" 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 MpdAudioDuration
audioDuration,
            (Key
"captionContainerType" 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 MpdCaptionContainerType
captionContainerType,
            (Key
"klvMetadata" 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 MpdKlvMetadata
klvMetadata,
            (Key
"manifestMetadataSignaling" 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 MpdManifestMetadataSignaling
manifestMetadataSignaling,
            (Key
"scte35Esam" 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 MpdScte35Esam
scte35Esam,
            (Key
"scte35Source" 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 MpdScte35Source
scte35Source,
            (Key
"timedMetadata" 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 MpdTimedMetadata
timedMetadata,
            (Key
"timedMetadataBoxVersion" 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 MpdTimedMetadataBoxVersion
timedMetadataBoxVersion,
            (Key
"timedMetadataSchemeIdUri" 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
timedMetadataSchemeIdUri,
            (Key
"timedMetadataValue" 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
timedMetadataValue
          ]
      )