module Stratosphere.QuickSight.Analysis.TableFieldCustomTextContentProperty (
module Exports, TableFieldCustomTextContentProperty(..),
mkTableFieldCustomTextContentProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.FontConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TableFieldCustomTextContentProperty
=
TableFieldCustomTextContentProperty {TableFieldCustomTextContentProperty -> ()
haddock_workaround_ :: (),
TableFieldCustomTextContentProperty -> FontConfigurationProperty
fontConfiguration :: FontConfigurationProperty,
TableFieldCustomTextContentProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty -> Bool
(TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty -> Bool)
-> (TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty -> Bool)
-> Eq TableFieldCustomTextContentProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty -> Bool
== :: TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty -> Bool
$c/= :: TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty -> Bool
/= :: TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty -> Bool
Prelude.Eq, Int -> TableFieldCustomTextContentProperty -> ShowS
[TableFieldCustomTextContentProperty] -> ShowS
TableFieldCustomTextContentProperty -> String
(Int -> TableFieldCustomTextContentProperty -> ShowS)
-> (TableFieldCustomTextContentProperty -> String)
-> ([TableFieldCustomTextContentProperty] -> ShowS)
-> Show TableFieldCustomTextContentProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableFieldCustomTextContentProperty -> ShowS
showsPrec :: Int -> TableFieldCustomTextContentProperty -> ShowS
$cshow :: TableFieldCustomTextContentProperty -> String
show :: TableFieldCustomTextContentProperty -> String
$cshowList :: [TableFieldCustomTextContentProperty] -> ShowS
showList :: [TableFieldCustomTextContentProperty] -> ShowS
Prelude.Show)
mkTableFieldCustomTextContentProperty ::
FontConfigurationProperty -> TableFieldCustomTextContentProperty
mkTableFieldCustomTextContentProperty :: FontConfigurationProperty -> TableFieldCustomTextContentProperty
mkTableFieldCustomTextContentProperty FontConfigurationProperty
fontConfiguration
= TableFieldCustomTextContentProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fontConfiguration :: FontConfigurationProperty
fontConfiguration = FontConfigurationProperty
fontConfiguration,
value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableFieldCustomTextContentProperty where
toResourceProperties :: TableFieldCustomTextContentProperty -> ResourceProperties
toResourceProperties TableFieldCustomTextContentProperty {Maybe (Value Text)
()
FontConfigurationProperty
haddock_workaround_ :: TableFieldCustomTextContentProperty -> ()
fontConfiguration :: TableFieldCustomTextContentProperty -> FontConfigurationProperty
value :: TableFieldCustomTextContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fontConfiguration :: FontConfigurationProperty
value :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.TableFieldCustomTextContent",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FontConfiguration" Key -> FontConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FontConfigurationProperty
fontConfiguration]
([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
"Value" (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)
value]))}
instance JSON.ToJSON TableFieldCustomTextContentProperty where
toJSON :: TableFieldCustomTextContentProperty -> Value
toJSON TableFieldCustomTextContentProperty {Maybe (Value Text)
()
FontConfigurationProperty
haddock_workaround_ :: TableFieldCustomTextContentProperty -> ()
fontConfiguration :: TableFieldCustomTextContentProperty -> FontConfigurationProperty
value :: TableFieldCustomTextContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fontConfiguration :: FontConfigurationProperty
value :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FontConfiguration" Key -> FontConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FontConfigurationProperty
fontConfiguration]
([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
"Value" (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)
value])))
instance Property "FontConfiguration" TableFieldCustomTextContentProperty where
type PropertyType "FontConfiguration" TableFieldCustomTextContentProperty = FontConfigurationProperty
set :: PropertyType
"FontConfiguration" TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty
set PropertyType
"FontConfiguration" TableFieldCustomTextContentProperty
newValue TableFieldCustomTextContentProperty {Maybe (Value Text)
()
FontConfigurationProperty
haddock_workaround_ :: TableFieldCustomTextContentProperty -> ()
fontConfiguration :: TableFieldCustomTextContentProperty -> FontConfigurationProperty
value :: TableFieldCustomTextContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fontConfiguration :: FontConfigurationProperty
value :: Maybe (Value Text)
..}
= TableFieldCustomTextContentProperty
{fontConfiguration :: FontConfigurationProperty
fontConfiguration = PropertyType
"FontConfiguration" TableFieldCustomTextContentProperty
FontConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
value :: Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
instance Property "Value" TableFieldCustomTextContentProperty where
type PropertyType "Value" TableFieldCustomTextContentProperty = Value Prelude.Text
set :: PropertyType "Value" TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty
-> TableFieldCustomTextContentProperty
set PropertyType "Value" TableFieldCustomTextContentProperty
newValue TableFieldCustomTextContentProperty {Maybe (Value Text)
()
FontConfigurationProperty
haddock_workaround_ :: TableFieldCustomTextContentProperty -> ()
fontConfiguration :: TableFieldCustomTextContentProperty -> FontConfigurationProperty
value :: TableFieldCustomTextContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fontConfiguration :: FontConfigurationProperty
value :: Maybe (Value Text)
..}
= TableFieldCustomTextContentProperty
{value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" TableFieldCustomTextContentProperty
Value Text
newValue, ()
FontConfigurationProperty
haddock_workaround_ :: ()
fontConfiguration :: FontConfigurationProperty
haddock_workaround_ :: ()
fontConfiguration :: FontConfigurationProperty
..}