AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ApplicationIdT = Aws::String>
57 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
58 template<typename ApplicationIdT = Aws::String>
59 ChatSyncRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetUserId() const { return m_userId; }
67 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
68 template<typename UserIdT = Aws::String>
69 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
70 template<typename UserIdT = Aws::String>
71 ChatSyncRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
73
75
78 inline const Aws::Vector<Aws::String>& GetUserGroups() const { return m_userGroups; }
79 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
80 template<typename UserGroupsT = Aws::Vector<Aws::String>>
81 void SetUserGroups(UserGroupsT&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::forward<UserGroupsT>(value); }
82 template<typename UserGroupsT = Aws::Vector<Aws::String>>
83 ChatSyncRequest& WithUserGroups(UserGroupsT&& value) { SetUserGroups(std::forward<UserGroupsT>(value)); return *this;}
84 template<typename UserGroupsT = Aws::String>
85 ChatSyncRequest& AddUserGroups(UserGroupsT&& value) { m_userGroupsHasBeenSet = true; m_userGroups.emplace_back(std::forward<UserGroupsT>(value)); return *this; }
87
89
92 inline const Aws::String& GetUserMessage() const { return m_userMessage; }
93 inline bool UserMessageHasBeenSet() const { return m_userMessageHasBeenSet; }
94 template<typename UserMessageT = Aws::String>
95 void SetUserMessage(UserMessageT&& value) { m_userMessageHasBeenSet = true; m_userMessage = std::forward<UserMessageT>(value); }
96 template<typename UserMessageT = Aws::String>
97 ChatSyncRequest& WithUserMessage(UserMessageT&& value) { SetUserMessage(std::forward<UserMessageT>(value)); return *this;}
99
101
105 inline const Aws::Vector<AttachmentInput>& GetAttachments() const { return m_attachments; }
106 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
107 template<typename AttachmentsT = Aws::Vector<AttachmentInput>>
108 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
109 template<typename AttachmentsT = Aws::Vector<AttachmentInput>>
110 ChatSyncRequest& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
111 template<typename AttachmentsT = AttachmentInput>
112 ChatSyncRequest& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
114
116
119 inline const ActionExecution& GetActionExecution() const { return m_actionExecution; }
120 inline bool ActionExecutionHasBeenSet() const { return m_actionExecutionHasBeenSet; }
121 template<typename ActionExecutionT = ActionExecution>
122 void SetActionExecution(ActionExecutionT&& value) { m_actionExecutionHasBeenSet = true; m_actionExecution = std::forward<ActionExecutionT>(value); }
123 template<typename ActionExecutionT = ActionExecution>
124 ChatSyncRequest& WithActionExecution(ActionExecutionT&& value) { SetActionExecution(std::forward<ActionExecutionT>(value)); return *this;}
126
128
132 inline const AuthChallengeResponse& GetAuthChallengeResponse() const { return m_authChallengeResponse; }
133 inline bool AuthChallengeResponseHasBeenSet() const { return m_authChallengeResponseHasBeenSet; }
134 template<typename AuthChallengeResponseT = AuthChallengeResponse>
135 void SetAuthChallengeResponse(AuthChallengeResponseT&& value) { m_authChallengeResponseHasBeenSet = true; m_authChallengeResponse = std::forward<AuthChallengeResponseT>(value); }
136 template<typename AuthChallengeResponseT = AuthChallengeResponse>
137 ChatSyncRequest& WithAuthChallengeResponse(AuthChallengeResponseT&& value) { SetAuthChallengeResponse(std::forward<AuthChallengeResponseT>(value)); return *this;}
139
141
144 inline const Aws::String& GetConversationId() const { return m_conversationId; }
145 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
146 template<typename ConversationIdT = Aws::String>
147 void SetConversationId(ConversationIdT&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::forward<ConversationIdT>(value); }
148 template<typename ConversationIdT = Aws::String>
149 ChatSyncRequest& WithConversationId(ConversationIdT&& value) { SetConversationId(std::forward<ConversationIdT>(value)); return *this;}
151
153
156 inline const Aws::String& GetParentMessageId() const { return m_parentMessageId; }
157 inline bool ParentMessageIdHasBeenSet() const { return m_parentMessageIdHasBeenSet; }
158 template<typename ParentMessageIdT = Aws::String>
159 void SetParentMessageId(ParentMessageIdT&& value) { m_parentMessageIdHasBeenSet = true; m_parentMessageId = std::forward<ParentMessageIdT>(value); }
160 template<typename ParentMessageIdT = Aws::String>
161 ChatSyncRequest& WithParentMessageId(ParentMessageIdT&& value) { SetParentMessageId(std::forward<ParentMessageIdT>(value)); return *this;}
163
165
169 inline const AttributeFilter& GetAttributeFilter() const { return m_attributeFilter; }
170 inline bool AttributeFilterHasBeenSet() const { return m_attributeFilterHasBeenSet; }
171 template<typename AttributeFilterT = AttributeFilter>
172 void SetAttributeFilter(AttributeFilterT&& value) { m_attributeFilterHasBeenSet = true; m_attributeFilter = std::forward<AttributeFilterT>(value); }
173 template<typename AttributeFilterT = AttributeFilter>
174 ChatSyncRequest& WithAttributeFilter(AttributeFilterT&& value) { SetAttributeFilter(std::forward<AttributeFilterT>(value)); return *this;}
176
178
202 inline ChatMode GetChatMode() const { return m_chatMode; }
203 inline bool ChatModeHasBeenSet() const { return m_chatModeHasBeenSet; }
204 inline void SetChatMode(ChatMode value) { m_chatModeHasBeenSet = true; m_chatMode = value; }
205 inline ChatSyncRequest& WithChatMode(ChatMode value) { SetChatMode(value); return *this;}
207
209
212 inline const ChatModeConfiguration& GetChatModeConfiguration() const { return m_chatModeConfiguration; }
213 inline bool ChatModeConfigurationHasBeenSet() const { return m_chatModeConfigurationHasBeenSet; }
214 template<typename ChatModeConfigurationT = ChatModeConfiguration>
215 void SetChatModeConfiguration(ChatModeConfigurationT&& value) { m_chatModeConfigurationHasBeenSet = true; m_chatModeConfiguration = std::forward<ChatModeConfigurationT>(value); }
216 template<typename ChatModeConfigurationT = ChatModeConfiguration>
217 ChatSyncRequest& WithChatModeConfiguration(ChatModeConfigurationT&& value) { SetChatModeConfiguration(std::forward<ChatModeConfigurationT>(value)); return *this;}
219
221
224 inline const Aws::String& GetClientToken() const { return m_clientToken; }
225 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
226 template<typename ClientTokenT = Aws::String>
227 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
228 template<typename ClientTokenT = Aws::String>
229 ChatSyncRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
231 private:
232
233 Aws::String m_applicationId;
234 bool m_applicationIdHasBeenSet = false;
235
236 Aws::String m_userId;
237 bool m_userIdHasBeenSet = false;
238
239 Aws::Vector<Aws::String> m_userGroups;
240 bool m_userGroupsHasBeenSet = false;
241
242 Aws::String m_userMessage;
243 bool m_userMessageHasBeenSet = false;
244
245 Aws::Vector<AttachmentInput> m_attachments;
246 bool m_attachmentsHasBeenSet = false;
247
248 ActionExecution m_actionExecution;
249 bool m_actionExecutionHasBeenSet = false;
250
251 AuthChallengeResponse m_authChallengeResponse;
252 bool m_authChallengeResponseHasBeenSet = false;
253
254 Aws::String m_conversationId;
255 bool m_conversationIdHasBeenSet = false;
256
257 Aws::String m_parentMessageId;
258 bool m_parentMessageIdHasBeenSet = false;
259
260 AttributeFilter m_attributeFilter;
261 bool m_attributeFilterHasBeenSet = false;
262
263 ChatMode m_chatMode{ChatMode::NOT_SET};
264 bool m_chatModeHasBeenSet = false;
265
266 ChatModeConfiguration m_chatModeConfiguration;
267 bool m_chatModeConfigurationHasBeenSet = false;
268
270 bool m_clientTokenHasBeenSet = true;
271 };
272
273} // namespace Model
274} // namespace QBusiness
275} // 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