AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBotRequest.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/lexv2-models/model/DataPrivacy.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/lexv2-models/model/BotType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/lexv2-models/model/ErrorLogSettings.h>
15#include <aws/lexv2-models/model/BotMember.h>
16#include <utility>
17
18namespace Aws
19{
20namespace LexModelsV2
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_LEXMODELSV2_API CreateBotRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateBot"; }
37
38 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetBotName() const { return m_botName; }
47 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
48 template<typename BotNameT = Aws::String>
49 void SetBotName(BotNameT&& value) { m_botNameHasBeenSet = true; m_botName = std::forward<BotNameT>(value); }
50 template<typename BotNameT = Aws::String>
51 CreateBotRequest& WithBotName(BotNameT&& value) { SetBotName(std::forward<BotNameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 CreateBotRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
72 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
73 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
74 template<typename RoleArnT = Aws::String>
75 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
76 template<typename RoleArnT = Aws::String>
77 CreateBotRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
79
81
85 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
86 inline bool DataPrivacyHasBeenSet() const { return m_dataPrivacyHasBeenSet; }
87 template<typename DataPrivacyT = DataPrivacy>
88 void SetDataPrivacy(DataPrivacyT&& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = std::forward<DataPrivacyT>(value); }
89 template<typename DataPrivacyT = DataPrivacy>
90 CreateBotRequest& WithDataPrivacy(DataPrivacyT&& value) { SetDataPrivacy(std::forward<DataPrivacyT>(value)); return *this;}
92
94
101 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
102 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
103 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
106
108
113 inline const Aws::Map<Aws::String, Aws::String>& GetBotTags() const { return m_botTags; }
114 inline bool BotTagsHasBeenSet() const { return m_botTagsHasBeenSet; }
115 template<typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
116 void SetBotTags(BotTagsT&& value) { m_botTagsHasBeenSet = true; m_botTags = std::forward<BotTagsT>(value); }
117 template<typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
118 CreateBotRequest& WithBotTags(BotTagsT&& value) { SetBotTags(std::forward<BotTagsT>(value)); return *this;}
119 template<typename BotTagsKeyT = Aws::String, typename BotTagsValueT = Aws::String>
120 CreateBotRequest& AddBotTags(BotTagsKeyT&& key, BotTagsValueT&& value) {
121 m_botTagsHasBeenSet = true; m_botTags.emplace(std::forward<BotTagsKeyT>(key), std::forward<BotTagsValueT>(value)); return *this;
122 }
124
126
132 inline const Aws::Map<Aws::String, Aws::String>& GetTestBotAliasTags() const { return m_testBotAliasTags; }
133 inline bool TestBotAliasTagsHasBeenSet() const { return m_testBotAliasTagsHasBeenSet; }
134 template<typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTestBotAliasTags(TestBotAliasTagsT&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags = std::forward<TestBotAliasTagsT>(value); }
136 template<typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
137 CreateBotRequest& WithTestBotAliasTags(TestBotAliasTagsT&& value) { SetTestBotAliasTags(std::forward<TestBotAliasTagsT>(value)); return *this;}
138 template<typename TestBotAliasTagsKeyT = Aws::String, typename TestBotAliasTagsValueT = Aws::String>
139 CreateBotRequest& AddTestBotAliasTags(TestBotAliasTagsKeyT&& key, TestBotAliasTagsValueT&& value) {
140 m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(std::forward<TestBotAliasTagsKeyT>(key), std::forward<TestBotAliasTagsValueT>(value)); return *this;
141 }
143
145
148 inline BotType GetBotType() const { return m_botType; }
149 inline bool BotTypeHasBeenSet() const { return m_botTypeHasBeenSet; }
150 inline void SetBotType(BotType value) { m_botTypeHasBeenSet = true; m_botType = value; }
151 inline CreateBotRequest& WithBotType(BotType value) { SetBotType(value); return *this;}
153
155
158 inline const Aws::Vector<BotMember>& GetBotMembers() const { return m_botMembers; }
159 inline bool BotMembersHasBeenSet() const { return m_botMembersHasBeenSet; }
160 template<typename BotMembersT = Aws::Vector<BotMember>>
161 void SetBotMembers(BotMembersT&& value) { m_botMembersHasBeenSet = true; m_botMembers = std::forward<BotMembersT>(value); }
162 template<typename BotMembersT = Aws::Vector<BotMember>>
163 CreateBotRequest& WithBotMembers(BotMembersT&& value) { SetBotMembers(std::forward<BotMembersT>(value)); return *this;}
164 template<typename BotMembersT = BotMember>
165 CreateBotRequest& AddBotMembers(BotMembersT&& value) { m_botMembersHasBeenSet = true; m_botMembers.emplace_back(std::forward<BotMembersT>(value)); return *this; }
167
169
172 inline const ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
173 inline bool ErrorLogSettingsHasBeenSet() const { return m_errorLogSettingsHasBeenSet; }
174 template<typename ErrorLogSettingsT = ErrorLogSettings>
175 void SetErrorLogSettings(ErrorLogSettingsT&& value) { m_errorLogSettingsHasBeenSet = true; m_errorLogSettings = std::forward<ErrorLogSettingsT>(value); }
176 template<typename ErrorLogSettingsT = ErrorLogSettings>
177 CreateBotRequest& WithErrorLogSettings(ErrorLogSettingsT&& value) { SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value)); return *this;}
179 private:
180
181 Aws::String m_botName;
182 bool m_botNameHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 Aws::String m_roleArn;
188 bool m_roleArnHasBeenSet = false;
189
190 DataPrivacy m_dataPrivacy;
191 bool m_dataPrivacyHasBeenSet = false;
192
193 int m_idleSessionTTLInSeconds{0};
194 bool m_idleSessionTTLInSecondsHasBeenSet = false;
195
197 bool m_botTagsHasBeenSet = false;
198
199 Aws::Map<Aws::String, Aws::String> m_testBotAliasTags;
200 bool m_testBotAliasTagsHasBeenSet = false;
201
202 BotType m_botType{BotType::NOT_SET};
203 bool m_botTypeHasBeenSet = false;
204
205 Aws::Vector<BotMember> m_botMembers;
206 bool m_botMembersHasBeenSet = false;
207
208 ErrorLogSettings m_errorLogSettings;
209 bool m_errorLogSettingsHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace LexModelsV2
214} // namespace Aws
CreateBotRequest & WithBotType(BotType value)
CreateBotRequest & AddBotMembers(BotMembersT &&value)
CreateBotRequest & WithDescription(DescriptionT &&value)
void SetDataPrivacy(DataPrivacyT &&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