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