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