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