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