module Stratosphere.QuickSight.Template.ColumnGroupSchemaProperty (
        module Exports, ColumnGroupSchemaProperty(..),
        mkColumnGroupSchemaProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.ColumnGroupColumnSchemaProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ColumnGroupSchemaProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-columngroupschema.html>
    ColumnGroupSchemaProperty {ColumnGroupSchemaProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-columngroupschema.html#cfn-quicksight-template-columngroupschema-columngroupcolumnschemalist>
                               ColumnGroupSchemaProperty
-> Maybe [ColumnGroupColumnSchemaProperty]
columnGroupColumnSchemaList :: (Prelude.Maybe [ColumnGroupColumnSchemaProperty]),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-columngroupschema.html#cfn-quicksight-template-columngroupschema-name>
                               ColumnGroupSchemaProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ColumnGroupSchemaProperty -> ColumnGroupSchemaProperty -> Bool
(ColumnGroupSchemaProperty -> ColumnGroupSchemaProperty -> Bool)
-> (ColumnGroupSchemaProperty -> ColumnGroupSchemaProperty -> Bool)
-> Eq ColumnGroupSchemaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ColumnGroupSchemaProperty -> ColumnGroupSchemaProperty -> Bool
== :: ColumnGroupSchemaProperty -> ColumnGroupSchemaProperty -> Bool
$c/= :: ColumnGroupSchemaProperty -> ColumnGroupSchemaProperty -> Bool
/= :: ColumnGroupSchemaProperty -> ColumnGroupSchemaProperty -> Bool
Prelude.Eq, Int -> ColumnGroupSchemaProperty -> ShowS
[ColumnGroupSchemaProperty] -> ShowS
ColumnGroupSchemaProperty -> String
(Int -> ColumnGroupSchemaProperty -> ShowS)
-> (ColumnGroupSchemaProperty -> String)
-> ([ColumnGroupSchemaProperty] -> ShowS)
-> Show ColumnGroupSchemaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ColumnGroupSchemaProperty -> ShowS
showsPrec :: Int -> ColumnGroupSchemaProperty -> ShowS
$cshow :: ColumnGroupSchemaProperty -> String
show :: ColumnGroupSchemaProperty -> String
$cshowList :: [ColumnGroupSchemaProperty] -> ShowS
showList :: [ColumnGroupSchemaProperty] -> ShowS
Prelude.Show)
mkColumnGroupSchemaProperty :: ColumnGroupSchemaProperty
mkColumnGroupSchemaProperty :: ColumnGroupSchemaProperty
mkColumnGroupSchemaProperty
  = ColumnGroupSchemaProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       columnGroupColumnSchemaList :: Maybe [ColumnGroupColumnSchemaProperty]
columnGroupColumnSchemaList = Maybe [ColumnGroupColumnSchemaProperty]
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ColumnGroupSchemaProperty where
  toResourceProperties :: ColumnGroupSchemaProperty -> ResourceProperties
toResourceProperties ColumnGroupSchemaProperty {Maybe [ColumnGroupColumnSchemaProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ColumnGroupSchemaProperty -> ()
columnGroupColumnSchemaList :: ColumnGroupSchemaProperty
-> Maybe [ColumnGroupColumnSchemaProperty]
name :: ColumnGroupSchemaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnGroupColumnSchemaList :: Maybe [ColumnGroupColumnSchemaProperty]
name :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.ColumnGroupSchema",
         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 -> [ColumnGroupColumnSchemaProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnGroupColumnSchemaList"
                              ([ColumnGroupColumnSchemaProperty] -> (Key, Value))
-> Maybe [ColumnGroupColumnSchemaProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnGroupColumnSchemaProperty]
columnGroupColumnSchemaList,
                            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 ColumnGroupSchemaProperty where
  toJSON :: ColumnGroupSchemaProperty -> Value
toJSON ColumnGroupSchemaProperty {Maybe [ColumnGroupColumnSchemaProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ColumnGroupSchemaProperty -> ()
columnGroupColumnSchemaList :: ColumnGroupSchemaProperty
-> Maybe [ColumnGroupColumnSchemaProperty]
name :: ColumnGroupSchemaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnGroupColumnSchemaList :: Maybe [ColumnGroupColumnSchemaProperty]
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 -> [ColumnGroupColumnSchemaProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnGroupColumnSchemaList"
                 ([ColumnGroupColumnSchemaProperty] -> (Key, Value))
-> Maybe [ColumnGroupColumnSchemaProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnGroupColumnSchemaProperty]
columnGroupColumnSchemaList,
               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 "ColumnGroupColumnSchemaList" ColumnGroupSchemaProperty where
  type PropertyType "ColumnGroupColumnSchemaList" ColumnGroupSchemaProperty = [ColumnGroupColumnSchemaProperty]
  set :: PropertyType
  "ColumnGroupColumnSchemaList" ColumnGroupSchemaProperty
-> ColumnGroupSchemaProperty -> ColumnGroupSchemaProperty
set PropertyType
  "ColumnGroupColumnSchemaList" ColumnGroupSchemaProperty
newValue ColumnGroupSchemaProperty {Maybe [ColumnGroupColumnSchemaProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ColumnGroupSchemaProperty -> ()
columnGroupColumnSchemaList :: ColumnGroupSchemaProperty
-> Maybe [ColumnGroupColumnSchemaProperty]
name :: ColumnGroupSchemaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnGroupColumnSchemaList :: Maybe [ColumnGroupColumnSchemaProperty]
name :: Maybe (Value Text)
..}
    = ColumnGroupSchemaProperty
        {columnGroupColumnSchemaList :: Maybe [ColumnGroupColumnSchemaProperty]
columnGroupColumnSchemaList = [ColumnGroupColumnSchemaProperty]
-> Maybe [ColumnGroupColumnSchemaProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ColumnGroupColumnSchemaProperty]
PropertyType
  "ColumnGroupColumnSchemaList" ColumnGroupSchemaProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
..}
instance Property "Name" ColumnGroupSchemaProperty where
  type PropertyType "Name" ColumnGroupSchemaProperty = Value Prelude.Text
  set :: PropertyType "Name" ColumnGroupSchemaProperty
-> ColumnGroupSchemaProperty -> ColumnGroupSchemaProperty
set PropertyType "Name" ColumnGroupSchemaProperty
newValue ColumnGroupSchemaProperty {Maybe [ColumnGroupColumnSchemaProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ColumnGroupSchemaProperty -> ()
columnGroupColumnSchemaList :: ColumnGroupSchemaProperty
-> Maybe [ColumnGroupColumnSchemaProperty]
name :: ColumnGroupSchemaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnGroupColumnSchemaList :: Maybe [ColumnGroupColumnSchemaProperty]
name :: Maybe (Value Text)
..}
    = ColumnGroupSchemaProperty {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" ColumnGroupSchemaProperty
Value Text
newValue, Maybe [ColumnGroupColumnSchemaProperty]
()
haddock_workaround_ :: ()
columnGroupColumnSchemaList :: Maybe [ColumnGroupColumnSchemaProperty]
haddock_workaround_ :: ()
columnGroupColumnSchemaList :: Maybe [ColumnGroupColumnSchemaProperty]
..}