module Stratosphere.MediaLive.Channel.CaptionRectangleProperty (
CaptionRectangleProperty(..), mkCaptionRectangleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CaptionRectangleProperty
=
CaptionRectangleProperty {CaptionRectangleProperty -> ()
haddock_workaround_ :: (),
CaptionRectangleProperty -> Maybe (Value Double)
height :: (Prelude.Maybe (Value Prelude.Double)),
CaptionRectangleProperty -> Maybe (Value Double)
leftOffset :: (Prelude.Maybe (Value Prelude.Double)),
CaptionRectangleProperty -> Maybe (Value Double)
topOffset :: (Prelude.Maybe (Value Prelude.Double)),
CaptionRectangleProperty -> Maybe (Value Double)
width :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (CaptionRectangleProperty -> CaptionRectangleProperty -> Bool
(CaptionRectangleProperty -> CaptionRectangleProperty -> Bool)
-> (CaptionRectangleProperty -> CaptionRectangleProperty -> Bool)
-> Eq CaptionRectangleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CaptionRectangleProperty -> CaptionRectangleProperty -> Bool
== :: CaptionRectangleProperty -> CaptionRectangleProperty -> Bool
$c/= :: CaptionRectangleProperty -> CaptionRectangleProperty -> Bool
/= :: CaptionRectangleProperty -> CaptionRectangleProperty -> Bool
Prelude.Eq, Int -> CaptionRectangleProperty -> ShowS
[CaptionRectangleProperty] -> ShowS
CaptionRectangleProperty -> String
(Int -> CaptionRectangleProperty -> ShowS)
-> (CaptionRectangleProperty -> String)
-> ([CaptionRectangleProperty] -> ShowS)
-> Show CaptionRectangleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CaptionRectangleProperty -> ShowS
showsPrec :: Int -> CaptionRectangleProperty -> ShowS
$cshow :: CaptionRectangleProperty -> String
show :: CaptionRectangleProperty -> String
$cshowList :: [CaptionRectangleProperty] -> ShowS
showList :: [CaptionRectangleProperty] -> ShowS
Prelude.Show)
mkCaptionRectangleProperty :: CaptionRectangleProperty
mkCaptionRectangleProperty :: CaptionRectangleProperty
mkCaptionRectangleProperty
= CaptionRectangleProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), height :: Maybe (Value Double)
height = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
leftOffset :: Maybe (Value Double)
leftOffset = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, topOffset :: Maybe (Value Double)
topOffset = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
width :: Maybe (Value Double)
width = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CaptionRectangleProperty where
toResourceProperties :: CaptionRectangleProperty -> ResourceProperties
toResourceProperties CaptionRectangleProperty {Maybe (Value Double)
()
haddock_workaround_ :: CaptionRectangleProperty -> ()
height :: CaptionRectangleProperty -> Maybe (Value Double)
leftOffset :: CaptionRectangleProperty -> Maybe (Value Double)
topOffset :: CaptionRectangleProperty -> Maybe (Value Double)
width :: CaptionRectangleProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.CaptionRectangle",
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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Height" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
height,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LeftOffset" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
leftOffset,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TopOffset" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
topOffset,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Width" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
width])}
instance JSON.ToJSON CaptionRectangleProperty where
toJSON :: CaptionRectangleProperty -> Value
toJSON CaptionRectangleProperty {Maybe (Value Double)
()
haddock_workaround_ :: CaptionRectangleProperty -> ()
height :: CaptionRectangleProperty -> Maybe (Value Double)
leftOffset :: CaptionRectangleProperty -> Maybe (Value Double)
topOffset :: CaptionRectangleProperty -> Maybe (Value Double)
width :: CaptionRectangleProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
..}
= [(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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Height" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
height,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LeftOffset" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
leftOffset,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TopOffset" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
topOffset,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Width" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
width]))
instance Property "Height" CaptionRectangleProperty where
type PropertyType "Height" CaptionRectangleProperty = Value Prelude.Double
set :: PropertyType "Height" CaptionRectangleProperty
-> CaptionRectangleProperty -> CaptionRectangleProperty
set PropertyType "Height" CaptionRectangleProperty
newValue CaptionRectangleProperty {Maybe (Value Double)
()
haddock_workaround_ :: CaptionRectangleProperty -> ()
height :: CaptionRectangleProperty -> Maybe (Value Double)
leftOffset :: CaptionRectangleProperty -> Maybe (Value Double)
topOffset :: CaptionRectangleProperty -> Maybe (Value Double)
width :: CaptionRectangleProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
..}
= CaptionRectangleProperty {height :: Maybe (Value Double)
height = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Height" CaptionRectangleProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
haddock_workaround_ :: ()
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
..}
instance Property "LeftOffset" CaptionRectangleProperty where
type PropertyType "LeftOffset" CaptionRectangleProperty = Value Prelude.Double
set :: PropertyType "LeftOffset" CaptionRectangleProperty
-> CaptionRectangleProperty -> CaptionRectangleProperty
set PropertyType "LeftOffset" CaptionRectangleProperty
newValue CaptionRectangleProperty {Maybe (Value Double)
()
haddock_workaround_ :: CaptionRectangleProperty -> ()
height :: CaptionRectangleProperty -> Maybe (Value Double)
leftOffset :: CaptionRectangleProperty -> Maybe (Value Double)
topOffset :: CaptionRectangleProperty -> Maybe (Value Double)
width :: CaptionRectangleProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
..}
= CaptionRectangleProperty {leftOffset :: Maybe (Value Double)
leftOffset = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LeftOffset" CaptionRectangleProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
height :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
haddock_workaround_ :: ()
height :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
..}
instance Property "TopOffset" CaptionRectangleProperty where
type PropertyType "TopOffset" CaptionRectangleProperty = Value Prelude.Double
set :: PropertyType "TopOffset" CaptionRectangleProperty
-> CaptionRectangleProperty -> CaptionRectangleProperty
set PropertyType "TopOffset" CaptionRectangleProperty
newValue CaptionRectangleProperty {Maybe (Value Double)
()
haddock_workaround_ :: CaptionRectangleProperty -> ()
height :: CaptionRectangleProperty -> Maybe (Value Double)
leftOffset :: CaptionRectangleProperty -> Maybe (Value Double)
topOffset :: CaptionRectangleProperty -> Maybe (Value Double)
width :: CaptionRectangleProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
..}
= CaptionRectangleProperty {topOffset :: Maybe (Value Double)
topOffset = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TopOffset" CaptionRectangleProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
..}
instance Property "Width" CaptionRectangleProperty where
type PropertyType "Width" CaptionRectangleProperty = Value Prelude.Double
set :: PropertyType "Width" CaptionRectangleProperty
-> CaptionRectangleProperty -> CaptionRectangleProperty
set PropertyType "Width" CaptionRectangleProperty
newValue CaptionRectangleProperty {Maybe (Value Double)
()
haddock_workaround_ :: CaptionRectangleProperty -> ()
height :: CaptionRectangleProperty -> Maybe (Value Double)
leftOffset :: CaptionRectangleProperty -> Maybe (Value Double)
topOffset :: CaptionRectangleProperty -> Maybe (Value Double)
width :: CaptionRectangleProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
width :: Maybe (Value Double)
..}
= CaptionRectangleProperty {width :: Maybe (Value Double)
width = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Width" CaptionRectangleProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
haddock_workaround_ :: ()
height :: Maybe (Value Double)
leftOffset :: Maybe (Value Double)
topOffset :: Maybe (Value Double)
..}