module Stratosphere.QuickSight.Topic.TopicNumericRangeFilterProperty (
module Exports, TopicNumericRangeFilterProperty(..),
mkTopicNumericRangeFilterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Topic.TopicRangeFilterConstantProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TopicNumericRangeFilterProperty
=
TopicNumericRangeFilterProperty {TopicNumericRangeFilterProperty -> ()
haddock_workaround_ :: (),
TopicNumericRangeFilterProperty -> Maybe (Value Text)
aggregation :: (Prelude.Maybe (Value Prelude.Text)),
TopicNumericRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
constant :: (Prelude.Maybe TopicRangeFilterConstantProperty),
TopicNumericRangeFilterProperty -> Maybe (Value Bool)
inclusive :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty -> Bool
(TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty -> Bool)
-> (TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty -> Bool)
-> Eq TopicNumericRangeFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty -> Bool
== :: TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty -> Bool
$c/= :: TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty -> Bool
/= :: TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty -> Bool
Prelude.Eq, Int -> TopicNumericRangeFilterProperty -> ShowS
[TopicNumericRangeFilterProperty] -> ShowS
TopicNumericRangeFilterProperty -> String
(Int -> TopicNumericRangeFilterProperty -> ShowS)
-> (TopicNumericRangeFilterProperty -> String)
-> ([TopicNumericRangeFilterProperty] -> ShowS)
-> Show TopicNumericRangeFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TopicNumericRangeFilterProperty -> ShowS
showsPrec :: Int -> TopicNumericRangeFilterProperty -> ShowS
$cshow :: TopicNumericRangeFilterProperty -> String
show :: TopicNumericRangeFilterProperty -> String
$cshowList :: [TopicNumericRangeFilterProperty] -> ShowS
showList :: [TopicNumericRangeFilterProperty] -> ShowS
Prelude.Show)
mkTopicNumericRangeFilterProperty ::
TopicNumericRangeFilterProperty
mkTopicNumericRangeFilterProperty :: TopicNumericRangeFilterProperty
mkTopicNumericRangeFilterProperty
= TopicNumericRangeFilterProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), aggregation :: Maybe (Value Text)
aggregation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
constant :: Maybe TopicRangeFilterConstantProperty
constant = Maybe TopicRangeFilterConstantProperty
forall a. Maybe a
Prelude.Nothing, inclusive :: Maybe (Value Bool)
inclusive = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TopicNumericRangeFilterProperty where
toResourceProperties :: TopicNumericRangeFilterProperty -> ResourceProperties
toResourceProperties TopicNumericRangeFilterProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: TopicNumericRangeFilterProperty -> ()
aggregation :: TopicNumericRangeFilterProperty -> Maybe (Value Text)
constant :: TopicNumericRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
inclusive :: TopicNumericRangeFilterProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregation :: Maybe (Value Text)
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Topic.TopicNumericRangeFilter",
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
"Aggregation" (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)
aggregation,
Key -> TopicRangeFilterConstantProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Constant" (TopicRangeFilterConstantProperty -> (Key, Value))
-> Maybe TopicRangeFilterConstantProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TopicRangeFilterConstantProperty
constant,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Inclusive" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
inclusive])}
instance JSON.ToJSON TopicNumericRangeFilterProperty where
toJSON :: TopicNumericRangeFilterProperty -> Value
toJSON TopicNumericRangeFilterProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: TopicNumericRangeFilterProperty -> ()
aggregation :: TopicNumericRangeFilterProperty -> Maybe (Value Text)
constant :: TopicNumericRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
inclusive :: TopicNumericRangeFilterProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregation :: Maybe (Value Text)
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
..}
= [(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
"Aggregation" (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)
aggregation,
Key -> TopicRangeFilterConstantProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Constant" (TopicRangeFilterConstantProperty -> (Key, Value))
-> Maybe TopicRangeFilterConstantProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TopicRangeFilterConstantProperty
constant,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Inclusive" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
inclusive]))
instance Property "Aggregation" TopicNumericRangeFilterProperty where
type PropertyType "Aggregation" TopicNumericRangeFilterProperty = Value Prelude.Text
set :: PropertyType "Aggregation" TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty
set PropertyType "Aggregation" TopicNumericRangeFilterProperty
newValue TopicNumericRangeFilterProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: TopicNumericRangeFilterProperty -> ()
aggregation :: TopicNumericRangeFilterProperty -> Maybe (Value Text)
constant :: TopicNumericRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
inclusive :: TopicNumericRangeFilterProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregation :: Maybe (Value Text)
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
..}
= TopicNumericRangeFilterProperty
{aggregation :: Maybe (Value Text)
aggregation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Aggregation" TopicNumericRangeFilterProperty
Value Text
newValue, Maybe (Value Bool)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: ()
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
haddock_workaround_ :: ()
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
..}
instance Property "Constant" TopicNumericRangeFilterProperty where
type PropertyType "Constant" TopicNumericRangeFilterProperty = TopicRangeFilterConstantProperty
set :: PropertyType "Constant" TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty
set PropertyType "Constant" TopicNumericRangeFilterProperty
newValue TopicNumericRangeFilterProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: TopicNumericRangeFilterProperty -> ()
aggregation :: TopicNumericRangeFilterProperty -> Maybe (Value Text)
constant :: TopicNumericRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
inclusive :: TopicNumericRangeFilterProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregation :: Maybe (Value Text)
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
..}
= TopicNumericRangeFilterProperty
{constant :: Maybe TopicRangeFilterConstantProperty
constant = TopicRangeFilterConstantProperty
-> Maybe TopicRangeFilterConstantProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Constant" TopicNumericRangeFilterProperty
TopicRangeFilterConstantProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
aggregation :: Maybe (Value Text)
inclusive :: Maybe (Value Bool)
haddock_workaround_ :: ()
aggregation :: Maybe (Value Text)
inclusive :: Maybe (Value Bool)
..}
instance Property "Inclusive" TopicNumericRangeFilterProperty where
type PropertyType "Inclusive" TopicNumericRangeFilterProperty = Value Prelude.Bool
set :: PropertyType "Inclusive" TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty
-> TopicNumericRangeFilterProperty
set PropertyType "Inclusive" TopicNumericRangeFilterProperty
newValue TopicNumericRangeFilterProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: TopicNumericRangeFilterProperty -> ()
aggregation :: TopicNumericRangeFilterProperty -> Maybe (Value Text)
constant :: TopicNumericRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
inclusive :: TopicNumericRangeFilterProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
aggregation :: Maybe (Value Text)
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
..}
= TopicNumericRangeFilterProperty
{inclusive :: Maybe (Value Bool)
inclusive = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Inclusive" TopicNumericRangeFilterProperty
Value Bool
newValue, Maybe (Value Text)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: ()
aggregation :: Maybe (Value Text)
constant :: Maybe TopicRangeFilterConstantProperty
haddock_workaround_ :: ()
aggregation :: Maybe (Value Text)
constant :: Maybe TopicRangeFilterConstantProperty
..}