AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateBotAliasRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/lexv2-models/model/ConversationLogSettings.h>
12#include <aws/lexv2-models/model/SentimentAnalysisSettings.h>
13#include <aws/lexv2-models/model/BotAliasLocaleSettings.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LexModelsV2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LEXMODELSV2_API CreateBotAliasRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBotAlias"; }
35
36 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetBotAliasName() const { return m_botAliasName; }
44 inline bool BotAliasNameHasBeenSet() const { return m_botAliasNameHasBeenSet; }
45 template<typename BotAliasNameT = Aws::String>
46 void SetBotAliasName(BotAliasNameT&& value) { m_botAliasNameHasBeenSet = true; m_botAliasName = std::forward<BotAliasNameT>(value); }
47 template<typename BotAliasNameT = Aws::String>
48 CreateBotAliasRequest& WithBotAliasName(BotAliasNameT&& value) { SetBotAliasName(std::forward<BotAliasNameT>(value)); return *this;}
50
52
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateBotAliasRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
70 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
71 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
72 template<typename BotVersionT = Aws::String>
73 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
74 template<typename BotVersionT = Aws::String>
75 CreateBotAliasRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
77
79
84 inline const Aws::Map<Aws::String, BotAliasLocaleSettings>& GetBotAliasLocaleSettings() const { return m_botAliasLocaleSettings; }
85 inline bool BotAliasLocaleSettingsHasBeenSet() const { return m_botAliasLocaleSettingsHasBeenSet; }
86 template<typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
87 void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings = std::forward<BotAliasLocaleSettingsT>(value); }
88 template<typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
89 CreateBotAliasRequest& WithBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) { SetBotAliasLocaleSettings(std::forward<BotAliasLocaleSettingsT>(value)); return *this;}
90 template<typename BotAliasLocaleSettingsKeyT = Aws::String, typename BotAliasLocaleSettingsValueT = BotAliasLocaleSettings>
91 CreateBotAliasRequest& AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT&& key, BotAliasLocaleSettingsValueT&& value) {
92 m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings.emplace(std::forward<BotAliasLocaleSettingsKeyT>(key), std::forward<BotAliasLocaleSettingsValueT>(value)); return *this;
93 }
95
97
103 inline const ConversationLogSettings& GetConversationLogSettings() const { return m_conversationLogSettings; }
104 inline bool ConversationLogSettingsHasBeenSet() const { return m_conversationLogSettingsHasBeenSet; }
105 template<typename ConversationLogSettingsT = ConversationLogSettings>
106 void SetConversationLogSettings(ConversationLogSettingsT&& value) { m_conversationLogSettingsHasBeenSet = true; m_conversationLogSettings = std::forward<ConversationLogSettingsT>(value); }
107 template<typename ConversationLogSettingsT = ConversationLogSettings>
108 CreateBotAliasRequest& WithConversationLogSettings(ConversationLogSettingsT&& value) { SetConversationLogSettings(std::forward<ConversationLogSettingsT>(value)); return *this;}
110
112
113 inline const SentimentAnalysisSettings& GetSentimentAnalysisSettings() const { return m_sentimentAnalysisSettings; }
114 inline bool SentimentAnalysisSettingsHasBeenSet() const { return m_sentimentAnalysisSettingsHasBeenSet; }
115 template<typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
116 void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) { m_sentimentAnalysisSettingsHasBeenSet = true; m_sentimentAnalysisSettings = std::forward<SentimentAnalysisSettingsT>(value); }
117 template<typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
118 CreateBotAliasRequest& WithSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) { SetSentimentAnalysisSettings(std::forward<SentimentAnalysisSettingsT>(value)); return *this;}
120
122
125 inline const Aws::String& GetBotId() const { return m_botId; }
126 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
127 template<typename BotIdT = Aws::String>
128 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
129 template<typename BotIdT = Aws::String>
130 CreateBotAliasRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
132
134
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
144 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 CreateBotAliasRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
146 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
147 CreateBotAliasRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
148 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
149 }
151 private:
152
153 Aws::String m_botAliasName;
154 bool m_botAliasNameHasBeenSet = false;
155
156 Aws::String m_description;
157 bool m_descriptionHasBeenSet = false;
158
159 Aws::String m_botVersion;
160 bool m_botVersionHasBeenSet = false;
161
162 Aws::Map<Aws::String, BotAliasLocaleSettings> m_botAliasLocaleSettings;
163 bool m_botAliasLocaleSettingsHasBeenSet = false;
164
165 ConversationLogSettings m_conversationLogSettings;
166 bool m_conversationLogSettingsHasBeenSet = false;
167
168 SentimentAnalysisSettings m_sentimentAnalysisSettings;
169 bool m_sentimentAnalysisSettingsHasBeenSet = false;
170
171 Aws::String m_botId;
172 bool m_botIdHasBeenSet = false;
173
175 bool m_tagsHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace LexModelsV2
180} // namespace Aws
CreateBotAliasRequest & WithDescription(DescriptionT &&value)
void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT &&value)
void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT &&value)
CreateBotAliasRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateBotAliasRequest & WithBotAliasLocaleSettings(BotAliasLocaleSettingsT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
CreateBotAliasRequest & WithBotVersion(BotVersionT &&value)
AWS_LEXMODELSV2_API CreateBotAliasRequest()=default
const SentimentAnalysisSettings & GetSentimentAnalysisSettings() const
void SetConversationLogSettings(ConversationLogSettingsT &&value)
const Aws::Map< Aws::String, BotAliasLocaleSettings > & GetBotAliasLocaleSettings() const
CreateBotAliasRequest & WithBotId(BotIdT &&value)
CreateBotAliasRequest & WithBotAliasName(BotAliasNameT &&value)
const ConversationLogSettings & GetConversationLogSettings() const
CreateBotAliasRequest & WithSentimentAnalysisSettings(SentimentAnalysisSettingsT &&value)
CreateBotAliasRequest & WithConversationLogSettings(ConversationLogSettingsT &&value)
CreateBotAliasRequest & AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT &&key, BotAliasLocaleSettingsValueT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateBotAliasRequest & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String