AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateBotRequest.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/LexModelsV2Request.h>
11#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
12#include <aws/lexv2-models/model/BotMember.h>
13#include <aws/lexv2-models/model/BotType.h>
14#include <aws/lexv2-models/model/DataPrivacy.h>
15#include <aws/lexv2-models/model/ErrorLogSettings.h>
16
17#include <utility>
18
19namespace Aws {
20namespace LexModelsV2 {
21namespace Model {
22
26 public:
27 AWS_LEXMODELSV2_API CreateBotRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateBot"; }
34
35 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetBotName() const { return m_botName; }
43 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
44 template <typename BotNameT = Aws::String>
45 void SetBotName(BotNameT&& value) {
46 m_botNameHasBeenSet = true;
47 m_botName = std::forward<BotNameT>(value);
48 }
49 template <typename BotNameT = Aws::String>
50 CreateBotRequest& WithBotName(BotNameT&& value) {
51 SetBotName(std::forward<BotNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 CreateBotRequest& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
81 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
82 template <typename RoleArnT = Aws::String>
83 void SetRoleArn(RoleArnT&& value) {
84 m_roleArnHasBeenSet = true;
85 m_roleArn = std::forward<RoleArnT>(value);
86 }
87 template <typename RoleArnT = Aws::String>
88 CreateBotRequest& WithRoleArn(RoleArnT&& value) {
89 SetRoleArn(std::forward<RoleArnT>(value));
90 return *this;
91 }
93
95
99 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
100 inline bool DataPrivacyHasBeenSet() const { return m_dataPrivacyHasBeenSet; }
101 template <typename DataPrivacyT = DataPrivacy>
102 void SetDataPrivacy(DataPrivacyT&& value) {
103 m_dataPrivacyHasBeenSet = true;
104 m_dataPrivacy = std::forward<DataPrivacyT>(value);
105 }
106 template <typename DataPrivacyT = DataPrivacy>
107 CreateBotRequest& WithDataPrivacy(DataPrivacyT&& value) {
108 SetDataPrivacy(std::forward<DataPrivacyT>(value));
109 return *this;
110 }
112
114
121 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
122 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
123 inline void SetIdleSessionTTLInSeconds(int value) {
124 m_idleSessionTTLInSecondsHasBeenSet = true;
125 m_idleSessionTTLInSeconds = value;
126 }
129 return *this;
130 }
132
134
139 inline const Aws::Map<Aws::String, Aws::String>& GetBotTags() const { return m_botTags; }
140 inline bool BotTagsHasBeenSet() const { return m_botTagsHasBeenSet; }
141 template <typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
142 void SetBotTags(BotTagsT&& value) {
143 m_botTagsHasBeenSet = true;
144 m_botTags = std::forward<BotTagsT>(value);
145 }
146 template <typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
147 CreateBotRequest& WithBotTags(BotTagsT&& value) {
148 SetBotTags(std::forward<BotTagsT>(value));
149 return *this;
150 }
151 template <typename BotTagsKeyT = Aws::String, typename BotTagsValueT = Aws::String>
152 CreateBotRequest& AddBotTags(BotTagsKeyT&& key, BotTagsValueT&& value) {
153 m_botTagsHasBeenSet = true;
154 m_botTags.emplace(std::forward<BotTagsKeyT>(key), std::forward<BotTagsValueT>(value));
155 return *this;
156 }
158
160
166 inline const Aws::Map<Aws::String, Aws::String>& GetTestBotAliasTags() const { return m_testBotAliasTags; }
167 inline bool TestBotAliasTagsHasBeenSet() const { return m_testBotAliasTagsHasBeenSet; }
168 template <typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
169 void SetTestBotAliasTags(TestBotAliasTagsT&& value) {
170 m_testBotAliasTagsHasBeenSet = true;
171 m_testBotAliasTags = std::forward<TestBotAliasTagsT>(value);
172 }
173 template <typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
174 CreateBotRequest& WithTestBotAliasTags(TestBotAliasTagsT&& value) {
175 SetTestBotAliasTags(std::forward<TestBotAliasTagsT>(value));
176 return *this;
177 }
178 template <typename TestBotAliasTagsKeyT = Aws::String, typename TestBotAliasTagsValueT = Aws::String>
179 CreateBotRequest& AddTestBotAliasTags(TestBotAliasTagsKeyT&& key, TestBotAliasTagsValueT&& value) {
180 m_testBotAliasTagsHasBeenSet = true;
181 m_testBotAliasTags.emplace(std::forward<TestBotAliasTagsKeyT>(key), std::forward<TestBotAliasTagsValueT>(value));
182 return *this;
183 }
185
187
190 inline BotType GetBotType() const { return m_botType; }
191 inline bool BotTypeHasBeenSet() const { return m_botTypeHasBeenSet; }
192 inline void SetBotType(BotType value) {
193 m_botTypeHasBeenSet = true;
194 m_botType = value;
195 }
197 SetBotType(value);
198 return *this;
199 }
201
203
206 inline const Aws::Vector<BotMember>& GetBotMembers() const { return m_botMembers; }
207 inline bool BotMembersHasBeenSet() const { return m_botMembersHasBeenSet; }
208 template <typename BotMembersT = Aws::Vector<BotMember>>
209 void SetBotMembers(BotMembersT&& value) {
210 m_botMembersHasBeenSet = true;
211 m_botMembers = std::forward<BotMembersT>(value);
212 }
213 template <typename BotMembersT = Aws::Vector<BotMember>>
214 CreateBotRequest& WithBotMembers(BotMembersT&& value) {
215 SetBotMembers(std::forward<BotMembersT>(value));
216 return *this;
217 }
218 template <typename BotMembersT = BotMember>
219 CreateBotRequest& AddBotMembers(BotMembersT&& value) {
220 m_botMembersHasBeenSet = true;
221 m_botMembers.emplace_back(std::forward<BotMembersT>(value));
222 return *this;
223 }
225
227
230 inline const ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
231 inline bool ErrorLogSettingsHasBeenSet() const { return m_errorLogSettingsHasBeenSet; }
232 template <typename ErrorLogSettingsT = ErrorLogSettings>
233 void SetErrorLogSettings(ErrorLogSettingsT&& value) {
234 m_errorLogSettingsHasBeenSet = true;
235 m_errorLogSettings = std::forward<ErrorLogSettingsT>(value);
236 }
237 template <typename ErrorLogSettingsT = ErrorLogSettings>
238 CreateBotRequest& WithErrorLogSettings(ErrorLogSettingsT&& value) {
239 SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value));
240 return *this;
241 }
243 private:
244 Aws::String m_botName;
245
246 Aws::String m_description;
247
248 Aws::String m_roleArn;
249
250 DataPrivacy m_dataPrivacy;
251
252 int m_idleSessionTTLInSeconds{0};
253
255
256 Aws::Map<Aws::String, Aws::String> m_testBotAliasTags;
257
258 BotType m_botType{BotType::NOT_SET};
259
260 Aws::Vector<BotMember> m_botMembers;
261
262 ErrorLogSettings m_errorLogSettings;
263 bool m_botNameHasBeenSet = false;
264 bool m_descriptionHasBeenSet = false;
265 bool m_roleArnHasBeenSet = false;
266 bool m_dataPrivacyHasBeenSet = false;
267 bool m_idleSessionTTLInSecondsHasBeenSet = false;
268 bool m_botTagsHasBeenSet = false;
269 bool m_testBotAliasTagsHasBeenSet = false;
270 bool m_botTypeHasBeenSet = false;
271 bool m_botMembersHasBeenSet = false;
272 bool m_errorLogSettingsHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace LexModelsV2
277} // namespace Aws
CreateBotRequest & WithBotType(BotType value)
CreateBotRequest & AddBotMembers(BotMembersT &&value)
CreateBotRequest & WithDescription(DescriptionT &&value)
CreateBotRequest & AddTestBotAliasTags(TestBotAliasTagsKeyT &&key, TestBotAliasTagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTestBotAliasTags() const
AWS_LEXMODELSV2_API CreateBotRequest()=default
CreateBotRequest & WithTestBotAliasTags(TestBotAliasTagsT &&value)
CreateBotRequest & WithRoleArn(RoleArnT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
const Aws::Map< Aws::String, Aws::String > & GetBotTags() const
CreateBotRequest & WithErrorLogSettings(ErrorLogSettingsT &&value)
CreateBotRequest & AddBotTags(BotTagsKeyT &&key, BotTagsValueT &&value)
void SetTestBotAliasTags(TestBotAliasTagsT &&value)
CreateBotRequest & WithDataPrivacy(DataPrivacyT &&value)
const DataPrivacy & GetDataPrivacy() const
const Aws::Vector< BotMember > & GetBotMembers() const
CreateBotRequest & WithBotMembers(BotMembersT &&value)
CreateBotRequest & WithBotName(BotNameT &&value)
CreateBotRequest & WithIdleSessionTTLInSeconds(int value)
CreateBotRequest & WithBotTags(BotTagsT &&value)
const ErrorLogSettings & GetErrorLogSettings() const
void SetErrorLogSettings(ErrorLogSettingsT &&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
std::vector< T, Aws::Allocator< T > > Vector