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