module Stratosphere.QuickSight.Analysis.TableFieldLinkContentConfigurationProperty (
module Exports, TableFieldLinkContentConfigurationProperty(..),
mkTableFieldLinkContentConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.TableFieldCustomIconContentProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.TableFieldCustomTextContentProperty as Exports
import Stratosphere.ResourceProperties
data TableFieldLinkContentConfigurationProperty
=
TableFieldLinkContentConfigurationProperty {TableFieldLinkContentConfigurationProperty -> ()
haddock_workaround_ :: (),
TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomIconContentProperty
customIconContent :: (Prelude.Maybe TableFieldCustomIconContentProperty),
TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomTextContentProperty
customTextContent :: (Prelude.Maybe TableFieldCustomTextContentProperty)}
deriving stock (TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty -> Bool
(TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty -> Bool)
-> (TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty -> Bool)
-> Eq TableFieldLinkContentConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty -> Bool
== :: TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty -> Bool
$c/= :: TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty -> Bool
/= :: TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty -> Bool
Prelude.Eq, Int -> TableFieldLinkContentConfigurationProperty -> ShowS
[TableFieldLinkContentConfigurationProperty] -> ShowS
TableFieldLinkContentConfigurationProperty -> String
(Int -> TableFieldLinkContentConfigurationProperty -> ShowS)
-> (TableFieldLinkContentConfigurationProperty -> String)
-> ([TableFieldLinkContentConfigurationProperty] -> ShowS)
-> Show TableFieldLinkContentConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableFieldLinkContentConfigurationProperty -> ShowS
showsPrec :: Int -> TableFieldLinkContentConfigurationProperty -> ShowS
$cshow :: TableFieldLinkContentConfigurationProperty -> String
show :: TableFieldLinkContentConfigurationProperty -> String
$cshowList :: [TableFieldLinkContentConfigurationProperty] -> ShowS
showList :: [TableFieldLinkContentConfigurationProperty] -> ShowS
Prelude.Show)
mkTableFieldLinkContentConfigurationProperty ::
TableFieldLinkContentConfigurationProperty
mkTableFieldLinkContentConfigurationProperty :: TableFieldLinkContentConfigurationProperty
mkTableFieldLinkContentConfigurationProperty
= TableFieldLinkContentConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), customIconContent :: Maybe TableFieldCustomIconContentProperty
customIconContent = Maybe TableFieldCustomIconContentProperty
forall a. Maybe a
Prelude.Nothing,
customTextContent :: Maybe TableFieldCustomTextContentProperty
customTextContent = Maybe TableFieldCustomTextContentProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableFieldLinkContentConfigurationProperty where
toResourceProperties :: TableFieldLinkContentConfigurationProperty -> ResourceProperties
toResourceProperties
TableFieldLinkContentConfigurationProperty {Maybe TableFieldCustomIconContentProperty
Maybe TableFieldCustomTextContentProperty
()
haddock_workaround_ :: TableFieldLinkContentConfigurationProperty -> ()
customIconContent :: TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomIconContentProperty
customTextContent :: TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomTextContentProperty
haddock_workaround_ :: ()
customIconContent :: Maybe TableFieldCustomIconContentProperty
customTextContent :: Maybe TableFieldCustomTextContentProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.TableFieldLinkContentConfiguration",
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 -> TableFieldCustomIconContentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomIconContent" (TableFieldCustomIconContentProperty -> (Key, Value))
-> Maybe TableFieldCustomIconContentProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldCustomIconContentProperty
customIconContent,
Key -> TableFieldCustomTextContentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomTextContent" (TableFieldCustomTextContentProperty -> (Key, Value))
-> Maybe TableFieldCustomTextContentProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldCustomTextContentProperty
customTextContent])}
instance JSON.ToJSON TableFieldLinkContentConfigurationProperty where
toJSON :: TableFieldLinkContentConfigurationProperty -> Value
toJSON TableFieldLinkContentConfigurationProperty {Maybe TableFieldCustomIconContentProperty
Maybe TableFieldCustomTextContentProperty
()
haddock_workaround_ :: TableFieldLinkContentConfigurationProperty -> ()
customIconContent :: TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomIconContentProperty
customTextContent :: TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomTextContentProperty
haddock_workaround_ :: ()
customIconContent :: Maybe TableFieldCustomIconContentProperty
customTextContent :: Maybe TableFieldCustomTextContentProperty
..}
= [(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 -> TableFieldCustomIconContentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomIconContent" (TableFieldCustomIconContentProperty -> (Key, Value))
-> Maybe TableFieldCustomIconContentProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldCustomIconContentProperty
customIconContent,
Key -> TableFieldCustomTextContentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomTextContent" (TableFieldCustomTextContentProperty -> (Key, Value))
-> Maybe TableFieldCustomTextContentProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableFieldCustomTextContentProperty
customTextContent]))
instance Property "CustomIconContent" TableFieldLinkContentConfigurationProperty where
type PropertyType "CustomIconContent" TableFieldLinkContentConfigurationProperty = TableFieldCustomIconContentProperty
set :: PropertyType
"CustomIconContent" TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty
set PropertyType
"CustomIconContent" TableFieldLinkContentConfigurationProperty
newValue TableFieldLinkContentConfigurationProperty {Maybe TableFieldCustomIconContentProperty
Maybe TableFieldCustomTextContentProperty
()
haddock_workaround_ :: TableFieldLinkContentConfigurationProperty -> ()
customIconContent :: TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomIconContentProperty
customTextContent :: TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomTextContentProperty
haddock_workaround_ :: ()
customIconContent :: Maybe TableFieldCustomIconContentProperty
customTextContent :: Maybe TableFieldCustomTextContentProperty
..}
= TableFieldLinkContentConfigurationProperty
{customIconContent :: Maybe TableFieldCustomIconContentProperty
customIconContent = TableFieldCustomIconContentProperty
-> Maybe TableFieldCustomIconContentProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CustomIconContent" TableFieldLinkContentConfigurationProperty
TableFieldCustomIconContentProperty
newValue, Maybe TableFieldCustomTextContentProperty
()
haddock_workaround_ :: ()
customTextContent :: Maybe TableFieldCustomTextContentProperty
haddock_workaround_ :: ()
customTextContent :: Maybe TableFieldCustomTextContentProperty
..}
instance Property "CustomTextContent" TableFieldLinkContentConfigurationProperty where
type PropertyType "CustomTextContent" TableFieldLinkContentConfigurationProperty = TableFieldCustomTextContentProperty
set :: PropertyType
"CustomTextContent" TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty
-> TableFieldLinkContentConfigurationProperty
set PropertyType
"CustomTextContent" TableFieldLinkContentConfigurationProperty
newValue TableFieldLinkContentConfigurationProperty {Maybe TableFieldCustomIconContentProperty
Maybe TableFieldCustomTextContentProperty
()
haddock_workaround_ :: TableFieldLinkContentConfigurationProperty -> ()
customIconContent :: TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomIconContentProperty
customTextContent :: TableFieldLinkContentConfigurationProperty
-> Maybe TableFieldCustomTextContentProperty
haddock_workaround_ :: ()
customIconContent :: Maybe TableFieldCustomIconContentProperty
customTextContent :: Maybe TableFieldCustomTextContentProperty
..}
= TableFieldLinkContentConfigurationProperty
{customTextContent :: Maybe TableFieldCustomTextContentProperty
customTextContent = TableFieldCustomTextContentProperty
-> Maybe TableFieldCustomTextContentProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CustomTextContent" TableFieldLinkContentConfigurationProperty
TableFieldCustomTextContentProperty
newValue, Maybe TableFieldCustomIconContentProperty
()
haddock_workaround_ :: ()
customIconContent :: Maybe TableFieldCustomIconContentProperty
haddock_workaround_ :: ()
customIconContent :: Maybe TableFieldCustomIconContentProperty
..}