module Stratosphere.QuickSight.Analysis.WhatIfPointScenarioProperty (
        WhatIfPointScenarioProperty(..), mkWhatIfPointScenarioProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WhatIfPointScenarioProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-whatifpointscenario.html>
    WhatIfPointScenarioProperty {WhatIfPointScenarioProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-whatifpointscenario.html#cfn-quicksight-analysis-whatifpointscenario-date>
                                 WhatIfPointScenarioProperty -> Value Text
date :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-whatifpointscenario.html#cfn-quicksight-analysis-whatifpointscenario-value>
                                 WhatIfPointScenarioProperty -> Value Double
value :: (Value Prelude.Double)}
  deriving stock (WhatIfPointScenarioProperty -> WhatIfPointScenarioProperty -> Bool
(WhatIfPointScenarioProperty
 -> WhatIfPointScenarioProperty -> Bool)
-> (WhatIfPointScenarioProperty
    -> WhatIfPointScenarioProperty -> Bool)
-> Eq WhatIfPointScenarioProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WhatIfPointScenarioProperty -> WhatIfPointScenarioProperty -> Bool
== :: WhatIfPointScenarioProperty -> WhatIfPointScenarioProperty -> Bool
$c/= :: WhatIfPointScenarioProperty -> WhatIfPointScenarioProperty -> Bool
/= :: WhatIfPointScenarioProperty -> WhatIfPointScenarioProperty -> Bool
Prelude.Eq, Int -> WhatIfPointScenarioProperty -> ShowS
[WhatIfPointScenarioProperty] -> ShowS
WhatIfPointScenarioProperty -> String
(Int -> WhatIfPointScenarioProperty -> ShowS)
-> (WhatIfPointScenarioProperty -> String)
-> ([WhatIfPointScenarioProperty] -> ShowS)
-> Show WhatIfPointScenarioProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WhatIfPointScenarioProperty -> ShowS
showsPrec :: Int -> WhatIfPointScenarioProperty -> ShowS
$cshow :: WhatIfPointScenarioProperty -> String
show :: WhatIfPointScenarioProperty -> String
$cshowList :: [WhatIfPointScenarioProperty] -> ShowS
showList :: [WhatIfPointScenarioProperty] -> ShowS
Prelude.Show)
mkWhatIfPointScenarioProperty ::
  Value Prelude.Text
  -> Value Prelude.Double -> WhatIfPointScenarioProperty
mkWhatIfPointScenarioProperty :: Value Text -> Value Double -> WhatIfPointScenarioProperty
mkWhatIfPointScenarioProperty Value Text
date Value Double
value
  = WhatIfPointScenarioProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), date :: Value Text
date = Value Text
date, value :: Value Double
value = Value Double
value}
instance ToResourceProperties WhatIfPointScenarioProperty where
  toResourceProperties :: WhatIfPointScenarioProperty -> ResourceProperties
toResourceProperties WhatIfPointScenarioProperty {()
Value Double
Value Text
haddock_workaround_ :: WhatIfPointScenarioProperty -> ()
date :: WhatIfPointScenarioProperty -> Value Text
value :: WhatIfPointScenarioProperty -> Value Double
haddock_workaround_ :: ()
date :: Value Text
value :: Value Double
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.WhatIfPointScenario",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Date" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
date, Key
"Value" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
value]}
instance JSON.ToJSON WhatIfPointScenarioProperty where
  toJSON :: WhatIfPointScenarioProperty -> Value
toJSON WhatIfPointScenarioProperty {()
Value Double
Value Text
haddock_workaround_ :: WhatIfPointScenarioProperty -> ()
date :: WhatIfPointScenarioProperty -> Value Text
value :: WhatIfPointScenarioProperty -> Value Double
haddock_workaround_ :: ()
date :: Value Text
value :: Value Double
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Date" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
date, Key
"Value" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
value]
instance Property "Date" WhatIfPointScenarioProperty where
  type PropertyType "Date" WhatIfPointScenarioProperty = Value Prelude.Text
  set :: PropertyType "Date" WhatIfPointScenarioProperty
-> WhatIfPointScenarioProperty -> WhatIfPointScenarioProperty
set PropertyType "Date" WhatIfPointScenarioProperty
newValue WhatIfPointScenarioProperty {()
Value Double
Value Text
haddock_workaround_ :: WhatIfPointScenarioProperty -> ()
date :: WhatIfPointScenarioProperty -> Value Text
value :: WhatIfPointScenarioProperty -> Value Double
haddock_workaround_ :: ()
date :: Value Text
value :: Value Double
..}
    = WhatIfPointScenarioProperty {date :: Value Text
date = PropertyType "Date" WhatIfPointScenarioProperty
Value Text
newValue, ()
Value Double
haddock_workaround_ :: ()
value :: Value Double
haddock_workaround_ :: ()
value :: Value Double
..}
instance Property "Value" WhatIfPointScenarioProperty where
  type PropertyType "Value" WhatIfPointScenarioProperty = Value Prelude.Double
  set :: PropertyType "Value" WhatIfPointScenarioProperty
-> WhatIfPointScenarioProperty -> WhatIfPointScenarioProperty
set PropertyType "Value" WhatIfPointScenarioProperty
newValue WhatIfPointScenarioProperty {()
Value Double
Value Text
haddock_workaround_ :: WhatIfPointScenarioProperty -> ()
date :: WhatIfPointScenarioProperty -> Value Text
value :: WhatIfPointScenarioProperty -> Value Double
haddock_workaround_ :: ()
date :: Value Text
value :: Value Double
..}
    = WhatIfPointScenarioProperty {value :: Value Double
value = PropertyType "Value" WhatIfPointScenarioProperty
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
date :: Value Text
haddock_workaround_ :: ()
date :: Value Text
..}