{-# 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.MpdSettings where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaConvert.Types.MpdAccessibilityCaptionHints
import Amazonka.MediaConvert.Types.MpdAudioDuration
import Amazonka.MediaConvert.Types.MpdCaptionContainerType
import Amazonka.MediaConvert.Types.MpdKlvMetadata
import Amazonka.MediaConvert.Types.MpdManifestMetadataSignaling
import Amazonka.MediaConvert.Types.MpdScte35Esam
import Amazonka.MediaConvert.Types.MpdScte35Source
import Amazonka.MediaConvert.Types.MpdTimedMetadata
import Amazonka.MediaConvert.Types.MpdTimedMetadataBoxVersion
import qualified Amazonka.Prelude as Prelude
data MpdSettings = MpdSettings'
{
MpdSettings -> Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints :: Prelude.Maybe MpdAccessibilityCaptionHints,
MpdSettings -> Maybe MpdAudioDuration
audioDuration :: Prelude.Maybe MpdAudioDuration,
MpdSettings -> Maybe MpdCaptionContainerType
captionContainerType :: Prelude.Maybe MpdCaptionContainerType,
MpdSettings -> Maybe MpdKlvMetadata
klvMetadata :: Prelude.Maybe MpdKlvMetadata,
MpdSettings -> Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling :: Prelude.Maybe MpdManifestMetadataSignaling,
MpdSettings -> Maybe MpdScte35Esam
scte35Esam :: Prelude.Maybe MpdScte35Esam,
MpdSettings -> Maybe MpdScte35Source
scte35Source :: Prelude.Maybe MpdScte35Source,
MpdSettings -> Maybe MpdTimedMetadata
timedMetadata :: Prelude.Maybe MpdTimedMetadata,
MpdSettings -> Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion :: Prelude.Maybe MpdTimedMetadataBoxVersion,
MpdSettings -> Maybe Text
timedMetadataSchemeIdUri :: Prelude.Maybe Prelude.Text,
MpdSettings -> Maybe Text
timedMetadataValue :: Prelude.Maybe Prelude.Text
}
deriving (MpdSettings -> MpdSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MpdSettings -> MpdSettings -> Bool
$c/= :: MpdSettings -> MpdSettings -> Bool
== :: MpdSettings -> MpdSettings -> Bool
$c== :: MpdSettings -> MpdSettings -> Bool
Prelude.Eq, ReadPrec [MpdSettings]
ReadPrec MpdSettings
Int -> ReadS MpdSettings
ReadS [MpdSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MpdSettings]
$creadListPrec :: ReadPrec [MpdSettings]
readPrec :: ReadPrec MpdSettings
$creadPrec :: ReadPrec MpdSettings
readList :: ReadS [MpdSettings]
$creadList :: ReadS [MpdSettings]
readsPrec :: Int -> ReadS MpdSettings
$creadsPrec :: Int -> ReadS MpdSettings
Prelude.Read, Int -> MpdSettings -> ShowS
[MpdSettings] -> ShowS
MpdSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MpdSettings] -> ShowS
$cshowList :: [MpdSettings] -> ShowS
show :: MpdSettings -> String
$cshow :: MpdSettings -> String
showsPrec :: Int -> MpdSettings -> ShowS
$cshowsPrec :: Int -> MpdSettings -> ShowS
Prelude.Show, forall x. Rep MpdSettings x -> MpdSettings
forall x. MpdSettings -> Rep MpdSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MpdSettings x -> MpdSettings
$cfrom :: forall x. MpdSettings -> Rep MpdSettings x
Prelude.Generic)
newMpdSettings ::
MpdSettings
newMpdSettings :: MpdSettings
newMpdSettings =
MpdSettings'
{ $sel:accessibilityCaptionHints:MpdSettings' :: Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints =
forall a. Maybe a
Prelude.Nothing,
$sel:audioDuration:MpdSettings' :: Maybe MpdAudioDuration
audioDuration = forall a. Maybe a
Prelude.Nothing,
$sel:captionContainerType:MpdSettings' :: Maybe MpdCaptionContainerType
captionContainerType = forall a. Maybe a
Prelude.Nothing,
$sel:klvMetadata:MpdSettings' :: Maybe MpdKlvMetadata
klvMetadata = forall a. Maybe a
Prelude.Nothing,
$sel:manifestMetadataSignaling:MpdSettings' :: Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling = forall a. Maybe a
Prelude.Nothing,
$sel:scte35Esam:MpdSettings' :: Maybe MpdScte35Esam
scte35Esam = forall a. Maybe a
Prelude.Nothing,
$sel:scte35Source:MpdSettings' :: Maybe MpdScte35Source
scte35Source = forall a. Maybe a
Prelude.Nothing,
$sel:timedMetadata:MpdSettings' :: Maybe MpdTimedMetadata
timedMetadata = forall a. Maybe a
Prelude.Nothing,
$sel:timedMetadataBoxVersion:MpdSettings' :: Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion = forall a. Maybe a
Prelude.Nothing,
$sel:timedMetadataSchemeIdUri:MpdSettings' :: Maybe Text
timedMetadataSchemeIdUri = forall a. Maybe a
Prelude.Nothing,
$sel:timedMetadataValue:MpdSettings' :: Maybe Text
timedMetadataValue = forall a. Maybe a
Prelude.Nothing
}
mpdSettings_accessibilityCaptionHints :: Lens.Lens' MpdSettings (Prelude.Maybe MpdAccessibilityCaptionHints)
mpdSettings_accessibilityCaptionHints :: Lens' MpdSettings (Maybe MpdAccessibilityCaptionHints)
mpdSettings_accessibilityCaptionHints = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints :: Maybe MpdAccessibilityCaptionHints
$sel:accessibilityCaptionHints:MpdSettings' :: MpdSettings -> Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints} -> Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdAccessibilityCaptionHints
a -> MpdSettings
s {$sel:accessibilityCaptionHints:MpdSettings' :: Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints = Maybe MpdAccessibilityCaptionHints
a} :: MpdSettings)
mpdSettings_audioDuration :: Lens.Lens' MpdSettings (Prelude.Maybe MpdAudioDuration)
mpdSettings_audioDuration :: Lens' MpdSettings (Maybe MpdAudioDuration)
mpdSettings_audioDuration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdAudioDuration
audioDuration :: Maybe MpdAudioDuration
$sel:audioDuration:MpdSettings' :: MpdSettings -> Maybe MpdAudioDuration
audioDuration} -> Maybe MpdAudioDuration
audioDuration) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdAudioDuration
a -> MpdSettings
s {$sel:audioDuration:MpdSettings' :: Maybe MpdAudioDuration
audioDuration = Maybe MpdAudioDuration
a} :: MpdSettings)
mpdSettings_captionContainerType :: Lens.Lens' MpdSettings (Prelude.Maybe MpdCaptionContainerType)
mpdSettings_captionContainerType :: Lens' MpdSettings (Maybe MpdCaptionContainerType)
mpdSettings_captionContainerType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdCaptionContainerType
captionContainerType :: Maybe MpdCaptionContainerType
$sel:captionContainerType:MpdSettings' :: MpdSettings -> Maybe MpdCaptionContainerType
captionContainerType} -> Maybe MpdCaptionContainerType
captionContainerType) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdCaptionContainerType
a -> MpdSettings
s {$sel:captionContainerType:MpdSettings' :: Maybe MpdCaptionContainerType
captionContainerType = Maybe MpdCaptionContainerType
a} :: MpdSettings)
mpdSettings_klvMetadata :: Lens.Lens' MpdSettings (Prelude.Maybe MpdKlvMetadata)
mpdSettings_klvMetadata :: Lens' MpdSettings (Maybe MpdKlvMetadata)
mpdSettings_klvMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdKlvMetadata
klvMetadata :: Maybe MpdKlvMetadata
$sel:klvMetadata:MpdSettings' :: MpdSettings -> Maybe MpdKlvMetadata
klvMetadata} -> Maybe MpdKlvMetadata
klvMetadata) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdKlvMetadata
a -> MpdSettings
s {$sel:klvMetadata:MpdSettings' :: Maybe MpdKlvMetadata
klvMetadata = Maybe MpdKlvMetadata
a} :: MpdSettings)
mpdSettings_manifestMetadataSignaling :: Lens.Lens' MpdSettings (Prelude.Maybe MpdManifestMetadataSignaling)
mpdSettings_manifestMetadataSignaling :: Lens' MpdSettings (Maybe MpdManifestMetadataSignaling)
mpdSettings_manifestMetadataSignaling = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling :: Maybe MpdManifestMetadataSignaling
$sel:manifestMetadataSignaling:MpdSettings' :: MpdSettings -> Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling} -> Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdManifestMetadataSignaling
a -> MpdSettings
s {$sel:manifestMetadataSignaling:MpdSettings' :: Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling = Maybe MpdManifestMetadataSignaling
a} :: MpdSettings)
mpdSettings_scte35Esam :: Lens.Lens' MpdSettings (Prelude.Maybe MpdScte35Esam)
mpdSettings_scte35Esam :: Lens' MpdSettings (Maybe MpdScte35Esam)
mpdSettings_scte35Esam = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdScte35Esam
scte35Esam :: Maybe MpdScte35Esam
$sel:scte35Esam:MpdSettings' :: MpdSettings -> Maybe MpdScte35Esam
scte35Esam} -> Maybe MpdScte35Esam
scte35Esam) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdScte35Esam
a -> MpdSettings
s {$sel:scte35Esam:MpdSettings' :: Maybe MpdScte35Esam
scte35Esam = Maybe MpdScte35Esam
a} :: MpdSettings)
mpdSettings_scte35Source :: Lens.Lens' MpdSettings (Prelude.Maybe MpdScte35Source)
mpdSettings_scte35Source :: Lens' MpdSettings (Maybe MpdScte35Source)
mpdSettings_scte35Source = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdScte35Source
scte35Source :: Maybe MpdScte35Source
$sel:scte35Source:MpdSettings' :: MpdSettings -> Maybe MpdScte35Source
scte35Source} -> Maybe MpdScte35Source
scte35Source) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdScte35Source
a -> MpdSettings
s {$sel:scte35Source:MpdSettings' :: Maybe MpdScte35Source
scte35Source = Maybe MpdScte35Source
a} :: MpdSettings)
mpdSettings_timedMetadata :: Lens.Lens' MpdSettings (Prelude.Maybe MpdTimedMetadata)
mpdSettings_timedMetadata :: Lens' MpdSettings (Maybe MpdTimedMetadata)
mpdSettings_timedMetadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdTimedMetadata
timedMetadata :: Maybe MpdTimedMetadata
$sel:timedMetadata:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadata
timedMetadata} -> Maybe MpdTimedMetadata
timedMetadata) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdTimedMetadata
a -> MpdSettings
s {$sel:timedMetadata:MpdSettings' :: Maybe MpdTimedMetadata
timedMetadata = Maybe MpdTimedMetadata
a} :: MpdSettings)
mpdSettings_timedMetadataBoxVersion :: Lens.Lens' MpdSettings (Prelude.Maybe MpdTimedMetadataBoxVersion)
mpdSettings_timedMetadataBoxVersion :: Lens' MpdSettings (Maybe MpdTimedMetadataBoxVersion)
mpdSettings_timedMetadataBoxVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion :: Maybe MpdTimedMetadataBoxVersion
$sel:timedMetadataBoxVersion:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion} -> Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion) (\s :: MpdSettings
s@MpdSettings' {} Maybe MpdTimedMetadataBoxVersion
a -> MpdSettings
s {$sel:timedMetadataBoxVersion:MpdSettings' :: Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion = Maybe MpdTimedMetadataBoxVersion
a} :: MpdSettings)
mpdSettings_timedMetadataSchemeIdUri :: Lens.Lens' MpdSettings (Prelude.Maybe Prelude.Text)
mpdSettings_timedMetadataSchemeIdUri :: Lens' MpdSettings (Maybe Text)
mpdSettings_timedMetadataSchemeIdUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
$sel:timedMetadataSchemeIdUri:MpdSettings' :: MpdSettings -> Maybe Text
timedMetadataSchemeIdUri} -> Maybe Text
timedMetadataSchemeIdUri) (\s :: MpdSettings
s@MpdSettings' {} Maybe Text
a -> MpdSettings
s {$sel:timedMetadataSchemeIdUri:MpdSettings' :: Maybe Text
timedMetadataSchemeIdUri = Maybe Text
a} :: MpdSettings)
mpdSettings_timedMetadataValue :: Lens.Lens' MpdSettings (Prelude.Maybe Prelude.Text)
mpdSettings_timedMetadataValue :: Lens' MpdSettings (Maybe Text)
mpdSettings_timedMetadataValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MpdSettings' {Maybe Text
timedMetadataValue :: Maybe Text
$sel:timedMetadataValue:MpdSettings' :: MpdSettings -> Maybe Text
timedMetadataValue} -> Maybe Text
timedMetadataValue) (\s :: MpdSettings
s@MpdSettings' {} Maybe Text
a -> MpdSettings
s {$sel:timedMetadataValue:MpdSettings' :: Maybe Text
timedMetadataValue = Maybe Text
a} :: MpdSettings)
instance Data.FromJSON MpdSettings where
parseJSON :: Value -> Parser MpdSettings
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"MpdSettings"
( \Object
x ->
Maybe MpdAccessibilityCaptionHints
-> Maybe MpdAudioDuration
-> Maybe MpdCaptionContainerType
-> Maybe MpdKlvMetadata
-> Maybe MpdManifestMetadataSignaling
-> Maybe MpdScte35Esam
-> Maybe MpdScte35Source
-> Maybe MpdTimedMetadata
-> Maybe MpdTimedMetadataBoxVersion
-> Maybe Text
-> Maybe Text
-> MpdSettings
MpdSettings'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"accessibilityCaptionHints")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"audioDuration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"captionContainerType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"klvMetadata")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"manifestMetadataSignaling")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"scte35Esam")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"scte35Source")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadata")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadataBoxVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadataSchemeIdUri")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timedMetadataValue")
)
instance Prelude.Hashable MpdSettings where
hashWithSalt :: Int -> MpdSettings -> Int
hashWithSalt Int
_salt MpdSettings' {Maybe Text
Maybe MpdAccessibilityCaptionHints
Maybe MpdAudioDuration
Maybe MpdCaptionContainerType
Maybe MpdKlvMetadata
Maybe MpdManifestMetadataSignaling
Maybe MpdScte35Esam
Maybe MpdScte35Source
Maybe MpdTimedMetadata
Maybe MpdTimedMetadataBoxVersion
timedMetadataValue :: Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
timedMetadataBoxVersion :: Maybe MpdTimedMetadataBoxVersion
timedMetadata :: Maybe MpdTimedMetadata
scte35Source :: Maybe MpdScte35Source
scte35Esam :: Maybe MpdScte35Esam
manifestMetadataSignaling :: Maybe MpdManifestMetadataSignaling
klvMetadata :: Maybe MpdKlvMetadata
captionContainerType :: Maybe MpdCaptionContainerType
audioDuration :: Maybe MpdAudioDuration
accessibilityCaptionHints :: Maybe MpdAccessibilityCaptionHints
$sel:timedMetadataValue:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataSchemeIdUri:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataBoxVersion:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadataBoxVersion
$sel:timedMetadata:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadata
$sel:scte35Source:MpdSettings' :: MpdSettings -> Maybe MpdScte35Source
$sel:scte35Esam:MpdSettings' :: MpdSettings -> Maybe MpdScte35Esam
$sel:manifestMetadataSignaling:MpdSettings' :: MpdSettings -> Maybe MpdManifestMetadataSignaling
$sel:klvMetadata:MpdSettings' :: MpdSettings -> Maybe MpdKlvMetadata
$sel:captionContainerType:MpdSettings' :: MpdSettings -> Maybe MpdCaptionContainerType
$sel:audioDuration:MpdSettings' :: MpdSettings -> Maybe MpdAudioDuration
$sel:accessibilityCaptionHints:MpdSettings' :: MpdSettings -> Maybe MpdAccessibilityCaptionHints
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdAudioDuration
audioDuration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdCaptionContainerType
captionContainerType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdKlvMetadata
klvMetadata
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdScte35Esam
scte35Esam
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdScte35Source
scte35Source
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdTimedMetadata
timedMetadata
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timedMetadataSchemeIdUri
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timedMetadataValue
instance Prelude.NFData MpdSettings where
rnf :: MpdSettings -> ()
rnf MpdSettings' {Maybe Text
Maybe MpdAccessibilityCaptionHints
Maybe MpdAudioDuration
Maybe MpdCaptionContainerType
Maybe MpdKlvMetadata
Maybe MpdManifestMetadataSignaling
Maybe MpdScte35Esam
Maybe MpdScte35Source
Maybe MpdTimedMetadata
Maybe MpdTimedMetadataBoxVersion
timedMetadataValue :: Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
timedMetadataBoxVersion :: Maybe MpdTimedMetadataBoxVersion
timedMetadata :: Maybe MpdTimedMetadata
scte35Source :: Maybe MpdScte35Source
scte35Esam :: Maybe MpdScte35Esam
manifestMetadataSignaling :: Maybe MpdManifestMetadataSignaling
klvMetadata :: Maybe MpdKlvMetadata
captionContainerType :: Maybe MpdCaptionContainerType
audioDuration :: Maybe MpdAudioDuration
accessibilityCaptionHints :: Maybe MpdAccessibilityCaptionHints
$sel:timedMetadataValue:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataSchemeIdUri:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataBoxVersion:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadataBoxVersion
$sel:timedMetadata:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadata
$sel:scte35Source:MpdSettings' :: MpdSettings -> Maybe MpdScte35Source
$sel:scte35Esam:MpdSettings' :: MpdSettings -> Maybe MpdScte35Esam
$sel:manifestMetadataSignaling:MpdSettings' :: MpdSettings -> Maybe MpdManifestMetadataSignaling
$sel:klvMetadata:MpdSettings' :: MpdSettings -> Maybe MpdKlvMetadata
$sel:captionContainerType:MpdSettings' :: MpdSettings -> Maybe MpdCaptionContainerType
$sel:audioDuration:MpdSettings' :: MpdSettings -> Maybe MpdAudioDuration
$sel:accessibilityCaptionHints:MpdSettings' :: MpdSettings -> Maybe MpdAccessibilityCaptionHints
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdAudioDuration
audioDuration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdCaptionContainerType
captionContainerType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdKlvMetadata
klvMetadata
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdScte35Esam
scte35Esam
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdScte35Source
scte35Source
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdTimedMetadata
timedMetadata
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timedMetadataSchemeIdUri
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timedMetadataValue
instance Data.ToJSON MpdSettings where
toJSON :: MpdSettings -> Value
toJSON MpdSettings' {Maybe Text
Maybe MpdAccessibilityCaptionHints
Maybe MpdAudioDuration
Maybe MpdCaptionContainerType
Maybe MpdKlvMetadata
Maybe MpdManifestMetadataSignaling
Maybe MpdScte35Esam
Maybe MpdScte35Source
Maybe MpdTimedMetadata
Maybe MpdTimedMetadataBoxVersion
timedMetadataValue :: Maybe Text
timedMetadataSchemeIdUri :: Maybe Text
timedMetadataBoxVersion :: Maybe MpdTimedMetadataBoxVersion
timedMetadata :: Maybe MpdTimedMetadata
scte35Source :: Maybe MpdScte35Source
scte35Esam :: Maybe MpdScte35Esam
manifestMetadataSignaling :: Maybe MpdManifestMetadataSignaling
klvMetadata :: Maybe MpdKlvMetadata
captionContainerType :: Maybe MpdCaptionContainerType
audioDuration :: Maybe MpdAudioDuration
accessibilityCaptionHints :: Maybe MpdAccessibilityCaptionHints
$sel:timedMetadataValue:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataSchemeIdUri:MpdSettings' :: MpdSettings -> Maybe Text
$sel:timedMetadataBoxVersion:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadataBoxVersion
$sel:timedMetadata:MpdSettings' :: MpdSettings -> Maybe MpdTimedMetadata
$sel:scte35Source:MpdSettings' :: MpdSettings -> Maybe MpdScte35Source
$sel:scte35Esam:MpdSettings' :: MpdSettings -> Maybe MpdScte35Esam
$sel:manifestMetadataSignaling:MpdSettings' :: MpdSettings -> Maybe MpdManifestMetadataSignaling
$sel:klvMetadata:MpdSettings' :: MpdSettings -> Maybe MpdKlvMetadata
$sel:captionContainerType:MpdSettings' :: MpdSettings -> Maybe MpdCaptionContainerType
$sel:audioDuration:MpdSettings' :: MpdSettings -> Maybe MpdAudioDuration
$sel:accessibilityCaptionHints:MpdSettings' :: MpdSettings -> Maybe MpdAccessibilityCaptionHints
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"accessibilityCaptionHints" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MpdAccessibilityCaptionHints
accessibilityCaptionHints,
(Key
"audioDuration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MpdAudioDuration
audioDuration,
(Key
"captionContainerType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MpdCaptionContainerType
captionContainerType,
(Key
"klvMetadata" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MpdKlvMetadata
klvMetadata,
(Key
"manifestMetadataSignaling" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MpdManifestMetadataSignaling
manifestMetadataSignaling,
(Key
"scte35Esam" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MpdScte35Esam
scte35Esam,
(Key
"scte35Source" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MpdScte35Source
scte35Source,
(Key
"timedMetadata" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MpdTimedMetadata
timedMetadata,
(Key
"timedMetadataBoxVersion" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MpdTimedMetadataBoxVersion
timedMetadataBoxVersion,
(Key
"timedMetadataSchemeIdUri" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
timedMetadataSchemeIdUri,
(Key
"timedMetadataValue" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
timedMetadataValue
]
)