module Stratosphere.QuickSight.Template.DecimalValueWhenUnsetConfigurationProperty (
        DecimalValueWhenUnsetConfigurationProperty(..),
        mkDecimalValueWhenUnsetConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DecimalValueWhenUnsetConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-decimalvaluewhenunsetconfiguration.html>
    DecimalValueWhenUnsetConfigurationProperty {DecimalValueWhenUnsetConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-decimalvaluewhenunsetconfiguration.html#cfn-quicksight-template-decimalvaluewhenunsetconfiguration-customvalue>
                                                DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Double)
customValue :: (Prelude.Maybe (Value Prelude.Double)),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-decimalvaluewhenunsetconfiguration.html#cfn-quicksight-template-decimalvaluewhenunsetconfiguration-valuewhenunsetoption>
                                                DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Text)
valueWhenUnsetOption :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DecimalValueWhenUnsetConfigurationProperty
-> DecimalValueWhenUnsetConfigurationProperty -> Bool
(DecimalValueWhenUnsetConfigurationProperty
 -> DecimalValueWhenUnsetConfigurationProperty -> Bool)
-> (DecimalValueWhenUnsetConfigurationProperty
    -> DecimalValueWhenUnsetConfigurationProperty -> Bool)
-> Eq DecimalValueWhenUnsetConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DecimalValueWhenUnsetConfigurationProperty
-> DecimalValueWhenUnsetConfigurationProperty -> Bool
== :: DecimalValueWhenUnsetConfigurationProperty
-> DecimalValueWhenUnsetConfigurationProperty -> Bool
$c/= :: DecimalValueWhenUnsetConfigurationProperty
-> DecimalValueWhenUnsetConfigurationProperty -> Bool
/= :: DecimalValueWhenUnsetConfigurationProperty
-> DecimalValueWhenUnsetConfigurationProperty -> Bool
Prelude.Eq, Int -> DecimalValueWhenUnsetConfigurationProperty -> ShowS
[DecimalValueWhenUnsetConfigurationProperty] -> ShowS
DecimalValueWhenUnsetConfigurationProperty -> String
(Int -> DecimalValueWhenUnsetConfigurationProperty -> ShowS)
-> (DecimalValueWhenUnsetConfigurationProperty -> String)
-> ([DecimalValueWhenUnsetConfigurationProperty] -> ShowS)
-> Show DecimalValueWhenUnsetConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DecimalValueWhenUnsetConfigurationProperty -> ShowS
showsPrec :: Int -> DecimalValueWhenUnsetConfigurationProperty -> ShowS
$cshow :: DecimalValueWhenUnsetConfigurationProperty -> String
show :: DecimalValueWhenUnsetConfigurationProperty -> String
$cshowList :: [DecimalValueWhenUnsetConfigurationProperty] -> ShowS
showList :: [DecimalValueWhenUnsetConfigurationProperty] -> ShowS
Prelude.Show)
mkDecimalValueWhenUnsetConfigurationProperty ::
  DecimalValueWhenUnsetConfigurationProperty
mkDecimalValueWhenUnsetConfigurationProperty :: DecimalValueWhenUnsetConfigurationProperty
mkDecimalValueWhenUnsetConfigurationProperty
  = DecimalValueWhenUnsetConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), customValue :: Maybe (Value Double)
customValue = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       valueWhenUnsetOption :: Maybe (Value Text)
valueWhenUnsetOption = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DecimalValueWhenUnsetConfigurationProperty where
  toResourceProperties :: DecimalValueWhenUnsetConfigurationProperty -> ResourceProperties
toResourceProperties
    DecimalValueWhenUnsetConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: DecimalValueWhenUnsetConfigurationProperty -> ()
customValue :: DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Double)
valueWhenUnsetOption :: DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customValue :: Maybe (Value Double)
valueWhenUnsetOption :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.DecimalValueWhenUnsetConfiguration",
         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 -> 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..=) Key
"CustomValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
customValue,
                            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..=) Key
"ValueWhenUnsetOption"
                              (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
valueWhenUnsetOption])}
instance JSON.ToJSON DecimalValueWhenUnsetConfigurationProperty where
  toJSON :: DecimalValueWhenUnsetConfigurationProperty -> Value
toJSON DecimalValueWhenUnsetConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: DecimalValueWhenUnsetConfigurationProperty -> ()
customValue :: DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Double)
valueWhenUnsetOption :: DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customValue :: Maybe (Value Double)
valueWhenUnsetOption :: Maybe (Value Text)
..}
    = [(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 -> 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..=) Key
"CustomValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
customValue,
               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..=) Key
"ValueWhenUnsetOption"
                 (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
valueWhenUnsetOption]))
instance Property "CustomValue" DecimalValueWhenUnsetConfigurationProperty where
  type PropertyType "CustomValue" DecimalValueWhenUnsetConfigurationProperty = Value Prelude.Double
  set :: PropertyType
  "CustomValue" DecimalValueWhenUnsetConfigurationProperty
-> DecimalValueWhenUnsetConfigurationProperty
-> DecimalValueWhenUnsetConfigurationProperty
set PropertyType
  "CustomValue" DecimalValueWhenUnsetConfigurationProperty
newValue DecimalValueWhenUnsetConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: DecimalValueWhenUnsetConfigurationProperty -> ()
customValue :: DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Double)
valueWhenUnsetOption :: DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customValue :: Maybe (Value Double)
valueWhenUnsetOption :: Maybe (Value Text)
..}
    = DecimalValueWhenUnsetConfigurationProperty
        {customValue :: Maybe (Value Double)
customValue = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "CustomValue" DecimalValueWhenUnsetConfigurationProperty
Value Double
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
valueWhenUnsetOption :: Maybe (Value Text)
haddock_workaround_ :: ()
valueWhenUnsetOption :: Maybe (Value Text)
..}
instance Property "ValueWhenUnsetOption" DecimalValueWhenUnsetConfigurationProperty where
  type PropertyType "ValueWhenUnsetOption" DecimalValueWhenUnsetConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "ValueWhenUnsetOption" DecimalValueWhenUnsetConfigurationProperty
-> DecimalValueWhenUnsetConfigurationProperty
-> DecimalValueWhenUnsetConfigurationProperty
set PropertyType
  "ValueWhenUnsetOption" DecimalValueWhenUnsetConfigurationProperty
newValue DecimalValueWhenUnsetConfigurationProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: DecimalValueWhenUnsetConfigurationProperty -> ()
customValue :: DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Double)
valueWhenUnsetOption :: DecimalValueWhenUnsetConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customValue :: Maybe (Value Double)
valueWhenUnsetOption :: Maybe (Value Text)
..}
    = DecimalValueWhenUnsetConfigurationProperty
        {valueWhenUnsetOption :: Maybe (Value Text)
valueWhenUnsetOption = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ValueWhenUnsetOption" DecimalValueWhenUnsetConfigurationProperty
Value Text
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
customValue :: Maybe (Value Double)
haddock_workaround_ :: ()
customValue :: Maybe (Value Double)
..}