module Stratosphere.MediaPackageV2.OriginEndpoint.ScteDashProperty (
        ScteDashProperty(..), mkScteDashProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScteDashProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-sctedash.html>
    ScteDashProperty {ScteDashProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-sctedash.html#cfn-mediapackagev2-originendpoint-sctedash-admarkerdash>
                      ScteDashProperty -> Maybe (Value Text)
adMarkerDash :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ScteDashProperty -> ScteDashProperty -> Bool
(ScteDashProperty -> ScteDashProperty -> Bool)
-> (ScteDashProperty -> ScteDashProperty -> Bool)
-> Eq ScteDashProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScteDashProperty -> ScteDashProperty -> Bool
== :: ScteDashProperty -> ScteDashProperty -> Bool
$c/= :: ScteDashProperty -> ScteDashProperty -> Bool
/= :: ScteDashProperty -> ScteDashProperty -> Bool
Prelude.Eq, Int -> ScteDashProperty -> ShowS
[ScteDashProperty] -> ShowS
ScteDashProperty -> String
(Int -> ScteDashProperty -> ShowS)
-> (ScteDashProperty -> String)
-> ([ScteDashProperty] -> ShowS)
-> Show ScteDashProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScteDashProperty -> ShowS
showsPrec :: Int -> ScteDashProperty -> ShowS
$cshow :: ScteDashProperty -> String
show :: ScteDashProperty -> String
$cshowList :: [ScteDashProperty] -> ShowS
showList :: [ScteDashProperty] -> ShowS
Prelude.Show)
mkScteDashProperty :: ScteDashProperty
mkScteDashProperty :: ScteDashProperty
mkScteDashProperty
  = ScteDashProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), adMarkerDash :: Maybe (Value Text)
adMarkerDash = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ScteDashProperty where
  toResourceProperties :: ScteDashProperty -> ResourceProperties
toResourceProperties ScteDashProperty {Maybe (Value Text)
()
haddock_workaround_ :: ScteDashProperty -> ()
adMarkerDash :: ScteDashProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
adMarkerDash :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaPackageV2::OriginEndpoint.ScteDash",
         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
"AdMarkerDash" (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)
adMarkerDash])}
instance JSON.ToJSON ScteDashProperty where
  toJSON :: ScteDashProperty -> Value
toJSON ScteDashProperty {Maybe (Value Text)
()
haddock_workaround_ :: ScteDashProperty -> ()
adMarkerDash :: ScteDashProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
adMarkerDash :: 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 -> 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
"AdMarkerDash" (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)
adMarkerDash]))
instance Property "AdMarkerDash" ScteDashProperty where
  type PropertyType "AdMarkerDash" ScteDashProperty = Value Prelude.Text
  set :: PropertyType "AdMarkerDash" ScteDashProperty
-> ScteDashProperty -> ScteDashProperty
set PropertyType "AdMarkerDash" ScteDashProperty
newValue ScteDashProperty {Maybe (Value Text)
()
haddock_workaround_ :: ScteDashProperty -> ()
adMarkerDash :: ScteDashProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
adMarkerDash :: Maybe (Value Text)
..}
    = ScteDashProperty {adMarkerDash :: Maybe (Value Text)
adMarkerDash = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AdMarkerDash" ScteDashProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}