module Stratosphere.MediaLive.Channel.TeletextSourceSettingsProperty (
module Exports, TeletextSourceSettingsProperty(..),
mkTeletextSourceSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.CaptionRectangleProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TeletextSourceSettingsProperty
=
TeletextSourceSettingsProperty {TeletextSourceSettingsProperty -> ()
haddock_workaround_ :: (),
TeletextSourceSettingsProperty -> Maybe CaptionRectangleProperty
outputRectangle :: (Prelude.Maybe CaptionRectangleProperty),
TeletextSourceSettingsProperty -> Maybe (Value Text)
pageNumber :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (TeletextSourceSettingsProperty
-> TeletextSourceSettingsProperty -> Bool
(TeletextSourceSettingsProperty
-> TeletextSourceSettingsProperty -> Bool)
-> (TeletextSourceSettingsProperty
-> TeletextSourceSettingsProperty -> Bool)
-> Eq TeletextSourceSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TeletextSourceSettingsProperty
-> TeletextSourceSettingsProperty -> Bool
== :: TeletextSourceSettingsProperty
-> TeletextSourceSettingsProperty -> Bool
$c/= :: TeletextSourceSettingsProperty
-> TeletextSourceSettingsProperty -> Bool
/= :: TeletextSourceSettingsProperty
-> TeletextSourceSettingsProperty -> Bool
Prelude.Eq, Int -> TeletextSourceSettingsProperty -> ShowS
[TeletextSourceSettingsProperty] -> ShowS
TeletextSourceSettingsProperty -> String
(Int -> TeletextSourceSettingsProperty -> ShowS)
-> (TeletextSourceSettingsProperty -> String)
-> ([TeletextSourceSettingsProperty] -> ShowS)
-> Show TeletextSourceSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TeletextSourceSettingsProperty -> ShowS
showsPrec :: Int -> TeletextSourceSettingsProperty -> ShowS
$cshow :: TeletextSourceSettingsProperty -> String
show :: TeletextSourceSettingsProperty -> String
$cshowList :: [TeletextSourceSettingsProperty] -> ShowS
showList :: [TeletextSourceSettingsProperty] -> ShowS
Prelude.Show)
mkTeletextSourceSettingsProperty :: TeletextSourceSettingsProperty
mkTeletextSourceSettingsProperty :: TeletextSourceSettingsProperty
mkTeletextSourceSettingsProperty
= TeletextSourceSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), outputRectangle :: Maybe CaptionRectangleProperty
outputRectangle = Maybe CaptionRectangleProperty
forall a. Maybe a
Prelude.Nothing,
pageNumber :: Maybe (Value Text)
pageNumber = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TeletextSourceSettingsProperty where
toResourceProperties :: TeletextSourceSettingsProperty -> ResourceProperties
toResourceProperties TeletextSourceSettingsProperty {Maybe (Value Text)
Maybe CaptionRectangleProperty
()
haddock_workaround_ :: TeletextSourceSettingsProperty -> ()
outputRectangle :: TeletextSourceSettingsProperty -> Maybe CaptionRectangleProperty
pageNumber :: TeletextSourceSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outputRectangle :: Maybe CaptionRectangleProperty
pageNumber :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.TeletextSourceSettings",
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 -> CaptionRectangleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OutputRectangle" (CaptionRectangleProperty -> (Key, Value))
-> Maybe CaptionRectangleProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CaptionRectangleProperty
outputRectangle,
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
"PageNumber" (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)
pageNumber])}
instance JSON.ToJSON TeletextSourceSettingsProperty where
toJSON :: TeletextSourceSettingsProperty -> Value
toJSON TeletextSourceSettingsProperty {Maybe (Value Text)
Maybe CaptionRectangleProperty
()
haddock_workaround_ :: TeletextSourceSettingsProperty -> ()
outputRectangle :: TeletextSourceSettingsProperty -> Maybe CaptionRectangleProperty
pageNumber :: TeletextSourceSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outputRectangle :: Maybe CaptionRectangleProperty
pageNumber :: 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 -> CaptionRectangleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OutputRectangle" (CaptionRectangleProperty -> (Key, Value))
-> Maybe CaptionRectangleProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CaptionRectangleProperty
outputRectangle,
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
"PageNumber" (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)
pageNumber]))
instance Property "OutputRectangle" TeletextSourceSettingsProperty where
type PropertyType "OutputRectangle" TeletextSourceSettingsProperty = CaptionRectangleProperty
set :: PropertyType "OutputRectangle" TeletextSourceSettingsProperty
-> TeletextSourceSettingsProperty -> TeletextSourceSettingsProperty
set PropertyType "OutputRectangle" TeletextSourceSettingsProperty
newValue TeletextSourceSettingsProperty {Maybe (Value Text)
Maybe CaptionRectangleProperty
()
haddock_workaround_ :: TeletextSourceSettingsProperty -> ()
outputRectangle :: TeletextSourceSettingsProperty -> Maybe CaptionRectangleProperty
pageNumber :: TeletextSourceSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outputRectangle :: Maybe CaptionRectangleProperty
pageNumber :: Maybe (Value Text)
..}
= TeletextSourceSettingsProperty
{outputRectangle :: Maybe CaptionRectangleProperty
outputRectangle = CaptionRectangleProperty -> Maybe CaptionRectangleProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputRectangle" TeletextSourceSettingsProperty
CaptionRectangleProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
pageNumber :: Maybe (Value Text)
haddock_workaround_ :: ()
pageNumber :: Maybe (Value Text)
..}
instance Property "PageNumber" TeletextSourceSettingsProperty where
type PropertyType "PageNumber" TeletextSourceSettingsProperty = Value Prelude.Text
set :: PropertyType "PageNumber" TeletextSourceSettingsProperty
-> TeletextSourceSettingsProperty -> TeletextSourceSettingsProperty
set PropertyType "PageNumber" TeletextSourceSettingsProperty
newValue TeletextSourceSettingsProperty {Maybe (Value Text)
Maybe CaptionRectangleProperty
()
haddock_workaround_ :: TeletextSourceSettingsProperty -> ()
outputRectangle :: TeletextSourceSettingsProperty -> Maybe CaptionRectangleProperty
pageNumber :: TeletextSourceSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outputRectangle :: Maybe CaptionRectangleProperty
pageNumber :: Maybe (Value Text)
..}
= TeletextSourceSettingsProperty
{pageNumber :: Maybe (Value Text)
pageNumber = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PageNumber" TeletextSourceSettingsProperty
Value Text
newValue, Maybe CaptionRectangleProperty
()
haddock_workaround_ :: ()
outputRectangle :: Maybe CaptionRectangleProperty
haddock_workaround_ :: ()
outputRectangle :: Maybe CaptionRectangleProperty
..}