module Stratosphere.QuickSight.Topic.TopicDateRangeFilterProperty (
module Exports, TopicDateRangeFilterProperty(..),
mkTopicDateRangeFilterProperty
) 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 TopicDateRangeFilterProperty
=
TopicDateRangeFilterProperty {TopicDateRangeFilterProperty -> ()
haddock_workaround_ :: (),
TopicDateRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
constant :: (Prelude.Maybe TopicRangeFilterConstantProperty),
TopicDateRangeFilterProperty -> Maybe (Value Bool)
inclusive :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (TopicDateRangeFilterProperty
-> TopicDateRangeFilterProperty -> Bool
(TopicDateRangeFilterProperty
-> TopicDateRangeFilterProperty -> Bool)
-> (TopicDateRangeFilterProperty
-> TopicDateRangeFilterProperty -> Bool)
-> Eq TopicDateRangeFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TopicDateRangeFilterProperty
-> TopicDateRangeFilterProperty -> Bool
== :: TopicDateRangeFilterProperty
-> TopicDateRangeFilterProperty -> Bool
$c/= :: TopicDateRangeFilterProperty
-> TopicDateRangeFilterProperty -> Bool
/= :: TopicDateRangeFilterProperty
-> TopicDateRangeFilterProperty -> Bool
Prelude.Eq, Int -> TopicDateRangeFilterProperty -> ShowS
[TopicDateRangeFilterProperty] -> ShowS
TopicDateRangeFilterProperty -> String
(Int -> TopicDateRangeFilterProperty -> ShowS)
-> (TopicDateRangeFilterProperty -> String)
-> ([TopicDateRangeFilterProperty] -> ShowS)
-> Show TopicDateRangeFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TopicDateRangeFilterProperty -> ShowS
showsPrec :: Int -> TopicDateRangeFilterProperty -> ShowS
$cshow :: TopicDateRangeFilterProperty -> String
show :: TopicDateRangeFilterProperty -> String
$cshowList :: [TopicDateRangeFilterProperty] -> ShowS
showList :: [TopicDateRangeFilterProperty] -> ShowS
Prelude.Show)
mkTopicDateRangeFilterProperty :: TopicDateRangeFilterProperty
mkTopicDateRangeFilterProperty :: TopicDateRangeFilterProperty
mkTopicDateRangeFilterProperty
= TopicDateRangeFilterProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), 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 TopicDateRangeFilterProperty where
toResourceProperties :: TopicDateRangeFilterProperty -> ResourceProperties
toResourceProperties TopicDateRangeFilterProperty {Maybe (Value Bool)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: TopicDateRangeFilterProperty -> ()
constant :: TopicDateRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
inclusive :: TopicDateRangeFilterProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Topic.TopicDateRangeFilter",
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 -> 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 TopicDateRangeFilterProperty where
toJSON :: TopicDateRangeFilterProperty -> Value
toJSON TopicDateRangeFilterProperty {Maybe (Value Bool)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: TopicDateRangeFilterProperty -> ()
constant :: TopicDateRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
inclusive :: TopicDateRangeFilterProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
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 -> 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 "Constant" TopicDateRangeFilterProperty where
type PropertyType "Constant" TopicDateRangeFilterProperty = TopicRangeFilterConstantProperty
set :: PropertyType "Constant" TopicDateRangeFilterProperty
-> TopicDateRangeFilterProperty -> TopicDateRangeFilterProperty
set PropertyType "Constant" TopicDateRangeFilterProperty
newValue TopicDateRangeFilterProperty {Maybe (Value Bool)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: TopicDateRangeFilterProperty -> ()
constant :: TopicDateRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
inclusive :: TopicDateRangeFilterProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
..}
= TopicDateRangeFilterProperty
{constant :: Maybe TopicRangeFilterConstantProperty
constant = TopicRangeFilterConstantProperty
-> Maybe TopicRangeFilterConstantProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Constant" TopicDateRangeFilterProperty
TopicRangeFilterConstantProperty
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
inclusive :: Maybe (Value Bool)
haddock_workaround_ :: ()
inclusive :: Maybe (Value Bool)
..}
instance Property "Inclusive" TopicDateRangeFilterProperty where
type PropertyType "Inclusive" TopicDateRangeFilterProperty = Value Prelude.Bool
set :: PropertyType "Inclusive" TopicDateRangeFilterProperty
-> TopicDateRangeFilterProperty -> TopicDateRangeFilterProperty
set PropertyType "Inclusive" TopicDateRangeFilterProperty
newValue TopicDateRangeFilterProperty {Maybe (Value Bool)
Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: TopicDateRangeFilterProperty -> ()
constant :: TopicDateRangeFilterProperty
-> Maybe TopicRangeFilterConstantProperty
inclusive :: TopicDateRangeFilterProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
constant :: Maybe TopicRangeFilterConstantProperty
inclusive :: Maybe (Value Bool)
..}
= TopicDateRangeFilterProperty
{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" TopicDateRangeFilterProperty
Value Bool
newValue, Maybe TopicRangeFilterConstantProperty
()
haddock_workaround_ :: ()
constant :: Maybe TopicRangeFilterConstantProperty
haddock_workaround_ :: ()
constant :: Maybe TopicRangeFilterConstantProperty
..}