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