module Stratosphere.MediaTailor.PlaybackConfiguration.AdMarkerPassthroughProperty (
        AdMarkerPassthroughProperty(..), mkAdMarkerPassthroughProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AdMarkerPassthroughProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-admarkerpassthrough.html>
    AdMarkerPassthroughProperty {AdMarkerPassthroughProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-admarkerpassthrough.html#cfn-mediatailor-playbackconfiguration-admarkerpassthrough-enabled>
                                 AdMarkerPassthroughProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (AdMarkerPassthroughProperty -> AdMarkerPassthroughProperty -> Bool
(AdMarkerPassthroughProperty
 -> AdMarkerPassthroughProperty -> Bool)
-> (AdMarkerPassthroughProperty
    -> AdMarkerPassthroughProperty -> Bool)
-> Eq AdMarkerPassthroughProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AdMarkerPassthroughProperty -> AdMarkerPassthroughProperty -> Bool
== :: AdMarkerPassthroughProperty -> AdMarkerPassthroughProperty -> Bool
$c/= :: AdMarkerPassthroughProperty -> AdMarkerPassthroughProperty -> Bool
/= :: AdMarkerPassthroughProperty -> AdMarkerPassthroughProperty -> Bool
Prelude.Eq, Int -> AdMarkerPassthroughProperty -> ShowS
[AdMarkerPassthroughProperty] -> ShowS
AdMarkerPassthroughProperty -> String
(Int -> AdMarkerPassthroughProperty -> ShowS)
-> (AdMarkerPassthroughProperty -> String)
-> ([AdMarkerPassthroughProperty] -> ShowS)
-> Show AdMarkerPassthroughProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AdMarkerPassthroughProperty -> ShowS
showsPrec :: Int -> AdMarkerPassthroughProperty -> ShowS
$cshow :: AdMarkerPassthroughProperty -> String
show :: AdMarkerPassthroughProperty -> String
$cshowList :: [AdMarkerPassthroughProperty] -> ShowS
showList :: [AdMarkerPassthroughProperty] -> ShowS
Prelude.Show)
mkAdMarkerPassthroughProperty :: AdMarkerPassthroughProperty
mkAdMarkerPassthroughProperty :: AdMarkerPassthroughProperty
mkAdMarkerPassthroughProperty
  = AdMarkerPassthroughProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AdMarkerPassthroughProperty where
  toResourceProperties :: AdMarkerPassthroughProperty -> ResourceProperties
toResourceProperties AdMarkerPassthroughProperty {Maybe (Value Bool)
()
haddock_workaround_ :: AdMarkerPassthroughProperty -> ()
enabled :: AdMarkerPassthroughProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaTailor::PlaybackConfiguration.AdMarkerPassthrough",
         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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled])}
instance JSON.ToJSON AdMarkerPassthroughProperty where
  toJSON :: AdMarkerPassthroughProperty -> Value
toJSON AdMarkerPassthroughProperty {Maybe (Value Bool)
()
haddock_workaround_ :: AdMarkerPassthroughProperty -> ()
enabled :: AdMarkerPassthroughProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
    = [(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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled]))
instance Property "Enabled" AdMarkerPassthroughProperty where
  type PropertyType "Enabled" AdMarkerPassthroughProperty = Value Prelude.Bool
  set :: PropertyType "Enabled" AdMarkerPassthroughProperty
-> AdMarkerPassthroughProperty -> AdMarkerPassthroughProperty
set PropertyType "Enabled" AdMarkerPassthroughProperty
newValue AdMarkerPassthroughProperty {Maybe (Value Bool)
()
haddock_workaround_ :: AdMarkerPassthroughProperty -> ()
enabled :: AdMarkerPassthroughProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
    = AdMarkerPassthroughProperty {enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" AdMarkerPassthroughProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}