module Stratosphere.QuickSight.Template.TableBorderOptionsProperty (
TableBorderOptionsProperty(..), mkTableBorderOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TableBorderOptionsProperty
=
TableBorderOptionsProperty {TableBorderOptionsProperty -> ()
haddock_workaround_ :: (),
TableBorderOptionsProperty -> Maybe (Value Text)
color :: (Prelude.Maybe (Value Prelude.Text)),
TableBorderOptionsProperty -> Maybe (Value Text)
style :: (Prelude.Maybe (Value Prelude.Text)),
TableBorderOptionsProperty -> Maybe (Value Double)
thickness :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (TableBorderOptionsProperty -> TableBorderOptionsProperty -> Bool
(TableBorderOptionsProperty -> TableBorderOptionsProperty -> Bool)
-> (TableBorderOptionsProperty
-> TableBorderOptionsProperty -> Bool)
-> Eq TableBorderOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableBorderOptionsProperty -> TableBorderOptionsProperty -> Bool
== :: TableBorderOptionsProperty -> TableBorderOptionsProperty -> Bool
$c/= :: TableBorderOptionsProperty -> TableBorderOptionsProperty -> Bool
/= :: TableBorderOptionsProperty -> TableBorderOptionsProperty -> Bool
Prelude.Eq, Int -> TableBorderOptionsProperty -> ShowS
[TableBorderOptionsProperty] -> ShowS
TableBorderOptionsProperty -> String
(Int -> TableBorderOptionsProperty -> ShowS)
-> (TableBorderOptionsProperty -> String)
-> ([TableBorderOptionsProperty] -> ShowS)
-> Show TableBorderOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableBorderOptionsProperty -> ShowS
showsPrec :: Int -> TableBorderOptionsProperty -> ShowS
$cshow :: TableBorderOptionsProperty -> String
show :: TableBorderOptionsProperty -> String
$cshowList :: [TableBorderOptionsProperty] -> ShowS
showList :: [TableBorderOptionsProperty] -> ShowS
Prelude.Show)
mkTableBorderOptionsProperty :: TableBorderOptionsProperty
mkTableBorderOptionsProperty :: TableBorderOptionsProperty
mkTableBorderOptionsProperty
= TableBorderOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), color :: Maybe (Value Text)
color = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
style :: Maybe (Value Text)
style = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, thickness :: Maybe (Value Double)
thickness = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableBorderOptionsProperty where
toResourceProperties :: TableBorderOptionsProperty -> ResourceProperties
toResourceProperties TableBorderOptionsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: TableBorderOptionsProperty -> ()
color :: TableBorderOptionsProperty -> Maybe (Value Text)
style :: TableBorderOptionsProperty -> Maybe (Value Text)
thickness :: TableBorderOptionsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
color :: Maybe (Value Text)
style :: Maybe (Value Text)
thickness :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.TableBorderOptions",
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 -> 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
"Style" (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)
style,
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
"Thickness" (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)
thickness])}
instance JSON.ToJSON TableBorderOptionsProperty where
toJSON :: TableBorderOptionsProperty -> Value
toJSON TableBorderOptionsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: TableBorderOptionsProperty -> ()
color :: TableBorderOptionsProperty -> Maybe (Value Text)
style :: TableBorderOptionsProperty -> Maybe (Value Text)
thickness :: TableBorderOptionsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
color :: Maybe (Value Text)
style :: Maybe (Value Text)
thickness :: 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 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 -> 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
"Style" (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)
style,
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
"Thickness" (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)
thickness]))
instance Property "Color" TableBorderOptionsProperty where
type PropertyType "Color" TableBorderOptionsProperty = Value Prelude.Text
set :: PropertyType "Color" TableBorderOptionsProperty
-> TableBorderOptionsProperty -> TableBorderOptionsProperty
set PropertyType "Color" TableBorderOptionsProperty
newValue TableBorderOptionsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: TableBorderOptionsProperty -> ()
color :: TableBorderOptionsProperty -> Maybe (Value Text)
style :: TableBorderOptionsProperty -> Maybe (Value Text)
thickness :: TableBorderOptionsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
color :: Maybe (Value Text)
style :: Maybe (Value Text)
thickness :: Maybe (Value Double)
..}
= TableBorderOptionsProperty {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" TableBorderOptionsProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
style :: Maybe (Value Text)
thickness :: Maybe (Value Double)
haddock_workaround_ :: ()
style :: Maybe (Value Text)
thickness :: Maybe (Value Double)
..}
instance Property "Style" TableBorderOptionsProperty where
type PropertyType "Style" TableBorderOptionsProperty = Value Prelude.Text
set :: PropertyType "Style" TableBorderOptionsProperty
-> TableBorderOptionsProperty -> TableBorderOptionsProperty
set PropertyType "Style" TableBorderOptionsProperty
newValue TableBorderOptionsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: TableBorderOptionsProperty -> ()
color :: TableBorderOptionsProperty -> Maybe (Value Text)
style :: TableBorderOptionsProperty -> Maybe (Value Text)
thickness :: TableBorderOptionsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
color :: Maybe (Value Text)
style :: Maybe (Value Text)
thickness :: Maybe (Value Double)
..}
= TableBorderOptionsProperty {style :: Maybe (Value Text)
style = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Style" TableBorderOptionsProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
color :: Maybe (Value Text)
thickness :: Maybe (Value Double)
haddock_workaround_ :: ()
color :: Maybe (Value Text)
thickness :: Maybe (Value Double)
..}
instance Property "Thickness" TableBorderOptionsProperty where
type PropertyType "Thickness" TableBorderOptionsProperty = Value Prelude.Double
set :: PropertyType "Thickness" TableBorderOptionsProperty
-> TableBorderOptionsProperty -> TableBorderOptionsProperty
set PropertyType "Thickness" TableBorderOptionsProperty
newValue TableBorderOptionsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: TableBorderOptionsProperty -> ()
color :: TableBorderOptionsProperty -> Maybe (Value Text)
style :: TableBorderOptionsProperty -> Maybe (Value Text)
thickness :: TableBorderOptionsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
color :: Maybe (Value Text)
style :: Maybe (Value Text)
thickness :: Maybe (Value Double)
..}
= TableBorderOptionsProperty
{thickness :: Maybe (Value Double)
thickness = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Thickness" TableBorderOptionsProperty
Value Double
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
color :: Maybe (Value Text)
style :: Maybe (Value Text)
haddock_workaround_ :: ()
color :: Maybe (Value Text)
style :: Maybe (Value Text)
..}