AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateBotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/LexModelsV2Request.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/BotMember.h>
12#include <aws/lexv2-models/model/BotType.h>
13#include <aws/lexv2-models/model/DataPrivacy.h>
14#include <aws/lexv2-models/model/ErrorLogSettings.h>
15
16#include <utility>
17
18namespace Aws {
19namespace LexModelsV2 {
20namespace Model {
21
25 public:
26 AWS_LEXMODELSV2_API UpdateBotRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateBot"; }
33
34 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
35
37
43 inline const Aws::String& GetBotId() const { return m_botId; }
44 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
45 template <typename BotIdT = Aws::String>
46 void SetBotId(BotIdT&& value) {
47 m_botIdHasBeenSet = true;
48 m_botId = std::forward<BotIdT>(value);
49 }
50 template <typename BotIdT = Aws::String>
51 UpdateBotRequest& WithBotId(BotIdT&& value) {
52 SetBotId(std::forward<BotIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetBotName() const { return m_botName; }
63 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
64 template <typename BotNameT = Aws::String>
65 void SetBotName(BotNameT&& value) {
66 m_botNameHasBeenSet = true;
67 m_botName = std::forward<BotNameT>(value);
68 }
69 template <typename BotNameT = Aws::String>
70 UpdateBotRequest& WithBotName(BotNameT&& value) {
71 SetBotName(std::forward<BotNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 UpdateBotRequest& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
100 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
101 template <typename RoleArnT = Aws::String>
102 void SetRoleArn(RoleArnT&& value) {
103 m_roleArnHasBeenSet = true;
104 m_roleArn = std::forward<RoleArnT>(value);
105 }
106 template <typename RoleArnT = Aws::String>
107 UpdateBotRequest& WithRoleArn(RoleArnT&& value) {
108 SetRoleArn(std::forward<RoleArnT>(value));
109 return *this;
110 }
112
114
118 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
119 inline bool DataPrivacyHasBeenSet() const { return m_dataPrivacyHasBeenSet; }
120 template <typename DataPrivacyT = DataPrivacy>
121 void SetDataPrivacy(DataPrivacyT&& value) {
122 m_dataPrivacyHasBeenSet = true;
123 m_dataPrivacy = std::forward<DataPrivacyT>(value);
124 }
125 template <typename DataPrivacyT = DataPrivacy>
126 UpdateBotRequest& WithDataPrivacy(DataPrivacyT&& value) {
127 SetDataPrivacy(std::forward<DataPrivacyT>(value));
128 return *this;
129 }
131
133
140 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
141 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
142 inline void SetIdleSessionTTLInSeconds(int value) {
143 m_idleSessionTTLInSecondsHasBeenSet = true;
144 m_idleSessionTTLInSeconds = value;
145 }
148 return *this;
149 }
151
153
156 inline BotType GetBotType() const { return m_botType; }
157 inline bool BotTypeHasBeenSet() const { return m_botTypeHasBeenSet; }
158 inline void SetBotType(BotType value) {
159 m_botTypeHasBeenSet = true;
160 m_botType = value;
161 }
163 SetBotType(value);
164 return *this;
165 }
167
169
172 inline const Aws::Vector<BotMember>& GetBotMembers() const { return m_botMembers; }
173 inline bool BotMembersHasBeenSet() const { return m_botMembersHasBeenSet; }
174 template <typename BotMembersT = Aws::Vector<BotMember>>
175 void SetBotMembers(BotMembersT&& value) {
176 m_botMembersHasBeenSet = true;
177 m_botMembers = std::forward<BotMembersT>(value);
178 }
179 template <typename BotMembersT = Aws::Vector<BotMember>>
180 UpdateBotRequest& WithBotMembers(BotMembersT&& value) {
181 SetBotMembers(std::forward<BotMembersT>(value));
182 return *this;
183 }
184 template <typename BotMembersT = BotMember>
185 UpdateBotRequest& AddBotMembers(BotMembersT&& value) {
186 m_botMembersHasBeenSet = true;
187 m_botMembers.emplace_back(std::forward<BotMembersT>(value));
188 return *this;
189 }
191
193
198 inline const ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
199 inline bool ErrorLogSettingsHasBeenSet() const { return m_errorLogSettingsHasBeenSet; }
200 template <typename ErrorLogSettingsT = ErrorLogSettings>
201 void SetErrorLogSettings(ErrorLogSettingsT&& value) {
202 m_errorLogSettingsHasBeenSet = true;
203 m_errorLogSettings = std::forward<ErrorLogSettingsT>(value);
204 }
205 template <typename ErrorLogSettingsT = ErrorLogSettings>
206 UpdateBotRequest& WithErrorLogSettings(ErrorLogSettingsT&& value) {
207 SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_botId;
213
214 Aws::String m_botName;
215
216 Aws::String m_description;
217
218 Aws::String m_roleArn;
219
220 DataPrivacy m_dataPrivacy;
221
222 int m_idleSessionTTLInSeconds{0};
223
224 BotType m_botType{BotType::NOT_SET};
225
226 Aws::Vector<BotMember> m_botMembers;
227
228 ErrorLogSettings m_errorLogSettings;
229 bool m_botIdHasBeenSet = false;
230 bool m_botNameHasBeenSet = false;
231 bool m_descriptionHasBeenSet = false;
232 bool m_roleArnHasBeenSet = false;
233 bool m_dataPrivacyHasBeenSet = false;
234 bool m_idleSessionTTLInSecondsHasBeenSet = false;
235 bool m_botTypeHasBeenSet = false;
236 bool m_botMembersHasBeenSet = false;
237 bool m_errorLogSettingsHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace LexModelsV2
242} // namespace Aws
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
AWS_LEXMODELSV2_API UpdateBotRequest()=default
UpdateBotRequest & WithBotType(BotType value)
void SetErrorLogSettings(ErrorLogSettingsT &&value)
UpdateBotRequest & WithDataPrivacy(DataPrivacyT &&value)
UpdateBotRequest & AddBotMembers(BotMembersT &&value)
const Aws::Vector< BotMember > & GetBotMembers() const
void SetDescription(DescriptionT &&value)
UpdateBotRequest & WithBotName(BotNameT &&value)
UpdateBotRequest & WithBotMembers(BotMembersT &&value)
UpdateBotRequest & WithIdleSessionTTLInSeconds(int value)
UpdateBotRequest & WithDescription(DescriptionT &&value)
UpdateBotRequest & WithErrorLogSettings(ErrorLogSettingsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDescription() const
const ErrorLogSettings & GetErrorLogSettings() const
UpdateBotRequest & WithRoleArn(RoleArnT &&value)
const DataPrivacy & GetDataPrivacy() const
UpdateBotRequest & WithBotId(BotIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector