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