{-# 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 #-}
module Amazonka.MediaConvert.Types.CmfcSettings 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.CmfcAudioDuration
import Amazonka.MediaConvert.Types.CmfcAudioTrackType
import Amazonka.MediaConvert.Types.CmfcDescriptiveVideoServiceFlag
import Amazonka.MediaConvert.Types.CmfcIFrameOnlyManifest
import Amazonka.MediaConvert.Types.CmfcKlvMetadata
import Amazonka.MediaConvert.Types.CmfcManifestMetadataSignaling
import Amazonka.MediaConvert.Types.CmfcScte35Esam
import Amazonka.MediaConvert.Types.CmfcScte35Source
import Amazonka.MediaConvert.Types.CmfcTimedMetadata
import Amazonka.MediaConvert.Types.CmfcTimedMetadataBoxVersion
import qualified Amazonka.Prelude as Prelude
data CmfcSettings = CmfcSettings'
{
CmfcSettings -> Maybe CmfcAudioDuration
audioDuration :: Prelude.Maybe CmfcAudioDuration,
CmfcSettings -> Maybe Text
audioGroupId :: Prelude.Maybe Prelude.Text,
CmfcSettings -> Maybe Text
audioRenditionSets :: Prelude.Maybe Prelude.Text,
CmfcSettings -> Maybe CmfcAudioTrackType
audioTrackType :: Prelude.Maybe CmfcAudioTrackType,
CmfcSettings -> Maybe CmfcDescriptiveVideoServiceFlag
descriptiveVideoServiceFlag :: Prelude.Maybe CmfcDescriptiveVideoServiceFlag,
CmfcSettings -> Maybe CmfcIFrameOnlyManifest
iFrameOnlyManifest :: Prelude.Maybe CmfcIFrameOnlyManifest,
CmfcSettings -> Maybe CmfcKlvMetadata
klvMetadata :: Prelude.Maybe CmfcKlvMetadata,
CmfcSettings -> Maybe CmfcManifestMetadataSignaling
manifestMetadataSignaling :: Prelude.Maybe CmfcManifestMetadataSignaling,
CmfcSettings -> Maybe CmfcScte35Esam
scte35Esam :: Prelude.Maybe CmfcScte35Esam,
CmfcSettings -> Maybe CmfcScte35Source
scte35Source :: Prelude.Maybe CmfcScte35Source,
CmfcSettings -> Maybe CmfcTimedMetadata
timedMetadata :: Prelude.Maybe CmfcTimedMetadata,
CmfcSettings -> Maybe CmfcTimedMetadataBoxVersion
timedMetadataBoxVersion :: Prelude.Maybe CmfcTimedMetadataBoxVersion,
CmfcSettings -> Maybe Text
timedMetadataSchemeIdUri :: Prelude.Maybe Prelude.Text,
CmfcSettings -> Maybe Text
timedMetadataValue :: Prelude.Maybe Prelude.Text
}
deriving (CmfcSettings -> CmfcSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CmfcSettings -> CmfcSettings -> Bool
$c/= :: CmfcSettings -> CmfcSettings -> Bool
== :: CmfcSettings -> CmfcSettings -> Bool
$c== :: CmfcSettings -> CmfcSettings -> Bool
Prelude.Eq, ReadPrec [CmfcSettings]
ReadPrec CmfcSettings
Int -> ReadS CmfcSettings
ReadS [CmfcSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CmfcSettings]
$creadListPrec :: ReadPrec [CmfcSettings]
readPrec :: ReadPrec CmfcSettings
$creadPrec :: ReadPrec CmfcSettings
readList :: ReadS [CmfcSettings]
$creadList :: ReadS [CmfcSettings]
readsPrec :: Int -> ReadS CmfcSettings
$creadsPrec :: Int -> ReadS CmfcSettings
Prelude.Read, Int -> CmfcSettings -> ShowS
[CmfcSettings] -> ShowS
CmfcSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CmfcSettings] -> ShowS
$cshowList :: [CmfcSettings] -> ShowS
show :: CmfcSettings -> String
$cshow :: CmfcSettings -> String
showsPrec :: Int -> CmfcSettings -> ShowS
$cshowsPrec :: Int -> CmfcSettings -> ShowS
Prelude.Show, forall x. Rep CmfcSettings x -> CmfcSettings
forall x. CmfcSettings -> Rep CmfcSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CmfcSettings x -> CmfcSettings
$cfrom :: forall x. CmfcSettings -> Rep CmfcSettings x
Prelude.Generic)
newCmfcSettings ::
CmfcSettings
newCmfcSettings :: CmfcSettings
newCmfcSettings =
CmfcSettings'
{ $sel:audioDuration:CmfcSettings' :: Maybe CmfcAudioDuration
audioDuration = forall a. Maybe a
Prelude.Nothing,
$sel:audioGroupId:CmfcSettings' :: Maybe Text
audioGroupId = forall a. Maybe a
Prelude.Nothing,
$sel:audioRenditionSets:CmfcSettings' :: Maybe Text
audioRenditionSets = forall a. Maybe a
Prelude.Nothing,
$sel:audioTrackType:CmfcSettings' :: Maybe CmfcAudioTrackType
audioTrackType = forall a. Maybe a
Prelude.Nothing,
$sel:descriptiveVideoServiceFlag:CmfcSettings' :: Maybe CmfcDescriptiveVideoServiceFlag
descriptiveVideoServiceFlag = forall a. Maybe a
Prelude.Nothing,
$sel:iFrameOnlyManifest:CmfcSettings' :: Maybe CmfcIFrameOnlyManifest
iFrameOnlyManifest = forall a. Maybe a
Prelude.Nothing,
$sel:klvMetadata:CmfcSettings' :: Maybe CmfcKlvMetadata
klvMetadata = forall a. Maybe a
Prelude.Nothing,
$sel:manifestMetadataSignaling:CmfcSettings' :: Maybe CmfcManifestMetadataSignaling
manifestMetadataSignaling = forall a. Maybe a
Prelude.Nothing,
$sel:scte35Esam:CmfcSettings' :: Maybe CmfcScte35Esam
scte35Esam = forall a. Maybe a
Prelude.Nothing,
$sel:scte35Source:CmfcSettings' :: Maybe CmfcScte35Source
scte35Source = forall a. Maybe a
Prelude.Nothing,
$sel:timedMetadata:CmfcSettings' :: Maybe CmfcTimedMetadata
timedMetadata = forall a. Maybe a
Prelude.Nothing,
$sel:timedMetadataBoxVersion:CmfcSettings' :: Maybe CmfcTimedMetadataBoxVersion
timedMetadataBoxVersion = forall a. Maybe a
Prelude.Nothing,
$sel:timedMetadataSchemeIdUri:CmfcSettings' :: Maybe Text
timedMetadataSchemeIdUri = forall a. Maybe a
Prelude.Nothing,
$sel:timedMetadataValue:CmfcSettings' :: Maybe Text
timedMetadataValue = forall a. Maybe a
Prelude.Nothing
}
cmfcSettings_audioDuration :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcAudioDuration)
cmfcSettings_audioDuration :: Lens' CmfcSettings (Maybe CmfcAudioDuration)
cmfcSettings_audioDuration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcAudioDuration
audioDuration :: Maybe CmfcAudioDuration
$sel:audioDuration:CmfcSettings' :: CmfcSettings -> Maybe CmfcAudioDuration
audioDuration} -> Maybe CmfcAudioDuration
audioDuration) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcAudioDuration
a -> CmfcSettings
s {$sel:audioDuration:CmfcSettings' :: Maybe CmfcAudioDuration
audioDuration = Maybe CmfcAudioDuration
a} :: CmfcSettings)
cmfcSettings_audioGroupId :: Lens.Lens' CmfcSettings (Prelude.Maybe Prelude.Text)
cmfcSettings_audioGroupId :: Lens' CmfcSettings (Maybe Text)
cmfcSettings_audioGroupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe Text
audioGroupId :: Maybe Text
$sel:audioGroupId:CmfcSettings' :: CmfcSettings -> Maybe Text
audioGroupId} -> Maybe Text
audioGroupId) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe Text
a -> CmfcSettings
s {$sel:audioGroupId:CmfcSettings' :: Maybe Text
audioGroupId = Maybe Text
a} :: CmfcSettings)
cmfcSettings_audioRenditionSets :: Lens.Lens' CmfcSettings (Prelude.Maybe Prelude.Text)
cmfcSettings_audioRenditionSets :: Lens' CmfcSettings (Maybe Text)
cmfcSettings_audioRenditionSets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe Text
audioRenditionSets :: Maybe Text
$sel:audioRenditionSets:CmfcSettings' :: CmfcSettings -> Maybe Text
audioRenditionSets} -> Maybe Text
audioRenditionSets) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe Text
a -> CmfcSettings
s {$sel:audioRenditionSets:CmfcSettings' :: Maybe Text
audioRenditionSets = Maybe Text
a} :: CmfcSettings)
cmfcSettings_audioTrackType :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcAudioTrackType)
cmfcSettings_audioTrackType :: Lens' CmfcSettings (Maybe CmfcAudioTrackType)
cmfcSettings_audioTrackType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcAudioTrackType
audioTrackType :: Maybe CmfcAudioTrackType
$sel:audioTrackType:CmfcSettings' :: CmfcSettings -> Maybe CmfcAudioTrackType
audioTrackType} -> Maybe CmfcAudioTrackType
audioTrackType) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcAudioTrackType
a -> CmfcSettings
s {$sel:audioTrackType:CmfcSettings' :: Maybe CmfcAudioTrackType
audioTrackType = Maybe CmfcAudioTrackType
a} :: CmfcSettings)
cmfcSettings_descriptiveVideoServiceFlag :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcDescriptiveVideoServiceFlag)
cmfcSettings_descriptiveVideoServiceFlag :: Lens' CmfcSettings (Maybe CmfcDescriptiveVideoServiceFlag)
cmfcSettings_descriptiveVideoServiceFlag = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcDescriptiveVideoServiceFlag
descriptiveVideoServiceFlag :: Maybe CmfcDescriptiveVideoServiceFlag
$sel:descriptiveVideoServiceFlag:CmfcSettings' :: CmfcSettings -> Maybe CmfcDescriptiveVideoServiceFlag
descriptiveVideoServiceFlag} -> Maybe CmfcDescriptiveVideoServiceFlag
descriptiveVideoServiceFlag) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcDescriptiveVideoServiceFlag
a -> CmfcSettings
s {$sel:descriptiveVideoServiceFlag:CmfcSettings' :: Maybe CmfcDescriptiveVideoServiceFlag
descriptiveVideoServiceFlag = Maybe CmfcDescriptiveVideoServiceFlag
a} :: CmfcSettings)
cmfcSettings_iFrameOnlyManifest :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcIFrameOnlyManifest)
cmfcSettings_iFrameOnlyManifest :: Lens' CmfcSettings (Maybe CmfcIFrameOnlyManifest)
cmfcSettings_iFrameOnlyManifest = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcIFrameOnlyManifest
iFrameOnlyManifest :: Maybe CmfcIFrameOnlyManifest
$sel:iFrameOnlyManifest:CmfcSettings' :: CmfcSettings -> Maybe CmfcIFrameOnlyManifest
iFrameOnlyManifest} -> Maybe CmfcIFrameOnlyManifest
iFrameOnlyManifest) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcIFrameOnlyManifest
a -> CmfcSettings
s {$sel:iFrameOnlyManifest:CmfcSettings' :: Maybe CmfcIFrameOnlyManifest
iFrameOnlyManifest = Maybe CmfcIFrameOnlyManifest
a} :: CmfcSettings)
cmfcSettings_klvMetadata :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcKlvMetadata)
cmfcSettings_klvMetadata :: Lens' CmfcSettings (Maybe CmfcKlvMetadata)
cmfcSettings_klvMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcKlvMetadata
klvMetadata :: Maybe CmfcKlvMetadata
$sel:klvMetadata:CmfcSettings' :: CmfcSettings -> Maybe CmfcKlvMetadata
klvMetadata} -> Maybe CmfcKlvMetadata
klvMetadata) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcKlvMetadata
a -> CmfcSettings
s {$sel:klvMetadata:CmfcSettings' :: Maybe CmfcKlvMetadata
klvMetadata = Maybe CmfcKlvMetadata
a} :: CmfcSettings)
cmfcSettings_manifestMetadataSignaling :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcManifestMetadataSignaling)
cmfcSettings_manifestMetadataSignaling :: Lens' CmfcSettings (Maybe CmfcManifestMetadataSignaling)
cmfcSettings_manifestMetadataSignaling = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcManifestMetadataSignaling
manifestMetadataSignaling :: Maybe CmfcManifestMetadataSignaling
$sel:manifestMetadataSignaling:CmfcSettings' :: CmfcSettings -> Maybe CmfcManifestMetadataSignaling
manifestMetadataSignaling} -> Maybe CmfcManifestMetadataSignaling
manifestMetadataSignaling) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcManifestMetadataSignaling
a -> CmfcSettings
s {$sel:manifestMetadataSignaling:CmfcSettings' :: Maybe CmfcManifestMetadataSignaling
manifestMetadataSignaling = Maybe CmfcManifestMetadataSignaling
a} :: CmfcSettings)
cmfcSettings_scte35Esam :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcScte35Esam)
cmfcSettings_scte35Esam :: Lens' CmfcSettings (Maybe CmfcScte35Esam)
cmfcSettings_scte35Esam = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcScte35Esam
scte35Esam :: Maybe CmfcScte35Esam
$sel:scte35Esam:CmfcSettings' :: CmfcSettings -> Maybe CmfcScte35Esam
scte35Esam} -> Maybe CmfcScte35Esam
scte35Esam) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcScte35Esam
a -> CmfcSettings
s {$sel:scte35Esam:CmfcSettings' :: Maybe CmfcScte35Esam
scte35Esam = Maybe CmfcScte35Esam
a} :: CmfcSettings)
cmfcSettings_scte35Source :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcScte35Source)
cmfcSettings_scte35Source :: Lens' CmfcSettings (Maybe CmfcScte35Source)
cmfcSettings_scte35Source = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcScte35Source
scte35Source :: Maybe CmfcScte35Source
$sel:scte35Source:CmfcSettings' :: CmfcSettings -> Maybe CmfcScte35Source
scte35Source} -> Maybe CmfcScte35Source
scte35Source) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcScte35Source
a -> CmfcSettings
s {$sel:scte35Source:CmfcSettings' :: Maybe CmfcScte35Source
scte35Source = Maybe CmfcScte35Source
a} :: CmfcSettings)
cmfcSettings_timedMetadata :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcTimedMetadata)
cmfcSettings_timedMetadata :: Lens' CmfcSettings (Maybe CmfcTimedMetadata)
cmfcSettings_timedMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcTimedMetadata
timedMetadata :: Maybe CmfcTimedMetadata
$sel:timedMetadata:CmfcSettings' :: CmfcSettings -> Maybe CmfcTimedMetadata
timedMetadata} -> Maybe CmfcTimedMetadata
timedMetadata) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcTimedMetadata
a -> CmfcSettings
s {$sel:timedMetadata:CmfcSettings' :: Maybe CmfcTimedMetadata
timedMetadata = Maybe CmfcTimedMetadata
a} :: CmfcSettings)
cmfcSettings_timedMetadataBoxVersion :: Lens.Lens' CmfcSettings (Prelude.Maybe CmfcTimedMetadataBoxVersion)
cmfcSettings_timedMetadataBoxVersion :: Lens' CmfcSettings (Maybe CmfcTimedMetadataBoxVersion)
cmfcSettings_timedMetadataBoxVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe CmfcTimedMetadataBoxVersion
timedMetadataBoxVersion :: Maybe CmfcTimedMetadataBoxVersion
$sel:timedMetadataBoxVersion:CmfcSettings' :: CmfcSettings -> Maybe CmfcTimedMetadataBoxVersion
timedMetadataBoxVersion} -> Maybe CmfcTimedMetadataBoxVersion
timedMetadataBoxVersion) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe CmfcTimedMetadataBoxVersion
a -> CmfcSettings
s {$sel:timedMetadataBoxVersion:CmfcSettings' :: Maybe CmfcTimedMetadataBoxVersion
timedMetadataBoxVersion = Maybe CmfcTimedMetadataBoxVersion
a} :: CmfcSettings)
cmfcSettings_timedMetadataSchemeIdUri :: Lens.Lens' CmfcSettings (Prelude.Maybe Prelude.Text)
cmfcSettings_timedMetadataSchemeIdUri :: Lens' CmfcSettings (Maybe Text)
cmfcSettings_timedMetadataSchemeIdUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
$sel:timedMetadataSchemeIdUri:CmfcSettings' :: CmfcSettings -> Maybe Text
timedMetadataSchemeIdUri} -> Maybe Text
timedMetadataSchemeIdUri) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe Text
a -> CmfcSettings
s {$sel:timedMetadataSchemeIdUri:CmfcSettings' :: Maybe Text
timedMetadataSchemeIdUri = Maybe Text
a} :: CmfcSettings)
cmfcSettings_timedMetadataValue :: Lens.Lens' CmfcSettings (Prelude.Maybe Prelude.Text)
cmfcSettings_timedMetadataValue :: Lens' CmfcSettings (Maybe Text)
cmfcSettings_timedMetadataValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CmfcSettings' {Maybe Text
timedMetadataValue :: Maybe Text
$sel:timedMetadataValue:CmfcSettings' :: CmfcSettings -> Maybe Text
timedMetadataValue} -> Maybe Text
timedMetadataValue) (\s :: CmfcSettings
s@CmfcSettings' {} Maybe Text
a -> CmfcSettings
s {$sel:timedMetadataValue:CmfcSettings' :: Maybe Text
timedMetadataValue = Maybe Text
a} :: CmfcSettings)
instance Data.FromJSON CmfcSettings where
parseJSON :: Value -> Parser CmfcSettings
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"CmfcSettings"
( \Object
x ->
Maybe CmfcAudioDuration
-> Maybe Text
-> Maybe Text
-> Maybe CmfcAudioTrackType
-> Maybe CmfcDescriptiveVideoServiceFlag
-> Maybe CmfcIFrameOnlyManifest
-> Maybe CmfcKlvMetadata
-> Maybe CmfcManifestMetadataSignaling
-> Maybe CmfcScte35Esam
-> Maybe CmfcScte35Source
-> Maybe CmfcTimedMetadata
-> Maybe CmfcTimedMetadataBoxVersion
-> Maybe Text
-> Maybe Text
-> CmfcSettings
CmfcSettings'
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
"audioDuration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"audioGroupId")
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
"audioRenditionSets")
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
"audioTrackType")
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
"descriptiveVideoServiceFlag")
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
"iFrameOnlyManifest")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"klvMetadata")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"manifestMetadataSignaling")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"scte35Esam")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"scte35Source")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadata")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadataBoxVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadataSchemeIdUri")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadataValue")
)
instance Prelude.Hashable CmfcSettings where
hashWithSalt :: Int -> CmfcSettings -> Int
hashWithSalt Int
_salt CmfcSettings' {Maybe Text
Maybe CmfcAudioDuration
Maybe CmfcAudioTrackType
Maybe CmfcDescriptiveVideoServiceFlag
Maybe CmfcIFrameOnlyManifest
Maybe CmfcKlvMetadata
Maybe CmfcManifestMetadataSignaling
Maybe CmfcScte35Esam
Maybe CmfcScte35Source
Maybe CmfcTimedMetadata
Maybe CmfcTimedMetadataBoxVersion
timedMetadataValue :: Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
timedMetadataBoxVersion :: Maybe CmfcTimedMetadataBoxVersion
timedMetadata :: Maybe CmfcTimedMetadata
scte35Source :: Maybe CmfcScte35Source
scte35Esam :: Maybe CmfcScte35Esam
manifestMetadataSignaling :: Maybe CmfcManifestMetadataSignaling
klvMetadata :: Maybe CmfcKlvMetadata
iFrameOnlyManifest :: Maybe CmfcIFrameOnlyManifest
descriptiveVideoServiceFlag :: Maybe CmfcDescriptiveVideoServiceFlag
audioTrackType :: Maybe CmfcAudioTrackType
audioRenditionSets :: Maybe Text
audioGroupId :: Maybe Text
audioDuration :: Maybe CmfcAudioDuration
$sel:timedMetadataValue:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:timedMetadataSchemeIdUri:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:timedMetadataBoxVersion:CmfcSettings' :: CmfcSettings -> Maybe CmfcTimedMetadataBoxVersion
$sel:timedMetadata:CmfcSettings' :: CmfcSettings -> Maybe CmfcTimedMetadata
$sel:scte35Source:CmfcSettings' :: CmfcSettings -> Maybe CmfcScte35Source
$sel:scte35Esam:CmfcSettings' :: CmfcSettings -> Maybe CmfcScte35Esam
$sel:manifestMetadataSignaling:CmfcSettings' :: CmfcSettings -> Maybe CmfcManifestMetadataSignaling
$sel:klvMetadata:CmfcSettings' :: CmfcSettings -> Maybe CmfcKlvMetadata
$sel:iFrameOnlyManifest:CmfcSettings' :: CmfcSettings -> Maybe CmfcIFrameOnlyManifest
$sel:descriptiveVideoServiceFlag:CmfcSettings' :: CmfcSettings -> Maybe CmfcDescriptiveVideoServiceFlag
$sel:audioTrackType:CmfcSettings' :: CmfcSettings -> Maybe CmfcAudioTrackType
$sel:audioRenditionSets:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:audioGroupId:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:audioDuration:CmfcSettings' :: CmfcSettings -> Maybe CmfcAudioDuration
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcAudioDuration
audioDuration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
audioGroupId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
audioRenditionSets
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcAudioTrackType
audioTrackType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcDescriptiveVideoServiceFlag
descriptiveVideoServiceFlag
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcIFrameOnlyManifest
iFrameOnlyManifest
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcKlvMetadata
klvMetadata
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcManifestMetadataSignaling
manifestMetadataSignaling
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcScte35Esam
scte35Esam
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcScte35Source
scte35Source
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcTimedMetadata
timedMetadata
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CmfcTimedMetadataBoxVersion
timedMetadataBoxVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timedMetadataSchemeIdUri
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timedMetadataValue
instance Prelude.NFData CmfcSettings where
rnf :: CmfcSettings -> ()
rnf CmfcSettings' {Maybe Text
Maybe CmfcAudioDuration
Maybe CmfcAudioTrackType
Maybe CmfcDescriptiveVideoServiceFlag
Maybe CmfcIFrameOnlyManifest
Maybe CmfcKlvMetadata
Maybe CmfcManifestMetadataSignaling
Maybe CmfcScte35Esam
Maybe CmfcScte35Source
Maybe CmfcTimedMetadata
Maybe CmfcTimedMetadataBoxVersion
timedMetadataValue :: Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
timedMetadataBoxVersion :: Maybe CmfcTimedMetadataBoxVersion
timedMetadata :: Maybe CmfcTimedMetadata
scte35Source :: Maybe CmfcScte35Source
scte35Esam :: Maybe CmfcScte35Esam
manifestMetadataSignaling :: Maybe CmfcManifestMetadataSignaling
klvMetadata :: Maybe CmfcKlvMetadata
iFrameOnlyManifest :: Maybe CmfcIFrameOnlyManifest
descriptiveVideoServiceFlag :: Maybe CmfcDescriptiveVideoServiceFlag
audioTrackType :: Maybe CmfcAudioTrackType
audioRenditionSets :: Maybe Text
audioGroupId :: Maybe Text
audioDuration :: Maybe CmfcAudioDuration
$sel:timedMetadataValue:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:timedMetadataSchemeIdUri:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:timedMetadataBoxVersion:CmfcSettings' :: CmfcSettings -> Maybe CmfcTimedMetadataBoxVersion
$sel:timedMetadata:CmfcSettings' :: CmfcSettings -> Maybe CmfcTimedMetadata
$sel:scte35Source:CmfcSettings' :: CmfcSettings -> Maybe CmfcScte35Source
$sel:scte35Esam:CmfcSettings' :: CmfcSettings -> Maybe CmfcScte35Esam
$sel:manifestMetadataSignaling:CmfcSettings' :: CmfcSettings -> Maybe CmfcManifestMetadataSignaling
$sel:klvMetadata:CmfcSettings' :: CmfcSettings -> Maybe CmfcKlvMetadata
$sel:iFrameOnlyManifest:CmfcSettings' :: CmfcSettings -> Maybe CmfcIFrameOnlyManifest
$sel:descriptiveVideoServiceFlag:CmfcSettings' :: CmfcSettings -> Maybe CmfcDescriptiveVideoServiceFlag
$sel:audioTrackType:CmfcSettings' :: CmfcSettings -> Maybe CmfcAudioTrackType
$sel:audioRenditionSets:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:audioGroupId:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:audioDuration:CmfcSettings' :: CmfcSettings -> Maybe CmfcAudioDuration
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcAudioDuration
audioDuration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
audioGroupId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
audioRenditionSets
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcAudioTrackType
audioTrackType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcDescriptiveVideoServiceFlag
descriptiveVideoServiceFlag
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcIFrameOnlyManifest
iFrameOnlyManifest
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcKlvMetadata
klvMetadata
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcManifestMetadataSignaling
manifestMetadataSignaling
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcScte35Esam
scte35Esam
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcScte35Source
scte35Source
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcTimedMetadata
timedMetadata
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmfcTimedMetadataBoxVersion
timedMetadataBoxVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timedMetadataSchemeIdUri
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timedMetadataValue
instance Data.ToJSON CmfcSettings where
toJSON :: CmfcSettings -> Value
toJSON CmfcSettings' {Maybe Text
Maybe CmfcAudioDuration
Maybe CmfcAudioTrackType
Maybe CmfcDescriptiveVideoServiceFlag
Maybe CmfcIFrameOnlyManifest
Maybe CmfcKlvMetadata
Maybe CmfcManifestMetadataSignaling
Maybe CmfcScte35Esam
Maybe CmfcScte35Source
Maybe CmfcTimedMetadata
Maybe CmfcTimedMetadataBoxVersion
timedMetadataValue :: Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
timedMetadataBoxVersion :: Maybe CmfcTimedMetadataBoxVersion
timedMetadata :: Maybe CmfcTimedMetadata
scte35Source :: Maybe CmfcScte35Source
scte35Esam :: Maybe CmfcScte35Esam
manifestMetadataSignaling :: Maybe CmfcManifestMetadataSignaling
klvMetadata :: Maybe CmfcKlvMetadata
iFrameOnlyManifest :: Maybe CmfcIFrameOnlyManifest
descriptiveVideoServiceFlag :: Maybe CmfcDescriptiveVideoServiceFlag
audioTrackType :: Maybe CmfcAudioTrackType
audioRenditionSets :: Maybe Text
audioGroupId :: Maybe Text
audioDuration :: Maybe CmfcAudioDuration
$sel:timedMetadataValue:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:timedMetadataSchemeIdUri:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:timedMetadataBoxVersion:CmfcSettings' :: CmfcSettings -> Maybe CmfcTimedMetadataBoxVersion
$sel:timedMetadata:CmfcSettings' :: CmfcSettings -> Maybe CmfcTimedMetadata
$sel:scte35Source:CmfcSettings' :: CmfcSettings -> Maybe CmfcScte35Source
$sel:scte35Esam:CmfcSettings' :: CmfcSettings -> Maybe CmfcScte35Esam
$sel:manifestMetadataSignaling:CmfcSettings' :: CmfcSettings -> Maybe CmfcManifestMetadataSignaling
$sel:klvMetadata:CmfcSettings' :: CmfcSettings -> Maybe CmfcKlvMetadata
$sel:iFrameOnlyManifest:CmfcSettings' :: CmfcSettings -> Maybe CmfcIFrameOnlyManifest
$sel:descriptiveVideoServiceFlag:CmfcSettings' :: CmfcSettings -> Maybe CmfcDescriptiveVideoServiceFlag
$sel:audioTrackType:CmfcSettings' :: CmfcSettings -> Maybe CmfcAudioTrackType
$sel:audioRenditionSets:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:audioGroupId:CmfcSettings' :: CmfcSettings -> Maybe Text
$sel:audioDuration:CmfcSettings' :: CmfcSettings -> Maybe CmfcAudioDuration
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"audioDuration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CmfcAudioDuration
audioDuration,
(Key
"audioGroupId" 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
audioGroupId,
(Key
"audioRenditionSets" 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
audioRenditionSets,
(Key
"audioTrackType" 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 CmfcAudioTrackType
audioTrackType,
(Key
"descriptiveVideoServiceFlag" 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 CmfcDescriptiveVideoServiceFlag
descriptiveVideoServiceFlag,
(Key
"iFrameOnlyManifest" 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 CmfcIFrameOnlyManifest
iFrameOnlyManifest,
(Key
"klvMetadata" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CmfcKlvMetadata
klvMetadata,
(Key
"manifestMetadataSignaling" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CmfcManifestMetadataSignaling
manifestMetadataSignaling,
(Key
"scte35Esam" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CmfcScte35Esam
scte35Esam,
(Key
"scte35Source" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CmfcScte35Source
scte35Source,
(Key
"timedMetadata" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CmfcTimedMetadata
timedMetadata,
(Key
"timedMetadataBoxVersion" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CmfcTimedMetadataBoxVersion
timedMetadataBoxVersion,
(Key
"timedMetadataSchemeIdUri" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
timedMetadataSchemeIdUri,
(Key
"timedMetadataValue" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
timedMetadataValue
]
)