module Stratosphere.MediaLive.Channel.RemixSettingsProperty (
        module Exports, RemixSettingsProperty(..), mkRemixSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.AudioChannelMappingProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RemixSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-remixsettings.html>
    RemixSettingsProperty {RemixSettingsProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-remixsettings.html#cfn-medialive-channel-remixsettings-channelmappings>
                           RemixSettingsProperty -> Maybe [AudioChannelMappingProperty]
channelMappings :: (Prelude.Maybe [AudioChannelMappingProperty]),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-remixsettings.html#cfn-medialive-channel-remixsettings-channelsin>
                           RemixSettingsProperty -> Maybe (Value Integer)
channelsIn :: (Prelude.Maybe (Value Prelude.Integer)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-remixsettings.html#cfn-medialive-channel-remixsettings-channelsout>
                           RemixSettingsProperty -> Maybe (Value Integer)
channelsOut :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (RemixSettingsProperty -> RemixSettingsProperty -> Bool
(RemixSettingsProperty -> RemixSettingsProperty -> Bool)
-> (RemixSettingsProperty -> RemixSettingsProperty -> Bool)
-> Eq RemixSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RemixSettingsProperty -> RemixSettingsProperty -> Bool
== :: RemixSettingsProperty -> RemixSettingsProperty -> Bool
$c/= :: RemixSettingsProperty -> RemixSettingsProperty -> Bool
/= :: RemixSettingsProperty -> RemixSettingsProperty -> Bool
Prelude.Eq, Int -> RemixSettingsProperty -> ShowS
[RemixSettingsProperty] -> ShowS
RemixSettingsProperty -> String
(Int -> RemixSettingsProperty -> ShowS)
-> (RemixSettingsProperty -> String)
-> ([RemixSettingsProperty] -> ShowS)
-> Show RemixSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RemixSettingsProperty -> ShowS
showsPrec :: Int -> RemixSettingsProperty -> ShowS
$cshow :: RemixSettingsProperty -> String
show :: RemixSettingsProperty -> String
$cshowList :: [RemixSettingsProperty] -> ShowS
showList :: [RemixSettingsProperty] -> ShowS
Prelude.Show)
mkRemixSettingsProperty :: RemixSettingsProperty
mkRemixSettingsProperty :: RemixSettingsProperty
mkRemixSettingsProperty
  = RemixSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), channelMappings :: Maybe [AudioChannelMappingProperty]
channelMappings = Maybe [AudioChannelMappingProperty]
forall a. Maybe a
Prelude.Nothing,
       channelsIn :: Maybe (Value Integer)
channelsIn = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, channelsOut :: Maybe (Value Integer)
channelsOut = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RemixSettingsProperty where
  toResourceProperties :: RemixSettingsProperty -> ResourceProperties
toResourceProperties RemixSettingsProperty {Maybe [AudioChannelMappingProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RemixSettingsProperty -> ()
channelMappings :: RemixSettingsProperty -> Maybe [AudioChannelMappingProperty]
channelsIn :: RemixSettingsProperty -> Maybe (Value Integer)
channelsOut :: RemixSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
channelMappings :: Maybe [AudioChannelMappingProperty]
channelsIn :: Maybe (Value Integer)
channelsOut :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.RemixSettings",
         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 -> [AudioChannelMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ChannelMappings" ([AudioChannelMappingProperty] -> (Key, Value))
-> Maybe [AudioChannelMappingProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AudioChannelMappingProperty]
channelMappings,
                            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
"ChannelsIn" (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)
channelsIn,
                            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
"ChannelsOut" (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)
channelsOut])}
instance JSON.ToJSON RemixSettingsProperty where
  toJSON :: RemixSettingsProperty -> Value
toJSON RemixSettingsProperty {Maybe [AudioChannelMappingProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RemixSettingsProperty -> ()
channelMappings :: RemixSettingsProperty -> Maybe [AudioChannelMappingProperty]
channelsIn :: RemixSettingsProperty -> Maybe (Value Integer)
channelsOut :: RemixSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
channelMappings :: Maybe [AudioChannelMappingProperty]
channelsIn :: Maybe (Value Integer)
channelsOut :: Maybe (Value Integer)
..}
    = [(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 -> [AudioChannelMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ChannelMappings" ([AudioChannelMappingProperty] -> (Key, Value))
-> Maybe [AudioChannelMappingProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AudioChannelMappingProperty]
channelMappings,
               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
"ChannelsIn" (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)
channelsIn,
               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
"ChannelsOut" (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)
channelsOut]))
instance Property "ChannelMappings" RemixSettingsProperty where
  type PropertyType "ChannelMappings" RemixSettingsProperty = [AudioChannelMappingProperty]
  set :: PropertyType "ChannelMappings" RemixSettingsProperty
-> RemixSettingsProperty -> RemixSettingsProperty
set PropertyType "ChannelMappings" RemixSettingsProperty
newValue RemixSettingsProperty {Maybe [AudioChannelMappingProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RemixSettingsProperty -> ()
channelMappings :: RemixSettingsProperty -> Maybe [AudioChannelMappingProperty]
channelsIn :: RemixSettingsProperty -> Maybe (Value Integer)
channelsOut :: RemixSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
channelMappings :: Maybe [AudioChannelMappingProperty]
channelsIn :: Maybe (Value Integer)
channelsOut :: Maybe (Value Integer)
..}
    = RemixSettingsProperty
        {channelMappings :: Maybe [AudioChannelMappingProperty]
channelMappings = [AudioChannelMappingProperty]
-> Maybe [AudioChannelMappingProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AudioChannelMappingProperty]
PropertyType "ChannelMappings" RemixSettingsProperty
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
channelsIn :: Maybe (Value Integer)
channelsOut :: Maybe (Value Integer)
haddock_workaround_ :: ()
channelsIn :: Maybe (Value Integer)
channelsOut :: Maybe (Value Integer)
..}
instance Property "ChannelsIn" RemixSettingsProperty where
  type PropertyType "ChannelsIn" RemixSettingsProperty = Value Prelude.Integer
  set :: PropertyType "ChannelsIn" RemixSettingsProperty
-> RemixSettingsProperty -> RemixSettingsProperty
set PropertyType "ChannelsIn" RemixSettingsProperty
newValue RemixSettingsProperty {Maybe [AudioChannelMappingProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RemixSettingsProperty -> ()
channelMappings :: RemixSettingsProperty -> Maybe [AudioChannelMappingProperty]
channelsIn :: RemixSettingsProperty -> Maybe (Value Integer)
channelsOut :: RemixSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
channelMappings :: Maybe [AudioChannelMappingProperty]
channelsIn :: Maybe (Value Integer)
channelsOut :: Maybe (Value Integer)
..}
    = RemixSettingsProperty {channelsIn :: Maybe (Value Integer)
channelsIn = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ChannelsIn" RemixSettingsProperty
Value Integer
newValue, Maybe [AudioChannelMappingProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
channelMappings :: Maybe [AudioChannelMappingProperty]
channelsOut :: Maybe (Value Integer)
haddock_workaround_ :: ()
channelMappings :: Maybe [AudioChannelMappingProperty]
channelsOut :: Maybe (Value Integer)
..}
instance Property "ChannelsOut" RemixSettingsProperty where
  type PropertyType "ChannelsOut" RemixSettingsProperty = Value Prelude.Integer
  set :: PropertyType "ChannelsOut" RemixSettingsProperty
-> RemixSettingsProperty -> RemixSettingsProperty
set PropertyType "ChannelsOut" RemixSettingsProperty
newValue RemixSettingsProperty {Maybe [AudioChannelMappingProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: RemixSettingsProperty -> ()
channelMappings :: RemixSettingsProperty -> Maybe [AudioChannelMappingProperty]
channelsIn :: RemixSettingsProperty -> Maybe (Value Integer)
channelsOut :: RemixSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
channelMappings :: Maybe [AudioChannelMappingProperty]
channelsIn :: Maybe (Value Integer)
channelsOut :: Maybe (Value Integer)
..}
    = RemixSettingsProperty {channelsOut :: Maybe (Value Integer)
channelsOut = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ChannelsOut" RemixSettingsProperty
Value Integer
newValue, Maybe [AudioChannelMappingProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
channelMappings :: Maybe [AudioChannelMappingProperty]
channelsIn :: Maybe (Value Integer)
haddock_workaround_ :: ()
channelMappings :: Maybe [AudioChannelMappingProperty]
channelsIn :: Maybe (Value Integer)
..}