module Stratosphere.MediaLive.Channel.WebvttDestinationSettingsProperty (
        WebvttDestinationSettingsProperty(..),
        mkWebvttDestinationSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WebvttDestinationSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-webvttdestinationsettings.html>
    WebvttDestinationSettingsProperty {WebvttDestinationSettingsProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-webvttdestinationsettings.html#cfn-medialive-channel-webvttdestinationsettings-stylecontrol>
                                       WebvttDestinationSettingsProperty -> Maybe (Value Text)
styleControl :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (WebvttDestinationSettingsProperty
-> WebvttDestinationSettingsProperty -> Bool
(WebvttDestinationSettingsProperty
 -> WebvttDestinationSettingsProperty -> Bool)
-> (WebvttDestinationSettingsProperty
    -> WebvttDestinationSettingsProperty -> Bool)
-> Eq WebvttDestinationSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WebvttDestinationSettingsProperty
-> WebvttDestinationSettingsProperty -> Bool
== :: WebvttDestinationSettingsProperty
-> WebvttDestinationSettingsProperty -> Bool
$c/= :: WebvttDestinationSettingsProperty
-> WebvttDestinationSettingsProperty -> Bool
/= :: WebvttDestinationSettingsProperty
-> WebvttDestinationSettingsProperty -> Bool
Prelude.Eq, Int -> WebvttDestinationSettingsProperty -> ShowS
[WebvttDestinationSettingsProperty] -> ShowS
WebvttDestinationSettingsProperty -> String
(Int -> WebvttDestinationSettingsProperty -> ShowS)
-> (WebvttDestinationSettingsProperty -> String)
-> ([WebvttDestinationSettingsProperty] -> ShowS)
-> Show WebvttDestinationSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WebvttDestinationSettingsProperty -> ShowS
showsPrec :: Int -> WebvttDestinationSettingsProperty -> ShowS
$cshow :: WebvttDestinationSettingsProperty -> String
show :: WebvttDestinationSettingsProperty -> String
$cshowList :: [WebvttDestinationSettingsProperty] -> ShowS
showList :: [WebvttDestinationSettingsProperty] -> ShowS
Prelude.Show)
mkWebvttDestinationSettingsProperty ::
  WebvttDestinationSettingsProperty
mkWebvttDestinationSettingsProperty :: WebvttDestinationSettingsProperty
mkWebvttDestinationSettingsProperty
  = WebvttDestinationSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), styleControl :: Maybe (Value Text)
styleControl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WebvttDestinationSettingsProperty where
  toResourceProperties :: WebvttDestinationSettingsProperty -> ResourceProperties
toResourceProperties WebvttDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: WebvttDestinationSettingsProperty -> ()
styleControl :: WebvttDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
styleControl :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.WebvttDestinationSettings",
         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
"StyleControl" (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)
styleControl])}
instance JSON.ToJSON WebvttDestinationSettingsProperty where
  toJSON :: WebvttDestinationSettingsProperty -> Value
toJSON WebvttDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: WebvttDestinationSettingsProperty -> ()
styleControl :: WebvttDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
styleControl :: 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
"StyleControl" (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)
styleControl]))
instance Property "StyleControl" WebvttDestinationSettingsProperty where
  type PropertyType "StyleControl" WebvttDestinationSettingsProperty = Value Prelude.Text
  set :: PropertyType "StyleControl" WebvttDestinationSettingsProperty
-> WebvttDestinationSettingsProperty
-> WebvttDestinationSettingsProperty
set PropertyType "StyleControl" WebvttDestinationSettingsProperty
newValue WebvttDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: WebvttDestinationSettingsProperty -> ()
styleControl :: WebvttDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
styleControl :: Maybe (Value Text)
..}
    = WebvttDestinationSettingsProperty
        {styleControl :: Maybe (Value Text)
styleControl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StyleControl" WebvttDestinationSettingsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}