AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ChatSyncRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/QBusinessRequest.h>
11#include <aws/qbusiness/QBusiness_EXPORTS.h>
12#include <aws/qbusiness/model/ActionExecution.h>
13#include <aws/qbusiness/model/AttachmentInput.h>
14#include <aws/qbusiness/model/AttributeFilter.h>
15#include <aws/qbusiness/model/AuthChallengeResponse.h>
16#include <aws/qbusiness/model/ChatMode.h>
17#include <aws/qbusiness/model/ChatModeConfiguration.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Http {
23class URI;
24} // namespace Http
25namespace QBusiness {
26namespace Model {
27
31 public:
32 AWS_QBUSINESS_API ChatSyncRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ChatSync"; }
39
40 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
41
42 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
49 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
50 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
51 template <typename ApplicationIdT = Aws::String>
53 m_applicationIdHasBeenSet = true;
54 m_applicationId = std::forward<ApplicationIdT>(value);
55 }
56 template <typename ApplicationIdT = Aws::String>
58 SetApplicationId(std::forward<ApplicationIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetUserId() const { return m_userId; }
68 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
69 template <typename UserIdT = Aws::String>
70 void SetUserId(UserIdT&& value) {
71 m_userIdHasBeenSet = true;
72 m_userId = std::forward<UserIdT>(value);
73 }
74 template <typename UserIdT = Aws::String>
76 SetUserId(std::forward<UserIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<Aws::String>& GetUserGroups() const { return m_userGroups; }
86 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
87 template <typename UserGroupsT = Aws::Vector<Aws::String>>
88 void SetUserGroups(UserGroupsT&& value) {
89 m_userGroupsHasBeenSet = true;
90 m_userGroups = std::forward<UserGroupsT>(value);
91 }
92 template <typename UserGroupsT = Aws::Vector<Aws::String>>
94 SetUserGroups(std::forward<UserGroupsT>(value));
95 return *this;
96 }
97 template <typename UserGroupsT = Aws::String>
99 m_userGroupsHasBeenSet = true;
100 m_userGroups.emplace_back(std::forward<UserGroupsT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetUserMessage() const { return m_userMessage; }
110 inline bool UserMessageHasBeenSet() const { return m_userMessageHasBeenSet; }
111 template <typename UserMessageT = Aws::String>
113 m_userMessageHasBeenSet = true;
114 m_userMessage = std::forward<UserMessageT>(value);
115 }
116 template <typename UserMessageT = Aws::String>
118 SetUserMessage(std::forward<UserMessageT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::Vector<AttachmentInput>& GetAttachments() const { return m_attachments; }
129 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
130 template <typename AttachmentsT = Aws::Vector<AttachmentInput>>
132 m_attachmentsHasBeenSet = true;
133 m_attachments = std::forward<AttachmentsT>(value);
134 }
135 template <typename AttachmentsT = Aws::Vector<AttachmentInput>>
137 SetAttachments(std::forward<AttachmentsT>(value));
138 return *this;
139 }
140 template <typename AttachmentsT = AttachmentInput>
142 m_attachmentsHasBeenSet = true;
143 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
144 return *this;
145 }
147
149
152 inline const ActionExecution& GetActionExecution() const { return m_actionExecution; }
153 inline bool ActionExecutionHasBeenSet() const { return m_actionExecutionHasBeenSet; }
154 template <typename ActionExecutionT = ActionExecution>
156 m_actionExecutionHasBeenSet = true;
157 m_actionExecution = std::forward<ActionExecutionT>(value);
158 }
159 template <typename ActionExecutionT = ActionExecution>
161 SetActionExecution(std::forward<ActionExecutionT>(value));
162 return *this;
163 }
165
167
171 inline const AuthChallengeResponse& GetAuthChallengeResponse() const { return m_authChallengeResponse; }
172 inline bool AuthChallengeResponseHasBeenSet() const { return m_authChallengeResponseHasBeenSet; }
173 template <typename AuthChallengeResponseT = AuthChallengeResponse>
175 m_authChallengeResponseHasBeenSet = true;
176 m_authChallengeResponse = std::forward<AuthChallengeResponseT>(value);
177 }
178 template <typename AuthChallengeResponseT = AuthChallengeResponse>
180 SetAuthChallengeResponse(std::forward<AuthChallengeResponseT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetConversationId() const { return m_conversationId; }
190 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
191 template <typename ConversationIdT = Aws::String>
193 m_conversationIdHasBeenSet = true;
194 m_conversationId = std::forward<ConversationIdT>(value);
195 }
196 template <typename ConversationIdT = Aws::String>
198 SetConversationId(std::forward<ConversationIdT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetParentMessageId() const { return m_parentMessageId; }
208 inline bool ParentMessageIdHasBeenSet() const { return m_parentMessageIdHasBeenSet; }
209 template <typename ParentMessageIdT = Aws::String>
211 m_parentMessageIdHasBeenSet = true;
212 m_parentMessageId = std::forward<ParentMessageIdT>(value);
213 }
214 template <typename ParentMessageIdT = Aws::String>
216 SetParentMessageId(std::forward<ParentMessageIdT>(value));
217 return *this;
218 }
220
222
226 inline const AttributeFilter& GetAttributeFilter() const { return m_attributeFilter; }
227 inline bool AttributeFilterHasBeenSet() const { return m_attributeFilterHasBeenSet; }
228 template <typename AttributeFilterT = AttributeFilter>
230 m_attributeFilterHasBeenSet = true;
231 m_attributeFilter = std::forward<AttributeFilterT>(value);
232 }
233 template <typename AttributeFilterT = AttributeFilter>
235 SetAttributeFilter(std::forward<AttributeFilterT>(value));
236 return *this;
237 }
239
241
265 inline ChatMode GetChatMode() const { return m_chatMode; }
266 inline bool ChatModeHasBeenSet() const { return m_chatModeHasBeenSet; }
267 inline void SetChatMode(ChatMode value) {
268 m_chatModeHasBeenSet = true;
269 m_chatMode = value;
270 }
272 SetChatMode(value);
273 return *this;
274 }
276
278
281 inline const ChatModeConfiguration& GetChatModeConfiguration() const { return m_chatModeConfiguration; }
282 inline bool ChatModeConfigurationHasBeenSet() const { return m_chatModeConfigurationHasBeenSet; }
283 template <typename ChatModeConfigurationT = ChatModeConfiguration>
285 m_chatModeConfigurationHasBeenSet = true;
286 m_chatModeConfiguration = std::forward<ChatModeConfigurationT>(value);
287 }
288 template <typename ChatModeConfigurationT = ChatModeConfiguration>
290 SetChatModeConfiguration(std::forward<ChatModeConfigurationT>(value));
291 return *this;
292 }
294
296
299 inline const Aws::String& GetClientToken() const { return m_clientToken; }
300 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
301 template <typename ClientTokenT = Aws::String>
303 m_clientTokenHasBeenSet = true;
304 m_clientToken = std::forward<ClientTokenT>(value);
305 }
306 template <typename ClientTokenT = Aws::String>
308 SetClientToken(std::forward<ClientTokenT>(value));
309 return *this;
310 }
312 private:
313 Aws::String m_applicationId;
314
315 Aws::String m_userId;
316
317 Aws::Vector<Aws::String> m_userGroups;
318
319 Aws::String m_userMessage;
320
321 Aws::Vector<AttachmentInput> m_attachments;
322
323 ActionExecution m_actionExecution;
324
325 AuthChallengeResponse m_authChallengeResponse;
326
327 Aws::String m_conversationId;
328
329 Aws::String m_parentMessageId;
330
331 AttributeFilter m_attributeFilter;
332
333 ChatMode m_chatMode{ChatMode::NOT_SET};
334
335 ChatModeConfiguration m_chatModeConfiguration;
336
338 bool m_applicationIdHasBeenSet = false;
339 bool m_userIdHasBeenSet = false;
340 bool m_userGroupsHasBeenSet = false;
341 bool m_userMessageHasBeenSet = false;
342 bool m_attachmentsHasBeenSet = false;
343 bool m_actionExecutionHasBeenSet = false;
344 bool m_authChallengeResponseHasBeenSet = false;
345 bool m_conversationIdHasBeenSet = false;
346 bool m_parentMessageIdHasBeenSet = false;
347 bool m_attributeFilterHasBeenSet = false;
348 bool m_chatModeHasBeenSet = false;
349 bool m_chatModeConfigurationHasBeenSet = false;
350 bool m_clientTokenHasBeenSet = true;
351};
352
353} // namespace Model
354} // namespace QBusiness
355} // namespace Aws
void SetActionExecution(ActionExecutionT &&value)
void SetChatModeConfiguration(ChatModeConfigurationT &&value)
ChatSyncRequest & WithApplicationId(ApplicationIdT &&value)
void SetAuthChallengeResponse(AuthChallengeResponseT &&value)
ChatSyncRequest & WithAuthChallengeResponse(AuthChallengeResponseT &&value)
ChatSyncRequest & WithUserGroups(UserGroupsT &&value)
ChatSyncRequest & WithChatModeConfiguration(ChatModeConfigurationT &&value)
const AttributeFilter & GetAttributeFilter() const
ChatSyncRequest & WithAttachments(AttachmentsT &&value)
ChatSyncRequest & WithParentMessageId(ParentMessageIdT &&value)
const Aws::String & GetConversationId() const
AWS_QBUSINESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetAttachments(AttachmentsT &&value)
ChatSyncRequest & WithClientToken(ClientTokenT &&value)
ChatSyncRequest & WithActionExecution(ActionExecutionT &&value)
const AuthChallengeResponse & GetAuthChallengeResponse() const
ChatSyncRequest & WithConversationId(ConversationIdT &&value)
const Aws::String & GetUserMessage() const
void SetUserMessage(UserMessageT &&value)
ChatSyncRequest & WithChatMode(ChatMode value)
const Aws::String & GetParentMessageId() const
const Aws::Vector< AttachmentInput > & GetAttachments() const
void SetConversationId(ConversationIdT &&value)
AWS_QBUSINESS_API ChatSyncRequest()=default
ChatSyncRequest & WithUserId(UserIdT &&value)
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetApplicationId(ApplicationIdT &&value)
const Aws::String & GetApplicationId() const
ChatSyncRequest & AddAttachments(AttachmentsT &&value)
ChatSyncRequest & WithUserMessage(UserMessageT &&value)
const ActionExecution & GetActionExecution() const
void SetAttributeFilter(AttributeFilterT &&value)
const Aws::String & GetUserId() const
const Aws::String & GetClientToken() const
void SetUserGroups(UserGroupsT &&value)
const Aws::Vector< Aws::String > & GetUserGroups() const
ChatSyncRequest & AddUserGroups(UserGroupsT &&value)
void SetParentMessageId(ParentMessageIdT &&value)
ChatSyncRequest & WithAttributeFilter(AttributeFilterT &&value)
void SetClientToken(ClientTokenT &&value)
const ChatModeConfiguration & GetChatModeConfiguration() const
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector