module Stratosphere.MediaLive.Channel.AudioSilenceFailoverSettingsProperty (
        AudioSilenceFailoverSettingsProperty(..),
        mkAudioSilenceFailoverSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AudioSilenceFailoverSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audiosilencefailoversettings.html>
    AudioSilenceFailoverSettingsProperty {AudioSilenceFailoverSettingsProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audiosilencefailoversettings.html#cfn-medialive-channel-audiosilencefailoversettings-audioselectorname>
                                          AudioSilenceFailoverSettingsProperty -> Maybe (Value Text)
audioSelectorName :: (Prelude.Maybe (Value Prelude.Text)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audiosilencefailoversettings.html#cfn-medialive-channel-audiosilencefailoversettings-audiosilencethresholdmsec>
                                          AudioSilenceFailoverSettingsProperty -> Maybe (Value Integer)
audioSilenceThresholdMsec :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (AudioSilenceFailoverSettingsProperty
-> AudioSilenceFailoverSettingsProperty -> Bool
(AudioSilenceFailoverSettingsProperty
 -> AudioSilenceFailoverSettingsProperty -> Bool)
-> (AudioSilenceFailoverSettingsProperty
    -> AudioSilenceFailoverSettingsProperty -> Bool)
-> Eq AudioSilenceFailoverSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AudioSilenceFailoverSettingsProperty
-> AudioSilenceFailoverSettingsProperty -> Bool
== :: AudioSilenceFailoverSettingsProperty
-> AudioSilenceFailoverSettingsProperty -> Bool
$c/= :: AudioSilenceFailoverSettingsProperty
-> AudioSilenceFailoverSettingsProperty -> Bool
/= :: AudioSilenceFailoverSettingsProperty
-> AudioSilenceFailoverSettingsProperty -> Bool
Prelude.Eq, Int -> AudioSilenceFailoverSettingsProperty -> ShowS
[AudioSilenceFailoverSettingsProperty] -> ShowS
AudioSilenceFailoverSettingsProperty -> String
(Int -> AudioSilenceFailoverSettingsProperty -> ShowS)
-> (AudioSilenceFailoverSettingsProperty -> String)
-> ([AudioSilenceFailoverSettingsProperty] -> ShowS)
-> Show AudioSilenceFailoverSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AudioSilenceFailoverSettingsProperty -> ShowS
showsPrec :: Int -> AudioSilenceFailoverSettingsProperty -> ShowS
$cshow :: AudioSilenceFailoverSettingsProperty -> String
show :: AudioSilenceFailoverSettingsProperty -> String
$cshowList :: [AudioSilenceFailoverSettingsProperty] -> ShowS
showList :: [AudioSilenceFailoverSettingsProperty] -> ShowS
Prelude.Show)
mkAudioSilenceFailoverSettingsProperty ::
  AudioSilenceFailoverSettingsProperty
mkAudioSilenceFailoverSettingsProperty :: AudioSilenceFailoverSettingsProperty
mkAudioSilenceFailoverSettingsProperty
  = AudioSilenceFailoverSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), audioSelectorName :: Maybe (Value Text)
audioSelectorName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       audioSilenceThresholdMsec :: Maybe (Value Integer)
audioSilenceThresholdMsec = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AudioSilenceFailoverSettingsProperty where
  toResourceProperties :: AudioSilenceFailoverSettingsProperty -> ResourceProperties
toResourceProperties AudioSilenceFailoverSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: AudioSilenceFailoverSettingsProperty -> ()
audioSelectorName :: AudioSilenceFailoverSettingsProperty -> Maybe (Value Text)
audioSilenceThresholdMsec :: AudioSilenceFailoverSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
audioSelectorName :: Maybe (Value Text)
audioSilenceThresholdMsec :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.AudioSilenceFailoverSettings",
         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
"AudioSelectorName" (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)
audioSelectorName,
                            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
"AudioSilenceThresholdMsec"
                              (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)
audioSilenceThresholdMsec])}
instance JSON.ToJSON AudioSilenceFailoverSettingsProperty where
  toJSON :: AudioSilenceFailoverSettingsProperty -> Value
toJSON AudioSilenceFailoverSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: AudioSilenceFailoverSettingsProperty -> ()
audioSelectorName :: AudioSilenceFailoverSettingsProperty -> Maybe (Value Text)
audioSilenceThresholdMsec :: AudioSilenceFailoverSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
audioSelectorName :: Maybe (Value Text)
audioSilenceThresholdMsec :: 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 -> 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
"AudioSelectorName" (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)
audioSelectorName,
               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
"AudioSilenceThresholdMsec"
                 (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)
audioSilenceThresholdMsec]))
instance Property "AudioSelectorName" AudioSilenceFailoverSettingsProperty where
  type PropertyType "AudioSelectorName" AudioSilenceFailoverSettingsProperty = Value Prelude.Text
  set :: PropertyType
  "AudioSelectorName" AudioSilenceFailoverSettingsProperty
-> AudioSilenceFailoverSettingsProperty
-> AudioSilenceFailoverSettingsProperty
set PropertyType
  "AudioSelectorName" AudioSilenceFailoverSettingsProperty
newValue AudioSilenceFailoverSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: AudioSilenceFailoverSettingsProperty -> ()
audioSelectorName :: AudioSilenceFailoverSettingsProperty -> Maybe (Value Text)
audioSilenceThresholdMsec :: AudioSilenceFailoverSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
audioSelectorName :: Maybe (Value Text)
audioSilenceThresholdMsec :: Maybe (Value Integer)
..}
    = AudioSilenceFailoverSettingsProperty
        {audioSelectorName :: Maybe (Value Text)
audioSelectorName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AudioSelectorName" AudioSilenceFailoverSettingsProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
audioSilenceThresholdMsec :: Maybe (Value Integer)
haddock_workaround_ :: ()
audioSilenceThresholdMsec :: Maybe (Value Integer)
..}
instance Property "AudioSilenceThresholdMsec" AudioSilenceFailoverSettingsProperty where
  type PropertyType "AudioSilenceThresholdMsec" AudioSilenceFailoverSettingsProperty = Value Prelude.Integer
  set :: PropertyType
  "AudioSilenceThresholdMsec" AudioSilenceFailoverSettingsProperty
-> AudioSilenceFailoverSettingsProperty
-> AudioSilenceFailoverSettingsProperty
set PropertyType
  "AudioSilenceThresholdMsec" AudioSilenceFailoverSettingsProperty
newValue AudioSilenceFailoverSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: AudioSilenceFailoverSettingsProperty -> ()
audioSelectorName :: AudioSilenceFailoverSettingsProperty -> Maybe (Value Text)
audioSilenceThresholdMsec :: AudioSilenceFailoverSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
audioSelectorName :: Maybe (Value Text)
audioSilenceThresholdMsec :: Maybe (Value Integer)
..}
    = AudioSilenceFailoverSettingsProperty
        {audioSilenceThresholdMsec :: Maybe (Value Integer)
audioSilenceThresholdMsec = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AudioSilenceThresholdMsec" AudioSilenceFailoverSettingsProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
audioSelectorName :: Maybe (Value Text)
haddock_workaround_ :: ()
audioSelectorName :: Maybe (Value Text)
..}