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