AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChatSyncRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/model/ActionExecution.h>
12#include <aws/qbusiness/model/AuthChallengeResponse.h>
13#include <aws/qbusiness/model/AttributeFilter.h>
14#include <aws/qbusiness/model/ChatMode.h>
15#include <aws/qbusiness/model/ChatModeConfiguration.h>
16#include <aws/qbusiness/model/AttachmentInput.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace Http
23{
24 class URI;
25} //namespace Http
26namespace QBusiness
27{
28namespace Model
29{
30
34 {
35 public:
36 AWS_QBUSINESS_API ChatSyncRequest();
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "ChatSync"; }
43
44 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
45
46 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
47
48
50
54 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
55 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
56 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
57 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
58 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
59 inline ChatSyncRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
60 inline ChatSyncRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
61 inline ChatSyncRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
63
65
68 inline const Aws::String& GetUserId() const{ return m_userId; }
69 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
70 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
71 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
72 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
73 inline ChatSyncRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
74 inline ChatSyncRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
75 inline ChatSyncRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
77
79
82 inline const Aws::Vector<Aws::String>& GetUserGroups() const{ return m_userGroups; }
83 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
84 inline void SetUserGroups(const Aws::Vector<Aws::String>& value) { m_userGroupsHasBeenSet = true; m_userGroups = value; }
85 inline void SetUserGroups(Aws::Vector<Aws::String>&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::move(value); }
86 inline ChatSyncRequest& WithUserGroups(const Aws::Vector<Aws::String>& value) { SetUserGroups(value); return *this;}
87 inline ChatSyncRequest& WithUserGroups(Aws::Vector<Aws::String>&& value) { SetUserGroups(std::move(value)); return *this;}
88 inline ChatSyncRequest& AddUserGroups(const Aws::String& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
89 inline ChatSyncRequest& AddUserGroups(Aws::String&& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(std::move(value)); return *this; }
90 inline ChatSyncRequest& AddUserGroups(const char* value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
92
94
97 inline const Aws::String& GetUserMessage() const{ return m_userMessage; }
98 inline bool UserMessageHasBeenSet() const { return m_userMessageHasBeenSet; }
99 inline void SetUserMessage(const Aws::String& value) { m_userMessageHasBeenSet = true; m_userMessage = value; }
100 inline void SetUserMessage(Aws::String&& value) { m_userMessageHasBeenSet = true; m_userMessage = std::move(value); }
101 inline void SetUserMessage(const char* value) { m_userMessageHasBeenSet = true; m_userMessage.assign(value); }
102 inline ChatSyncRequest& WithUserMessage(const Aws::String& value) { SetUserMessage(value); return *this;}
103 inline ChatSyncRequest& WithUserMessage(Aws::String&& value) { SetUserMessage(std::move(value)); return *this;}
104 inline ChatSyncRequest& WithUserMessage(const char* value) { SetUserMessage(value); return *this;}
106
108
112 inline const Aws::Vector<AttachmentInput>& GetAttachments() const{ return m_attachments; }
113 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
114 inline void SetAttachments(const Aws::Vector<AttachmentInput>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
115 inline void SetAttachments(Aws::Vector<AttachmentInput>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
116 inline ChatSyncRequest& WithAttachments(const Aws::Vector<AttachmentInput>& value) { SetAttachments(value); return *this;}
117 inline ChatSyncRequest& WithAttachments(Aws::Vector<AttachmentInput>&& value) { SetAttachments(std::move(value)); return *this;}
118 inline ChatSyncRequest& AddAttachments(const AttachmentInput& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
119 inline ChatSyncRequest& AddAttachments(AttachmentInput&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
121
123
126 inline const ActionExecution& GetActionExecution() const{ return m_actionExecution; }
127 inline bool ActionExecutionHasBeenSet() const { return m_actionExecutionHasBeenSet; }
128 inline void SetActionExecution(const ActionExecution& value) { m_actionExecutionHasBeenSet = true; m_actionExecution = value; }
129 inline void SetActionExecution(ActionExecution&& value) { m_actionExecutionHasBeenSet = true; m_actionExecution = std::move(value); }
130 inline ChatSyncRequest& WithActionExecution(const ActionExecution& value) { SetActionExecution(value); return *this;}
131 inline ChatSyncRequest& WithActionExecution(ActionExecution&& value) { SetActionExecution(std::move(value)); return *this;}
133
135
139 inline const AuthChallengeResponse& GetAuthChallengeResponse() const{ return m_authChallengeResponse; }
140 inline bool AuthChallengeResponseHasBeenSet() const { return m_authChallengeResponseHasBeenSet; }
141 inline void SetAuthChallengeResponse(const AuthChallengeResponse& value) { m_authChallengeResponseHasBeenSet = true; m_authChallengeResponse = value; }
142 inline void SetAuthChallengeResponse(AuthChallengeResponse&& value) { m_authChallengeResponseHasBeenSet = true; m_authChallengeResponse = std::move(value); }
146
148
151 inline const Aws::String& GetConversationId() const{ return m_conversationId; }
152 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
153 inline void SetConversationId(const Aws::String& value) { m_conversationIdHasBeenSet = true; m_conversationId = value; }
154 inline void SetConversationId(Aws::String&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::move(value); }
155 inline void SetConversationId(const char* value) { m_conversationIdHasBeenSet = true; m_conversationId.assign(value); }
156 inline ChatSyncRequest& WithConversationId(const Aws::String& value) { SetConversationId(value); return *this;}
157 inline ChatSyncRequest& WithConversationId(Aws::String&& value) { SetConversationId(std::move(value)); return *this;}
158 inline ChatSyncRequest& WithConversationId(const char* value) { SetConversationId(value); return *this;}
160
162
165 inline const Aws::String& GetParentMessageId() const{ return m_parentMessageId; }
166 inline bool ParentMessageIdHasBeenSet() const { return m_parentMessageIdHasBeenSet; }
167 inline void SetParentMessageId(const Aws::String& value) { m_parentMessageIdHasBeenSet = true; m_parentMessageId = value; }
168 inline void SetParentMessageId(Aws::String&& value) { m_parentMessageIdHasBeenSet = true; m_parentMessageId = std::move(value); }
169 inline void SetParentMessageId(const char* value) { m_parentMessageIdHasBeenSet = true; m_parentMessageId.assign(value); }
170 inline ChatSyncRequest& WithParentMessageId(const Aws::String& value) { SetParentMessageId(value); return *this;}
171 inline ChatSyncRequest& WithParentMessageId(Aws::String&& value) { SetParentMessageId(std::move(value)); return *this;}
172 inline ChatSyncRequest& WithParentMessageId(const char* value) { SetParentMessageId(value); return *this;}
174
176
180 inline const AttributeFilter& GetAttributeFilter() const{ return m_attributeFilter; }
181 inline bool AttributeFilterHasBeenSet() const { return m_attributeFilterHasBeenSet; }
182 inline void SetAttributeFilter(const AttributeFilter& value) { m_attributeFilterHasBeenSet = true; m_attributeFilter = value; }
183 inline void SetAttributeFilter(AttributeFilter&& value) { m_attributeFilterHasBeenSet = true; m_attributeFilter = std::move(value); }
184 inline ChatSyncRequest& WithAttributeFilter(const AttributeFilter& value) { SetAttributeFilter(value); return *this;}
185 inline ChatSyncRequest& WithAttributeFilter(AttributeFilter&& value) { SetAttributeFilter(std::move(value)); return *this;}
187
189
206 inline const ChatMode& GetChatMode() const{ return m_chatMode; }
207 inline bool ChatModeHasBeenSet() const { return m_chatModeHasBeenSet; }
208 inline void SetChatMode(const ChatMode& value) { m_chatModeHasBeenSet = true; m_chatMode = value; }
209 inline void SetChatMode(ChatMode&& value) { m_chatModeHasBeenSet = true; m_chatMode = std::move(value); }
210 inline ChatSyncRequest& WithChatMode(const ChatMode& value) { SetChatMode(value); return *this;}
211 inline ChatSyncRequest& WithChatMode(ChatMode&& value) { SetChatMode(std::move(value)); return *this;}
213
215
218 inline const ChatModeConfiguration& GetChatModeConfiguration() const{ return m_chatModeConfiguration; }
219 inline bool ChatModeConfigurationHasBeenSet() const { return m_chatModeConfigurationHasBeenSet; }
220 inline void SetChatModeConfiguration(const ChatModeConfiguration& value) { m_chatModeConfigurationHasBeenSet = true; m_chatModeConfiguration = value; }
221 inline void SetChatModeConfiguration(ChatModeConfiguration&& value) { m_chatModeConfigurationHasBeenSet = true; m_chatModeConfiguration = std::move(value); }
225
227
230 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
231 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
232 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
233 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
234 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
235 inline ChatSyncRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
236 inline ChatSyncRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
237 inline ChatSyncRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
239 private:
240
241 Aws::String m_applicationId;
242 bool m_applicationIdHasBeenSet = false;
243
244 Aws::String m_userId;
245 bool m_userIdHasBeenSet = false;
246
247 Aws::Vector<Aws::String> m_userGroups;
248 bool m_userGroupsHasBeenSet = false;
249
250 Aws::String m_userMessage;
251 bool m_userMessageHasBeenSet = false;
252
253 Aws::Vector<AttachmentInput> m_attachments;
254 bool m_attachmentsHasBeenSet = false;
255
256 ActionExecution m_actionExecution;
257 bool m_actionExecutionHasBeenSet = false;
258
259 AuthChallengeResponse m_authChallengeResponse;
260 bool m_authChallengeResponseHasBeenSet = false;
261
262 Aws::String m_conversationId;
263 bool m_conversationIdHasBeenSet = false;
264
265 Aws::String m_parentMessageId;
266 bool m_parentMessageIdHasBeenSet = false;
267
268 AttributeFilter m_attributeFilter;
269 bool m_attributeFilterHasBeenSet = false;
270
271 ChatMode m_chatMode;
272 bool m_chatModeHasBeenSet = false;
273
274 ChatModeConfiguration m_chatModeConfiguration;
275 bool m_chatModeConfigurationHasBeenSet = false;
276
277 Aws::String m_clientToken;
278 bool m_clientTokenHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace QBusiness
283} // namespace Aws
void SetConversationId(Aws::String &&value)
void SetUserMessage(Aws::String &&value)
void SetAuthChallengeResponse(AuthChallengeResponse &&value)
ChatSyncRequest & WithApplicationId(Aws::String &&value)
ChatSyncRequest & WithAuthChallengeResponse(const AuthChallengeResponse &value)
void SetUserId(const Aws::String &value)
ChatSyncRequest & AddAttachments(const AttachmentInput &value)
ChatSyncRequest & WithAuthChallengeResponse(AuthChallengeResponse &&value)
ChatSyncRequest & WithChatMode(const ChatMode &value)
ChatSyncRequest & WithUserId(Aws::String &&value)
void SetAttributeFilter(const AttributeFilter &value)
void SetUserGroups(const Aws::Vector< Aws::String > &value)
void SetAttachments(Aws::Vector< AttachmentInput > &&value)
void SetChatModeConfiguration(ChatModeConfiguration &&value)
ChatSyncRequest & WithUserId(const char *value)
ChatSyncRequest & WithParentMessageId(const Aws::String &value)
void SetAuthChallengeResponse(const AuthChallengeResponse &value)
ChatSyncRequest & WithClientToken(const Aws::String &value)
ChatSyncRequest & WithUserGroups(const Aws::Vector< Aws::String > &value)
ChatSyncRequest & WithApplicationId(const Aws::String &value)
ChatSyncRequest & WithActionExecution(const ActionExecution &value)
void SetUserMessage(const Aws::String &value)
ChatSyncRequest & WithChatMode(ChatMode &&value)
void SetChatModeConfiguration(const ChatModeConfiguration &value)
ChatSyncRequest & WithClientToken(Aws::String &&value)
const AttributeFilter & GetAttributeFilter() const
void SetClientToken(const Aws::String &value)
ChatSyncRequest & WithUserMessage(const char *value)
ChatSyncRequest & WithClientToken(const char *value)
const Aws::String & GetConversationId() const
AWS_QBUSINESS_API Aws::String SerializePayload() const override
ChatSyncRequest & WithConversationId(const Aws::String &value)
void SetUserId(Aws::String &&value)
ChatSyncRequest & WithUserMessage(const Aws::String &value)
void SetApplicationId(Aws::String &&value)
void SetClientToken(Aws::String &&value)
void SetParentMessageId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ChatSyncRequest & WithChatModeConfiguration(const ChatModeConfiguration &value)
void SetParentMessageId(const char *value)
ChatSyncRequest & WithUserMessage(Aws::String &&value)
void SetApplicationId(const char *value)
ChatSyncRequest & WithApplicationId(const char *value)
void SetActionExecution(const ActionExecution &value)
const AuthChallengeResponse & GetAuthChallengeResponse() const
ChatSyncRequest & WithActionExecution(ActionExecution &&value)
void SetUserGroups(Aws::Vector< Aws::String > &&value)
const Aws::String & GetUserMessage() const
ChatSyncRequest & WithUserGroups(Aws::Vector< Aws::String > &&value)
ChatSyncRequest & WithConversationId(Aws::String &&value)
void SetActionExecution(ActionExecution &&value)
ChatSyncRequest & WithConversationId(const char *value)
void SetChatMode(const ChatMode &value)
void SetApplicationId(const Aws::String &value)
const Aws::String & GetParentMessageId() const
ChatSyncRequest & AddUserGroups(const Aws::String &value)
ChatSyncRequest & WithAttributeFilter(const AttributeFilter &value)
ChatSyncRequest & AddUserGroups(Aws::String &&value)
const Aws::Vector< AttachmentInput > & GetAttachments() const
void SetAttachments(const Aws::Vector< AttachmentInput > &value)
ChatSyncRequest & WithAttachments(const Aws::Vector< AttachmentInput > &value)
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetApplicationId() const
ChatSyncRequest & WithParentMessageId(Aws::String &&value)
void SetAttributeFilter(AttributeFilter &&value)
ChatSyncRequest & WithChatModeConfiguration(ChatModeConfiguration &&value)
void SetParentMessageId(Aws::String &&value)
const ActionExecution & GetActionExecution() const
ChatSyncRequest & WithAttributeFilter(AttributeFilter &&value)
const Aws::String & GetUserId() const
const Aws::String & GetClientToken() const
ChatSyncRequest & AddUserGroups(const char *value)
const Aws::Vector< Aws::String > & GetUserGroups() const
ChatSyncRequest & WithUserId(const Aws::String &value)
void SetConversationId(const Aws::String &value)
ChatSyncRequest & WithParentMessageId(const char *value)
ChatSyncRequest & AddAttachments(AttachmentInput &&value)
ChatSyncRequest & WithAttachments(Aws::Vector< AttachmentInput > &&value)
void SetConversationId(const char *value)
const ChatModeConfiguration & GetChatModeConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector