{-# 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.CmafGroupSettings
-- 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.CmafGroupSettings 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.CmafAdditionalManifest
import Amazonka.MediaConvert.Types.CmafClientCache
import Amazonka.MediaConvert.Types.CmafCodecSpecification
import Amazonka.MediaConvert.Types.CmafEncryptionSettings
import Amazonka.MediaConvert.Types.CmafImageBasedTrickPlay
import Amazonka.MediaConvert.Types.CmafImageBasedTrickPlaySettings
import Amazonka.MediaConvert.Types.CmafManifestCompression
import Amazonka.MediaConvert.Types.CmafManifestDurationFormat
import Amazonka.MediaConvert.Types.CmafMpdManifestBandwidthType
import Amazonka.MediaConvert.Types.CmafMpdProfile
import Amazonka.MediaConvert.Types.CmafPtsOffsetHandlingForBFrames
import Amazonka.MediaConvert.Types.CmafSegmentControl
import Amazonka.MediaConvert.Types.CmafSegmentLengthControl
import Amazonka.MediaConvert.Types.CmafStreamInfResolution
import Amazonka.MediaConvert.Types.CmafTargetDurationCompatibilityMode
import Amazonka.MediaConvert.Types.CmafVideoCompositionOffsets
import Amazonka.MediaConvert.Types.CmafWriteDASHManifest
import Amazonka.MediaConvert.Types.CmafWriteHLSManifest
import Amazonka.MediaConvert.Types.CmafWriteSegmentTimelineInRepresentation
import Amazonka.MediaConvert.Types.DestinationSettings
import qualified Amazonka.Prelude as Prelude

-- | Settings related to your CMAF output package. For more information, see
-- https:\/\/docs.aws.amazon.com\/mediaconvert\/latest\/ug\/outputs-file-ABR.html.
-- When you work directly in your JSON job specification, include this
-- object and any required children when you set Type, under
-- OutputGroupSettings, to CMAF_GROUP_SETTINGS.
--
-- /See:/ 'newCmafGroupSettings' smart constructor.
data CmafGroupSettings = CmafGroupSettings'
  { -- | By default, the service creates one top-level .m3u8 HLS manifest and one
    -- top -level .mpd DASH manifest for each CMAF output group in your job.
    -- These default manifests reference every output in the output group. To
    -- create additional top-level manifests that reference a subset of the
    -- outputs in the output group, specify a list of them here. For each
    -- additional manifest that you specify, the service creates one HLS
    -- manifest and one DASH manifest.
    CmafGroupSettings -> Maybe [CmafAdditionalManifest]
additionalManifests :: Prelude.Maybe [CmafAdditionalManifest],
    -- | A partial URI prefix that will be put in the manifest file at the top
    -- level BaseURL element. Can be used if streams are delivered from a
    -- different URL than the manifest file.
    CmafGroupSettings -> Maybe Text
baseUrl :: Prelude.Maybe Prelude.Text,
    -- | Disable this setting only when your workflow requires the
    -- #EXT-X-ALLOW-CACHE:no tag. Otherwise, keep the default value Enabled
    -- (ENABLED) and control caching in your video distribution set up. For
    -- example, use the Cache-Control http header.
    CmafGroupSettings -> Maybe CmafClientCache
clientCache :: Prelude.Maybe CmafClientCache,
    -- | Specification to use (RFC-6381 or the default RFC-4281) during m3u8
    -- playlist generation.
    CmafGroupSettings -> Maybe CmafCodecSpecification
codecSpecification :: Prelude.Maybe CmafCodecSpecification,
    -- | Use Destination (Destination) to specify the S3 output location and the
    -- output filename base. Destination accepts format identifiers. If you do
    -- not specify the base filename in the URI, the service will use the
    -- filename of the input file. If your job has multiple inputs, the service
    -- uses the filename of the first input file.
    CmafGroupSettings -> Maybe Text
destination :: Prelude.Maybe Prelude.Text,
    -- | Settings associated with the destination. Will vary based on the type of
    -- destination
    CmafGroupSettings -> Maybe DestinationSettings
destinationSettings :: Prelude.Maybe DestinationSettings,
    -- | DRM settings.
    CmafGroupSettings -> Maybe CmafEncryptionSettings
encryption :: Prelude.Maybe CmafEncryptionSettings,
    -- | Specify the length, in whole seconds, of the mp4 fragments. When you
    -- don\'t specify a value, MediaConvert defaults to 2. Related setting: Use
    -- Fragment length control (FragmentLengthControl) to specify whether the
    -- encoder enforces this value strictly.
    CmafGroupSettings -> Maybe Natural
fragmentLength :: Prelude.Maybe Prelude.Natural,
    -- | Specify whether MediaConvert generates images for trick play. Keep the
    -- default value, None (NONE), to not generate any images. Choose Thumbnail
    -- (THUMBNAIL) to generate tiled thumbnails. Choose Thumbnail and full
    -- frame (THUMBNAIL_AND_FULLFRAME) to generate tiled thumbnails and
    -- full-resolution images of single frames. When you enable Write HLS
    -- manifest (WriteHlsManifest), MediaConvert creates a child manifest for
    -- each set of images that you generate and adds corresponding entries to
    -- the parent manifest. When you enable Write DASH manifest
    -- (WriteDashManifest), MediaConvert adds an entry in the .mpd manifest for
    -- each set of images that you generate. A common application for these
    -- images is Roku trick mode. The thumbnails and full-frame images that
    -- MediaConvert creates with this feature are compatible with this Roku
    -- specification:
    -- https:\/\/developer.roku.com\/docs\/developer-program\/media-playback\/trick-mode\/hls-and-dash.md
    CmafGroupSettings -> Maybe CmafImageBasedTrickPlay
imageBasedTrickPlay :: Prelude.Maybe CmafImageBasedTrickPlay,
    -- | Tile and thumbnail settings applicable when imageBasedTrickPlay is
    -- ADVANCED
    CmafGroupSettings -> Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlaySettings :: Prelude.Maybe CmafImageBasedTrickPlaySettings,
    -- | When set to GZIP, compresses HLS playlist.
    CmafGroupSettings -> Maybe CmafManifestCompression
manifestCompression :: Prelude.Maybe CmafManifestCompression,
    -- | Indicates whether the output manifest should use floating point values
    -- for segment duration.
    CmafGroupSettings -> Maybe CmafManifestDurationFormat
manifestDurationFormat :: Prelude.Maybe CmafManifestDurationFormat,
    -- | Minimum time of initially buffered media that is needed to ensure smooth
    -- playout.
    CmafGroupSettings -> Maybe Natural
minBufferTime :: Prelude.Maybe Prelude.Natural,
    -- | Keep this setting at the default value of 0, unless you are
    -- troubleshooting a problem with how devices play back the end of your
    -- video asset. If you know that player devices are hanging on the final
    -- segment of your video because the length of your final segment is too
    -- short, use this setting to specify a minimum final segment length, in
    -- seconds. Choose a value that is greater than or equal to 1 and less than
    -- your segment length. When you specify a value for this setting, the
    -- encoder will combine any final segment that is shorter than the length
    -- that you specify with the previous segment. For example, your segment
    -- length is 3 seconds and your final segment is .5 seconds without a
    -- minimum final segment length; when you set the minimum final segment
    -- length to 1, your final segment is 3.5 seconds.
    CmafGroupSettings -> Maybe Double
minFinalSegmentLength :: Prelude.Maybe Prelude.Double,
    -- | Specify how the value for bandwidth is determined for each video
    -- Representation in your output MPD manifest. We recommend that you choose
    -- a MPD manifest bandwidth type that is compatible with your downstream
    -- player configuration. Max: Use the same value that you specify for Max
    -- bitrate in the video output, in bits per second. Average: Use the
    -- calculated average bitrate of the encoded video output, in bits per
    -- second.
    CmafGroupSettings -> Maybe CmafMpdManifestBandwidthType
mpdManifestBandwidthType :: Prelude.Maybe CmafMpdManifestBandwidthType,
    -- | Specify whether your DASH profile is on-demand or main. When you choose
    -- Main profile (MAIN_PROFILE), the service signals
    -- urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When
    -- you choose On-demand (ON_DEMAND_PROFILE), the service signals
    -- urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose
    -- On-demand, you must also set the output group setting Segment control
    -- (SegmentControl) to Single file (SINGLE_FILE).
    CmafGroupSettings -> Maybe CmafMpdProfile
mpdProfile :: Prelude.Maybe CmafMpdProfile,
    -- | Use this setting only when your output video stream has B-frames, which
    -- causes the initial presentation time stamp (PTS) to be offset from the
    -- initial decode time stamp (DTS). Specify how MediaConvert handles PTS
    -- when writing time stamps in output DASH manifests. Choose Match initial
    -- PTS (MATCH_INITIAL_PTS) when you want MediaConvert to use the initial
    -- PTS as the first time stamp in the manifest. Choose Zero-based
    -- (ZERO_BASED) to have MediaConvert ignore the initial PTS in the video
    -- stream and instead write the initial time stamp as zero in the manifest.
    -- For outputs that don\'t have B-frames, the time stamps in your DASH
    -- manifests start at zero regardless of your choice here.
    CmafGroupSettings -> Maybe CmafPtsOffsetHandlingForBFrames
ptsOffsetHandlingForBFrames :: Prelude.Maybe CmafPtsOffsetHandlingForBFrames,
    -- | When set to SINGLE_FILE, a single output file is generated, which is
    -- internally segmented using the Fragment Length and Segment Length. When
    -- set to SEGMENTED_FILES, separate segment files will be created.
    CmafGroupSettings -> Maybe CmafSegmentControl
segmentControl :: Prelude.Maybe CmafSegmentControl,
    -- | Specify the length, in whole seconds, of each segment. When you don\'t
    -- specify a value, MediaConvert defaults to 10. Related settings: Use
    -- Segment length control (SegmentLengthControl) to specify whether the
    -- encoder enforces this value strictly. Use Segment control
    -- (CmafSegmentControl) to specify whether MediaConvert creates separate
    -- segment files or one content file that has metadata to mark the segment
    -- boundaries.
    CmafGroupSettings -> Maybe Natural
segmentLength :: Prelude.Maybe Prelude.Natural,
    -- | Specify how you want MediaConvert to determine the segment length.
    -- Choose Exact (EXACT) to have the encoder use the exact length that you
    -- specify with the setting Segment length (SegmentLength). This might
    -- result in extra I-frames. Choose Multiple of GOP (GOP_MULTIPLE) to have
    -- the encoder round up the segment lengths to match the next GOP boundary.
    CmafGroupSettings -> Maybe CmafSegmentLengthControl
segmentLengthControl :: Prelude.Maybe CmafSegmentLengthControl,
    -- | Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF
    -- tag of variant manifest.
    CmafGroupSettings -> Maybe CmafStreamInfResolution
streamInfResolution :: Prelude.Maybe CmafStreamInfResolution,
    -- | When set to LEGACY, the segment target duration is always rounded up to
    -- the nearest integer value above its current value in seconds. When set
    -- to SPEC\\\\_COMPLIANT, the segment target duration is rounded up to the
    -- nearest integer value if fraction seconds are greater than or equal to
    -- 0.5 (>= 0.5) and rounded down if less than 0.5 (\< 0.5). You may need to
    -- use LEGACY if your client needs to ensure that the target duration is
    -- always longer than the actual duration of the segment. Some older
    -- players may experience interrupted playback when the actual duration of
    -- a track in a segment is longer than the target duration.
    CmafGroupSettings -> Maybe CmafTargetDurationCompatibilityMode
targetDurationCompatibilityMode :: Prelude.Maybe CmafTargetDurationCompatibilityMode,
    -- | Specify the video sample composition time offset mode in the output fMP4
    -- TRUN box. For wider player compatibility, set Video composition offsets
    -- to Unsigned or leave blank. The earliest presentation time may be
    -- greater than zero, and sample composition time offsets will increment
    -- using unsigned integers. For strict fMP4 video and audio timing, set
    -- Video composition offsets to Signed. The earliest presentation time will
    -- be equal to zero, and sample composition time offsets will increment
    -- using signed integers.
    CmafGroupSettings -> Maybe CmafVideoCompositionOffsets
videoCompositionOffsets :: Prelude.Maybe CmafVideoCompositionOffsets,
    -- | When set to ENABLED, a DASH MPD manifest will be generated for this
    -- output.
    CmafGroupSettings -> Maybe CmafWriteDASHManifest
writeDashManifest :: Prelude.Maybe CmafWriteDASHManifest,
    -- | When set to ENABLED, an Apple HLS manifest will be generated for this
    -- output.
    CmafGroupSettings -> Maybe CmafWriteHLSManifest
writeHlsManifest :: Prelude.Maybe CmafWriteHLSManifest,
    -- | When you enable Precise segment duration in DASH manifests
    -- (writeSegmentTimelineInRepresentation), your DASH manifest shows precise
    -- segment durations. The segment duration information appears inside the
    -- SegmentTimeline element, inside SegmentTemplate at the Representation
    -- level. When this feature isn\'t enabled, the segment durations in your
    -- DASH manifest are approximate. The segment duration information appears
    -- in the duration attribute of the SegmentTemplate element.
    CmafGroupSettings -> Maybe CmafWriteSegmentTimelineInRepresentation
writeSegmentTimelineInRepresentation :: Prelude.Maybe CmafWriteSegmentTimelineInRepresentation
  }
  deriving (CmafGroupSettings -> CmafGroupSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CmafGroupSettings -> CmafGroupSettings -> Bool
$c/= :: CmafGroupSettings -> CmafGroupSettings -> Bool
== :: CmafGroupSettings -> CmafGroupSettings -> Bool
$c== :: CmafGroupSettings -> CmafGroupSettings -> Bool
Prelude.Eq, ReadPrec [CmafGroupSettings]
ReadPrec CmafGroupSettings
Int -> ReadS CmafGroupSettings
ReadS [CmafGroupSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CmafGroupSettings]
$creadListPrec :: ReadPrec [CmafGroupSettings]
readPrec :: ReadPrec CmafGroupSettings
$creadPrec :: ReadPrec CmafGroupSettings
readList :: ReadS [CmafGroupSettings]
$creadList :: ReadS [CmafGroupSettings]
readsPrec :: Int -> ReadS CmafGroupSettings
$creadsPrec :: Int -> ReadS CmafGroupSettings
Prelude.Read, Int -> CmafGroupSettings -> ShowS
[CmafGroupSettings] -> ShowS
CmafGroupSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CmafGroupSettings] -> ShowS
$cshowList :: [CmafGroupSettings] -> ShowS
show :: CmafGroupSettings -> String
$cshow :: CmafGroupSettings -> String
showsPrec :: Int -> CmafGroupSettings -> ShowS
$cshowsPrec :: Int -> CmafGroupSettings -> ShowS
Prelude.Show, forall x. Rep CmafGroupSettings x -> CmafGroupSettings
forall x. CmafGroupSettings -> Rep CmafGroupSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CmafGroupSettings x -> CmafGroupSettings
$cfrom :: forall x. CmafGroupSettings -> Rep CmafGroupSettings x
Prelude.Generic)

-- |
-- Create a value of 'CmafGroupSettings' 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:
--
-- 'additionalManifests', 'cmafGroupSettings_additionalManifests' - By default, the service creates one top-level .m3u8 HLS manifest and one
-- top -level .mpd DASH manifest for each CMAF output group in your job.
-- These default manifests reference every output in the output group. To
-- create additional top-level manifests that reference a subset of the
-- outputs in the output group, specify a list of them here. For each
-- additional manifest that you specify, the service creates one HLS
-- manifest and one DASH manifest.
--
-- 'baseUrl', 'cmafGroupSettings_baseUrl' - A partial URI prefix that will be put in the manifest file at the top
-- level BaseURL element. Can be used if streams are delivered from a
-- different URL than the manifest file.
--
-- 'clientCache', 'cmafGroupSettings_clientCache' - Disable this setting only when your workflow requires the
-- #EXT-X-ALLOW-CACHE:no tag. Otherwise, keep the default value Enabled
-- (ENABLED) and control caching in your video distribution set up. For
-- example, use the Cache-Control http header.
--
-- 'codecSpecification', 'cmafGroupSettings_codecSpecification' - Specification to use (RFC-6381 or the default RFC-4281) during m3u8
-- playlist generation.
--
-- 'destination', 'cmafGroupSettings_destination' - Use Destination (Destination) to specify the S3 output location and the
-- output filename base. Destination accepts format identifiers. If you do
-- not specify the base filename in the URI, the service will use the
-- filename of the input file. If your job has multiple inputs, the service
-- uses the filename of the first input file.
--
-- 'destinationSettings', 'cmafGroupSettings_destinationSettings' - Settings associated with the destination. Will vary based on the type of
-- destination
--
-- 'encryption', 'cmafGroupSettings_encryption' - DRM settings.
--
-- 'fragmentLength', 'cmafGroupSettings_fragmentLength' - Specify the length, in whole seconds, of the mp4 fragments. When you
-- don\'t specify a value, MediaConvert defaults to 2. Related setting: Use
-- Fragment length control (FragmentLengthControl) to specify whether the
-- encoder enforces this value strictly.
--
-- 'imageBasedTrickPlay', 'cmafGroupSettings_imageBasedTrickPlay' - Specify whether MediaConvert generates images for trick play. Keep the
-- default value, None (NONE), to not generate any images. Choose Thumbnail
-- (THUMBNAIL) to generate tiled thumbnails. Choose Thumbnail and full
-- frame (THUMBNAIL_AND_FULLFRAME) to generate tiled thumbnails and
-- full-resolution images of single frames. When you enable Write HLS
-- manifest (WriteHlsManifest), MediaConvert creates a child manifest for
-- each set of images that you generate and adds corresponding entries to
-- the parent manifest. When you enable Write DASH manifest
-- (WriteDashManifest), MediaConvert adds an entry in the .mpd manifest for
-- each set of images that you generate. A common application for these
-- images is Roku trick mode. The thumbnails and full-frame images that
-- MediaConvert creates with this feature are compatible with this Roku
-- specification:
-- https:\/\/developer.roku.com\/docs\/developer-program\/media-playback\/trick-mode\/hls-and-dash.md
--
-- 'imageBasedTrickPlaySettings', 'cmafGroupSettings_imageBasedTrickPlaySettings' - Tile and thumbnail settings applicable when imageBasedTrickPlay is
-- ADVANCED
--
-- 'manifestCompression', 'cmafGroupSettings_manifestCompression' - When set to GZIP, compresses HLS playlist.
--
-- 'manifestDurationFormat', 'cmafGroupSettings_manifestDurationFormat' - Indicates whether the output manifest should use floating point values
-- for segment duration.
--
-- 'minBufferTime', 'cmafGroupSettings_minBufferTime' - Minimum time of initially buffered media that is needed to ensure smooth
-- playout.
--
-- 'minFinalSegmentLength', 'cmafGroupSettings_minFinalSegmentLength' - Keep this setting at the default value of 0, unless you are
-- troubleshooting a problem with how devices play back the end of your
-- video asset. If you know that player devices are hanging on the final
-- segment of your video because the length of your final segment is too
-- short, use this setting to specify a minimum final segment length, in
-- seconds. Choose a value that is greater than or equal to 1 and less than
-- your segment length. When you specify a value for this setting, the
-- encoder will combine any final segment that is shorter than the length
-- that you specify with the previous segment. For example, your segment
-- length is 3 seconds and your final segment is .5 seconds without a
-- minimum final segment length; when you set the minimum final segment
-- length to 1, your final segment is 3.5 seconds.
--
-- 'mpdManifestBandwidthType', 'cmafGroupSettings_mpdManifestBandwidthType' - Specify how the value for bandwidth is determined for each video
-- Representation in your output MPD manifest. We recommend that you choose
-- a MPD manifest bandwidth type that is compatible with your downstream
-- player configuration. Max: Use the same value that you specify for Max
-- bitrate in the video output, in bits per second. Average: Use the
-- calculated average bitrate of the encoded video output, in bits per
-- second.
--
-- 'mpdProfile', 'cmafGroupSettings_mpdProfile' - Specify whether your DASH profile is on-demand or main. When you choose
-- Main profile (MAIN_PROFILE), the service signals
-- urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When
-- you choose On-demand (ON_DEMAND_PROFILE), the service signals
-- urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose
-- On-demand, you must also set the output group setting Segment control
-- (SegmentControl) to Single file (SINGLE_FILE).
--
-- 'ptsOffsetHandlingForBFrames', 'cmafGroupSettings_ptsOffsetHandlingForBFrames' - Use this setting only when your output video stream has B-frames, which
-- causes the initial presentation time stamp (PTS) to be offset from the
-- initial decode time stamp (DTS). Specify how MediaConvert handles PTS
-- when writing time stamps in output DASH manifests. Choose Match initial
-- PTS (MATCH_INITIAL_PTS) when you want MediaConvert to use the initial
-- PTS as the first time stamp in the manifest. Choose Zero-based
-- (ZERO_BASED) to have MediaConvert ignore the initial PTS in the video
-- stream and instead write the initial time stamp as zero in the manifest.
-- For outputs that don\'t have B-frames, the time stamps in your DASH
-- manifests start at zero regardless of your choice here.
--
-- 'segmentControl', 'cmafGroupSettings_segmentControl' - When set to SINGLE_FILE, a single output file is generated, which is
-- internally segmented using the Fragment Length and Segment Length. When
-- set to SEGMENTED_FILES, separate segment files will be created.
--
-- 'segmentLength', 'cmafGroupSettings_segmentLength' - Specify the length, in whole seconds, of each segment. When you don\'t
-- specify a value, MediaConvert defaults to 10. Related settings: Use
-- Segment length control (SegmentLengthControl) to specify whether the
-- encoder enforces this value strictly. Use Segment control
-- (CmafSegmentControl) to specify whether MediaConvert creates separate
-- segment files or one content file that has metadata to mark the segment
-- boundaries.
--
-- 'segmentLengthControl', 'cmafGroupSettings_segmentLengthControl' - Specify how you want MediaConvert to determine the segment length.
-- Choose Exact (EXACT) to have the encoder use the exact length that you
-- specify with the setting Segment length (SegmentLength). This might
-- result in extra I-frames. Choose Multiple of GOP (GOP_MULTIPLE) to have
-- the encoder round up the segment lengths to match the next GOP boundary.
--
-- 'streamInfResolution', 'cmafGroupSettings_streamInfResolution' - Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF
-- tag of variant manifest.
--
-- 'targetDurationCompatibilityMode', 'cmafGroupSettings_targetDurationCompatibilityMode' - When set to LEGACY, the segment target duration is always rounded up to
-- the nearest integer value above its current value in seconds. When set
-- to SPEC\\\\_COMPLIANT, the segment target duration is rounded up to the
-- nearest integer value if fraction seconds are greater than or equal to
-- 0.5 (>= 0.5) and rounded down if less than 0.5 (\< 0.5). You may need to
-- use LEGACY if your client needs to ensure that the target duration is
-- always longer than the actual duration of the segment. Some older
-- players may experience interrupted playback when the actual duration of
-- a track in a segment is longer than the target duration.
--
-- 'videoCompositionOffsets', 'cmafGroupSettings_videoCompositionOffsets' - Specify the video sample composition time offset mode in the output fMP4
-- TRUN box. For wider player compatibility, set Video composition offsets
-- to Unsigned or leave blank. The earliest presentation time may be
-- greater than zero, and sample composition time offsets will increment
-- using unsigned integers. For strict fMP4 video and audio timing, set
-- Video composition offsets to Signed. The earliest presentation time will
-- be equal to zero, and sample composition time offsets will increment
-- using signed integers.
--
-- 'writeDashManifest', 'cmafGroupSettings_writeDashManifest' - When set to ENABLED, a DASH MPD manifest will be generated for this
-- output.
--
-- 'writeHlsManifest', 'cmafGroupSettings_writeHlsManifest' - When set to ENABLED, an Apple HLS manifest will be generated for this
-- output.
--
-- 'writeSegmentTimelineInRepresentation', 'cmafGroupSettings_writeSegmentTimelineInRepresentation' - When you enable Precise segment duration in DASH manifests
-- (writeSegmentTimelineInRepresentation), your DASH manifest shows precise
-- segment durations. The segment duration information appears inside the
-- SegmentTimeline element, inside SegmentTemplate at the Representation
-- level. When this feature isn\'t enabled, the segment durations in your
-- DASH manifest are approximate. The segment duration information appears
-- in the duration attribute of the SegmentTemplate element.
newCmafGroupSettings ::
  CmafGroupSettings
newCmafGroupSettings :: CmafGroupSettings
newCmafGroupSettings =
  CmafGroupSettings'
    { $sel:additionalManifests:CmafGroupSettings' :: Maybe [CmafAdditionalManifest]
additionalManifests =
        forall a. Maybe a
Prelude.Nothing,
      $sel:baseUrl:CmafGroupSettings' :: Maybe Text
baseUrl = forall a. Maybe a
Prelude.Nothing,
      $sel:clientCache:CmafGroupSettings' :: Maybe CmafClientCache
clientCache = forall a. Maybe a
Prelude.Nothing,
      $sel:codecSpecification:CmafGroupSettings' :: Maybe CmafCodecSpecification
codecSpecification = forall a. Maybe a
Prelude.Nothing,
      $sel:destination:CmafGroupSettings' :: Maybe Text
destination = forall a. Maybe a
Prelude.Nothing,
      $sel:destinationSettings:CmafGroupSettings' :: Maybe DestinationSettings
destinationSettings = forall a. Maybe a
Prelude.Nothing,
      $sel:encryption:CmafGroupSettings' :: Maybe CmafEncryptionSettings
encryption = forall a. Maybe a
Prelude.Nothing,
      $sel:fragmentLength:CmafGroupSettings' :: Maybe Natural
fragmentLength = forall a. Maybe a
Prelude.Nothing,
      $sel:imageBasedTrickPlay:CmafGroupSettings' :: Maybe CmafImageBasedTrickPlay
imageBasedTrickPlay = forall a. Maybe a
Prelude.Nothing,
      $sel:imageBasedTrickPlaySettings:CmafGroupSettings' :: Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlaySettings = forall a. Maybe a
Prelude.Nothing,
      $sel:manifestCompression:CmafGroupSettings' :: Maybe CmafManifestCompression
manifestCompression = forall a. Maybe a
Prelude.Nothing,
      $sel:manifestDurationFormat:CmafGroupSettings' :: Maybe CmafManifestDurationFormat
manifestDurationFormat = forall a. Maybe a
Prelude.Nothing,
      $sel:minBufferTime:CmafGroupSettings' :: Maybe Natural
minBufferTime = forall a. Maybe a
Prelude.Nothing,
      $sel:minFinalSegmentLength:CmafGroupSettings' :: Maybe Double
minFinalSegmentLength = forall a. Maybe a
Prelude.Nothing,
      $sel:mpdManifestBandwidthType:CmafGroupSettings' :: Maybe CmafMpdManifestBandwidthType
mpdManifestBandwidthType = forall a. Maybe a
Prelude.Nothing,
      $sel:mpdProfile:CmafGroupSettings' :: Maybe CmafMpdProfile
mpdProfile = forall a. Maybe a
Prelude.Nothing,
      $sel:ptsOffsetHandlingForBFrames:CmafGroupSettings' :: Maybe CmafPtsOffsetHandlingForBFrames
ptsOffsetHandlingForBFrames = forall a. Maybe a
Prelude.Nothing,
      $sel:segmentControl:CmafGroupSettings' :: Maybe CmafSegmentControl
segmentControl = forall a. Maybe a
Prelude.Nothing,
      $sel:segmentLength:CmafGroupSettings' :: Maybe Natural
segmentLength = forall a. Maybe a
Prelude.Nothing,
      $sel:segmentLengthControl:CmafGroupSettings' :: Maybe CmafSegmentLengthControl
segmentLengthControl = forall a. Maybe a
Prelude.Nothing,
      $sel:streamInfResolution:CmafGroupSettings' :: Maybe CmafStreamInfResolution
streamInfResolution = forall a. Maybe a
Prelude.Nothing,
      $sel:targetDurationCompatibilityMode:CmafGroupSettings' :: Maybe CmafTargetDurationCompatibilityMode
targetDurationCompatibilityMode = forall a. Maybe a
Prelude.Nothing,
      $sel:videoCompositionOffsets:CmafGroupSettings' :: Maybe CmafVideoCompositionOffsets
videoCompositionOffsets = forall a. Maybe a
Prelude.Nothing,
      $sel:writeDashManifest:CmafGroupSettings' :: Maybe CmafWriteDASHManifest
writeDashManifest = forall a. Maybe a
Prelude.Nothing,
      $sel:writeHlsManifest:CmafGroupSettings' :: Maybe CmafWriteHLSManifest
writeHlsManifest = forall a. Maybe a
Prelude.Nothing,
      $sel:writeSegmentTimelineInRepresentation:CmafGroupSettings' :: Maybe CmafWriteSegmentTimelineInRepresentation
writeSegmentTimelineInRepresentation =
        forall a. Maybe a
Prelude.Nothing
    }

-- | By default, the service creates one top-level .m3u8 HLS manifest and one
-- top -level .mpd DASH manifest for each CMAF output group in your job.
-- These default manifests reference every output in the output group. To
-- create additional top-level manifests that reference a subset of the
-- outputs in the output group, specify a list of them here. For each
-- additional manifest that you specify, the service creates one HLS
-- manifest and one DASH manifest.
cmafGroupSettings_additionalManifests :: Lens.Lens' CmafGroupSettings (Prelude.Maybe [CmafAdditionalManifest])
cmafGroupSettings_additionalManifests :: Lens' CmafGroupSettings (Maybe [CmafAdditionalManifest])
cmafGroupSettings_additionalManifests = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe [CmafAdditionalManifest]
additionalManifests :: Maybe [CmafAdditionalManifest]
$sel:additionalManifests:CmafGroupSettings' :: CmafGroupSettings -> Maybe [CmafAdditionalManifest]
additionalManifests} -> Maybe [CmafAdditionalManifest]
additionalManifests) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe [CmafAdditionalManifest]
a -> CmafGroupSettings
s {$sel:additionalManifests:CmafGroupSettings' :: Maybe [CmafAdditionalManifest]
additionalManifests = Maybe [CmafAdditionalManifest]
a} :: CmafGroupSettings) 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

-- | A partial URI prefix that will be put in the manifest file at the top
-- level BaseURL element. Can be used if streams are delivered from a
-- different URL than the manifest file.
cmafGroupSettings_baseUrl :: Lens.Lens' CmafGroupSettings (Prelude.Maybe Prelude.Text)
cmafGroupSettings_baseUrl :: Lens' CmafGroupSettings (Maybe Text)
cmafGroupSettings_baseUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe Text
baseUrl :: Maybe Text
$sel:baseUrl:CmafGroupSettings' :: CmafGroupSettings -> Maybe Text
baseUrl} -> Maybe Text
baseUrl) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe Text
a -> CmafGroupSettings
s {$sel:baseUrl:CmafGroupSettings' :: Maybe Text
baseUrl = Maybe Text
a} :: CmafGroupSettings)

-- | Disable this setting only when your workflow requires the
-- #EXT-X-ALLOW-CACHE:no tag. Otherwise, keep the default value Enabled
-- (ENABLED) and control caching in your video distribution set up. For
-- example, use the Cache-Control http header.
cmafGroupSettings_clientCache :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafClientCache)
cmafGroupSettings_clientCache :: Lens' CmafGroupSettings (Maybe CmafClientCache)
cmafGroupSettings_clientCache = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafClientCache
clientCache :: Maybe CmafClientCache
$sel:clientCache:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafClientCache
clientCache} -> Maybe CmafClientCache
clientCache) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafClientCache
a -> CmafGroupSettings
s {$sel:clientCache:CmafGroupSettings' :: Maybe CmafClientCache
clientCache = Maybe CmafClientCache
a} :: CmafGroupSettings)

-- | Specification to use (RFC-6381 or the default RFC-4281) during m3u8
-- playlist generation.
cmafGroupSettings_codecSpecification :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafCodecSpecification)
cmafGroupSettings_codecSpecification :: Lens' CmafGroupSettings (Maybe CmafCodecSpecification)
cmafGroupSettings_codecSpecification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafCodecSpecification
codecSpecification :: Maybe CmafCodecSpecification
$sel:codecSpecification:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafCodecSpecification
codecSpecification} -> Maybe CmafCodecSpecification
codecSpecification) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafCodecSpecification
a -> CmafGroupSettings
s {$sel:codecSpecification:CmafGroupSettings' :: Maybe CmafCodecSpecification
codecSpecification = Maybe CmafCodecSpecification
a} :: CmafGroupSettings)

-- | Use Destination (Destination) to specify the S3 output location and the
-- output filename base. Destination accepts format identifiers. If you do
-- not specify the base filename in the URI, the service will use the
-- filename of the input file. If your job has multiple inputs, the service
-- uses the filename of the first input file.
cmafGroupSettings_destination :: Lens.Lens' CmafGroupSettings (Prelude.Maybe Prelude.Text)
cmafGroupSettings_destination :: Lens' CmafGroupSettings (Maybe Text)
cmafGroupSettings_destination = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe Text
destination :: Maybe Text
$sel:destination:CmafGroupSettings' :: CmafGroupSettings -> Maybe Text
destination} -> Maybe Text
destination) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe Text
a -> CmafGroupSettings
s {$sel:destination:CmafGroupSettings' :: Maybe Text
destination = Maybe Text
a} :: CmafGroupSettings)

-- | Settings associated with the destination. Will vary based on the type of
-- destination
cmafGroupSettings_destinationSettings :: Lens.Lens' CmafGroupSettings (Prelude.Maybe DestinationSettings)
cmafGroupSettings_destinationSettings :: Lens' CmafGroupSettings (Maybe DestinationSettings)
cmafGroupSettings_destinationSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe DestinationSettings
destinationSettings :: Maybe DestinationSettings
$sel:destinationSettings:CmafGroupSettings' :: CmafGroupSettings -> Maybe DestinationSettings
destinationSettings} -> Maybe DestinationSettings
destinationSettings) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe DestinationSettings
a -> CmafGroupSettings
s {$sel:destinationSettings:CmafGroupSettings' :: Maybe DestinationSettings
destinationSettings = Maybe DestinationSettings
a} :: CmafGroupSettings)

-- | DRM settings.
cmafGroupSettings_encryption :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafEncryptionSettings)
cmafGroupSettings_encryption :: Lens' CmafGroupSettings (Maybe CmafEncryptionSettings)
cmafGroupSettings_encryption = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafEncryptionSettings
encryption :: Maybe CmafEncryptionSettings
$sel:encryption:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafEncryptionSettings
encryption} -> Maybe CmafEncryptionSettings
encryption) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafEncryptionSettings
a -> CmafGroupSettings
s {$sel:encryption:CmafGroupSettings' :: Maybe CmafEncryptionSettings
encryption = Maybe CmafEncryptionSettings
a} :: CmafGroupSettings)

-- | Specify the length, in whole seconds, of the mp4 fragments. When you
-- don\'t specify a value, MediaConvert defaults to 2. Related setting: Use
-- Fragment length control (FragmentLengthControl) to specify whether the
-- encoder enforces this value strictly.
cmafGroupSettings_fragmentLength :: Lens.Lens' CmafGroupSettings (Prelude.Maybe Prelude.Natural)
cmafGroupSettings_fragmentLength :: Lens' CmafGroupSettings (Maybe Natural)
cmafGroupSettings_fragmentLength = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe Natural
fragmentLength :: Maybe Natural
$sel:fragmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
fragmentLength} -> Maybe Natural
fragmentLength) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe Natural
a -> CmafGroupSettings
s {$sel:fragmentLength:CmafGroupSettings' :: Maybe Natural
fragmentLength = Maybe Natural
a} :: CmafGroupSettings)

-- | Specify whether MediaConvert generates images for trick play. Keep the
-- default value, None (NONE), to not generate any images. Choose Thumbnail
-- (THUMBNAIL) to generate tiled thumbnails. Choose Thumbnail and full
-- frame (THUMBNAIL_AND_FULLFRAME) to generate tiled thumbnails and
-- full-resolution images of single frames. When you enable Write HLS
-- manifest (WriteHlsManifest), MediaConvert creates a child manifest for
-- each set of images that you generate and adds corresponding entries to
-- the parent manifest. When you enable Write DASH manifest
-- (WriteDashManifest), MediaConvert adds an entry in the .mpd manifest for
-- each set of images that you generate. A common application for these
-- images is Roku trick mode. The thumbnails and full-frame images that
-- MediaConvert creates with this feature are compatible with this Roku
-- specification:
-- https:\/\/developer.roku.com\/docs\/developer-program\/media-playback\/trick-mode\/hls-and-dash.md
cmafGroupSettings_imageBasedTrickPlay :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafImageBasedTrickPlay)
cmafGroupSettings_imageBasedTrickPlay :: Lens' CmafGroupSettings (Maybe CmafImageBasedTrickPlay)
cmafGroupSettings_imageBasedTrickPlay = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafImageBasedTrickPlay
imageBasedTrickPlay :: Maybe CmafImageBasedTrickPlay
$sel:imageBasedTrickPlay:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafImageBasedTrickPlay
imageBasedTrickPlay} -> Maybe CmafImageBasedTrickPlay
imageBasedTrickPlay) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafImageBasedTrickPlay
a -> CmafGroupSettings
s {$sel:imageBasedTrickPlay:CmafGroupSettings' :: Maybe CmafImageBasedTrickPlay
imageBasedTrickPlay = Maybe CmafImageBasedTrickPlay
a} :: CmafGroupSettings)

-- | Tile and thumbnail settings applicable when imageBasedTrickPlay is
-- ADVANCED
cmafGroupSettings_imageBasedTrickPlaySettings :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafImageBasedTrickPlaySettings)
cmafGroupSettings_imageBasedTrickPlaySettings :: Lens' CmafGroupSettings (Maybe CmafImageBasedTrickPlaySettings)
cmafGroupSettings_imageBasedTrickPlaySettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlaySettings :: Maybe CmafImageBasedTrickPlaySettings
$sel:imageBasedTrickPlaySettings:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlaySettings} -> Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlaySettings) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafImageBasedTrickPlaySettings
a -> CmafGroupSettings
s {$sel:imageBasedTrickPlaySettings:CmafGroupSettings' :: Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlaySettings = Maybe CmafImageBasedTrickPlaySettings
a} :: CmafGroupSettings)

-- | When set to GZIP, compresses HLS playlist.
cmafGroupSettings_manifestCompression :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafManifestCompression)
cmafGroupSettings_manifestCompression :: Lens' CmafGroupSettings (Maybe CmafManifestCompression)
cmafGroupSettings_manifestCompression = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafManifestCompression
manifestCompression :: Maybe CmafManifestCompression
$sel:manifestCompression:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafManifestCompression
manifestCompression} -> Maybe CmafManifestCompression
manifestCompression) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafManifestCompression
a -> CmafGroupSettings
s {$sel:manifestCompression:CmafGroupSettings' :: Maybe CmafManifestCompression
manifestCompression = Maybe CmafManifestCompression
a} :: CmafGroupSettings)

-- | Indicates whether the output manifest should use floating point values
-- for segment duration.
cmafGroupSettings_manifestDurationFormat :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafManifestDurationFormat)
cmafGroupSettings_manifestDurationFormat :: Lens' CmafGroupSettings (Maybe CmafManifestDurationFormat)
cmafGroupSettings_manifestDurationFormat = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafManifestDurationFormat
manifestDurationFormat :: Maybe CmafManifestDurationFormat
$sel:manifestDurationFormat:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafManifestDurationFormat
manifestDurationFormat} -> Maybe CmafManifestDurationFormat
manifestDurationFormat) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafManifestDurationFormat
a -> CmafGroupSettings
s {$sel:manifestDurationFormat:CmafGroupSettings' :: Maybe CmafManifestDurationFormat
manifestDurationFormat = Maybe CmafManifestDurationFormat
a} :: CmafGroupSettings)

-- | Minimum time of initially buffered media that is needed to ensure smooth
-- playout.
cmafGroupSettings_minBufferTime :: Lens.Lens' CmafGroupSettings (Prelude.Maybe Prelude.Natural)
cmafGroupSettings_minBufferTime :: Lens' CmafGroupSettings (Maybe Natural)
cmafGroupSettings_minBufferTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe Natural
minBufferTime :: Maybe Natural
$sel:minBufferTime:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
minBufferTime} -> Maybe Natural
minBufferTime) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe Natural
a -> CmafGroupSettings
s {$sel:minBufferTime:CmafGroupSettings' :: Maybe Natural
minBufferTime = Maybe Natural
a} :: CmafGroupSettings)

-- | Keep this setting at the default value of 0, unless you are
-- troubleshooting a problem with how devices play back the end of your
-- video asset. If you know that player devices are hanging on the final
-- segment of your video because the length of your final segment is too
-- short, use this setting to specify a minimum final segment length, in
-- seconds. Choose a value that is greater than or equal to 1 and less than
-- your segment length. When you specify a value for this setting, the
-- encoder will combine any final segment that is shorter than the length
-- that you specify with the previous segment. For example, your segment
-- length is 3 seconds and your final segment is .5 seconds without a
-- minimum final segment length; when you set the minimum final segment
-- length to 1, your final segment is 3.5 seconds.
cmafGroupSettings_minFinalSegmentLength :: Lens.Lens' CmafGroupSettings (Prelude.Maybe Prelude.Double)
cmafGroupSettings_minFinalSegmentLength :: Lens' CmafGroupSettings (Maybe Double)
cmafGroupSettings_minFinalSegmentLength = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe Double
minFinalSegmentLength :: Maybe Double
$sel:minFinalSegmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Double
minFinalSegmentLength} -> Maybe Double
minFinalSegmentLength) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe Double
a -> CmafGroupSettings
s {$sel:minFinalSegmentLength:CmafGroupSettings' :: Maybe Double
minFinalSegmentLength = Maybe Double
a} :: CmafGroupSettings)

-- | Specify how the value for bandwidth is determined for each video
-- Representation in your output MPD manifest. We recommend that you choose
-- a MPD manifest bandwidth type that is compatible with your downstream
-- player configuration. Max: Use the same value that you specify for Max
-- bitrate in the video output, in bits per second. Average: Use the
-- calculated average bitrate of the encoded video output, in bits per
-- second.
cmafGroupSettings_mpdManifestBandwidthType :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafMpdManifestBandwidthType)
cmafGroupSettings_mpdManifestBandwidthType :: Lens' CmafGroupSettings (Maybe CmafMpdManifestBandwidthType)
cmafGroupSettings_mpdManifestBandwidthType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafMpdManifestBandwidthType
mpdManifestBandwidthType :: Maybe CmafMpdManifestBandwidthType
$sel:mpdManifestBandwidthType:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafMpdManifestBandwidthType
mpdManifestBandwidthType} -> Maybe CmafMpdManifestBandwidthType
mpdManifestBandwidthType) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafMpdManifestBandwidthType
a -> CmafGroupSettings
s {$sel:mpdManifestBandwidthType:CmafGroupSettings' :: Maybe CmafMpdManifestBandwidthType
mpdManifestBandwidthType = Maybe CmafMpdManifestBandwidthType
a} :: CmafGroupSettings)

-- | Specify whether your DASH profile is on-demand or main. When you choose
-- Main profile (MAIN_PROFILE), the service signals
-- urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When
-- you choose On-demand (ON_DEMAND_PROFILE), the service signals
-- urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose
-- On-demand, you must also set the output group setting Segment control
-- (SegmentControl) to Single file (SINGLE_FILE).
cmafGroupSettings_mpdProfile :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafMpdProfile)
cmafGroupSettings_mpdProfile :: Lens' CmafGroupSettings (Maybe CmafMpdProfile)
cmafGroupSettings_mpdProfile = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafMpdProfile
mpdProfile :: Maybe CmafMpdProfile
$sel:mpdProfile:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafMpdProfile
mpdProfile} -> Maybe CmafMpdProfile
mpdProfile) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafMpdProfile
a -> CmafGroupSettings
s {$sel:mpdProfile:CmafGroupSettings' :: Maybe CmafMpdProfile
mpdProfile = Maybe CmafMpdProfile
a} :: CmafGroupSettings)

-- | Use this setting only when your output video stream has B-frames, which
-- causes the initial presentation time stamp (PTS) to be offset from the
-- initial decode time stamp (DTS). Specify how MediaConvert handles PTS
-- when writing time stamps in output DASH manifests. Choose Match initial
-- PTS (MATCH_INITIAL_PTS) when you want MediaConvert to use the initial
-- PTS as the first time stamp in the manifest. Choose Zero-based
-- (ZERO_BASED) to have MediaConvert ignore the initial PTS in the video
-- stream and instead write the initial time stamp as zero in the manifest.
-- For outputs that don\'t have B-frames, the time stamps in your DASH
-- manifests start at zero regardless of your choice here.
cmafGroupSettings_ptsOffsetHandlingForBFrames :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafPtsOffsetHandlingForBFrames)
cmafGroupSettings_ptsOffsetHandlingForBFrames :: Lens' CmafGroupSettings (Maybe CmafPtsOffsetHandlingForBFrames)
cmafGroupSettings_ptsOffsetHandlingForBFrames = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafPtsOffsetHandlingForBFrames
ptsOffsetHandlingForBFrames :: Maybe CmafPtsOffsetHandlingForBFrames
$sel:ptsOffsetHandlingForBFrames:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafPtsOffsetHandlingForBFrames
ptsOffsetHandlingForBFrames} -> Maybe CmafPtsOffsetHandlingForBFrames
ptsOffsetHandlingForBFrames) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafPtsOffsetHandlingForBFrames
a -> CmafGroupSettings
s {$sel:ptsOffsetHandlingForBFrames:CmafGroupSettings' :: Maybe CmafPtsOffsetHandlingForBFrames
ptsOffsetHandlingForBFrames = Maybe CmafPtsOffsetHandlingForBFrames
a} :: CmafGroupSettings)

-- | When set to SINGLE_FILE, a single output file is generated, which is
-- internally segmented using the Fragment Length and Segment Length. When
-- set to SEGMENTED_FILES, separate segment files will be created.
cmafGroupSettings_segmentControl :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafSegmentControl)
cmafGroupSettings_segmentControl :: Lens' CmafGroupSettings (Maybe CmafSegmentControl)
cmafGroupSettings_segmentControl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafSegmentControl
segmentControl :: Maybe CmafSegmentControl
$sel:segmentControl:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafSegmentControl
segmentControl} -> Maybe CmafSegmentControl
segmentControl) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafSegmentControl
a -> CmafGroupSettings
s {$sel:segmentControl:CmafGroupSettings' :: Maybe CmafSegmentControl
segmentControl = Maybe CmafSegmentControl
a} :: CmafGroupSettings)

-- | Specify the length, in whole seconds, of each segment. When you don\'t
-- specify a value, MediaConvert defaults to 10. Related settings: Use
-- Segment length control (SegmentLengthControl) to specify whether the
-- encoder enforces this value strictly. Use Segment control
-- (CmafSegmentControl) to specify whether MediaConvert creates separate
-- segment files or one content file that has metadata to mark the segment
-- boundaries.
cmafGroupSettings_segmentLength :: Lens.Lens' CmafGroupSettings (Prelude.Maybe Prelude.Natural)
cmafGroupSettings_segmentLength :: Lens' CmafGroupSettings (Maybe Natural)
cmafGroupSettings_segmentLength = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe Natural
segmentLength :: Maybe Natural
$sel:segmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
segmentLength} -> Maybe Natural
segmentLength) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe Natural
a -> CmafGroupSettings
s {$sel:segmentLength:CmafGroupSettings' :: Maybe Natural
segmentLength = Maybe Natural
a} :: CmafGroupSettings)

-- | Specify how you want MediaConvert to determine the segment length.
-- Choose Exact (EXACT) to have the encoder use the exact length that you
-- specify with the setting Segment length (SegmentLength). This might
-- result in extra I-frames. Choose Multiple of GOP (GOP_MULTIPLE) to have
-- the encoder round up the segment lengths to match the next GOP boundary.
cmafGroupSettings_segmentLengthControl :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafSegmentLengthControl)
cmafGroupSettings_segmentLengthControl :: Lens' CmafGroupSettings (Maybe CmafSegmentLengthControl)
cmafGroupSettings_segmentLengthControl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafSegmentLengthControl
segmentLengthControl :: Maybe CmafSegmentLengthControl
$sel:segmentLengthControl:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafSegmentLengthControl
segmentLengthControl} -> Maybe CmafSegmentLengthControl
segmentLengthControl) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafSegmentLengthControl
a -> CmafGroupSettings
s {$sel:segmentLengthControl:CmafGroupSettings' :: Maybe CmafSegmentLengthControl
segmentLengthControl = Maybe CmafSegmentLengthControl
a} :: CmafGroupSettings)

-- | Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF
-- tag of variant manifest.
cmafGroupSettings_streamInfResolution :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafStreamInfResolution)
cmafGroupSettings_streamInfResolution :: Lens' CmafGroupSettings (Maybe CmafStreamInfResolution)
cmafGroupSettings_streamInfResolution = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafStreamInfResolution
streamInfResolution :: Maybe CmafStreamInfResolution
$sel:streamInfResolution:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafStreamInfResolution
streamInfResolution} -> Maybe CmafStreamInfResolution
streamInfResolution) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafStreamInfResolution
a -> CmafGroupSettings
s {$sel:streamInfResolution:CmafGroupSettings' :: Maybe CmafStreamInfResolution
streamInfResolution = Maybe CmafStreamInfResolution
a} :: CmafGroupSettings)

-- | When set to LEGACY, the segment target duration is always rounded up to
-- the nearest integer value above its current value in seconds. When set
-- to SPEC\\\\_COMPLIANT, the segment target duration is rounded up to the
-- nearest integer value if fraction seconds are greater than or equal to
-- 0.5 (>= 0.5) and rounded down if less than 0.5 (\< 0.5). You may need to
-- use LEGACY if your client needs to ensure that the target duration is
-- always longer than the actual duration of the segment. Some older
-- players may experience interrupted playback when the actual duration of
-- a track in a segment is longer than the target duration.
cmafGroupSettings_targetDurationCompatibilityMode :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafTargetDurationCompatibilityMode)
cmafGroupSettings_targetDurationCompatibilityMode :: Lens' CmafGroupSettings (Maybe CmafTargetDurationCompatibilityMode)
cmafGroupSettings_targetDurationCompatibilityMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafTargetDurationCompatibilityMode
targetDurationCompatibilityMode :: Maybe CmafTargetDurationCompatibilityMode
$sel:targetDurationCompatibilityMode:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafTargetDurationCompatibilityMode
targetDurationCompatibilityMode} -> Maybe CmafTargetDurationCompatibilityMode
targetDurationCompatibilityMode) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafTargetDurationCompatibilityMode
a -> CmafGroupSettings
s {$sel:targetDurationCompatibilityMode:CmafGroupSettings' :: Maybe CmafTargetDurationCompatibilityMode
targetDurationCompatibilityMode = Maybe CmafTargetDurationCompatibilityMode
a} :: CmafGroupSettings)

-- | Specify the video sample composition time offset mode in the output fMP4
-- TRUN box. For wider player compatibility, set Video composition offsets
-- to Unsigned or leave blank. The earliest presentation time may be
-- greater than zero, and sample composition time offsets will increment
-- using unsigned integers. For strict fMP4 video and audio timing, set
-- Video composition offsets to Signed. The earliest presentation time will
-- be equal to zero, and sample composition time offsets will increment
-- using signed integers.
cmafGroupSettings_videoCompositionOffsets :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafVideoCompositionOffsets)
cmafGroupSettings_videoCompositionOffsets :: Lens' CmafGroupSettings (Maybe CmafVideoCompositionOffsets)
cmafGroupSettings_videoCompositionOffsets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafVideoCompositionOffsets
videoCompositionOffsets :: Maybe CmafVideoCompositionOffsets
$sel:videoCompositionOffsets:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafVideoCompositionOffsets
videoCompositionOffsets} -> Maybe CmafVideoCompositionOffsets
videoCompositionOffsets) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafVideoCompositionOffsets
a -> CmafGroupSettings
s {$sel:videoCompositionOffsets:CmafGroupSettings' :: Maybe CmafVideoCompositionOffsets
videoCompositionOffsets = Maybe CmafVideoCompositionOffsets
a} :: CmafGroupSettings)

-- | When set to ENABLED, a DASH MPD manifest will be generated for this
-- output.
cmafGroupSettings_writeDashManifest :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafWriteDASHManifest)
cmafGroupSettings_writeDashManifest :: Lens' CmafGroupSettings (Maybe CmafWriteDASHManifest)
cmafGroupSettings_writeDashManifest = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafWriteDASHManifest
writeDashManifest :: Maybe CmafWriteDASHManifest
$sel:writeDashManifest:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteDASHManifest
writeDashManifest} -> Maybe CmafWriteDASHManifest
writeDashManifest) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafWriteDASHManifest
a -> CmafGroupSettings
s {$sel:writeDashManifest:CmafGroupSettings' :: Maybe CmafWriteDASHManifest
writeDashManifest = Maybe CmafWriteDASHManifest
a} :: CmafGroupSettings)

-- | When set to ENABLED, an Apple HLS manifest will be generated for this
-- output.
cmafGroupSettings_writeHlsManifest :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafWriteHLSManifest)
cmafGroupSettings_writeHlsManifest :: Lens' CmafGroupSettings (Maybe CmafWriteHLSManifest)
cmafGroupSettings_writeHlsManifest = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafWriteHLSManifest
writeHlsManifest :: Maybe CmafWriteHLSManifest
$sel:writeHlsManifest:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteHLSManifest
writeHlsManifest} -> Maybe CmafWriteHLSManifest
writeHlsManifest) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafWriteHLSManifest
a -> CmafGroupSettings
s {$sel:writeHlsManifest:CmafGroupSettings' :: Maybe CmafWriteHLSManifest
writeHlsManifest = Maybe CmafWriteHLSManifest
a} :: CmafGroupSettings)

-- | When you enable Precise segment duration in DASH manifests
-- (writeSegmentTimelineInRepresentation), your DASH manifest shows precise
-- segment durations. The segment duration information appears inside the
-- SegmentTimeline element, inside SegmentTemplate at the Representation
-- level. When this feature isn\'t enabled, the segment durations in your
-- DASH manifest are approximate. The segment duration information appears
-- in the duration attribute of the SegmentTemplate element.
cmafGroupSettings_writeSegmentTimelineInRepresentation :: Lens.Lens' CmafGroupSettings (Prelude.Maybe CmafWriteSegmentTimelineInRepresentation)
cmafGroupSettings_writeSegmentTimelineInRepresentation :: Lens'
  CmafGroupSettings (Maybe CmafWriteSegmentTimelineInRepresentation)
cmafGroupSettings_writeSegmentTimelineInRepresentation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmafGroupSettings' {Maybe CmafWriteSegmentTimelineInRepresentation
writeSegmentTimelineInRepresentation :: Maybe CmafWriteSegmentTimelineInRepresentation
$sel:writeSegmentTimelineInRepresentation:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteSegmentTimelineInRepresentation
writeSegmentTimelineInRepresentation} -> Maybe CmafWriteSegmentTimelineInRepresentation
writeSegmentTimelineInRepresentation) (\s :: CmafGroupSettings
s@CmafGroupSettings' {} Maybe CmafWriteSegmentTimelineInRepresentation
a -> CmafGroupSettings
s {$sel:writeSegmentTimelineInRepresentation:CmafGroupSettings' :: Maybe CmafWriteSegmentTimelineInRepresentation
writeSegmentTimelineInRepresentation = Maybe CmafWriteSegmentTimelineInRepresentation
a} :: CmafGroupSettings)

instance Data.FromJSON CmafGroupSettings where
  parseJSON :: Value -> Parser CmafGroupSettings
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"CmafGroupSettings"
      ( \Object
x ->
          Maybe [CmafAdditionalManifest]
-> Maybe Text
-> Maybe CmafClientCache
-> Maybe CmafCodecSpecification
-> Maybe Text
-> Maybe DestinationSettings
-> Maybe CmafEncryptionSettings
-> Maybe Natural
-> Maybe CmafImageBasedTrickPlay
-> Maybe CmafImageBasedTrickPlaySettings
-> Maybe CmafManifestCompression
-> Maybe CmafManifestDurationFormat
-> Maybe Natural
-> Maybe Double
-> Maybe CmafMpdManifestBandwidthType
-> Maybe CmafMpdProfile
-> Maybe CmafPtsOffsetHandlingForBFrames
-> Maybe CmafSegmentControl
-> Maybe Natural
-> Maybe CmafSegmentLengthControl
-> Maybe CmafStreamInfResolution
-> Maybe CmafTargetDurationCompatibilityMode
-> Maybe CmafVideoCompositionOffsets
-> Maybe CmafWriteDASHManifest
-> Maybe CmafWriteHLSManifest
-> Maybe CmafWriteSegmentTimelineInRepresentation
-> CmafGroupSettings
CmafGroupSettings'
            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
"additionalManifests"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            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
"baseUrl")
            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
"clientCache")
            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
"codecSpecification")
            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
"destination")
            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
"destinationSettings")
            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
"encryption")
            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
"fragmentLength")
            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
"imageBasedTrickPlay")
            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
"imageBasedTrickPlaySettings")
            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
"manifestCompression")
            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
"manifestDurationFormat")
            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
"minBufferTime")
            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
"minFinalSegmentLength")
            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
"mpdManifestBandwidthType")
            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
"mpdProfile")
            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
"ptsOffsetHandlingForBFrames")
            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
"segmentControl")
            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
"segmentLength")
            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
"segmentLengthControl")
            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
"streamInfResolution")
            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
"targetDurationCompatibilityMode")
            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
"videoCompositionOffsets")
            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
"writeDashManifest")
            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
"writeHlsManifest")
            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
"writeSegmentTimelineInRepresentation")
      )

instance Prelude.Hashable CmafGroupSettings where
  hashWithSalt :: Int -> CmafGroupSettings -> Int
hashWithSalt Int
_salt CmafGroupSettings' {Maybe Double
Maybe Natural
Maybe [CmafAdditionalManifest]
Maybe Text
Maybe CmafClientCache
Maybe CmafCodecSpecification
Maybe CmafImageBasedTrickPlay
Maybe CmafImageBasedTrickPlaySettings
Maybe CmafManifestCompression
Maybe CmafManifestDurationFormat
Maybe CmafMpdManifestBandwidthType
Maybe CmafMpdProfile
Maybe CmafPtsOffsetHandlingForBFrames
Maybe CmafSegmentControl
Maybe CmafSegmentLengthControl
Maybe CmafStreamInfResolution
Maybe CmafTargetDurationCompatibilityMode
Maybe CmafVideoCompositionOffsets
Maybe CmafWriteDASHManifest
Maybe CmafWriteHLSManifest
Maybe CmafWriteSegmentTimelineInRepresentation
Maybe DestinationSettings
Maybe CmafEncryptionSettings
writeSegmentTimelineInRepresentation :: Maybe CmafWriteSegmentTimelineInRepresentation
writeHlsManifest :: Maybe CmafWriteHLSManifest
writeDashManifest :: Maybe CmafWriteDASHManifest
videoCompositionOffsets :: Maybe CmafVideoCompositionOffsets
targetDurationCompatibilityMode :: Maybe CmafTargetDurationCompatibilityMode
streamInfResolution :: Maybe CmafStreamInfResolution
segmentLengthControl :: Maybe CmafSegmentLengthControl
segmentLength :: Maybe Natural
segmentControl :: Maybe CmafSegmentControl
ptsOffsetHandlingForBFrames :: Maybe CmafPtsOffsetHandlingForBFrames
mpdProfile :: Maybe CmafMpdProfile
mpdManifestBandwidthType :: Maybe CmafMpdManifestBandwidthType
minFinalSegmentLength :: Maybe Double
minBufferTime :: Maybe Natural
manifestDurationFormat :: Maybe CmafManifestDurationFormat
manifestCompression :: Maybe CmafManifestCompression
imageBasedTrickPlaySettings :: Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlay :: Maybe CmafImageBasedTrickPlay
fragmentLength :: Maybe Natural
encryption :: Maybe CmafEncryptionSettings
destinationSettings :: Maybe DestinationSettings
destination :: Maybe Text
codecSpecification :: Maybe CmafCodecSpecification
clientCache :: Maybe CmafClientCache
baseUrl :: Maybe Text
additionalManifests :: Maybe [CmafAdditionalManifest]
$sel:writeSegmentTimelineInRepresentation:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteSegmentTimelineInRepresentation
$sel:writeHlsManifest:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteHLSManifest
$sel:writeDashManifest:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteDASHManifest
$sel:videoCompositionOffsets:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafVideoCompositionOffsets
$sel:targetDurationCompatibilityMode:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafTargetDurationCompatibilityMode
$sel:streamInfResolution:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafStreamInfResolution
$sel:segmentLengthControl:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafSegmentLengthControl
$sel:segmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
$sel:segmentControl:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafSegmentControl
$sel:ptsOffsetHandlingForBFrames:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafPtsOffsetHandlingForBFrames
$sel:mpdProfile:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafMpdProfile
$sel:mpdManifestBandwidthType:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafMpdManifestBandwidthType
$sel:minFinalSegmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Double
$sel:minBufferTime:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
$sel:manifestDurationFormat:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafManifestDurationFormat
$sel:manifestCompression:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafManifestCompression
$sel:imageBasedTrickPlaySettings:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafImageBasedTrickPlaySettings
$sel:imageBasedTrickPlay:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafImageBasedTrickPlay
$sel:fragmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
$sel:encryption:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafEncryptionSettings
$sel:destinationSettings:CmafGroupSettings' :: CmafGroupSettings -> Maybe DestinationSettings
$sel:destination:CmafGroupSettings' :: CmafGroupSettings -> Maybe Text
$sel:codecSpecification:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafCodecSpecification
$sel:clientCache:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafClientCache
$sel:baseUrl:CmafGroupSettings' :: CmafGroupSettings -> Maybe Text
$sel:additionalManifests:CmafGroupSettings' :: CmafGroupSettings -> Maybe [CmafAdditionalManifest]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [CmafAdditionalManifest]
additionalManifests
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
baseUrl
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafClientCache
clientCache
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafCodecSpecification
codecSpecification
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
destination
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DestinationSettings
destinationSettings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafEncryptionSettings
encryption
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
fragmentLength
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafImageBasedTrickPlay
imageBasedTrickPlay
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlaySettings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafManifestCompression
manifestCompression
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafManifestDurationFormat
manifestDurationFormat
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
minBufferTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
minFinalSegmentLength
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafMpdManifestBandwidthType
mpdManifestBandwidthType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafMpdProfile
mpdProfile
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafPtsOffsetHandlingForBFrames
ptsOffsetHandlingForBFrames
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafSegmentControl
segmentControl
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
segmentLength
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafSegmentLengthControl
segmentLengthControl
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafStreamInfResolution
streamInfResolution
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafTargetDurationCompatibilityMode
targetDurationCompatibilityMode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafVideoCompositionOffsets
videoCompositionOffsets
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafWriteDASHManifest
writeDashManifest
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafWriteHLSManifest
writeHlsManifest
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmafWriteSegmentTimelineInRepresentation
writeSegmentTimelineInRepresentation

instance Prelude.NFData CmafGroupSettings where
  rnf :: CmafGroupSettings -> ()
rnf CmafGroupSettings' {Maybe Double
Maybe Natural
Maybe [CmafAdditionalManifest]
Maybe Text
Maybe CmafClientCache
Maybe CmafCodecSpecification
Maybe CmafImageBasedTrickPlay
Maybe CmafImageBasedTrickPlaySettings
Maybe CmafManifestCompression
Maybe CmafManifestDurationFormat
Maybe CmafMpdManifestBandwidthType
Maybe CmafMpdProfile
Maybe CmafPtsOffsetHandlingForBFrames
Maybe CmafSegmentControl
Maybe CmafSegmentLengthControl
Maybe CmafStreamInfResolution
Maybe CmafTargetDurationCompatibilityMode
Maybe CmafVideoCompositionOffsets
Maybe CmafWriteDASHManifest
Maybe CmafWriteHLSManifest
Maybe CmafWriteSegmentTimelineInRepresentation
Maybe DestinationSettings
Maybe CmafEncryptionSettings
writeSegmentTimelineInRepresentation :: Maybe CmafWriteSegmentTimelineInRepresentation
writeHlsManifest :: Maybe CmafWriteHLSManifest
writeDashManifest :: Maybe CmafWriteDASHManifest
videoCompositionOffsets :: Maybe CmafVideoCompositionOffsets
targetDurationCompatibilityMode :: Maybe CmafTargetDurationCompatibilityMode
streamInfResolution :: Maybe CmafStreamInfResolution
segmentLengthControl :: Maybe CmafSegmentLengthControl
segmentLength :: Maybe Natural
segmentControl :: Maybe CmafSegmentControl
ptsOffsetHandlingForBFrames :: Maybe CmafPtsOffsetHandlingForBFrames
mpdProfile :: Maybe CmafMpdProfile
mpdManifestBandwidthType :: Maybe CmafMpdManifestBandwidthType
minFinalSegmentLength :: Maybe Double
minBufferTime :: Maybe Natural
manifestDurationFormat :: Maybe CmafManifestDurationFormat
manifestCompression :: Maybe CmafManifestCompression
imageBasedTrickPlaySettings :: Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlay :: Maybe CmafImageBasedTrickPlay
fragmentLength :: Maybe Natural
encryption :: Maybe CmafEncryptionSettings
destinationSettings :: Maybe DestinationSettings
destination :: Maybe Text
codecSpecification :: Maybe CmafCodecSpecification
clientCache :: Maybe CmafClientCache
baseUrl :: Maybe Text
additionalManifests :: Maybe [CmafAdditionalManifest]
$sel:writeSegmentTimelineInRepresentation:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteSegmentTimelineInRepresentation
$sel:writeHlsManifest:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteHLSManifest
$sel:writeDashManifest:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteDASHManifest
$sel:videoCompositionOffsets:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafVideoCompositionOffsets
$sel:targetDurationCompatibilityMode:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafTargetDurationCompatibilityMode
$sel:streamInfResolution:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafStreamInfResolution
$sel:segmentLengthControl:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafSegmentLengthControl
$sel:segmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
$sel:segmentControl:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafSegmentControl
$sel:ptsOffsetHandlingForBFrames:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafPtsOffsetHandlingForBFrames
$sel:mpdProfile:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafMpdProfile
$sel:mpdManifestBandwidthType:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafMpdManifestBandwidthType
$sel:minFinalSegmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Double
$sel:minBufferTime:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
$sel:manifestDurationFormat:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafManifestDurationFormat
$sel:manifestCompression:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafManifestCompression
$sel:imageBasedTrickPlaySettings:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafImageBasedTrickPlaySettings
$sel:imageBasedTrickPlay:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafImageBasedTrickPlay
$sel:fragmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
$sel:encryption:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafEncryptionSettings
$sel:destinationSettings:CmafGroupSettings' :: CmafGroupSettings -> Maybe DestinationSettings
$sel:destination:CmafGroupSettings' :: CmafGroupSettings -> Maybe Text
$sel:codecSpecification:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafCodecSpecification
$sel:clientCache:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafClientCache
$sel:baseUrl:CmafGroupSettings' :: CmafGroupSettings -> Maybe Text
$sel:additionalManifests:CmafGroupSettings' :: CmafGroupSettings -> Maybe [CmafAdditionalManifest]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [CmafAdditionalManifest]
additionalManifests
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
baseUrl
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafClientCache
clientCache
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafCodecSpecification
codecSpecification
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
destination
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DestinationSettings
destinationSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafEncryptionSettings
encryption
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
fragmentLength
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafImageBasedTrickPlay
imageBasedTrickPlay
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlaySettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafManifestCompression
manifestCompression
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafManifestDurationFormat
manifestDurationFormat
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
minBufferTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
minFinalSegmentLength
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafMpdManifestBandwidthType
mpdManifestBandwidthType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafMpdProfile
mpdProfile
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe CmafPtsOffsetHandlingForBFrames
ptsOffsetHandlingForBFrames
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafSegmentControl
segmentControl
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
segmentLength
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe CmafSegmentLengthControl
segmentLengthControl
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe CmafStreamInfResolution
streamInfResolution
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe CmafTargetDurationCompatibilityMode
targetDurationCompatibilityMode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe CmafVideoCompositionOffsets
videoCompositionOffsets
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe CmafWriteDASHManifest
writeDashManifest
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe CmafWriteHLSManifest
writeHlsManifest
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe CmafWriteSegmentTimelineInRepresentation
writeSegmentTimelineInRepresentation

