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