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