AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ChatSyncResult.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/ActionReview.h>
10#include <aws/qbusiness/model/AuthChallengeRequest.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/qbusiness/model/SourceAttribution.h>
13#include <aws/qbusiness/model/AttachmentOutput.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace QBusiness
29{
30namespace Model
31{
33 {
34 public:
35 AWS_QBUSINESS_API ChatSyncResult() = default;
38
39
41
44 inline const Aws::String& GetConversationId() const { return m_conversationId; }
45 template<typename ConversationIdT = Aws::String>
46 void SetConversationId(ConversationIdT&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::forward<ConversationIdT>(value); }
47 template<typename ConversationIdT = Aws::String>
48 ChatSyncResult& WithConversationId(ConversationIdT&& value) { SetConversationId(std::forward<ConversationIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetSystemMessage() const { return m_systemMessage; }
56 template<typename SystemMessageT = Aws::String>
57 void SetSystemMessage(SystemMessageT&& value) { m_systemMessageHasBeenSet = true; m_systemMessage = std::forward<SystemMessageT>(value); }
58 template<typename SystemMessageT = Aws::String>
59 ChatSyncResult& WithSystemMessage(SystemMessageT&& value) { SetSystemMessage(std::forward<SystemMessageT>(value)); return *this;}
61
63
67 inline const Aws::String& GetSystemMessageId() const { return m_systemMessageId; }
68 template<typename SystemMessageIdT = Aws::String>
69 void SetSystemMessageId(SystemMessageIdT&& value) { m_systemMessageIdHasBeenSet = true; m_systemMessageId = std::forward<SystemMessageIdT>(value); }
70 template<typename SystemMessageIdT = Aws::String>
71 ChatSyncResult& WithSystemMessageId(SystemMessageIdT&& value) { SetSystemMessageId(std::forward<SystemMessageIdT>(value)); return *this;}
73
75
79 inline const Aws::String& GetUserMessageId() const { return m_userMessageId; }
80 template<typename UserMessageIdT = Aws::String>
81 void SetUserMessageId(UserMessageIdT&& value) { m_userMessageIdHasBeenSet = true; m_userMessageId = std::forward<UserMessageIdT>(value); }
82 template<typename UserMessageIdT = Aws::String>
83 ChatSyncResult& WithUserMessageId(UserMessageIdT&& value) { SetUserMessageId(std::forward<UserMessageIdT>(value)); return *this;}
85
87
91 inline const ActionReview& GetActionReview() const { return m_actionReview; }
92 template<typename ActionReviewT = ActionReview>
93 void SetActionReview(ActionReviewT&& value) { m_actionReviewHasBeenSet = true; m_actionReview = std::forward<ActionReviewT>(value); }
94 template<typename ActionReviewT = ActionReview>
95 ChatSyncResult& WithActionReview(ActionReviewT&& value) { SetActionReview(std::forward<ActionReviewT>(value)); return *this;}
97
99
103 inline const AuthChallengeRequest& GetAuthChallengeRequest() const { return m_authChallengeRequest; }
104 template<typename AuthChallengeRequestT = AuthChallengeRequest>
105 void SetAuthChallengeRequest(AuthChallengeRequestT&& value) { m_authChallengeRequestHasBeenSet = true; m_authChallengeRequest = std::forward<AuthChallengeRequestT>(value); }
106 template<typename AuthChallengeRequestT = AuthChallengeRequest>
107 ChatSyncResult& WithAuthChallengeRequest(AuthChallengeRequestT&& value) { SetAuthChallengeRequest(std::forward<AuthChallengeRequestT>(value)); return *this;}
109
111
114 inline const Aws::Vector<SourceAttribution>& GetSourceAttributions() const { return m_sourceAttributions; }
115 template<typename SourceAttributionsT = Aws::Vector<SourceAttribution>>
116 void SetSourceAttributions(SourceAttributionsT&& value) { m_sourceAttributionsHasBeenSet = true; m_sourceAttributions = std::forward<SourceAttributionsT>(value); }
117 template<typename SourceAttributionsT = Aws::Vector<SourceAttribution>>
118 ChatSyncResult& WithSourceAttributions(SourceAttributionsT&& value) { SetSourceAttributions(std::forward<SourceAttributionsT>(value)); return *this;}
119 template<typename SourceAttributionsT = SourceAttribution>
120 ChatSyncResult& AddSourceAttributions(SourceAttributionsT&& value) { m_sourceAttributionsHasBeenSet = true; m_sourceAttributions.emplace_back(std::forward<SourceAttributionsT>(value)); return *this; }
122
124
127 inline const Aws::Vector<AttachmentOutput>& GetFailedAttachments() const { return m_failedAttachments; }
128 template<typename FailedAttachmentsT = Aws::Vector<AttachmentOutput>>
129 void SetFailedAttachments(FailedAttachmentsT&& value) { m_failedAttachmentsHasBeenSet = true; m_failedAttachments = std::forward<FailedAttachmentsT>(value); }
130 template<typename FailedAttachmentsT = Aws::Vector<AttachmentOutput>>
131 ChatSyncResult& WithFailedAttachments(FailedAttachmentsT&& value) { SetFailedAttachments(std::forward<FailedAttachmentsT>(value)); return *this;}
132 template<typename FailedAttachmentsT = AttachmentOutput>
133 ChatSyncResult& AddFailedAttachments(FailedAttachmentsT&& value) { m_failedAttachmentsHasBeenSet = true; m_failedAttachments.emplace_back(std::forward<FailedAttachmentsT>(value)); return *this; }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template<typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
141 template<typename RequestIdT = Aws::String>
142 ChatSyncResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
144 private:
145
146 Aws::String m_conversationId;
147 bool m_conversationIdHasBeenSet = false;
148
149 Aws::String m_systemMessage;
150 bool m_systemMessageHasBeenSet = false;
151
152 Aws::String m_systemMessageId;
153 bool m_systemMessageIdHasBeenSet = false;
154
155 Aws::String m_userMessageId;
156 bool m_userMessageIdHasBeenSet = false;
157
158 ActionReview m_actionReview;
159 bool m_actionReviewHasBeenSet = false;
160
161 AuthChallengeRequest m_authChallengeRequest;
162 bool m_authChallengeRequestHasBeenSet = false;
163
164 Aws::Vector<SourceAttribution> m_sourceAttributions;
165 bool m_sourceAttributionsHasBeenSet = false;
166
167 Aws::Vector<AttachmentOutput> m_failedAttachments;
168 bool m_failedAttachmentsHasBeenSet = false;
169
170 Aws::String m_requestId;
171 bool m_requestIdHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace QBusiness
176} // namespace Aws
void SetFailedAttachments(FailedAttachmentsT &&value)
void SetRequestId(RequestIdT &&value)
ChatSyncResult & WithActionReview(ActionReviewT &&value)
ChatSyncResult & WithUserMessageId(UserMessageIdT &&value)
void SetAuthChallengeRequest(AuthChallengeRequestT &&value)
const Aws::String & GetSystemMessage() const
const AuthChallengeRequest & GetAuthChallengeRequest() const
const Aws::String & GetUserMessageId() const
void SetUserMessageId(UserMessageIdT &&value)
void SetConversationId(ConversationIdT &&value)
AWS_QBUSINESS_API ChatSyncResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ChatSyncResult & AddSourceAttributions(SourceAttributionsT &&value)
void SetActionReview(ActionReviewT &&value)
ChatSyncResult & WithSystemMessageId(SystemMessageIdT &&value)
void SetSourceAttributions(SourceAttributionsT &&value)
ChatSyncResult & WithAuthChallengeRequest(AuthChallengeRequestT &&value)
AWS_QBUSINESS_API ChatSyncResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ChatSyncResult & WithSystemMessage(SystemMessageT &&value)
AWS_QBUSINESS_API ChatSyncResult()=default
void SetSystemMessageId(SystemMessageIdT &&value)
const Aws::String & GetRequestId() const
const ActionReview & GetActionReview() const
ChatSyncResult & WithFailedAttachments(FailedAttachmentsT &&value)
void SetSystemMessage(SystemMessageT &&value)
ChatSyncResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetSystemMessageId() const
const Aws::String & GetConversationId() const
ChatSyncResult & WithConversationId(ConversationIdT &&value)
ChatSyncResult & WithSourceAttributions(SourceAttributionsT &&value)
const Aws::Vector< SourceAttribution > & GetSourceAttributions() const
const Aws::Vector< AttachmentOutput > & GetFailedAttachments() const
ChatSyncResult & AddFailedAttachments(FailedAttachmentsT &&value)
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
Aws::Utils::Json::JsonValue JsonValue