module Stratosphere.MediaLive.Channel.Fmp4HlsSettingsProperty (
        Fmp4HlsSettingsProperty(..), mkFmp4HlsSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Fmp4HlsSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-fmp4hlssettings.html>
    Fmp4HlsSettingsProperty {Fmp4HlsSettingsProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-fmp4hlssettings.html#cfn-medialive-channel-fmp4hlssettings-audiorenditionsets>
                             Fmp4HlsSettingsProperty -> Maybe (Value Text)
audioRenditionSets :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-fmp4hlssettings.html#cfn-medialive-channel-fmp4hlssettings-nielsenid3behavior>
                             Fmp4HlsSettingsProperty -> Maybe (Value Text)
nielsenId3Behavior :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-fmp4hlssettings.html#cfn-medialive-channel-fmp4hlssettings-timedmetadatabehavior>
                             Fmp4HlsSettingsProperty -> Maybe (Value Text)
timedMetadataBehavior :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty -> Bool
(Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty -> Bool)
-> (Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty -> Bool)
-> Eq Fmp4HlsSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty -> Bool
== :: Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty -> Bool
$c/= :: Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty -> Bool
/= :: Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty -> Bool
Prelude.Eq, Int -> Fmp4HlsSettingsProperty -> ShowS
[Fmp4HlsSettingsProperty] -> ShowS
Fmp4HlsSettingsProperty -> String
(Int -> Fmp4HlsSettingsProperty -> ShowS)
-> (Fmp4HlsSettingsProperty -> String)
-> ([Fmp4HlsSettingsProperty] -> ShowS)
-> Show Fmp4HlsSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Fmp4HlsSettingsProperty -> ShowS
showsPrec :: Int -> Fmp4HlsSettingsProperty -> ShowS
$cshow :: Fmp4HlsSettingsProperty -> String
show :: Fmp4HlsSettingsProperty -> String
$cshowList :: [Fmp4HlsSettingsProperty] -> ShowS
showList :: [Fmp4HlsSettingsProperty] -> ShowS
Prelude.Show)
mkFmp4HlsSettingsProperty :: Fmp4HlsSettingsProperty
mkFmp4HlsSettingsProperty :: Fmp4HlsSettingsProperty
mkFmp4HlsSettingsProperty
  = Fmp4HlsSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), audioRenditionSets :: Maybe (Value Text)
audioRenditionSets = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       nielsenId3Behavior :: Maybe (Value Text)
nielsenId3Behavior = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       timedMetadataBehavior :: Maybe (Value Text)
timedMetadataBehavior = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Fmp4HlsSettingsProperty where
  toResourceProperties :: Fmp4HlsSettingsProperty -> ResourceProperties
toResourceProperties Fmp4HlsSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: Fmp4HlsSettingsProperty -> ()
audioRenditionSets :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
nielsenId3Behavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
timedMetadataBehavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
nielsenId3Behavior :: Maybe (Value Text)
timedMetadataBehavior :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.Fmp4HlsSettings",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AudioRenditionSets" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
audioRenditionSets,
                            Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NielsenId3Behavior" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
nielsenId3Behavior,
                            Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimedMetadataBehavior"
                              (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
timedMetadataBehavior])}
instance JSON.ToJSON Fmp4HlsSettingsProperty where
  toJSON :: Fmp4HlsSettingsProperty -> Value
toJSON Fmp4HlsSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: Fmp4HlsSettingsProperty -> ()
audioRenditionSets :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
nielsenId3Behavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
timedMetadataBehavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
nielsenId3Behavior :: Maybe (Value Text)
timedMetadataBehavior :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AudioRenditionSets" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
audioRenditionSets,
               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NielsenId3Behavior" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
nielsenId3Behavior,
               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimedMetadataBehavior"
                 (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
timedMetadataBehavior]))
instance Property "AudioRenditionSets" Fmp4HlsSettingsProperty where
  type PropertyType "AudioRenditionSets" Fmp4HlsSettingsProperty = Value Prelude.Text
  set :: PropertyType "AudioRenditionSets" Fmp4HlsSettingsProperty
-> Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty
set PropertyType "AudioRenditionSets" Fmp4HlsSettingsProperty
newValue Fmp4HlsSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: Fmp4HlsSettingsProperty -> ()
audioRenditionSets :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
nielsenId3Behavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
timedMetadataBehavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
nielsenId3Behavior :: Maybe (Value Text)
timedMetadataBehavior :: Maybe (Value Text)
..}
    = Fmp4HlsSettingsProperty
        {audioRenditionSets :: Maybe (Value Text)
audioRenditionSets = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AudioRenditionSets" Fmp4HlsSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
nielsenId3Behavior :: Maybe (Value Text)
timedMetadataBehavior :: Maybe (Value Text)
haddock_workaround_ :: ()
nielsenId3Behavior :: Maybe (Value Text)
timedMetadataBehavior :: Maybe (Value Text)
..}
instance Property "NielsenId3Behavior" Fmp4HlsSettingsProperty where
  type PropertyType "NielsenId3Behavior" Fmp4HlsSettingsProperty = Value Prelude.Text
  set :: PropertyType "NielsenId3Behavior" Fmp4HlsSettingsProperty
-> Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty
set PropertyType "NielsenId3Behavior" Fmp4HlsSettingsProperty
newValue Fmp4HlsSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: Fmp4HlsSettingsProperty -> ()
audioRenditionSets :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
nielsenId3Behavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
timedMetadataBehavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
nielsenId3Behavior :: Maybe (Value Text)
timedMetadataBehavior :: Maybe (Value Text)
..}
    = Fmp4HlsSettingsProperty
        {nielsenId3Behavior :: Maybe (Value Text)
nielsenId3Behavior = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NielsenId3Behavior" Fmp4HlsSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
timedMetadataBehavior :: Maybe (Value Text)
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
timedMetadataBehavior :: Maybe (Value Text)
..}
instance Property "TimedMetadataBehavior" Fmp4HlsSettingsProperty where
  type PropertyType "TimedMetadataBehavior" Fmp4HlsSettingsProperty = Value Prelude.Text
  set :: PropertyType "TimedMetadataBehavior" Fmp4HlsSettingsProperty
-> Fmp4HlsSettingsProperty -> Fmp4HlsSettingsProperty
set PropertyType "TimedMetadataBehavior" Fmp4HlsSettingsProperty
newValue Fmp4HlsSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: Fmp4HlsSettingsProperty -> ()
audioRenditionSets :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
nielsenId3Behavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
timedMetadataBehavior :: Fmp4HlsSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
nielsenId3Behavior :: Maybe (Value Text)
timedMetadataBehavior :: Maybe (Value Text)
..}
    = Fmp4HlsSettingsProperty
        {timedMetadataBehavior :: Maybe (Value Text)
timedMetadataBehavior = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TimedMetadataBehavior" Fmp4HlsSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
nielsenId3Behavior :: Maybe (Value Text)
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
nielsenId3Behavior :: Maybe (Value Text)
..}