module Stratosphere.QuickSight.Analysis.WaterfallChartGroupColorConfigurationProperty ( WaterfallChartGroupColorConfigurationProperty(..), mkWaterfallChartGroupColorConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data WaterfallChartGroupColorConfigurationProperty = -- | See: WaterfallChartGroupColorConfigurationProperty {haddock_workaround_ :: (), -- | See: negativeBarColor :: (Prelude.Maybe (Value Prelude.Text)), -- | See: positiveBarColor :: (Prelude.Maybe (Value Prelude.Text)), -- | See: totalBarColor :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkWaterfallChartGroupColorConfigurationProperty :: WaterfallChartGroupColorConfigurationProperty mkWaterfallChartGroupColorConfigurationProperty = WaterfallChartGroupColorConfigurationProperty {haddock_workaround_ = (), negativeBarColor = Prelude.Nothing, positiveBarColor = Prelude.Nothing, totalBarColor = Prelude.Nothing} instance ToResourceProperties WaterfallChartGroupColorConfigurationProperty where toResourceProperties WaterfallChartGroupColorConfigurationProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Analysis.WaterfallChartGroupColorConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "NegativeBarColor" Prelude.<$> negativeBarColor, (JSON..=) "PositiveBarColor" Prelude.<$> positiveBarColor, (JSON..=) "TotalBarColor" Prelude.<$> totalBarColor])} instance JSON.ToJSON WaterfallChartGroupColorConfigurationProperty where toJSON WaterfallChartGroupColorConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "NegativeBarColor" Prelude.<$> negativeBarColor, (JSON..=) "PositiveBarColor" Prelude.<$> positiveBarColor, (JSON..=) "TotalBarColor" Prelude.<$> totalBarColor])) instance Property "NegativeBarColor" WaterfallChartGroupColorConfigurationProperty where type PropertyType "NegativeBarColor" WaterfallChartGroupColorConfigurationProperty = Value Prelude.Text set newValue WaterfallChartGroupColorConfigurationProperty {..} = WaterfallChartGroupColorConfigurationProperty {negativeBarColor = Prelude.pure newValue, ..} instance Property "PositiveBarColor" WaterfallChartGroupColorConfigurationProperty where type PropertyType "PositiveBarColor" WaterfallChartGroupColorConfigurationProperty = Value Prelude.Text set newValue WaterfallChartGroupColorConfigurationProperty {..} = WaterfallChartGroupColorConfigurationProperty {positiveBarColor = Prelude.pure newValue, ..} instance Property "TotalBarColor" WaterfallChartGroupColorConfigurationProperty where type PropertyType "TotalBarColor" WaterfallChartGroupColorConfigurationProperty = Value Prelude.Text set newValue WaterfallChartGroupColorConfigurationProperty {..} = WaterfallChartGroupColorConfigurationProperty {totalBarColor = Prelude.pure newValue, ..}