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