module Stratosphere.QuickSight.Topic.NegativeFormatProperty (
NegativeFormatProperty(..), mkNegativeFormatProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NegativeFormatProperty
=
NegativeFormatProperty {NegativeFormatProperty -> ()
haddock_workaround_ :: (),
NegativeFormatProperty -> Maybe (Value Text)
prefix :: (Prelude.Maybe (Value Prelude.Text)),
NegativeFormatProperty -> Maybe (Value Text)
suffix :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (NegativeFormatProperty -> NegativeFormatProperty -> Bool
(NegativeFormatProperty -> NegativeFormatProperty -> Bool)
-> (NegativeFormatProperty -> NegativeFormatProperty -> Bool)
-> Eq NegativeFormatProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NegativeFormatProperty -> NegativeFormatProperty -> Bool
== :: NegativeFormatProperty -> NegativeFormatProperty -> Bool
$c/= :: NegativeFormatProperty -> NegativeFormatProperty -> Bool
/= :: NegativeFormatProperty -> NegativeFormatProperty -> Bool
Prelude.Eq, Int -> NegativeFormatProperty -> ShowS
[NegativeFormatProperty] -> ShowS
NegativeFormatProperty -> String
(Int -> NegativeFormatProperty -> ShowS)
-> (NegativeFormatProperty -> String)
-> ([NegativeFormatProperty] -> ShowS)
-> Show NegativeFormatProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NegativeFormatProperty -> ShowS
showsPrec :: Int -> NegativeFormatProperty -> ShowS
$cshow :: NegativeFormatProperty -> String
show :: NegativeFormatProperty -> String
$cshowList :: [NegativeFormatProperty] -> ShowS
showList :: [NegativeFormatProperty] -> ShowS
Prelude.Show)
mkNegativeFormatProperty :: NegativeFormatProperty
mkNegativeFormatProperty :: NegativeFormatProperty
mkNegativeFormatProperty
= NegativeFormatProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), prefix :: Maybe (Value Text)
prefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
suffix :: Maybe (Value Text)
suffix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NegativeFormatProperty where
toResourceProperties :: NegativeFormatProperty -> ResourceProperties
toResourceProperties NegativeFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: NegativeFormatProperty -> ()
prefix :: NegativeFormatProperty -> Maybe (Value Text)
suffix :: NegativeFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Topic.NegativeFormat",
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 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
"Prefix" (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)
prefix,
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
"Suffix" (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)
suffix])}
instance JSON.ToJSON NegativeFormatProperty where
toJSON :: NegativeFormatProperty -> Value
toJSON NegativeFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: NegativeFormatProperty -> ()
prefix :: NegativeFormatProperty -> Maybe (Value Text)
suffix :: NegativeFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
suffix :: 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 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
"Prefix" (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)
prefix,
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
"Suffix" (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)
suffix]))
instance Property "Prefix" NegativeFormatProperty where
type PropertyType "Prefix" NegativeFormatProperty = Value Prelude.Text
set :: PropertyType "Prefix" NegativeFormatProperty
-> NegativeFormatProperty -> NegativeFormatProperty
set PropertyType "Prefix" NegativeFormatProperty
newValue NegativeFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: NegativeFormatProperty -> ()
prefix :: NegativeFormatProperty -> Maybe (Value Text)
suffix :: NegativeFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
= NegativeFormatProperty {prefix :: Maybe (Value Text)
prefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Prefix" NegativeFormatProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
suffix :: Maybe (Value Text)
haddock_workaround_ :: ()
suffix :: Maybe (Value Text)
..}
instance Property "Suffix" NegativeFormatProperty where
type PropertyType "Suffix" NegativeFormatProperty = Value Prelude.Text
set :: PropertyType "Suffix" NegativeFormatProperty
-> NegativeFormatProperty -> NegativeFormatProperty
set PropertyType "Suffix" NegativeFormatProperty
newValue NegativeFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: NegativeFormatProperty -> ()
prefix :: NegativeFormatProperty -> Maybe (Value Text)
suffix :: NegativeFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
= NegativeFormatProperty {suffix :: Maybe (Value Text)
suffix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Suffix" NegativeFormatProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
..}