module Stratosphere.QuickSight.Template.FreeFormLayoutElementBackgroundStyleProperty (
FreeFormLayoutElementBackgroundStyleProperty(..),
mkFreeFormLayoutElementBackgroundStyleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FreeFormLayoutElementBackgroundStyleProperty
=
FreeFormLayoutElementBackgroundStyleProperty {FreeFormLayoutElementBackgroundStyleProperty -> ()
haddock_workaround_ :: (),
FreeFormLayoutElementBackgroundStyleProperty -> Maybe (Value Text)
color :: (Prelude.Maybe (Value Prelude.Text)),
FreeFormLayoutElementBackgroundStyleProperty -> Maybe Object
visibility :: (Prelude.Maybe JSON.Object)}
deriving stock (FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty -> Bool
(FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty -> Bool)
-> (FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty -> Bool)
-> Eq FreeFormLayoutElementBackgroundStyleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty -> Bool
== :: FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty -> Bool
$c/= :: FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty -> Bool
/= :: FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty -> Bool
Prelude.Eq, Int -> FreeFormLayoutElementBackgroundStyleProperty -> ShowS
[FreeFormLayoutElementBackgroundStyleProperty] -> ShowS
FreeFormLayoutElementBackgroundStyleProperty -> String
(Int -> FreeFormLayoutElementBackgroundStyleProperty -> ShowS)
-> (FreeFormLayoutElementBackgroundStyleProperty -> String)
-> ([FreeFormLayoutElementBackgroundStyleProperty] -> ShowS)
-> Show FreeFormLayoutElementBackgroundStyleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FreeFormLayoutElementBackgroundStyleProperty -> ShowS
showsPrec :: Int -> FreeFormLayoutElementBackgroundStyleProperty -> ShowS
$cshow :: FreeFormLayoutElementBackgroundStyleProperty -> String
show :: FreeFormLayoutElementBackgroundStyleProperty -> String
$cshowList :: [FreeFormLayoutElementBackgroundStyleProperty] -> ShowS
showList :: [FreeFormLayoutElementBackgroundStyleProperty] -> ShowS
Prelude.Show)
mkFreeFormLayoutElementBackgroundStyleProperty ::
FreeFormLayoutElementBackgroundStyleProperty
mkFreeFormLayoutElementBackgroundStyleProperty :: FreeFormLayoutElementBackgroundStyleProperty
mkFreeFormLayoutElementBackgroundStyleProperty
= FreeFormLayoutElementBackgroundStyleProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), color :: Maybe (Value Text)
color = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
visibility :: Maybe Object
visibility = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FreeFormLayoutElementBackgroundStyleProperty where
toResourceProperties :: FreeFormLayoutElementBackgroundStyleProperty -> ResourceProperties
toResourceProperties
FreeFormLayoutElementBackgroundStyleProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: FreeFormLayoutElementBackgroundStyleProperty -> ()
color :: FreeFormLayoutElementBackgroundStyleProperty -> Maybe (Value Text)
visibility :: FreeFormLayoutElementBackgroundStyleProperty -> Maybe Object
haddock_workaround_ :: ()
color :: Maybe (Value Text)
visibility :: Maybe Object
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.FreeFormLayoutElementBackgroundStyle",
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
"Color" (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)
color,
Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Visibility" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
visibility])}
instance JSON.ToJSON FreeFormLayoutElementBackgroundStyleProperty where
toJSON :: FreeFormLayoutElementBackgroundStyleProperty -> Value
toJSON FreeFormLayoutElementBackgroundStyleProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: FreeFormLayoutElementBackgroundStyleProperty -> ()
color :: FreeFormLayoutElementBackgroundStyleProperty -> Maybe (Value Text)
visibility :: FreeFormLayoutElementBackgroundStyleProperty -> Maybe Object
haddock_workaround_ :: ()
color :: Maybe (Value Text)
visibility :: Maybe Object
..}
= [(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
"Color" (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)
color,
Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Visibility" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
visibility]))
instance Property "Color" FreeFormLayoutElementBackgroundStyleProperty where
type PropertyType "Color" FreeFormLayoutElementBackgroundStyleProperty = Value Prelude.Text
set :: PropertyType "Color" FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty
set PropertyType "Color" FreeFormLayoutElementBackgroundStyleProperty
newValue FreeFormLayoutElementBackgroundStyleProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: FreeFormLayoutElementBackgroundStyleProperty -> ()
color :: FreeFormLayoutElementBackgroundStyleProperty -> Maybe (Value Text)
visibility :: FreeFormLayoutElementBackgroundStyleProperty -> Maybe Object
haddock_workaround_ :: ()
color :: Maybe (Value Text)
visibility :: Maybe Object
..}
= FreeFormLayoutElementBackgroundStyleProperty
{color :: Maybe (Value Text)
color = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Color" FreeFormLayoutElementBackgroundStyleProperty
Value Text
newValue, Maybe Object
()
haddock_workaround_ :: ()
visibility :: Maybe Object
haddock_workaround_ :: ()
visibility :: Maybe Object
..}
instance Property "Visibility" FreeFormLayoutElementBackgroundStyleProperty where
type PropertyType "Visibility" FreeFormLayoutElementBackgroundStyleProperty = JSON.Object
set :: PropertyType
"Visibility" FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty
-> FreeFormLayoutElementBackgroundStyleProperty
set PropertyType
"Visibility" FreeFormLayoutElementBackgroundStyleProperty
newValue FreeFormLayoutElementBackgroundStyleProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: FreeFormLayoutElementBackgroundStyleProperty -> ()
color :: FreeFormLayoutElementBackgroundStyleProperty -> Maybe (Value Text)
visibility :: FreeFormLayoutElementBackgroundStyleProperty -> Maybe Object
haddock_workaround_ :: ()
color :: Maybe (Value Text)
visibility :: Maybe Object
..}
= FreeFormLayoutElementBackgroundStyleProperty
{visibility :: Maybe Object
visibility = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType
"Visibility" FreeFormLayoutElementBackgroundStyleProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
color :: Maybe (Value Text)
haddock_workaround_ :: ()
color :: Maybe (Value Text)
..}