AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateBotResult.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/model/DataPrivacy.h>
10#include <aws/lexv2-models/model/BotStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/lexv2-models/model/BotType.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/lexv2-models/model/ErrorLogSettings.h>
16#include <aws/lexv2-models/model/BotMember.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace LexModelsV2
32{
33namespace Model
34{
36 {
37 public:
38 AWS_LEXMODELSV2_API CreateBotResult() = default;
41
42
44
48 inline const Aws::String& GetBotId() const { return m_botId; }
49 template<typename BotIdT = Aws::String>
50 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
51 template<typename BotIdT = Aws::String>
52 CreateBotResult& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetBotName() const { return m_botName; }
60 template<typename BotNameT = Aws::String>
61 void SetBotName(BotNameT&& value) { m_botNameHasBeenSet = true; m_botName = std::forward<BotNameT>(value); }
62 template<typename BotNameT = Aws::String>
63 CreateBotResult& WithBotName(BotNameT&& value) { SetBotName(std::forward<BotNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 CreateBotResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
81 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
82 template<typename RoleArnT = Aws::String>
83 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
84 template<typename RoleArnT = Aws::String>
85 CreateBotResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
87
89
92 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
93 template<typename DataPrivacyT = DataPrivacy>
94 void SetDataPrivacy(DataPrivacyT&& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = std::forward<DataPrivacyT>(value); }
95 template<typename DataPrivacyT = DataPrivacy>
96 CreateBotResult& WithDataPrivacy(DataPrivacyT&& value) { SetDataPrivacy(std::forward<DataPrivacyT>(value)); return *this;}
98
100
103 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
104 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
107
109
115 inline BotStatus GetBotStatus() const { return m_botStatus; }
116 inline void SetBotStatus(BotStatus value) { m_botStatusHasBeenSet = true; m_botStatus = value; }
117 inline CreateBotResult& WithBotStatus(BotStatus value) { SetBotStatus(value); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
125 template<typename CreationDateTimeT = Aws::Utils::DateTime>
126 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
127 template<typename CreationDateTimeT = Aws::Utils::DateTime>
128 CreateBotResult& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
130
132
135 inline const Aws::Map<Aws::String, Aws::String>& GetBotTags() const { return m_botTags; }
136 template<typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
137 void SetBotTags(BotTagsT&& value) { m_botTagsHasBeenSet = true; m_botTags = std::forward<BotTagsT>(value); }
138 template<typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
139 CreateBotResult& WithBotTags(BotTagsT&& value) { SetBotTags(std::forward<BotTagsT>(value)); return *this;}
140 template<typename BotTagsKeyT = Aws::String, typename BotTagsValueT = Aws::String>
141 CreateBotResult& AddBotTags(BotTagsKeyT&& key, BotTagsValueT&& value) {
142 m_botTagsHasBeenSet = true; m_botTags.emplace(std::forward<BotTagsKeyT>(key), std::forward<BotTagsValueT>(value)); return *this;
143 }
145
147
150 inline const Aws::Map<Aws::String, Aws::String>& GetTestBotAliasTags() const { return m_testBotAliasTags; }
151 template<typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
152 void SetTestBotAliasTags(TestBotAliasTagsT&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags = std::forward<TestBotAliasTagsT>(value); }
153 template<typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
154 CreateBotResult& WithTestBotAliasTags(TestBotAliasTagsT&& value) { SetTestBotAliasTags(std::forward<TestBotAliasTagsT>(value)); return *this;}
155 template<typename TestBotAliasTagsKeyT = Aws::String, typename TestBotAliasTagsValueT = Aws::String>
156 CreateBotResult& AddTestBotAliasTags(TestBotAliasTagsKeyT&& key, TestBotAliasTagsValueT&& value) {
157 m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(std::forward<TestBotAliasTagsKeyT>(key), std::forward<TestBotAliasTagsValueT>(value)); return *this;
158 }
160
162
165 inline BotType GetBotType() const { return m_botType; }
166 inline void SetBotType(BotType value) { m_botTypeHasBeenSet = true; m_botType = value; }
167 inline CreateBotResult& WithBotType(BotType value) { SetBotType(value); return *this;}
169
171
174 inline const Aws::Vector<BotMember>& GetBotMembers() const { return m_botMembers; }
175 template<typename BotMembersT = Aws::Vector<BotMember>>
176 void SetBotMembers(BotMembersT&& value) { m_botMembersHasBeenSet = true; m_botMembers = std::forward<BotMembersT>(value); }
177 template<typename BotMembersT = Aws::Vector<BotMember>>
178 CreateBotResult& WithBotMembers(BotMembersT&& value) { SetBotMembers(std::forward<BotMembersT>(value)); return *this;}
179 template<typename BotMembersT = BotMember>
180 CreateBotResult& AddBotMembers(BotMembersT&& value) { m_botMembersHasBeenSet = true; m_botMembers.emplace_back(std::forward<BotMembersT>(value)); return *this; }
182
184
188 inline const ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
189 template<typename ErrorLogSettingsT = ErrorLogSettings>
190 void SetErrorLogSettings(ErrorLogSettingsT&& value) { m_errorLogSettingsHasBeenSet = true; m_errorLogSettings = std::forward<ErrorLogSettingsT>(value); }
191 template<typename ErrorLogSettingsT = ErrorLogSettings>
192 CreateBotResult& WithErrorLogSettings(ErrorLogSettingsT&& value) { SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value)); return *this;}
194
196
197 inline const Aws::String& GetRequestId() const { return m_requestId; }
198 template<typename RequestIdT = Aws::String>
199 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
200 template<typename RequestIdT = Aws::String>
201 CreateBotResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
203 private:
204
205 Aws::String m_botId;
206 bool m_botIdHasBeenSet = false;
207
208 Aws::String m_botName;
209 bool m_botNameHasBeenSet = false;
210
211 Aws::String m_description;
212 bool m_descriptionHasBeenSet = false;
213
214 Aws::String m_roleArn;
215 bool m_roleArnHasBeenSet = false;
216
217 DataPrivacy m_dataPrivacy;
218 bool m_dataPrivacyHasBeenSet = false;
219
220 int m_idleSessionTTLInSeconds{0};
221 bool m_idleSessionTTLInSecondsHasBeenSet = false;
222
223 BotStatus m_botStatus{BotStatus::NOT_SET};
224 bool m_botStatusHasBeenSet = false;
225
226 Aws::Utils::DateTime m_creationDateTime{};
227 bool m_creationDateTimeHasBeenSet = false;
228
230 bool m_botTagsHasBeenSet = false;
231
232 Aws::Map<Aws::String, Aws::String> m_testBotAliasTags;
233 bool m_testBotAliasTagsHasBeenSet = false;
234
235 BotType m_botType{BotType::NOT_SET};
236 bool m_botTypeHasBeenSet = false;
237
238 Aws::Vector<BotMember> m_botMembers;
239 bool m_botMembersHasBeenSet = false;
240
241 ErrorLogSettings m_errorLogSettings;
242 bool m_errorLogSettingsHasBeenSet = false;
243
244 Aws::String m_requestId;
245 bool m_requestIdHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace LexModelsV2
250} // namespace Aws
CreateBotResult & WithErrorLogSettings(ErrorLogSettingsT &&value)
void SetErrorLogSettings(ErrorLogSettingsT &&value)
void SetDescription(DescriptionT &&value)
AWS_LEXMODELSV2_API CreateBotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetBotId() const
CreateBotResult & WithBotType(BotType value)
CreateBotResult & WithDescription(DescriptionT &&value)
AWS_LEXMODELSV2_API CreateBotResult()=default
CreateBotResult & AddTestBotAliasTags(TestBotAliasTagsKeyT &&key, TestBotAliasTagsValueT &&value)
CreateBotResult & WithCreationDateTime(CreationDateTimeT &&value)
AWS_LEXMODELSV2_API CreateBotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ErrorLogSettings & GetErrorLogSettings() const
CreateBotResult & WithRequestId(RequestIdT &&value)
CreateBotResult & AddBotMembers(BotMembersT &&value)
const Aws::String & GetDescription() const
const DataPrivacy & GetDataPrivacy() const
void SetDataPrivacy(DataPrivacyT &&value)
CreateBotResult & AddBotTags(BotTagsKeyT &&key, BotTagsValueT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetRoleArn() const
CreateBotResult & WithBotName(BotNameT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
CreateBotResult & WithDataPrivacy(DataPrivacyT &&value)
void SetTestBotAliasTags(TestBotAliasTagsT &&value)
const Aws::Vector< BotMember > & GetBotMembers() const
CreateBotResult & WithBotTags(BotTagsT &&value)
CreateBotResult & WithRoleArn(RoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTestBotAliasTags() const
CreateBotResult & WithBotStatus(BotStatus value)
CreateBotResult & WithBotMembers(BotMembersT &&value)
CreateBotResult & WithBotId(BotIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetBotTags() const
const Aws::String & GetBotName() const
CreateBotResult & WithTestBotAliasTags(TestBotAliasTagsT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
CreateBotResult & WithIdleSessionTTLInSeconds(int 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
Aws::Utils::Json::JsonValue JsonValue