AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SendMessageRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/QConnectRequest.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/ConversationContext.h>
13#include <aws/qconnect/model/MessageConfiguration.h>
14#include <aws/qconnect/model/MessageInput.h>
15#include <aws/qconnect/model/MessageType.h>
16
17#include <utility>
18
19namespace Aws {
20namespace QConnect {
21namespace Model {
22
26 public:
27 AWS_QCONNECT_API SendMessageRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SendMessage"; }
34
35 AWS_QCONNECT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
42 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
43 template <typename AssistantIdT = Aws::String>
45 m_assistantIdHasBeenSet = true;
46 m_assistantId = std::forward<AssistantIdT>(value);
47 }
48 template <typename AssistantIdT = Aws::String>
50 SetAssistantId(std::forward<AssistantIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSessionId() const { return m_sessionId; }
60 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
61 template <typename SessionIdT = Aws::String>
62 void SetSessionId(SessionIdT&& value) {
63 m_sessionIdHasBeenSet = true;
64 m_sessionId = std::forward<SessionIdT>(value);
65 }
66 template <typename SessionIdT = Aws::String>
68 SetSessionId(std::forward<SessionIdT>(value));
69 return *this;
70 }
72
74
77 inline MessageType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(MessageType value) {
80 m_typeHasBeenSet = true;
81 m_type = value;
82 }
84 SetType(value);
85 return *this;
86 }
88
90
93 inline const MessageInput& GetMessage() const { return m_message; }
94 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
95 template <typename MessageT = MessageInput>
96 void SetMessage(MessageT&& value) {
97 m_messageHasBeenSet = true;
98 m_message = std::forward<MessageT>(value);
99 }
100 template <typename MessageT = MessageInput>
102 SetMessage(std::forward<MessageT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetAiAgentId() const { return m_aiAgentId; }
112 inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; }
113 template <typename AiAgentIdT = Aws::String>
114 void SetAiAgentId(AiAgentIdT&& value) {
115 m_aiAgentIdHasBeenSet = true;
116 m_aiAgentId = std::forward<AiAgentIdT>(value);
117 }
118 template <typename AiAgentIdT = Aws::String>
120 SetAiAgentId(std::forward<AiAgentIdT>(value));
121 return *this;
122 }
124
126
129 inline const ConversationContext& GetConversationContext() const { return m_conversationContext; }
130 inline bool ConversationContextHasBeenSet() const { return m_conversationContextHasBeenSet; }
131 template <typename ConversationContextT = ConversationContext>
133 m_conversationContextHasBeenSet = true;
134 m_conversationContext = std::forward<ConversationContextT>(value);
135 }
136 template <typename ConversationContextT = ConversationContext>
138 SetConversationContext(std::forward<ConversationContextT>(value));
139 return *this;
140 }
142
144
149 inline const MessageConfiguration& GetConfiguration() const { return m_configuration; }
150 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
151 template <typename ConfigurationT = MessageConfiguration>
153 m_configurationHasBeenSet = true;
154 m_configuration = std::forward<ConfigurationT>(value);
155 }
156 template <typename ConfigurationT = MessageConfiguration>
158 SetConfiguration(std::forward<ConfigurationT>(value));
159 return *this;
160 }
162
164
170 inline const Aws::String& GetClientToken() const { return m_clientToken; }
171 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
172 template <typename ClientTokenT = Aws::String>
174 m_clientTokenHasBeenSet = true;
175 m_clientToken = std::forward<ClientTokenT>(value);
176 }
177 template <typename ClientTokenT = Aws::String>
179 SetClientToken(std::forward<ClientTokenT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetOrchestratorUseCase() const { return m_orchestratorUseCase; }
189 inline bool OrchestratorUseCaseHasBeenSet() const { return m_orchestratorUseCaseHasBeenSet; }
190 template <typename OrchestratorUseCaseT = Aws::String>
192 m_orchestratorUseCaseHasBeenSet = true;
193 m_orchestratorUseCase = std::forward<OrchestratorUseCaseT>(value);
194 }
195 template <typename OrchestratorUseCaseT = Aws::String>
197 SetOrchestratorUseCase(std::forward<OrchestratorUseCaseT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
207 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
208 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
209 void SetMetadata(MetadataT&& value) {
210 m_metadataHasBeenSet = true;
211 m_metadata = std::forward<MetadataT>(value);
212 }
213 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
215 SetMetadata(std::forward<MetadataT>(value));
216 return *this;
217 }
218 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
220 m_metadataHasBeenSet = true;
221 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
222 return *this;
223 }
225 private:
226 Aws::String m_assistantId;
227
228 Aws::String m_sessionId;
229
231
232 MessageInput m_message;
233
234 Aws::String m_aiAgentId;
235
236 ConversationContext m_conversationContext;
237
238 MessageConfiguration m_configuration;
239
241
242 Aws::String m_orchestratorUseCase;
243
245 bool m_assistantIdHasBeenSet = false;
246 bool m_sessionIdHasBeenSet = false;
247 bool m_typeHasBeenSet = false;
248 bool m_messageHasBeenSet = false;
249 bool m_aiAgentIdHasBeenSet = false;
250 bool m_conversationContextHasBeenSet = false;
251 bool m_configurationHasBeenSet = false;
252 bool m_clientTokenHasBeenSet = true;
253 bool m_orchestratorUseCaseHasBeenSet = false;
254 bool m_metadataHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace QConnect
259} // namespace Aws
const MessageConfiguration & GetConfiguration() const
SendMessageRequest & WithClientToken(ClientTokenT &&value)
AWS_QCONNECT_API SendMessageRequest()=default
SendMessageRequest & WithAssistantId(AssistantIdT &&value)
const Aws::String & GetOrchestratorUseCase() const
SendMessageRequest & WithConversationContext(ConversationContextT &&value)
SendMessageRequest & WithConfiguration(ConfigurationT &&value)
SendMessageRequest & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
SendMessageRequest & WithMessage(MessageT &&value)
SendMessageRequest & WithMetadata(MetadataT &&value)
SendMessageRequest & WithType(MessageType value)
virtual const char * GetServiceRequestName() const override
void SetConfiguration(ConfigurationT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
void SetOrchestratorUseCase(OrchestratorUseCaseT &&value)
SendMessageRequest & WithSessionId(SessionIdT &&value)
const MessageInput & GetMessage() const
const ConversationContext & GetConversationContext() const
const Aws::String & GetAssistantId() const
SendMessageRequest & WithOrchestratorUseCase(OrchestratorUseCaseT &&value)
SendMessageRequest & WithAiAgentId(AiAgentIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetConversationContext(ConversationContextT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String