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