AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
PostTextResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lex/LexRuntimeService_EXPORTS.h>
11#include <aws/lex/model/ActiveContext.h>
12#include <aws/lex/model/DialogState.h>
13#include <aws/lex/model/IntentConfidence.h>
14#include <aws/lex/model/MessageFormatType.h>
15#include <aws/lex/model/PredictedIntent.h>
16#include <aws/lex/model/ResponseCard.h>
17#include <aws/lex/model/SentimentResponse.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace LexRuntimeService {
31namespace Model {
33 public:
34 AWS_LEXRUNTIMESERVICE_API PostTextResult() = default;
37
39
42 inline const Aws::String& GetIntentName() const { return m_intentName; }
43 template <typename IntentNameT = Aws::String>
44 void SetIntentName(IntentNameT&& value) {
45 m_intentNameHasBeenSet = true;
46 m_intentName = std::forward<IntentNameT>(value);
47 }
48 template <typename IntentNameT = Aws::String>
49 PostTextResult& WithIntentName(IntentNameT&& value) {
50 SetIntentName(std::forward<IntentNameT>(value));
51 return *this;
52 }
54
56
64 inline const IntentConfidence& GetNluIntentConfidence() const { return m_nluIntentConfidence; }
65 template <typename NluIntentConfidenceT = IntentConfidence>
66 void SetNluIntentConfidence(NluIntentConfidenceT&& value) {
67 m_nluIntentConfidenceHasBeenSet = true;
68 m_nluIntentConfidence = std::forward<NluIntentConfidenceT>(value);
69 }
70 template <typename NluIntentConfidenceT = IntentConfidence>
71 PostTextResult& WithNluIntentConfidence(NluIntentConfidenceT&& value) {
72 SetNluIntentConfidence(std::forward<NluIntentConfidenceT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::Vector<PredictedIntent>& GetAlternativeIntents() const { return m_alternativeIntents; }
85 template <typename AlternativeIntentsT = Aws::Vector<PredictedIntent>>
86 void SetAlternativeIntents(AlternativeIntentsT&& value) {
87 m_alternativeIntentsHasBeenSet = true;
88 m_alternativeIntents = std::forward<AlternativeIntentsT>(value);
89 }
90 template <typename AlternativeIntentsT = Aws::Vector<PredictedIntent>>
91 PostTextResult& WithAlternativeIntents(AlternativeIntentsT&& value) {
92 SetAlternativeIntents(std::forward<AlternativeIntentsT>(value));
93 return *this;
94 }
95 template <typename AlternativeIntentsT = PredictedIntent>
96 PostTextResult& AddAlternativeIntents(AlternativeIntentsT&& value) {
97 m_alternativeIntentsHasBeenSet = true;
98 m_alternativeIntents.emplace_back(std::forward<AlternativeIntentsT>(value));
99 return *this;
100 }
102
104
117 inline const Aws::Map<Aws::String, Aws::String>& GetSlots() const { return m_slots; }
118 template <typename SlotsT = Aws::Map<Aws::String, Aws::String>>
119 void SetSlots(SlotsT&& value) {
120 m_slotsHasBeenSet = true;
121 m_slots = std::forward<SlotsT>(value);
122 }
123 template <typename SlotsT = Aws::Map<Aws::String, Aws::String>>
124 PostTextResult& WithSlots(SlotsT&& value) {
125 SetSlots(std::forward<SlotsT>(value));
126 return *this;
127 }
128 template <typename SlotsKeyT = Aws::String, typename SlotsValueT = Aws::String>
129 PostTextResult& AddSlots(SlotsKeyT&& key, SlotsValueT&& value) {
130 m_slotsHasBeenSet = true;
131 m_slots.emplace(std::forward<SlotsKeyT>(key), std::forward<SlotsValueT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const { return m_sessionAttributes; }
142 template <typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
143 void SetSessionAttributes(SessionAttributesT&& value) {
144 m_sessionAttributesHasBeenSet = true;
145 m_sessionAttributes = std::forward<SessionAttributesT>(value);
146 }
147 template <typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
148 PostTextResult& WithSessionAttributes(SessionAttributesT&& value) {
149 SetSessionAttributes(std::forward<SessionAttributesT>(value));
150 return *this;
151 }
152 template <typename SessionAttributesKeyT = Aws::String, typename SessionAttributesValueT = Aws::String>
153 PostTextResult& AddSessionAttributes(SessionAttributesKeyT&& key, SessionAttributesValueT&& value) {
154 m_sessionAttributesHasBeenSet = true;
155 m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(key), std::forward<SessionAttributesValueT>(value));
156 return *this;
157 }
159
161
176 inline const Aws::String& GetMessage() const { return m_message; }
177 template <typename MessageT = Aws::String>
178 void SetMessage(MessageT&& value) {
179 m_messageHasBeenSet = true;
180 m_message = std::forward<MessageT>(value);
181 }
182 template <typename MessageT = Aws::String>
183 PostTextResult& WithMessage(MessageT&& value) {
184 SetMessage(std::forward<MessageT>(value));
185 return *this;
186 }
188
190
195 inline const SentimentResponse& GetSentimentResponse() const { return m_sentimentResponse; }
196 template <typename SentimentResponseT = SentimentResponse>
197 void SetSentimentResponse(SentimentResponseT&& value) {
198 m_sentimentResponseHasBeenSet = true;
199 m_sentimentResponse = std::forward<SentimentResponseT>(value);
200 }
201 template <typename SentimentResponseT = SentimentResponse>
202 PostTextResult& WithSentimentResponse(SentimentResponseT&& value) {
203 SetSentimentResponse(std::forward<SentimentResponseT>(value));
204 return *this;
205 }
207
209
219 inline MessageFormatType GetMessageFormat() const { return m_messageFormat; }
221 m_messageFormatHasBeenSet = true;
222 m_messageFormat = value;
223 }
225 SetMessageFormat(value);
226 return *this;
227 }
229
231
260 inline DialogState GetDialogState() const { return m_dialogState; }
261 inline void SetDialogState(DialogState value) {
262 m_dialogStateHasBeenSet = true;
263 m_dialogState = value;
264 }
266 SetDialogState(value);
267 return *this;
268 }
270
272
276 inline const Aws::String& GetSlotToElicit() const { return m_slotToElicit; }
277 template <typename SlotToElicitT = Aws::String>
278 void SetSlotToElicit(SlotToElicitT&& value) {
279 m_slotToElicitHasBeenSet = true;
280 m_slotToElicit = std::forward<SlotToElicitT>(value);
281 }
282 template <typename SlotToElicitT = Aws::String>
283 PostTextResult& WithSlotToElicit(SlotToElicitT&& value) {
284 SetSlotToElicit(std::forward<SlotToElicitT>(value));
285 return *this;
286 }
288
290
296 inline const ResponseCard& GetResponseCard() const { return m_responseCard; }
297 template <typename ResponseCardT = ResponseCard>
298 void SetResponseCard(ResponseCardT&& value) {
299 m_responseCardHasBeenSet = true;
300 m_responseCard = std::forward<ResponseCardT>(value);
301 }
302 template <typename ResponseCardT = ResponseCard>
303 PostTextResult& WithResponseCard(ResponseCardT&& value) {
304 SetResponseCard(std::forward<ResponseCardT>(value));
305 return *this;
306 }
308
310
313 inline const Aws::String& GetSessionId() const { return m_sessionId; }
314 template <typename SessionIdT = Aws::String>
315 void SetSessionId(SessionIdT&& value) {
316 m_sessionIdHasBeenSet = true;
317 m_sessionId = std::forward<SessionIdT>(value);
318 }
319 template <typename SessionIdT = Aws::String>
320 PostTextResult& WithSessionId(SessionIdT&& value) {
321 SetSessionId(std::forward<SessionIdT>(value));
322 return *this;
323 }
325
327
332 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
333 template <typename BotVersionT = Aws::String>
334 void SetBotVersion(BotVersionT&& value) {
335 m_botVersionHasBeenSet = true;
336 m_botVersion = std::forward<BotVersionT>(value);
337 }
338 template <typename BotVersionT = Aws::String>
339 PostTextResult& WithBotVersion(BotVersionT&& value) {
340 SetBotVersion(std::forward<BotVersionT>(value));
341 return *this;
342 }
344
346
353 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const { return m_activeContexts; }
354 template <typename ActiveContextsT = Aws::Vector<ActiveContext>>
355 void SetActiveContexts(ActiveContextsT&& value) {
356 m_activeContextsHasBeenSet = true;
357 m_activeContexts = std::forward<ActiveContextsT>(value);
358 }
359 template <typename ActiveContextsT = Aws::Vector<ActiveContext>>
360 PostTextResult& WithActiveContexts(ActiveContextsT&& value) {
361 SetActiveContexts(std::forward<ActiveContextsT>(value));
362 return *this;
363 }
364 template <typename ActiveContextsT = ActiveContext>
365 PostTextResult& AddActiveContexts(ActiveContextsT&& value) {
366 m_activeContextsHasBeenSet = true;
367 m_activeContexts.emplace_back(std::forward<ActiveContextsT>(value));
368 return *this;
369 }
371
373
374 inline const Aws::String& GetRequestId() const { return m_requestId; }
375 template <typename RequestIdT = Aws::String>
376 void SetRequestId(RequestIdT&& value) {
377 m_requestIdHasBeenSet = true;
378 m_requestId = std::forward<RequestIdT>(value);
379 }
380 template <typename RequestIdT = Aws::String>
381 PostTextResult& WithRequestId(RequestIdT&& value) {
382 SetRequestId(std::forward<RequestIdT>(value));
383 return *this;
384 }
386 private:
387 Aws::String m_intentName;
388
389 IntentConfidence m_nluIntentConfidence;
390
391 Aws::Vector<PredictedIntent> m_alternativeIntents;
392
394
395 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
396
397 Aws::String m_message;
398
399 SentimentResponse m_sentimentResponse;
400
402
403 DialogState m_dialogState{DialogState::NOT_SET};
404
405 Aws::String m_slotToElicit;
406
407 ResponseCard m_responseCard;
408
409 Aws::String m_sessionId;
410
411 Aws::String m_botVersion;
412
413 Aws::Vector<ActiveContext> m_activeContexts;
414
415 Aws::String m_requestId;
416 bool m_intentNameHasBeenSet = false;
417 bool m_nluIntentConfidenceHasBeenSet = false;
418 bool m_alternativeIntentsHasBeenSet = false;
419 bool m_slotsHasBeenSet = false;
420 bool m_sessionAttributesHasBeenSet = false;
421 bool m_messageHasBeenSet = false;
422 bool m_sentimentResponseHasBeenSet = false;
423 bool m_messageFormatHasBeenSet = false;
424 bool m_dialogStateHasBeenSet = false;
425 bool m_slotToElicitHasBeenSet = false;
426 bool m_responseCardHasBeenSet = false;
427 bool m_sessionIdHasBeenSet = false;
428 bool m_botVersionHasBeenSet = false;
429 bool m_activeContextsHasBeenSet = false;
430 bool m_requestIdHasBeenSet = false;
431};
432
433} // namespace Model
434} // namespace LexRuntimeService
435} // namespace Aws
const ResponseCard & GetResponseCard() const
AWS_LEXRUNTIMESERVICE_API PostTextResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PostTextResult & AddActiveContexts(ActiveContextsT &&value)
const Aws::Vector< PredictedIntent > & GetAlternativeIntents() const
void SetAlternativeIntents(AlternativeIntentsT &&value)
PostTextResult & WithSessionAttributes(SessionAttributesT &&value)
void SetMessageFormat(MessageFormatType value)
PostTextResult & AddAlternativeIntents(AlternativeIntentsT &&value)
void SetNluIntentConfidence(NluIntentConfidenceT &&value)
PostTextResult & WithMessage(MessageT &&value)
PostTextResult & WithSentimentResponse(SentimentResponseT &&value)
PostTextResult & WithDialogState(DialogState value)
PostTextResult & WithAlternativeIntents(AlternativeIntentsT &&value)
void SetSlots(SlotsT &&value)
PostTextResult & AddSlots(SlotsKeyT &&key, SlotsValueT &&value)
void SetResponseCard(ResponseCardT &&value)
const Aws::String & GetMessage() const
PostTextResult & WithActiveContexts(ActiveContextsT &&value)
AWS_LEXRUNTIMESERVICE_API PostTextResult()=default
PostTextResult & WithBotVersion(BotVersionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSlots() const
void SetSentimentResponse(SentimentResponseT &&value)
void SetSlotToElicit(SlotToElicitT &&value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
void SetSessionId(SessionIdT &&value)
const IntentConfidence & GetNluIntentConfidence() const
void SetBotVersion(BotVersionT &&value)
const Aws::String & GetBotVersion() const
PostTextResult & WithNluIntentConfidence(NluIntentConfidenceT &&value)
PostTextResult & WithMessageFormat(MessageFormatType value)
MessageFormatType GetMessageFormat() const
void SetRequestId(RequestIdT &&value)
AWS_LEXRUNTIMESERVICE_API PostTextResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PostTextResult & WithSessionId(SessionIdT &&value)
PostTextResult & WithSlots(SlotsT &&value)
PostTextResult & WithRequestId(RequestIdT &&value)
void SetMessage(MessageT &&value)
const Aws::String & GetSlotToElicit() const
PostTextResult & WithResponseCard(ResponseCardT &&value)
const Aws::String & GetSessionId() const
const Aws::String & GetIntentName() const
PostTextResult & WithSlotToElicit(SlotToElicitT &&value)
const SentimentResponse & GetSentimentResponse() const
PostTextResult & WithIntentName(IntentNameT &&value)
const Aws::String & GetRequestId() const
PostTextResult & AddSessionAttributes(SessionAttributesKeyT &&key, SessionAttributesValueT &&value)
DialogState GetDialogState() const
void SetIntentName(IntentNameT &&value)
void SetActiveContexts(ActiveContextsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
void SetDialogState(DialogState value)
void SetSessionAttributes(SessionAttributesT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue