module Stratosphere.MediaLive.Channel.AvailBlankingProperty (
        module Exports, AvailBlankingProperty(..), mkAvailBlankingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.InputLocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AvailBlankingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-availblanking.html>
    AvailBlankingProperty {AvailBlankingProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-availblanking.html#cfn-medialive-channel-availblanking-availblankingimage>
                           AvailBlankingProperty -> Maybe InputLocationProperty
availBlankingImage :: (Prelude.Maybe InputLocationProperty),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-availblanking.html#cfn-medialive-channel-availblanking-state>
                           AvailBlankingProperty -> Maybe (Value Text)
state :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (AvailBlankingProperty -> AvailBlankingProperty -> Bool
(AvailBlankingProperty -> AvailBlankingProperty -> Bool)
-> (AvailBlankingProperty -> AvailBlankingProperty -> Bool)
-> Eq AvailBlankingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AvailBlankingProperty -> AvailBlankingProperty -> Bool
== :: AvailBlankingProperty -> AvailBlankingProperty -> Bool
$c/= :: AvailBlankingProperty -> AvailBlankingProperty -> Bool
/= :: AvailBlankingProperty -> AvailBlankingProperty -> Bool
Prelude.Eq, Int -> AvailBlankingProperty -> ShowS
[AvailBlankingProperty] -> ShowS
AvailBlankingProperty -> String
(Int -> AvailBlankingProperty -> ShowS)
-> (AvailBlankingProperty -> String)
-> ([AvailBlankingProperty] -> ShowS)
-> Show AvailBlankingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AvailBlankingProperty -> ShowS
showsPrec :: Int -> AvailBlankingProperty -> ShowS
$cshow :: AvailBlankingProperty -> String
show :: AvailBlankingProperty -> String
$cshowList :: [AvailBlankingProperty] -> ShowS
showList :: [AvailBlankingProperty] -> ShowS
Prelude.Show)
mkAvailBlankingProperty :: AvailBlankingProperty
mkAvailBlankingProperty :: AvailBlankingProperty
mkAvailBlankingProperty
  = AvailBlankingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), availBlankingImage :: Maybe InputLocationProperty
availBlankingImage = Maybe InputLocationProperty
forall a. Maybe a
Prelude.Nothing,
       state :: Maybe (Value Text)
state = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AvailBlankingProperty where
  toResourceProperties :: AvailBlankingProperty -> ResourceProperties
toResourceProperties AvailBlankingProperty {Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: AvailBlankingProperty -> ()
availBlankingImage :: AvailBlankingProperty -> Maybe InputLocationProperty
state :: AvailBlankingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availBlankingImage :: Maybe InputLocationProperty
state :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.AvailBlanking",
         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 -> InputLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AvailBlankingImage" (InputLocationProperty -> (Key, Value))
-> Maybe InputLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputLocationProperty
availBlankingImage,
                            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
"State" (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)
state])}
instance JSON.ToJSON AvailBlankingProperty where
  toJSON :: AvailBlankingProperty -> Value
toJSON AvailBlankingProperty {Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: AvailBlankingProperty -> ()
availBlankingImage :: AvailBlankingProperty -> Maybe InputLocationProperty
state :: AvailBlankingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availBlankingImage :: Maybe InputLocationProperty
state :: 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 -> InputLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AvailBlankingImage" (InputLocationProperty -> (Key, Value))
-> Maybe InputLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputLocationProperty
availBlankingImage,
               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
"State" (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)
state]))
instance Property "AvailBlankingImage" AvailBlankingProperty where
  type PropertyType "AvailBlankingImage" AvailBlankingProperty = InputLocationProperty
  set :: PropertyType "AvailBlankingImage" AvailBlankingProperty
-> AvailBlankingProperty -> AvailBlankingProperty
set PropertyType "AvailBlankingImage" AvailBlankingProperty
newValue AvailBlankingProperty {Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: AvailBlankingProperty -> ()
availBlankingImage :: AvailBlankingProperty -> Maybe InputLocationProperty
state :: AvailBlankingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availBlankingImage :: Maybe InputLocationProperty
state :: Maybe (Value Text)
..}
    = AvailBlankingProperty
        {availBlankingImage :: Maybe InputLocationProperty
availBlankingImage = InputLocationProperty -> Maybe InputLocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AvailBlankingImage" AvailBlankingProperty
InputLocationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
state :: Maybe (Value Text)
haddock_workaround_ :: ()
state :: Maybe (Value Text)
..}
instance Property "State" AvailBlankingProperty where
  type PropertyType "State" AvailBlankingProperty = Value Prelude.Text
  set :: PropertyType "State" AvailBlankingProperty
-> AvailBlankingProperty -> AvailBlankingProperty
set PropertyType "State" AvailBlankingProperty
newValue AvailBlankingProperty {Maybe (Value Text)
Maybe InputLocationProperty
()
haddock_workaround_ :: AvailBlankingProperty -> ()
availBlankingImage :: AvailBlankingProperty -> Maybe InputLocationProperty
state :: AvailBlankingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availBlankingImage :: Maybe InputLocationProperty
state :: Maybe (Value Text)
..}
    = AvailBlankingProperty {state :: Maybe (Value Text)
state = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "State" AvailBlankingProperty
Value Text
newValue, Maybe InputLocationProperty
()
haddock_workaround_ :: ()
availBlankingImage :: Maybe InputLocationProperty
haddock_workaround_ :: ()
availBlankingImage :: Maybe InputLocationProperty
..}