module Stratosphere.QuickSight.Analysis.NegativeValueConfigurationProperty (
NegativeValueConfigurationProperty(..),
mkNegativeValueConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NegativeValueConfigurationProperty
=
NegativeValueConfigurationProperty {NegativeValueConfigurationProperty -> ()
haddock_workaround_ :: (),
NegativeValueConfigurationProperty -> Value Text
displayMode :: (Value Prelude.Text)}
deriving stock (NegativeValueConfigurationProperty
-> NegativeValueConfigurationProperty -> Bool
(NegativeValueConfigurationProperty
-> NegativeValueConfigurationProperty -> Bool)
-> (NegativeValueConfigurationProperty
-> NegativeValueConfigurationProperty -> Bool)
-> Eq NegativeValueConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NegativeValueConfigurationProperty
-> NegativeValueConfigurationProperty -> Bool
== :: NegativeValueConfigurationProperty
-> NegativeValueConfigurationProperty -> Bool
$c/= :: NegativeValueConfigurationProperty
-> NegativeValueConfigurationProperty -> Bool
/= :: NegativeValueConfigurationProperty
-> NegativeValueConfigurationProperty -> Bool
Prelude.Eq, Int -> NegativeValueConfigurationProperty -> ShowS
[NegativeValueConfigurationProperty] -> ShowS
NegativeValueConfigurationProperty -> String
(Int -> NegativeValueConfigurationProperty -> ShowS)
-> (NegativeValueConfigurationProperty -> String)
-> ([NegativeValueConfigurationProperty] -> ShowS)
-> Show NegativeValueConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NegativeValueConfigurationProperty -> ShowS
showsPrec :: Int -> NegativeValueConfigurationProperty -> ShowS
$cshow :: NegativeValueConfigurationProperty -> String
show :: NegativeValueConfigurationProperty -> String
$cshowList :: [NegativeValueConfigurationProperty] -> ShowS
showList :: [NegativeValueConfigurationProperty] -> ShowS
Prelude.Show)
mkNegativeValueConfigurationProperty ::
Value Prelude.Text -> NegativeValueConfigurationProperty
mkNegativeValueConfigurationProperty :: Value Text -> NegativeValueConfigurationProperty
mkNegativeValueConfigurationProperty Value Text
displayMode
= NegativeValueConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), displayMode :: Value Text
displayMode = Value Text
displayMode}
instance ToResourceProperties NegativeValueConfigurationProperty where
toResourceProperties :: NegativeValueConfigurationProperty -> ResourceProperties
toResourceProperties NegativeValueConfigurationProperty {()
Value Text
haddock_workaround_ :: NegativeValueConfigurationProperty -> ()
displayMode :: NegativeValueConfigurationProperty -> Value Text
haddock_workaround_ :: ()
displayMode :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.NegativeValueConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"DisplayMode" 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
displayMode]}
instance JSON.ToJSON NegativeValueConfigurationProperty where
toJSON :: NegativeValueConfigurationProperty -> Value
toJSON NegativeValueConfigurationProperty {()
Value Text
haddock_workaround_ :: NegativeValueConfigurationProperty -> ()
displayMode :: NegativeValueConfigurationProperty -> Value Text
haddock_workaround_ :: ()
displayMode :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"DisplayMode" 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
displayMode]
instance Property "DisplayMode" NegativeValueConfigurationProperty where
type PropertyType "DisplayMode" NegativeValueConfigurationProperty = Value Prelude.Text
set :: PropertyType "DisplayMode" NegativeValueConfigurationProperty
-> NegativeValueConfigurationProperty
-> NegativeValueConfigurationProperty
set PropertyType "DisplayMode" NegativeValueConfigurationProperty
newValue NegativeValueConfigurationProperty {()
Value Text
haddock_workaround_ :: NegativeValueConfigurationProperty -> ()
displayMode :: NegativeValueConfigurationProperty -> Value Text
haddock_workaround_ :: ()
displayMode :: Value Text
..}
= NegativeValueConfigurationProperty {displayMode :: Value Text
displayMode = PropertyType "DisplayMode" NegativeValueConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}