{-# 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.AudioSelector 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.AudioDefaultSelection
import Amazonka.MediaConvert.Types.AudioDurationCorrection
import Amazonka.MediaConvert.Types.AudioSelectorType
import Amazonka.MediaConvert.Types.HlsRenditionGroupSettings
import Amazonka.MediaConvert.Types.LanguageCode
import Amazonka.MediaConvert.Types.RemixSettings
import qualified Amazonka.Prelude as Prelude
data AudioSelector = AudioSelector'
{
AudioSelector -> Maybe AudioDurationCorrection
audioDurationCorrection :: Prelude.Maybe AudioDurationCorrection,
AudioSelector -> Maybe Text
customLanguageCode :: Prelude.Maybe Prelude.Text,
AudioSelector -> Maybe AudioDefaultSelection
defaultSelection :: Prelude.Maybe AudioDefaultSelection,
AudioSelector -> Maybe Text
externalAudioFileInput :: Prelude.Maybe Prelude.Text,
AudioSelector -> Maybe HlsRenditionGroupSettings
hlsRenditionGroupSettings :: Prelude.Maybe HlsRenditionGroupSettings,
AudioSelector -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
AudioSelector -> Maybe Int
offset :: Prelude.Maybe Prelude.Int,
AudioSelector -> Maybe [Natural]
pids :: Prelude.Maybe [Prelude.Natural],
AudioSelector -> Maybe Natural
programSelection :: Prelude.Maybe Prelude.Natural,
AudioSelector -> Maybe RemixSettings
remixSettings :: Prelude.Maybe RemixSettings,
AudioSelector -> Maybe AudioSelectorType
selectorType :: Prelude.Maybe AudioSelectorType,
AudioSelector -> Maybe [Natural]
tracks :: Prelude.Maybe [Prelude.Natural]
}
deriving (AudioSelector -> AudioSelector -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AudioSelector -> AudioSelector -> Bool
$c/= :: AudioSelector -> AudioSelector -> Bool
== :: AudioSelector -> AudioSelector -> Bool
$c== :: AudioSelector -> AudioSelector -> Bool
Prelude.Eq, ReadPrec [AudioSelector]
ReadPrec AudioSelector
Int -> ReadS AudioSelector
ReadS [AudioSelector]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AudioSelector]
$creadListPrec :: ReadPrec [AudioSelector]
readPrec :: ReadPrec AudioSelector
$creadPrec :: ReadPrec AudioSelector
readList :: ReadS [AudioSelector]
$creadList :: ReadS [AudioSelector]
readsPrec :: Int -> ReadS AudioSelector
$creadsPrec :: Int -> ReadS AudioSelector
Prelude.Read, Int -> AudioSelector -> ShowS
[AudioSelector] -> ShowS
AudioSelector -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AudioSelector] -> ShowS
$cshowList :: [AudioSelector] -> ShowS
show :: AudioSelector -> String
$cshow :: AudioSelector -> String
showsPrec :: Int -> AudioSelector -> ShowS
$cshowsPrec :: Int -> AudioSelector -> ShowS
Prelude.Show, forall x. Rep AudioSelector x -> AudioSelector
forall x. AudioSelector -> Rep AudioSelector x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AudioSelector x -> AudioSelector
$cfrom :: forall x. AudioSelector -> Rep AudioSelector x
Prelude.Generic)
newAudioSelector ::
AudioSelector
newAudioSelector :: AudioSelector
newAudioSelector =
AudioSelector'
{ $sel:audioDurationCorrection:AudioSelector' :: Maybe AudioDurationCorrection
audioDurationCorrection =
forall a. Maybe a
Prelude.Nothing,
$sel:customLanguageCode:AudioSelector' :: Maybe Text
customLanguageCode = forall a. Maybe a
Prelude.Nothing,
$sel:defaultSelection:AudioSelector' :: Maybe AudioDefaultSelection
defaultSelection = forall a. Maybe a
Prelude.Nothing,
$sel:externalAudioFileInput:AudioSelector' :: Maybe Text
externalAudioFileInput = forall a. Maybe a
Prelude.Nothing,
$sel:hlsRenditionGroupSettings:AudioSelector' :: Maybe HlsRenditionGroupSettings
hlsRenditionGroupSettings = forall a. Maybe a
Prelude.Nothing,
$sel:languageCode:AudioSelector' :: Maybe LanguageCode
languageCode = forall a. Maybe a
Prelude.Nothing,
$sel:offset:AudioSelector' :: Maybe Int
offset = forall a. Maybe a
Prelude.Nothing,
$sel:pids:AudioSelector' :: Maybe [Natural]
pids = forall a. Maybe a
Prelude.Nothing,
$sel:programSelection:AudioSelector' :: Maybe Natural
programSelection = forall a. Maybe a
Prelude.Nothing,
$sel:remixSettings:AudioSelector' :: Maybe RemixSettings
remixSettings = forall a. Maybe a
Prelude.Nothing,
$sel:selectorType:AudioSelector' :: Maybe AudioSelectorType
selectorType = forall a. Maybe a
Prelude.Nothing,
$sel:tracks:AudioSelector' :: Maybe [Natural]
tracks = forall a. Maybe a
Prelude.Nothing
}
audioSelector_audioDurationCorrection :: Lens.Lens' AudioSelector (Prelude.Maybe AudioDurationCorrection)
audioSelector_audioDurationCorrection :: Lens' AudioSelector (Maybe AudioDurationCorrection)
audioSelector_audioDurationCorrection = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe AudioDurationCorrection
audioDurationCorrection :: Maybe AudioDurationCorrection
$sel:audioDurationCorrection:AudioSelector' :: AudioSelector -> Maybe AudioDurationCorrection
audioDurationCorrection} -> Maybe AudioDurationCorrection
audioDurationCorrection) (\s :: AudioSelector
s@AudioSelector' {} Maybe AudioDurationCorrection
a -> AudioSelector
s {$sel:audioDurationCorrection:AudioSelector' :: Maybe AudioDurationCorrection
audioDurationCorrection = Maybe AudioDurationCorrection
a} :: AudioSelector)
audioSelector_customLanguageCode :: Lens.Lens' AudioSelector (Prelude.Maybe Prelude.Text)
audioSelector_customLanguageCode :: Lens' AudioSelector (Maybe Text)
audioSelector_customLanguageCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe Text
customLanguageCode :: Maybe Text
$sel:customLanguageCode:AudioSelector' :: AudioSelector -> Maybe Text
customLanguageCode} -> Maybe Text
customLanguageCode) (\s :: AudioSelector
s@AudioSelector' {} Maybe Text
a -> AudioSelector
s {$sel:customLanguageCode:AudioSelector' :: Maybe Text
customLanguageCode = Maybe Text
a} :: AudioSelector)
audioSelector_defaultSelection :: Lens.Lens' AudioSelector (Prelude.Maybe AudioDefaultSelection)
audioSelector_defaultSelection :: Lens' AudioSelector (Maybe AudioDefaultSelection)
audioSelector_defaultSelection = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe AudioDefaultSelection
defaultSelection :: Maybe AudioDefaultSelection
$sel:defaultSelection:AudioSelector' :: AudioSelector -> Maybe AudioDefaultSelection
defaultSelection} -> Maybe AudioDefaultSelection
defaultSelection) (\s :: AudioSelector
s@AudioSelector' {} Maybe AudioDefaultSelection
a -> AudioSelector
s {$sel:defaultSelection:AudioSelector' :: Maybe AudioDefaultSelection
defaultSelection = Maybe AudioDefaultSelection
a} :: AudioSelector)
audioSelector_externalAudioFileInput :: Lens.Lens' AudioSelector (Prelude.Maybe Prelude.Text)
audioSelector_externalAudioFileInput :: Lens' AudioSelector (Maybe Text)
audioSelector_externalAudioFileInput = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe Text
externalAudioFileInput :: Maybe Text
$sel:externalAudioFileInput:AudioSelector' :: AudioSelector -> Maybe Text
externalAudioFileInput} -> Maybe Text
externalAudioFileInput) (\s :: AudioSelector
s@AudioSelector' {} Maybe Text
a -> AudioSelector
s {$sel:externalAudioFileInput:AudioSelector' :: Maybe Text
externalAudioFileInput = Maybe Text
a} :: AudioSelector)
audioSelector_hlsRenditionGroupSettings :: Lens.Lens' AudioSelector (Prelude.Maybe HlsRenditionGroupSettings)
audioSelector_hlsRenditionGroupSettings :: Lens' AudioSelector (Maybe HlsRenditionGroupSettings)
audioSelector_hlsRenditionGroupSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe HlsRenditionGroupSettings
hlsRenditionGroupSettings :: Maybe HlsRenditionGroupSettings
$sel:hlsRenditionGroupSettings:AudioSelector' :: AudioSelector -> Maybe HlsRenditionGroupSettings
hlsRenditionGroupSettings} -> Maybe HlsRenditionGroupSettings
hlsRenditionGroupSettings) (\s :: AudioSelector
s@AudioSelector' {} Maybe HlsRenditionGroupSettings
a -> AudioSelector
s {$sel:hlsRenditionGroupSettings:AudioSelector' :: Maybe HlsRenditionGroupSettings
hlsRenditionGroupSettings = Maybe HlsRenditionGroupSettings
a} :: AudioSelector)
audioSelector_languageCode :: Lens.Lens' AudioSelector (Prelude.Maybe LanguageCode)
audioSelector_languageCode :: Lens' AudioSelector (Maybe LanguageCode)
audioSelector_languageCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:AudioSelector' :: AudioSelector -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: AudioSelector
s@AudioSelector' {} Maybe LanguageCode
a -> AudioSelector
s {$sel:languageCode:AudioSelector' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: AudioSelector)
audioSelector_offset :: Lens.Lens' AudioSelector (Prelude.Maybe Prelude.Int)
audioSelector_offset :: Lens' AudioSelector (Maybe Int)
audioSelector_offset = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe Int
offset :: Maybe Int
$sel:offset:AudioSelector' :: AudioSelector -> Maybe Int
offset} -> Maybe Int
offset) (\s :: AudioSelector
s@AudioSelector' {} Maybe Int
a -> AudioSelector
s {$sel:offset:AudioSelector' :: Maybe Int
offset = Maybe Int
a} :: AudioSelector)
audioSelector_pids :: Lens.Lens' AudioSelector (Prelude.Maybe [Prelude.Natural])
audioSelector_pids :: Lens' AudioSelector (Maybe [Natural])
audioSelector_pids = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe [Natural]
pids :: Maybe [Natural]
$sel:pids:AudioSelector' :: AudioSelector -> Maybe [Natural]
pids} -> Maybe [Natural]
pids) (\s :: AudioSelector
s@AudioSelector' {} Maybe [Natural]
a -> AudioSelector
s {$sel:pids:AudioSelector' :: Maybe [Natural]
pids = Maybe [Natural]
a} :: AudioSelector) 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
audioSelector_programSelection :: Lens.Lens' AudioSelector (Prelude.Maybe Prelude.Natural)
audioSelector_programSelection :: Lens' AudioSelector (Maybe Natural)
audioSelector_programSelection = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe Natural
programSelection :: Maybe Natural
$sel:programSelection:AudioSelector' :: AudioSelector -> Maybe Natural
programSelection} -> Maybe Natural
programSelection) (\s :: AudioSelector
s@AudioSelector' {} Maybe Natural
a -> AudioSelector
s {$sel:programSelection:AudioSelector' :: Maybe Natural
programSelection = Maybe Natural
a} :: AudioSelector)
audioSelector_remixSettings :: Lens.Lens' AudioSelector (Prelude.Maybe RemixSettings)
audioSelector_remixSettings :: Lens' AudioSelector (Maybe RemixSettings)
audioSelector_remixSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe RemixSettings
remixSettings :: Maybe RemixSettings
$sel:remixSettings:AudioSelector' :: AudioSelector -> Maybe RemixSettings
remixSettings} -> Maybe RemixSettings
remixSettings) (\s :: AudioSelector
s@AudioSelector' {} Maybe RemixSettings
a -> AudioSelector
s {$sel:remixSettings:AudioSelector' :: Maybe RemixSettings
remixSettings = Maybe RemixSettings
a} :: AudioSelector)
audioSelector_selectorType :: Lens.Lens' AudioSelector (Prelude.Maybe AudioSelectorType)
audioSelector_selectorType :: Lens' AudioSelector (Maybe AudioSelectorType)
audioSelector_selectorType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe AudioSelectorType
selectorType :: Maybe AudioSelectorType
$sel:selectorType:AudioSelector' :: AudioSelector -> Maybe AudioSelectorType
selectorType} -> Maybe AudioSelectorType
selectorType) (\s :: AudioSelector
s@AudioSelector' {} Maybe AudioSelectorType
a -> AudioSelector
s {$sel:selectorType:AudioSelector' :: Maybe AudioSelectorType
selectorType = Maybe AudioSelectorType
a} :: AudioSelector)
audioSelector_tracks :: Lens.Lens' AudioSelector (Prelude.Maybe [Prelude.Natural])
audioSelector_tracks :: Lens' AudioSelector (Maybe [Natural])
audioSelector_tracks = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AudioSelector' {Maybe [Natural]
tracks :: Maybe [Natural]
$sel:tracks:AudioSelector' :: AudioSelector -> Maybe [Natural]
tracks} -> Maybe [Natural]
tracks) (\s :: AudioSelector
s@AudioSelector' {} Maybe [Natural]
a -> AudioSelector
s {$sel:tracks:AudioSelector' :: Maybe [Natural]
tracks = Maybe [Natural]
a} :: AudioSelector) 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
instance Data.FromJSON AudioSelector where
parseJSON :: Value -> Parser AudioSelector
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AudioSelector"
( \Object
x ->
Maybe AudioDurationCorrection
-> Maybe Text
-> Maybe AudioDefaultSelection
-> Maybe Text
-> Maybe HlsRenditionGroupSettings
-> Maybe LanguageCode
-> Maybe Int
-> Maybe [Natural]
-> Maybe Natural
-> Maybe RemixSettings
-> Maybe AudioSelectorType
-> Maybe [Natural]
-> AudioSelector
AudioSelector'
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
"audioDurationCorrection")
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
"customLanguageCode")
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
"defaultSelection")
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
"externalAudioFileInput")
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
"hlsRenditionGroupSettings")
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
"languageCode")
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
"offset")
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
"pids" 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
"programSelection")
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
"remixSettings")
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
"selectorType")
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
"tracks" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable AudioSelector where
hashWithSalt :: Int -> AudioSelector -> Int
hashWithSalt Int
_salt AudioSelector' {Maybe Int
Maybe Natural
Maybe [Natural]
Maybe Text
Maybe AudioDefaultSelection
Maybe AudioDurationCorrection
Maybe AudioSelectorType
Maybe LanguageCode
Maybe HlsRenditionGroupSettings
Maybe RemixSettings
tracks :: Maybe [Natural]
selectorType :: Maybe AudioSelectorType
remixSettings :: Maybe RemixSettings
programSelection :: Maybe Natural
pids :: Maybe [Natural]
offset :: Maybe Int
languageCode :: Maybe LanguageCode
hlsRenditionGroupSettings :: Maybe HlsRenditionGroupSettings
externalAudioFileInput :: Maybe Text
defaultSelection :: Maybe AudioDefaultSelection
customLanguageCode :: Maybe Text
audioDurationCorrection :: Maybe AudioDurationCorrection
$sel:tracks:AudioSelector' :: AudioSelector -> Maybe [Natural]
$sel:selectorType:AudioSelector' :: AudioSelector -> Maybe AudioSelectorType
$sel:remixSettings:AudioSelector' :: AudioSelector -> Maybe RemixSettings
$sel:programSelection:AudioSelector' :: AudioSelector -> Maybe Natural
$sel:pids:AudioSelector' :: AudioSelector -> Maybe [Natural]
$sel:offset:AudioSelector' :: AudioSelector -> Maybe Int
$sel:languageCode:AudioSelector' :: AudioSelector -> Maybe LanguageCode
$sel:hlsRenditionGroupSettings:AudioSelector' :: AudioSelector -> Maybe HlsRenditionGroupSettings
$sel:externalAudioFileInput:AudioSelector' :: AudioSelector -> Maybe Text
$sel:defaultSelection:AudioSelector' :: AudioSelector -> Maybe AudioDefaultSelection
$sel:customLanguageCode:AudioSelector' :: AudioSelector -> Maybe Text
$sel:audioDurationCorrection:AudioSelector' :: AudioSelector -> Maybe AudioDurationCorrection
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AudioDurationCorrection
audioDurationCorrection
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
customLanguageCode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AudioDefaultSelection
defaultSelection
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
externalAudioFileInput
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe HlsRenditionGroupSettings
hlsRenditionGroupSettings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LanguageCode
languageCode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
offset
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Natural]
pids
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
programSelection
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RemixSettings
remixSettings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AudioSelectorType
selectorType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Natural]
tracks
instance Prelude.NFData AudioSelector where
rnf :: AudioSelector -> ()
rnf AudioSelector' {Maybe Int
Maybe Natural
Maybe [Natural]
Maybe Text
Maybe AudioDefaultSelection
Maybe AudioDurationCorrection
Maybe AudioSelectorType
Maybe LanguageCode
Maybe HlsRenditionGroupSettings
Maybe RemixSettings
tracks :: Maybe [Natural]
selectorType :: Maybe AudioSelectorType
remixSettings :: Maybe RemixSettings
programSelection :: Maybe Natural
pids :: Maybe [Natural]
offset :: Maybe Int
languageCode :: Maybe LanguageCode
hlsRenditionGroupSettings :: Maybe HlsRenditionGroupSettings
externalAudioFileInput :: Maybe Text
defaultSelection :: Maybe AudioDefaultSelection
customLanguageCode :: Maybe Text
audioDurationCorrection :: Maybe AudioDurationCorrection
$sel:tracks:AudioSelector' :: AudioSelector -> Maybe [Natural]
$sel:selectorType:AudioSelector' :: AudioSelector -> Maybe AudioSelectorType
$sel:remixSettings:AudioSelector' :: AudioSelector -> Maybe RemixSettings
$sel:programSelection:AudioSelector' :: AudioSelector -> Maybe Natural
$sel:pids:AudioSelector' :: AudioSelector -> Maybe [Natural]
$sel:offset:AudioSelector' :: AudioSelector -> Maybe Int
$sel:languageCode:AudioSelector' :: AudioSelector -> Maybe LanguageCode
$sel:hlsRenditionGroupSettings:AudioSelector' :: AudioSelector -> Maybe HlsRenditionGroupSettings
$sel:externalAudioFileInput:AudioSelector' :: AudioSelector -> Maybe Text
$sel:defaultSelection:AudioSelector' :: AudioSelector -> Maybe AudioDefaultSelection
$sel:customLanguageCode:AudioSelector' :: AudioSelector -> Maybe Text
$sel:audioDurationCorrection:AudioSelector' :: AudioSelector -> Maybe AudioDurationCorrection
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AudioDurationCorrection
audioDurationCorrection
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
customLanguageCode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AudioDefaultSelection
defaultSelection
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
externalAudioFileInput
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe HlsRenditionGroupSettings
hlsRenditionGroupSettings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LanguageCode
languageCode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
offset
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Natural]
pids
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
programSelection
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RemixSettings
remixSettings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AudioSelectorType
selectorType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Natural]
tracks
instance Data.ToJSON AudioSelector where
toJSON :: AudioSelector -> Value
toJSON AudioSelector' {Maybe Int
Maybe Natural
Maybe [Natural]
Maybe Text
Maybe AudioDefaultSelection
Maybe AudioDurationCorrection
Maybe AudioSelectorType
Maybe LanguageCode
Maybe HlsRenditionGroupSettings
Maybe RemixSettings
tracks :: Maybe [Natural]
selectorType :: Maybe AudioSelectorType
remixSettings :: Maybe RemixSettings
programSelection :: Maybe Natural
pids :: Maybe [Natural]
offset :: Maybe Int
languageCode :: Maybe LanguageCode
hlsRenditionGroupSettings :: Maybe HlsRenditionGroupSettings
externalAudioFileInput :: Maybe Text
defaultSelection :: Maybe AudioDefaultSelection
customLanguageCode :: Maybe Text
audioDurationCorrection :: Maybe AudioDurationCorrection
$sel:tracks:AudioSelector' :: AudioSelector -> Maybe [Natural]
$sel:selectorType:AudioSelector' :: AudioSelector -> Maybe AudioSelectorType
$sel:remixSettings:AudioSelector' :: AudioSelector -> Maybe RemixSettings
$sel:programSelection:AudioSelector' :: AudioSelector -> Maybe Natural
$sel:pids:AudioSelector' :: AudioSelector -> Maybe [Natural]
$sel:offset:AudioSelector' :: AudioSelector -> Maybe Int
$sel:languageCode:AudioSelector' :: AudioSelector -> Maybe LanguageCode
$sel:hlsRenditionGroupSettings:AudioSelector' :: AudioSelector -> Maybe HlsRenditionGroupSettings
$sel:externalAudioFileInput:AudioSelector' :: AudioSelector -> Maybe Text
$sel:defaultSelection:AudioSelector' :: AudioSelector -> Maybe AudioDefaultSelection
$sel:customLanguageCode:AudioSelector' :: AudioSelector -> Maybe Text
$sel:audioDurationCorrection:AudioSelector' :: AudioSelector -> Maybe AudioDurationCorrection
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"audioDurationCorrection" 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 AudioDurationCorrection
audioDurationCorrection,
(Key
"customLanguageCode" 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
customLanguageCode,
(Key
"defaultSelection" 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 AudioDefaultSelection
defaultSelection,
(Key
"externalAudioFileInput" 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
externalAudioFileInput,
(Key
"hlsRenditionGroupSettings" 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 HlsRenditionGroupSettings
hlsRenditionGroupSettings,
(Key
"languageCode" 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 LanguageCode
languageCode,
(Key
"offset" 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 Int
offset,
(Key
"pids" 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]
pids,
(Key
"programSelection" 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
programSelection,
(Key
"remixSettings" 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 RemixSettings
remixSettings,
(Key
"selectorType" 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 AudioSelectorType
selectorType,
(Key
"tracks" 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]
tracks
]
)