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