module Stratosphere.QuickSight.Analysis.ListControlSearchOptionsProperty (
        ListControlSearchOptionsProperty(..),
        mkListControlSearchOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ListControlSearchOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-listcontrolsearchoptions.html>
    ListControlSearchOptionsProperty {ListControlSearchOptionsProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-listcontrolsearchoptions.html#cfn-quicksight-analysis-listcontrolsearchoptions-visibility>
                                      ListControlSearchOptionsProperty -> Maybe (Value Text)
visibility :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ListControlSearchOptionsProperty
-> ListControlSearchOptionsProperty -> Bool
(ListControlSearchOptionsProperty
 -> ListControlSearchOptionsProperty -> Bool)
-> (ListControlSearchOptionsProperty
    -> ListControlSearchOptionsProperty -> Bool)
-> Eq ListControlSearchOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ListControlSearchOptionsProperty
-> ListControlSearchOptionsProperty -> Bool
== :: ListControlSearchOptionsProperty
-> ListControlSearchOptionsProperty -> Bool
$c/= :: ListControlSearchOptionsProperty
-> ListControlSearchOptionsProperty -> Bool
/= :: ListControlSearchOptionsProperty
-> ListControlSearchOptionsProperty -> Bool
Prelude.Eq, Int -> ListControlSearchOptionsProperty -> ShowS
[ListControlSearchOptionsProperty] -> ShowS
ListControlSearchOptionsProperty -> String
(Int -> ListControlSearchOptionsProperty -> ShowS)
-> (ListControlSearchOptionsProperty -> String)
-> ([ListControlSearchOptionsProperty] -> ShowS)
-> Show ListControlSearchOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ListControlSearchOptionsProperty -> ShowS
showsPrec :: Int -> ListControlSearchOptionsProperty -> ShowS
$cshow :: ListControlSearchOptionsProperty -> String
show :: ListControlSearchOptionsProperty -> String
$cshowList :: [ListControlSearchOptionsProperty] -> ShowS
showList :: [ListControlSearchOptionsProperty] -> ShowS
Prelude.Show)
mkListControlSearchOptionsProperty ::
  ListControlSearchOptionsProperty
mkListControlSearchOptionsProperty :: ListControlSearchOptionsProperty
mkListControlSearchOptionsProperty
  = ListControlSearchOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), visibility :: Maybe (Value Text)
visibility = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ListControlSearchOptionsProperty where
  toResourceProperties :: ListControlSearchOptionsProperty -> ResourceProperties
toResourceProperties ListControlSearchOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ListControlSearchOptionsProperty -> ()
visibility :: ListControlSearchOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
visibility :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.ListControlSearchOptions",
         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
"Visibility" (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)
visibility])}
instance JSON.ToJSON ListControlSearchOptionsProperty where
  toJSON :: ListControlSearchOptionsProperty -> Value
toJSON ListControlSearchOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ListControlSearchOptionsProperty -> ()
visibility :: ListControlSearchOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
visibility :: 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
"Visibility" (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)
visibility]))
instance Property "Visibility" ListControlSearchOptionsProperty where
  type PropertyType "Visibility" ListControlSearchOptionsProperty = Value Prelude.Text
  set :: PropertyType "Visibility" ListControlSearchOptionsProperty
-> ListControlSearchOptionsProperty
-> ListControlSearchOptionsProperty
set PropertyType "Visibility" ListControlSearchOptionsProperty
newValue ListControlSearchOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ListControlSearchOptionsProperty -> ()
visibility :: ListControlSearchOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
visibility :: Maybe (Value Text)
..}
    = ListControlSearchOptionsProperty
        {visibility :: Maybe (Value Text)
visibility = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Visibility" ListControlSearchOptionsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}