AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateBotAliasRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/LexModelsV2Request.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/BotAliasLocaleSettings.h>
12#include <aws/lexv2-models/model/ConversationLogSettings.h>
13#include <aws/lexv2-models/model/SentimentAnalysisSettings.h>
14
15#include <utility>
16
17namespace Aws {
18namespace LexModelsV2 {
19namespace Model {
20
24 public:
25 AWS_LEXMODELSV2_API CreateBotAliasRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateBotAlias"; }
32
33 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetBotAliasName() const { return m_botAliasName; }
40 inline bool BotAliasNameHasBeenSet() const { return m_botAliasNameHasBeenSet; }
41 template <typename BotAliasNameT = Aws::String>
42 void SetBotAliasName(BotAliasNameT&& value) {
43 m_botAliasNameHasBeenSet = true;
44 m_botAliasName = std::forward<BotAliasNameT>(value);
45 }
46 template <typename BotAliasNameT = Aws::String>
47 CreateBotAliasRequest& WithBotAliasName(BotAliasNameT&& value) {
48 SetBotAliasName(std::forward<BotAliasNameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 CreateBotAliasRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
79 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
80 template <typename BotVersionT = Aws::String>
81 void SetBotVersion(BotVersionT&& value) {
82 m_botVersionHasBeenSet = true;
83 m_botVersion = std::forward<BotVersionT>(value);
84 }
85 template <typename BotVersionT = Aws::String>
86 CreateBotAliasRequest& WithBotVersion(BotVersionT&& value) {
87 SetBotVersion(std::forward<BotVersionT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::Map<Aws::String, BotAliasLocaleSettings>& GetBotAliasLocaleSettings() const { return m_botAliasLocaleSettings; }
99 inline bool BotAliasLocaleSettingsHasBeenSet() const { return m_botAliasLocaleSettingsHasBeenSet; }
100 template <typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
101 void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) {
102 m_botAliasLocaleSettingsHasBeenSet = true;
103 m_botAliasLocaleSettings = std::forward<BotAliasLocaleSettingsT>(value);
104 }
105 template <typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
106 CreateBotAliasRequest& WithBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) {
107 SetBotAliasLocaleSettings(std::forward<BotAliasLocaleSettingsT>(value));
108 return *this;
109 }
110 template <typename BotAliasLocaleSettingsKeyT = Aws::String, typename BotAliasLocaleSettingsValueT = BotAliasLocaleSettings>
111 CreateBotAliasRequest& AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT&& key, BotAliasLocaleSettingsValueT&& value) {
112 m_botAliasLocaleSettingsHasBeenSet = true;
113 m_botAliasLocaleSettings.emplace(std::forward<BotAliasLocaleSettingsKeyT>(key), std::forward<BotAliasLocaleSettingsValueT>(value));
114 return *this;
115 }
117
119
125 inline const ConversationLogSettings& GetConversationLogSettings() const { return m_conversationLogSettings; }
126 inline bool ConversationLogSettingsHasBeenSet() const { return m_conversationLogSettingsHasBeenSet; }
127 template <typename ConversationLogSettingsT = ConversationLogSettings>
128 void SetConversationLogSettings(ConversationLogSettingsT&& value) {
129 m_conversationLogSettingsHasBeenSet = true;
130 m_conversationLogSettings = std::forward<ConversationLogSettingsT>(value);
131 }
132 template <typename ConversationLogSettingsT = ConversationLogSettings>
133 CreateBotAliasRequest& WithConversationLogSettings(ConversationLogSettingsT&& value) {
134 SetConversationLogSettings(std::forward<ConversationLogSettingsT>(value));
135 return *this;
136 }
138
140
141 inline const SentimentAnalysisSettings& GetSentimentAnalysisSettings() const { return m_sentimentAnalysisSettings; }
142 inline bool SentimentAnalysisSettingsHasBeenSet() const { return m_sentimentAnalysisSettingsHasBeenSet; }
143 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
144 void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
145 m_sentimentAnalysisSettingsHasBeenSet = true;
146 m_sentimentAnalysisSettings = std::forward<SentimentAnalysisSettingsT>(value);
147 }
148 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
149 CreateBotAliasRequest& WithSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
150 SetSentimentAnalysisSettings(std::forward<SentimentAnalysisSettingsT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetBotId() const { return m_botId; }
160 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
161 template <typename BotIdT = Aws::String>
162 void SetBotId(BotIdT&& value) {
163 m_botIdHasBeenSet = true;
164 m_botId = std::forward<BotIdT>(value);
165 }
166 template <typename BotIdT = Aws::String>
168 SetBotId(std::forward<BotIdT>(value));
169 return *this;
170 }
172
174
180 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
181 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
182 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 void SetTags(TagsT&& value) {
184 m_tagsHasBeenSet = true;
185 m_tags = std::forward<TagsT>(value);
186 }
187 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 SetTags(std::forward<TagsT>(value));
190 return *this;
191 }
192 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
193 CreateBotAliasRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
194 m_tagsHasBeenSet = true;
195 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_botAliasName;
201
202 Aws::String m_description;
203
204 Aws::String m_botVersion;
205
206 Aws::Map<Aws::String, BotAliasLocaleSettings> m_botAliasLocaleSettings;
207
208 ConversationLogSettings m_conversationLogSettings;
209
210 SentimentAnalysisSettings m_sentimentAnalysisSettings;
211
212 Aws::String m_botId;
213
215 bool m_botAliasNameHasBeenSet = false;
216 bool m_descriptionHasBeenSet = false;
217 bool m_botVersionHasBeenSet = false;
218 bool m_botAliasLocaleSettingsHasBeenSet = false;
219 bool m_conversationLogSettingsHasBeenSet = false;
220 bool m_sentimentAnalysisSettingsHasBeenSet = false;
221 bool m_botIdHasBeenSet = false;
222 bool m_tagsHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace LexModelsV2
227} // 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