module Stratosphere.MediaPackageV2.OriginEndpoint.DashSubtitleConfigurationProperty (
        module Exports, DashSubtitleConfigurationProperty(..),
        mkDashSubtitleConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaPackageV2.OriginEndpoint.DashTtmlConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data DashSubtitleConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashsubtitleconfiguration.html>
    DashSubtitleConfigurationProperty {DashSubtitleConfigurationProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashsubtitleconfiguration.html#cfn-mediapackagev2-originendpoint-dashsubtitleconfiguration-ttmlconfiguration>
                                       DashSubtitleConfigurationProperty
-> Maybe DashTtmlConfigurationProperty
ttmlConfiguration :: (Prelude.Maybe DashTtmlConfigurationProperty)}
  deriving stock (DashSubtitleConfigurationProperty
-> DashSubtitleConfigurationProperty -> Bool
(DashSubtitleConfigurationProperty
 -> DashSubtitleConfigurationProperty -> Bool)
-> (DashSubtitleConfigurationProperty
    -> DashSubtitleConfigurationProperty -> Bool)
-> Eq DashSubtitleConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DashSubtitleConfigurationProperty
-> DashSubtitleConfigurationProperty -> Bool
== :: DashSubtitleConfigurationProperty
-> DashSubtitleConfigurationProperty -> Bool
$c/= :: DashSubtitleConfigurationProperty
-> DashSubtitleConfigurationProperty -> Bool
/= :: DashSubtitleConfigurationProperty
-> DashSubtitleConfigurationProperty -> Bool
Prelude.Eq, Int -> DashSubtitleConfigurationProperty -> ShowS
[DashSubtitleConfigurationProperty] -> ShowS
DashSubtitleConfigurationProperty -> String
(Int -> DashSubtitleConfigurationProperty -> ShowS)
-> (DashSubtitleConfigurationProperty -> String)
-> ([DashSubtitleConfigurationProperty] -> ShowS)
-> Show DashSubtitleConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DashSubtitleConfigurationProperty -> ShowS
showsPrec :: Int -> DashSubtitleConfigurationProperty -> ShowS
$cshow :: DashSubtitleConfigurationProperty -> String
show :: DashSubtitleConfigurationProperty -> String
$cshowList :: [DashSubtitleConfigurationProperty] -> ShowS
showList :: [DashSubtitleConfigurationProperty] -> ShowS
Prelude.Show)
mkDashSubtitleConfigurationProperty ::
  DashSubtitleConfigurationProperty
mkDashSubtitleConfigurationProperty :: DashSubtitleConfigurationProperty
mkDashSubtitleConfigurationProperty
  = DashSubtitleConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), ttmlConfiguration :: Maybe DashTtmlConfigurationProperty
ttmlConfiguration = Maybe DashTtmlConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DashSubtitleConfigurationProperty where
  toResourceProperties :: DashSubtitleConfigurationProperty -> ResourceProperties
toResourceProperties DashSubtitleConfigurationProperty {Maybe DashTtmlConfigurationProperty
()
haddock_workaround_ :: DashSubtitleConfigurationProperty -> ()
ttmlConfiguration :: DashSubtitleConfigurationProperty
-> Maybe DashTtmlConfigurationProperty
haddock_workaround_ :: ()
ttmlConfiguration :: Maybe DashTtmlConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaPackageV2::OriginEndpoint.DashSubtitleConfiguration",
         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 -> DashTtmlConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TtmlConfiguration" (DashTtmlConfigurationProperty -> (Key, Value))
-> Maybe DashTtmlConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DashTtmlConfigurationProperty
ttmlConfiguration])}
instance JSON.ToJSON DashSubtitleConfigurationProperty where
  toJSON :: DashSubtitleConfigurationProperty -> Value
toJSON DashSubtitleConfigurationProperty {Maybe DashTtmlConfigurationProperty
()
haddock_workaround_ :: DashSubtitleConfigurationProperty -> ()
ttmlConfiguration :: DashSubtitleConfigurationProperty
-> Maybe DashTtmlConfigurationProperty
haddock_workaround_ :: ()
ttmlConfiguration :: Maybe DashTtmlConfigurationProperty
..}
    = [(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 -> DashTtmlConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TtmlConfiguration" (DashTtmlConfigurationProperty -> (Key, Value))
-> Maybe DashTtmlConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DashTtmlConfigurationProperty
ttmlConfiguration]))
instance Property "TtmlConfiguration" DashSubtitleConfigurationProperty where
  type PropertyType "TtmlConfiguration" DashSubtitleConfigurationProperty = DashTtmlConfigurationProperty
  set :: PropertyType "TtmlConfiguration" DashSubtitleConfigurationProperty
-> DashSubtitleConfigurationProperty
-> DashSubtitleConfigurationProperty
set PropertyType "TtmlConfiguration" DashSubtitleConfigurationProperty
newValue DashSubtitleConfigurationProperty {Maybe DashTtmlConfigurationProperty
()
haddock_workaround_ :: DashSubtitleConfigurationProperty -> ()
ttmlConfiguration :: DashSubtitleConfigurationProperty
-> Maybe DashTtmlConfigurationProperty
haddock_workaround_ :: ()
ttmlConfiguration :: Maybe DashTtmlConfigurationProperty
..}
    = DashSubtitleConfigurationProperty
        {ttmlConfiguration :: Maybe DashTtmlConfigurationProperty
ttmlConfiguration = DashTtmlConfigurationProperty
-> Maybe DashTtmlConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TtmlConfiguration" DashSubtitleConfigurationProperty
DashTtmlConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}