{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.QuickSight.Types.RegisteredUserQSearchBarEmbeddingConfiguration where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data RegisteredUserQSearchBarEmbeddingConfiguration = RegisteredUserQSearchBarEmbeddingConfiguration'
{
RegisteredUserQSearchBarEmbeddingConfiguration -> Maybe Text
initialTopicId :: Prelude.Maybe Prelude.Text
}
deriving (RegisteredUserQSearchBarEmbeddingConfiguration
-> RegisteredUserQSearchBarEmbeddingConfiguration -> Bool
(RegisteredUserQSearchBarEmbeddingConfiguration
-> RegisteredUserQSearchBarEmbeddingConfiguration -> Bool)
-> (RegisteredUserQSearchBarEmbeddingConfiguration
-> RegisteredUserQSearchBarEmbeddingConfiguration -> Bool)
-> Eq RegisteredUserQSearchBarEmbeddingConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisteredUserQSearchBarEmbeddingConfiguration
-> RegisteredUserQSearchBarEmbeddingConfiguration -> Bool
$c/= :: RegisteredUserQSearchBarEmbeddingConfiguration
-> RegisteredUserQSearchBarEmbeddingConfiguration -> Bool
== :: RegisteredUserQSearchBarEmbeddingConfiguration
-> RegisteredUserQSearchBarEmbeddingConfiguration -> Bool
$c== :: RegisteredUserQSearchBarEmbeddingConfiguration
-> RegisteredUserQSearchBarEmbeddingConfiguration -> Bool
Prelude.Eq, ReadPrec [RegisteredUserQSearchBarEmbeddingConfiguration]
ReadPrec RegisteredUserQSearchBarEmbeddingConfiguration
Int -> ReadS RegisteredUserQSearchBarEmbeddingConfiguration
ReadS [RegisteredUserQSearchBarEmbeddingConfiguration]
(Int -> ReadS RegisteredUserQSearchBarEmbeddingConfiguration)
-> ReadS [RegisteredUserQSearchBarEmbeddingConfiguration]
-> ReadPrec RegisteredUserQSearchBarEmbeddingConfiguration
-> ReadPrec [RegisteredUserQSearchBarEmbeddingConfiguration]
-> Read RegisteredUserQSearchBarEmbeddingConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisteredUserQSearchBarEmbeddingConfiguration]
$creadListPrec :: ReadPrec [RegisteredUserQSearchBarEmbeddingConfiguration]
readPrec :: ReadPrec RegisteredUserQSearchBarEmbeddingConfiguration
$creadPrec :: ReadPrec RegisteredUserQSearchBarEmbeddingConfiguration
readList :: ReadS [RegisteredUserQSearchBarEmbeddingConfiguration]
$creadList :: ReadS [RegisteredUserQSearchBarEmbeddingConfiguration]
readsPrec :: Int -> ReadS RegisteredUserQSearchBarEmbeddingConfiguration
$creadsPrec :: Int -> ReadS RegisteredUserQSearchBarEmbeddingConfiguration
Prelude.Read, Int -> RegisteredUserQSearchBarEmbeddingConfiguration -> ShowS
[RegisteredUserQSearchBarEmbeddingConfiguration] -> ShowS
RegisteredUserQSearchBarEmbeddingConfiguration -> String
(Int -> RegisteredUserQSearchBarEmbeddingConfiguration -> ShowS)
-> (RegisteredUserQSearchBarEmbeddingConfiguration -> String)
-> ([RegisteredUserQSearchBarEmbeddingConfiguration] -> ShowS)
-> Show RegisteredUserQSearchBarEmbeddingConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisteredUserQSearchBarEmbeddingConfiguration] -> ShowS
$cshowList :: [RegisteredUserQSearchBarEmbeddingConfiguration] -> ShowS
show :: RegisteredUserQSearchBarEmbeddingConfiguration -> String
$cshow :: RegisteredUserQSearchBarEmbeddingConfiguration -> String
showsPrec :: Int -> RegisteredUserQSearchBarEmbeddingConfiguration -> ShowS
$cshowsPrec :: Int -> RegisteredUserQSearchBarEmbeddingConfiguration -> ShowS
Prelude.Show, (forall x.
RegisteredUserQSearchBarEmbeddingConfiguration
-> Rep RegisteredUserQSearchBarEmbeddingConfiguration x)
-> (forall x.
Rep RegisteredUserQSearchBarEmbeddingConfiguration x
-> RegisteredUserQSearchBarEmbeddingConfiguration)
-> Generic RegisteredUserQSearchBarEmbeddingConfiguration
forall x.
Rep RegisteredUserQSearchBarEmbeddingConfiguration x
-> RegisteredUserQSearchBarEmbeddingConfiguration
forall x.
RegisteredUserQSearchBarEmbeddingConfiguration
-> Rep RegisteredUserQSearchBarEmbeddingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RegisteredUserQSearchBarEmbeddingConfiguration x
-> RegisteredUserQSearchBarEmbeddingConfiguration
$cfrom :: forall x.
RegisteredUserQSearchBarEmbeddingConfiguration
-> Rep RegisteredUserQSearchBarEmbeddingConfiguration x
Prelude.Generic)
newRegisteredUserQSearchBarEmbeddingConfiguration ::
RegisteredUserQSearchBarEmbeddingConfiguration
newRegisteredUserQSearchBarEmbeddingConfiguration :: RegisteredUserQSearchBarEmbeddingConfiguration
newRegisteredUserQSearchBarEmbeddingConfiguration =
RegisteredUserQSearchBarEmbeddingConfiguration' :: Maybe Text -> RegisteredUserQSearchBarEmbeddingConfiguration
RegisteredUserQSearchBarEmbeddingConfiguration'
{ $sel:initialTopicId:RegisteredUserQSearchBarEmbeddingConfiguration' :: Maybe Text
initialTopicId =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
registeredUserQSearchBarEmbeddingConfiguration_initialTopicId :: Lens.Lens' RegisteredUserQSearchBarEmbeddingConfiguration (Prelude.Maybe Prelude.Text)
registeredUserQSearchBarEmbeddingConfiguration_initialTopicId :: (Maybe Text -> f (Maybe Text))
-> RegisteredUserQSearchBarEmbeddingConfiguration
-> f RegisteredUserQSearchBarEmbeddingConfiguration
registeredUserQSearchBarEmbeddingConfiguration_initialTopicId = (RegisteredUserQSearchBarEmbeddingConfiguration -> Maybe Text)
-> (RegisteredUserQSearchBarEmbeddingConfiguration
-> Maybe Text -> RegisteredUserQSearchBarEmbeddingConfiguration)
-> Lens
RegisteredUserQSearchBarEmbeddingConfiguration
RegisteredUserQSearchBarEmbeddingConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisteredUserQSearchBarEmbeddingConfiguration' {Maybe Text
initialTopicId :: Maybe Text
$sel:initialTopicId:RegisteredUserQSearchBarEmbeddingConfiguration' :: RegisteredUserQSearchBarEmbeddingConfiguration -> Maybe Text
initialTopicId} -> Maybe Text
initialTopicId) (\s :: RegisteredUserQSearchBarEmbeddingConfiguration
s@RegisteredUserQSearchBarEmbeddingConfiguration' {} Maybe Text
a -> RegisteredUserQSearchBarEmbeddingConfiguration
s {$sel:initialTopicId:RegisteredUserQSearchBarEmbeddingConfiguration' :: Maybe Text
initialTopicId = Maybe Text
a} :: RegisteredUserQSearchBarEmbeddingConfiguration)
instance
Prelude.Hashable
RegisteredUserQSearchBarEmbeddingConfiguration
instance
Prelude.NFData
RegisteredUserQSearchBarEmbeddingConfiguration
instance
Core.ToJSON
RegisteredUserQSearchBarEmbeddingConfiguration
where
toJSON :: RegisteredUserQSearchBarEmbeddingConfiguration -> Value
toJSON
RegisteredUserQSearchBarEmbeddingConfiguration' {Maybe Text
initialTopicId :: Maybe Text
$sel:initialTopicId:RegisteredUserQSearchBarEmbeddingConfiguration' :: RegisteredUserQSearchBarEmbeddingConfiguration -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"InitialTopicId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
initialTopicId
]
)