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