instance Data.ToJSON CmafGroupSettings where
  toJSON :: CmafGroupSettings -> Value
toJSON CmafGroupSettings' {Maybe Double
Maybe Natural
Maybe [CmafAdditionalManifest]
Maybe Text
Maybe CmafClientCache
Maybe CmafCodecSpecification
Maybe CmafImageBasedTrickPlay
Maybe CmafImageBasedTrickPlaySettings
Maybe CmafManifestCompression
Maybe CmafManifestDurationFormat
Maybe CmafMpdManifestBandwidthType
Maybe CmafMpdProfile
Maybe CmafPtsOffsetHandlingForBFrames
Maybe CmafSegmentControl
Maybe CmafSegmentLengthControl
Maybe CmafStreamInfResolution
Maybe CmafTargetDurationCompatibilityMode
Maybe CmafVideoCompositionOffsets
Maybe CmafWriteDASHManifest
Maybe CmafWriteHLSManifest
Maybe CmafWriteSegmentTimelineInRepresentation
Maybe DestinationSettings
Maybe CmafEncryptionSettings
writeSegmentTimelineInRepresentation :: Maybe CmafWriteSegmentTimelineInRepresentation
writeHlsManifest :: Maybe CmafWriteHLSManifest
writeDashManifest :: Maybe CmafWriteDASHManifest
videoCompositionOffsets :: Maybe CmafVideoCompositionOffsets
targetDurationCompatibilityMode :: Maybe CmafTargetDurationCompatibilityMode
streamInfResolution :: Maybe CmafStreamInfResolution
segmentLengthControl :: Maybe CmafSegmentLengthControl
segmentLength :: Maybe Natural
segmentControl :: Maybe CmafSegmentControl
ptsOffsetHandlingForBFrames :: Maybe CmafPtsOffsetHandlingForBFrames
mpdProfile :: Maybe CmafMpdProfile
mpdManifestBandwidthType :: Maybe CmafMpdManifestBandwidthType
minFinalSegmentLength :: Maybe Double
minBufferTime :: Maybe Natural
manifestDurationFormat :: Maybe CmafManifestDurationFormat
manifestCompression :: Maybe CmafManifestCompression
imageBasedTrickPlaySettings :: Maybe CmafImageBasedTrickPlaySettings
imageBasedTrickPlay :: Maybe CmafImageBasedTrickPlay
fragmentLength :: Maybe Natural
encryption :: Maybe CmafEncryptionSettings
destinationSettings :: Maybe DestinationSettings
destination :: Maybe Text
codecSpecification :: Maybe CmafCodecSpecification
clientCache :: Maybe CmafClientCache
baseUrl :: Maybe Text
additionalManifests :: Maybe [CmafAdditionalManifest]
$sel:writeSegmentTimelineInRepresentation:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteSegmentTimelineInRepresentation
$sel:writeHlsManifest:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteHLSManifest
$sel:writeDashManifest:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafWriteDASHManifest
$sel:videoCompositionOffsets:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafVideoCompositionOffsets
$sel:targetDurationCompatibilityMode:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafTargetDurationCompatibilityMode
$sel:streamInfResolution:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafStreamInfResolution
$sel:segmentLengthControl:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafSegmentLengthControl
$sel:segmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
$sel:segmentControl:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafSegmentControl
$sel:ptsOffsetHandlingForBFrames:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafPtsOffsetHandlingForBFrames
$sel:mpdProfile:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafMpdProfile
$sel:mpdManifestBandwidthType:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafMpdManifestBandwidthType
$sel:minFinalSegmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Double
$sel:minBufferTime:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
$sel:manifestDurationFormat:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafManifestDurationFormat
$sel:manifestCompression:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafManifestCompression
$sel:imageBasedTrickPlaySettings:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafImageBasedTrickPlaySettings
$sel:imageBasedTrickPlay:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafImageBasedTrickPlay
$sel:fragmentLength:CmafGroupSettings' :: CmafGroupSettings -> Maybe Natural
$sel:encryption:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafEncryptionSettings
$sel:destinationSettings:CmafGroupSettings' :: CmafGroupSettings -> Maybe DestinationSettings
$sel:destination:CmafGroupSettings' :: CmafGroupSettings -> Maybe Text
$sel:codecSpecification:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafCodecSpecification
$sel:clientCache:CmafGroupSettings' :: CmafGroupSettings -> Maybe CmafClientCache
$sel:baseUrl:CmafGroupSettings' :: CmafGroupSettings -> Maybe Text
$sel:additionalManifests:CmafGroupSettings' :: CmafGroupSettings -> Maybe [CmafAdditionalManifest]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"additionalManifests" 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 [CmafAdditionalManifest]
additionalManifests,
            (Key
"baseUrl" 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
baseUrl,
            (Key
"clientCache" 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 CmafClientCache
clientCache,
            (Key
"codecSpecification" 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 CmafCodecSpecification
codecSpecification,
            (Key
"destination" 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
destination,
            (Key
"destinationSettings" 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 DestinationSettings
destinationSettings,
            (Key
"encryption" 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 CmafEncryptionSettings
encryption,
            (Key
"fragmentLength" 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 Natural
fragmentLength,
            (Key
"imageBasedTrickPlay" 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 CmafImageBasedTrickPlay
imageBasedTrickPlay,
            (Key
"imageBasedTrickPlaySettings" 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 CmafImageBasedTrickPlaySettings
imageBasedTrickPlaySettings,
            (Key
"manifestCompression" 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 CmafManifestCompression
manifestCompression,
            (Key
"manifestDurationFormat" 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 CmafManifestDurationFormat
manifestDurationFormat,
            (Key
"minBufferTime" 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 Natural
minBufferTime,
            (Key
"minFinalSegmentLength" 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 Double
minFinalSegmentLength,
            (Key
"mpdManifestBandwidthType" 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 CmafMpdManifestBandwidthType
mpdManifestBandwidthType,
            (Key
"mpdProfile" 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 CmafMpdProfile
mpdProfile,
            (Key
"ptsOffsetHandlingForBFrames" 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 CmafPtsOffsetHandlingForBFrames
ptsOffsetHandlingForBFrames,
            (Key
"segmentControl" 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 CmafSegmentControl
segmentControl,
            (Key
"segmentLength" 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 Natural
segmentLength,
            (Key
"segmentLengthControl" 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 CmafSegmentLengthControl
segmentLengthControl,
            (Key
"streamInfResolution" 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 CmafStreamInfResolution
streamInfResolution,
            (Key
"targetDurationCompatibilityMode" 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 CmafTargetDurationCompatibilityMode
targetDurationCompatibilityMode,
            (Key
"videoCompositionOffsets" 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 CmafVideoCompositionOffsets
videoCompositionOffsets,
            (Key
"writeDashManifest" 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 CmafWriteDASHManifest
writeDashManifest,
            (Key
"writeHlsManifest" 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 CmafWriteHLSManifest
writeHlsManifest,
            (Key
"writeSegmentTimelineInRepresentation" 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 CmafWriteSegmentTimelineInRepresentation
writeSegmentTimelineInRepresentation
          ]
      )