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