module Stratosphere.QuickSight.Template.DefaultFilterListControlOptionsProperty (
        module Exports, DefaultFilterListControlOptionsProperty(..),
        mkDefaultFilterListControlOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.FilterSelectableValuesProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Template.ListControlDisplayOptionsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DefaultFilterListControlOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-defaultfilterlistcontroloptions.html>
    DefaultFilterListControlOptionsProperty {DefaultFilterListControlOptionsProperty -> ()
haddock_workaround_ :: (),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-defaultfilterlistcontroloptions.html#cfn-quicksight-template-defaultfilterlistcontroloptions-displayoptions>
                                             DefaultFilterListControlOptionsProperty
-> Maybe ListControlDisplayOptionsProperty
displayOptions :: (Prelude.Maybe ListControlDisplayOptionsProperty),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-defaultfilterlistcontroloptions.html#cfn-quicksight-template-defaultfilterlistcontroloptions-selectablevalues>
                                             DefaultFilterListControlOptionsProperty
-> Maybe FilterSelectableValuesProperty
selectableValues :: (Prelude.Maybe FilterSelectableValuesProperty),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-defaultfilterlistcontroloptions.html#cfn-quicksight-template-defaultfilterlistcontroloptions-type>
                                             DefaultFilterListControlOptionsProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty -> Bool
(DefaultFilterListControlOptionsProperty
 -> DefaultFilterListControlOptionsProperty -> Bool)
-> (DefaultFilterListControlOptionsProperty
    -> DefaultFilterListControlOptionsProperty -> Bool)
-> Eq DefaultFilterListControlOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty -> Bool
== :: DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty -> Bool
$c/= :: DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty -> Bool
/= :: DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty -> Bool
Prelude.Eq, Int -> DefaultFilterListControlOptionsProperty -> ShowS
[DefaultFilterListControlOptionsProperty] -> ShowS
DefaultFilterListControlOptionsProperty -> String
(Int -> DefaultFilterListControlOptionsProperty -> ShowS)
-> (DefaultFilterListControlOptionsProperty -> String)
-> ([DefaultFilterListControlOptionsProperty] -> ShowS)
-> Show DefaultFilterListControlOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DefaultFilterListControlOptionsProperty -> ShowS
showsPrec :: Int -> DefaultFilterListControlOptionsProperty -> ShowS
$cshow :: DefaultFilterListControlOptionsProperty -> String
show :: DefaultFilterListControlOptionsProperty -> String
$cshowList :: [DefaultFilterListControlOptionsProperty] -> ShowS
showList :: [DefaultFilterListControlOptionsProperty] -> ShowS
Prelude.Show)
mkDefaultFilterListControlOptionsProperty ::
  DefaultFilterListControlOptionsProperty
mkDefaultFilterListControlOptionsProperty :: DefaultFilterListControlOptionsProperty
mkDefaultFilterListControlOptionsProperty
  = DefaultFilterListControlOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), displayOptions :: Maybe ListControlDisplayOptionsProperty
displayOptions = Maybe ListControlDisplayOptionsProperty
forall a. Maybe a
Prelude.Nothing,
       selectableValues :: Maybe FilterSelectableValuesProperty
selectableValues = Maybe FilterSelectableValuesProperty
forall a. Maybe a
Prelude.Nothing, type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DefaultFilterListControlOptionsProperty where
  toResourceProperties :: DefaultFilterListControlOptionsProperty -> ResourceProperties
toResourceProperties DefaultFilterListControlOptionsProperty {Maybe (Value Text)
Maybe FilterSelectableValuesProperty
Maybe ListControlDisplayOptionsProperty
()
haddock_workaround_ :: DefaultFilterListControlOptionsProperty -> ()
displayOptions :: DefaultFilterListControlOptionsProperty
-> Maybe ListControlDisplayOptionsProperty
selectableValues :: DefaultFilterListControlOptionsProperty
-> Maybe FilterSelectableValuesProperty
type' :: DefaultFilterListControlOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
displayOptions :: Maybe ListControlDisplayOptionsProperty
selectableValues :: Maybe FilterSelectableValuesProperty
type' :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.DefaultFilterListControlOptions",
         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 -> ListControlDisplayOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisplayOptions" (ListControlDisplayOptionsProperty -> (Key, Value))
-> Maybe ListControlDisplayOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ListControlDisplayOptionsProperty
displayOptions,
                            Key -> FilterSelectableValuesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelectableValues" (FilterSelectableValuesProperty -> (Key, Value))
-> Maybe FilterSelectableValuesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FilterSelectableValuesProperty
selectableValues,
                            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
"Type" (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)
type'])}
instance JSON.ToJSON DefaultFilterListControlOptionsProperty where
  toJSON :: DefaultFilterListControlOptionsProperty -> Value
toJSON DefaultFilterListControlOptionsProperty {Maybe (Value Text)
Maybe FilterSelectableValuesProperty
Maybe ListControlDisplayOptionsProperty
()
haddock_workaround_ :: DefaultFilterListControlOptionsProperty -> ()
displayOptions :: DefaultFilterListControlOptionsProperty
-> Maybe ListControlDisplayOptionsProperty
selectableValues :: DefaultFilterListControlOptionsProperty
-> Maybe FilterSelectableValuesProperty
type' :: DefaultFilterListControlOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
displayOptions :: Maybe ListControlDisplayOptionsProperty
selectableValues :: Maybe FilterSelectableValuesProperty
type' :: 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 -> ListControlDisplayOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisplayOptions" (ListControlDisplayOptionsProperty -> (Key, Value))
-> Maybe ListControlDisplayOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ListControlDisplayOptionsProperty
displayOptions,
               Key -> FilterSelectableValuesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelectableValues" (FilterSelectableValuesProperty -> (Key, Value))
-> Maybe FilterSelectableValuesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FilterSelectableValuesProperty
selectableValues,
               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
"Type" (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)
type']))
instance Property "DisplayOptions" DefaultFilterListControlOptionsProperty where
  type PropertyType "DisplayOptions" DefaultFilterListControlOptionsProperty = ListControlDisplayOptionsProperty
  set :: PropertyType
  "DisplayOptions" DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty
set PropertyType
  "DisplayOptions" DefaultFilterListControlOptionsProperty
newValue DefaultFilterListControlOptionsProperty {Maybe (Value Text)
Maybe FilterSelectableValuesProperty
Maybe ListControlDisplayOptionsProperty
()
haddock_workaround_ :: DefaultFilterListControlOptionsProperty -> ()
displayOptions :: DefaultFilterListControlOptionsProperty
-> Maybe ListControlDisplayOptionsProperty
selectableValues :: DefaultFilterListControlOptionsProperty
-> Maybe FilterSelectableValuesProperty
type' :: DefaultFilterListControlOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
displayOptions :: Maybe ListControlDisplayOptionsProperty
selectableValues :: Maybe FilterSelectableValuesProperty
type' :: Maybe (Value Text)
..}
    = DefaultFilterListControlOptionsProperty
        {displayOptions :: Maybe ListControlDisplayOptionsProperty
displayOptions = ListControlDisplayOptionsProperty
-> Maybe ListControlDisplayOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "DisplayOptions" DefaultFilterListControlOptionsProperty
ListControlDisplayOptionsProperty
newValue, Maybe (Value Text)
Maybe FilterSelectableValuesProperty
()
haddock_workaround_ :: ()
selectableValues :: Maybe FilterSelectableValuesProperty
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
selectableValues :: Maybe FilterSelectableValuesProperty
type' :: Maybe (Value Text)
..}
instance Property "SelectableValues" DefaultFilterListControlOptionsProperty where
  type PropertyType "SelectableValues" DefaultFilterListControlOptionsProperty = FilterSelectableValuesProperty
  set :: PropertyType
  "SelectableValues" DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty
set PropertyType
  "SelectableValues" DefaultFilterListControlOptionsProperty
newValue DefaultFilterListControlOptionsProperty {Maybe (Value Text)
Maybe FilterSelectableValuesProperty
Maybe ListControlDisplayOptionsProperty
()
haddock_workaround_ :: DefaultFilterListControlOptionsProperty -> ()
displayOptions :: DefaultFilterListControlOptionsProperty
-> Maybe ListControlDisplayOptionsProperty
selectableValues :: DefaultFilterListControlOptionsProperty
-> Maybe FilterSelectableValuesProperty
type' :: DefaultFilterListControlOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
displayOptions :: Maybe ListControlDisplayOptionsProperty
selectableValues :: Maybe FilterSelectableValuesProperty
type' :: Maybe (Value Text)
..}
    = DefaultFilterListControlOptionsProperty
        {selectableValues :: Maybe FilterSelectableValuesProperty
selectableValues = FilterSelectableValuesProperty
-> Maybe FilterSelectableValuesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SelectableValues" DefaultFilterListControlOptionsProperty
FilterSelectableValuesProperty
newValue, Maybe (Value Text)
Maybe ListControlDisplayOptionsProperty
()
haddock_workaround_ :: ()
displayOptions :: Maybe ListControlDisplayOptionsProperty
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
displayOptions :: Maybe ListControlDisplayOptionsProperty
type' :: Maybe (Value Text)
..}
instance Property "Type" DefaultFilterListControlOptionsProperty where
  type PropertyType "Type" DefaultFilterListControlOptionsProperty = Value Prelude.Text
  set :: PropertyType "Type" DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty
-> DefaultFilterListControlOptionsProperty
set PropertyType "Type" DefaultFilterListControlOptionsProperty
newValue DefaultFilterListControlOptionsProperty {Maybe (Value Text)
Maybe FilterSelectableValuesProperty
Maybe ListControlDisplayOptionsProperty
()
haddock_workaround_ :: DefaultFilterListControlOptionsProperty -> ()
displayOptions :: DefaultFilterListControlOptionsProperty
-> Maybe ListControlDisplayOptionsProperty
selectableValues :: DefaultFilterListControlOptionsProperty
-> Maybe FilterSelectableValuesProperty
type' :: DefaultFilterListControlOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
displayOptions :: Maybe ListControlDisplayOptionsProperty
selectableValues :: Maybe FilterSelectableValuesProperty
type' :: Maybe (Value Text)
..}
    = DefaultFilterListControlOptionsProperty
        {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" DefaultFilterListControlOptionsProperty
Value Text
newValue, Maybe FilterSelectableValuesProperty
Maybe ListControlDisplayOptionsProperty
()
haddock_workaround_ :: ()
displayOptions :: Maybe ListControlDisplayOptionsProperty
selectableValues :: Maybe FilterSelectableValuesProperty
haddock_workaround_ :: ()
displayOptions :: Maybe ListControlDisplayOptionsProperty
selectableValues :: Maybe FilterSelectableValuesProperty
..}