module Stratosphere.MediaLive.Multiplexprogram.MultiplexVideoSettingsProperty (
module Exports, MultiplexVideoSettingsProperty(..),
mkMultiplexVideoSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Multiplexprogram.MultiplexStatmuxVideoSettingsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MultiplexVideoSettingsProperty
=
MultiplexVideoSettingsProperty {MultiplexVideoSettingsProperty -> ()
haddock_workaround_ :: (),
MultiplexVideoSettingsProperty -> Maybe (Value Integer)
constantBitrate :: (Prelude.Maybe (Value Prelude.Integer)),
MultiplexVideoSettingsProperty
-> Maybe MultiplexStatmuxVideoSettingsProperty
statmuxSettings :: (Prelude.Maybe MultiplexStatmuxVideoSettingsProperty)}
deriving stock (MultiplexVideoSettingsProperty
-> MultiplexVideoSettingsProperty -> Bool
(MultiplexVideoSettingsProperty
-> MultiplexVideoSettingsProperty -> Bool)
-> (MultiplexVideoSettingsProperty
-> MultiplexVideoSettingsProperty -> Bool)
-> Eq MultiplexVideoSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MultiplexVideoSettingsProperty
-> MultiplexVideoSettingsProperty -> Bool
== :: MultiplexVideoSettingsProperty
-> MultiplexVideoSettingsProperty -> Bool
$c/= :: MultiplexVideoSettingsProperty
-> MultiplexVideoSettingsProperty -> Bool
/= :: MultiplexVideoSettingsProperty
-> MultiplexVideoSettingsProperty -> Bool
Prelude.Eq, Int -> MultiplexVideoSettingsProperty -> ShowS
[MultiplexVideoSettingsProperty] -> ShowS
MultiplexVideoSettingsProperty -> String
(Int -> MultiplexVideoSettingsProperty -> ShowS)
-> (MultiplexVideoSettingsProperty -> String)
-> ([MultiplexVideoSettingsProperty] -> ShowS)
-> Show MultiplexVideoSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MultiplexVideoSettingsProperty -> ShowS
showsPrec :: Int -> MultiplexVideoSettingsProperty -> ShowS
$cshow :: MultiplexVideoSettingsProperty -> String
show :: MultiplexVideoSettingsProperty -> String
$cshowList :: [MultiplexVideoSettingsProperty] -> ShowS
showList :: [MultiplexVideoSettingsProperty] -> ShowS
Prelude.Show)
mkMultiplexVideoSettingsProperty :: MultiplexVideoSettingsProperty
mkMultiplexVideoSettingsProperty :: MultiplexVideoSettingsProperty
mkMultiplexVideoSettingsProperty
= MultiplexVideoSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), constantBitrate :: Maybe (Value Integer)
constantBitrate = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
statmuxSettings :: Maybe MultiplexStatmuxVideoSettingsProperty
statmuxSettings = Maybe MultiplexStatmuxVideoSettingsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MultiplexVideoSettingsProperty where
toResourceProperties :: MultiplexVideoSettingsProperty -> ResourceProperties
toResourceProperties MultiplexVideoSettingsProperty {Maybe (Value Integer)
Maybe MultiplexStatmuxVideoSettingsProperty
()
haddock_workaround_ :: MultiplexVideoSettingsProperty -> ()
constantBitrate :: MultiplexVideoSettingsProperty -> Maybe (Value Integer)
statmuxSettings :: MultiplexVideoSettingsProperty
-> Maybe MultiplexStatmuxVideoSettingsProperty
haddock_workaround_ :: ()
constantBitrate :: Maybe (Value Integer)
statmuxSettings :: Maybe MultiplexStatmuxVideoSettingsProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Multiplexprogram.MultiplexVideoSettings",
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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConstantBitrate" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
constantBitrate,
Key -> MultiplexStatmuxVideoSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StatmuxSettings" (MultiplexStatmuxVideoSettingsProperty -> (Key, Value))
-> Maybe MultiplexStatmuxVideoSettingsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MultiplexStatmuxVideoSettingsProperty
statmuxSettings])}
instance JSON.ToJSON MultiplexVideoSettingsProperty where
toJSON :: MultiplexVideoSettingsProperty -> Value
toJSON MultiplexVideoSettingsProperty {Maybe (Value Integer)
Maybe MultiplexStatmuxVideoSettingsProperty
()
haddock_workaround_ :: MultiplexVideoSettingsProperty -> ()
constantBitrate :: MultiplexVideoSettingsProperty -> Maybe (Value Integer)
statmuxSettings :: MultiplexVideoSettingsProperty
-> Maybe MultiplexStatmuxVideoSettingsProperty
haddock_workaround_ :: ()
constantBitrate :: Maybe (Value Integer)
statmuxSettings :: Maybe MultiplexStatmuxVideoSettingsProperty
..}
= [(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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConstantBitrate" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
constantBitrate,
Key -> MultiplexStatmuxVideoSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StatmuxSettings" (MultiplexStatmuxVideoSettingsProperty -> (Key, Value))
-> Maybe MultiplexStatmuxVideoSettingsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MultiplexStatmuxVideoSettingsProperty
statmuxSettings]))
instance Property "ConstantBitrate" MultiplexVideoSettingsProperty where
type PropertyType "ConstantBitrate" MultiplexVideoSettingsProperty = Value Prelude.Integer
set :: PropertyType "ConstantBitrate" MultiplexVideoSettingsProperty
-> MultiplexVideoSettingsProperty -> MultiplexVideoSettingsProperty
set PropertyType "ConstantBitrate" MultiplexVideoSettingsProperty
newValue MultiplexVideoSettingsProperty {Maybe (Value Integer)
Maybe MultiplexStatmuxVideoSettingsProperty
()
haddock_workaround_ :: MultiplexVideoSettingsProperty -> ()
constantBitrate :: MultiplexVideoSettingsProperty -> Maybe (Value Integer)
statmuxSettings :: MultiplexVideoSettingsProperty
-> Maybe MultiplexStatmuxVideoSettingsProperty
haddock_workaround_ :: ()
constantBitrate :: Maybe (Value Integer)
statmuxSettings :: Maybe MultiplexStatmuxVideoSettingsProperty
..}
= MultiplexVideoSettingsProperty
{constantBitrate :: Maybe (Value Integer)
constantBitrate = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConstantBitrate" MultiplexVideoSettingsProperty
Value Integer
newValue, Maybe MultiplexStatmuxVideoSettingsProperty
()
haddock_workaround_ :: ()
statmuxSettings :: Maybe MultiplexStatmuxVideoSettingsProperty
haddock_workaround_ :: ()
statmuxSettings :: Maybe MultiplexStatmuxVideoSettingsProperty
..}
instance Property "StatmuxSettings" MultiplexVideoSettingsProperty where
type PropertyType "StatmuxSettings" MultiplexVideoSettingsProperty = MultiplexStatmuxVideoSettingsProperty
set :: PropertyType "StatmuxSettings" MultiplexVideoSettingsProperty
-> MultiplexVideoSettingsProperty -> MultiplexVideoSettingsProperty
set PropertyType "StatmuxSettings" MultiplexVideoSettingsProperty
newValue MultiplexVideoSettingsProperty {Maybe (Value Integer)
Maybe MultiplexStatmuxVideoSettingsProperty
()
haddock_workaround_ :: MultiplexVideoSettingsProperty -> ()
constantBitrate :: MultiplexVideoSettingsProperty -> Maybe (Value Integer)
statmuxSettings :: MultiplexVideoSettingsProperty
-> Maybe MultiplexStatmuxVideoSettingsProperty
haddock_workaround_ :: ()
constantBitrate :: Maybe (Value Integer)
statmuxSettings :: Maybe MultiplexStatmuxVideoSettingsProperty
..}
= MultiplexVideoSettingsProperty
{statmuxSettings :: Maybe MultiplexStatmuxVideoSettingsProperty
statmuxSettings = MultiplexStatmuxVideoSettingsProperty
-> Maybe MultiplexStatmuxVideoSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StatmuxSettings" MultiplexVideoSettingsProperty
MultiplexStatmuxVideoSettingsProperty
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
constantBitrate :: Maybe (Value Integer)
haddock_workaround_ :: ()
constantBitrate :: Maybe (Value Integer)
..}