AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PostTextResult.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex/model/IntentConfidence.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/lex/model/SentimentResponse.h>
13#include <aws/lex/model/MessageFormatType.h>
14#include <aws/lex/model/DialogState.h>
15#include <aws/lex/model/ResponseCard.h>
16#include <aws/lex/model/PredictedIntent.h>
17#include <aws/lex/model/ActiveContext.h>
18#include <utility>
19
20namespace Aws
21{
22template<typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace LexRuntimeService
33{
34namespace Model
35{
37 {
38 public:
39 AWS_LEXRUNTIMESERVICE_API PostTextResult();
42
43
45
48 inline const Aws::String& GetIntentName() const{ return m_intentName; }
49 inline void SetIntentName(const Aws::String& value) { m_intentName = value; }
50 inline void SetIntentName(Aws::String&& value) { m_intentName = std::move(value); }
51 inline void SetIntentName(const char* value) { m_intentName.assign(value); }
52 inline PostTextResult& WithIntentName(const Aws::String& value) { SetIntentName(value); return *this;}
53 inline PostTextResult& WithIntentName(Aws::String&& value) { SetIntentName(std::move(value)); return *this;}
54 inline PostTextResult& WithIntentName(const char* value) { SetIntentName(value); return *this;}
56
58
66 inline const IntentConfidence& GetNluIntentConfidence() const{ return m_nluIntentConfidence; }
67 inline void SetNluIntentConfidence(const IntentConfidence& value) { m_nluIntentConfidence = value; }
68 inline void SetNluIntentConfidence(IntentConfidence&& value) { m_nluIntentConfidence = std::move(value); }
70 inline PostTextResult& WithNluIntentConfidence(IntentConfidence&& value) { SetNluIntentConfidence(std::move(value)); return *this;}
72
74
80 inline const Aws::Vector<PredictedIntent>& GetAlternativeIntents() const{ return m_alternativeIntents; }
81 inline void SetAlternativeIntents(const Aws::Vector<PredictedIntent>& value) { m_alternativeIntents = value; }
82 inline void SetAlternativeIntents(Aws::Vector<PredictedIntent>&& value) { m_alternativeIntents = std::move(value); }
85 inline PostTextResult& AddAlternativeIntents(const PredictedIntent& value) { m_alternativeIntents.push_back(value); return *this; }
86 inline PostTextResult& AddAlternativeIntents(PredictedIntent&& value) { m_alternativeIntents.push_back(std::move(value)); return *this; }
88
90
103 inline const Aws::Map<Aws::String, Aws::String>& GetSlots() const{ return m_slots; }
104 inline void SetSlots(const Aws::Map<Aws::String, Aws::String>& value) { m_slots = value; }
105 inline void SetSlots(Aws::Map<Aws::String, Aws::String>&& value) { m_slots = std::move(value); }
106 inline PostTextResult& WithSlots(const Aws::Map<Aws::String, Aws::String>& value) { SetSlots(value); return *this;}
107 inline PostTextResult& WithSlots(Aws::Map<Aws::String, Aws::String>&& value) { SetSlots(std::move(value)); return *this;}
108 inline PostTextResult& AddSlots(const Aws::String& key, const Aws::String& value) { m_slots.emplace(key, value); return *this; }
109 inline PostTextResult& AddSlots(Aws::String&& key, const Aws::String& value) { m_slots.emplace(std::move(key), value); return *this; }
110 inline PostTextResult& AddSlots(const Aws::String& key, Aws::String&& value) { m_slots.emplace(key, std::move(value)); return *this; }
111 inline PostTextResult& AddSlots(Aws::String&& key, Aws::String&& value) { m_slots.emplace(std::move(key), std::move(value)); return *this; }
112 inline PostTextResult& AddSlots(const char* key, Aws::String&& value) { m_slots.emplace(key, std::move(value)); return *this; }
113 inline PostTextResult& AddSlots(Aws::String&& key, const char* value) { m_slots.emplace(std::move(key), value); return *this; }
114 inline PostTextResult& AddSlots(const char* key, const char* value) { m_slots.emplace(key, value); return *this; }
116
118
122 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
123 inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributes = value; }
124 inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributes = std::move(value); }
127 inline PostTextResult& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributes.emplace(key, value); return *this; }
128 inline PostTextResult& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributes.emplace(std::move(key), value); return *this; }
129 inline PostTextResult& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributes.emplace(key, std::move(value)); return *this; }
130 inline PostTextResult& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
131 inline PostTextResult& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributes.emplace(key, std::move(value)); return *this; }
132 inline PostTextResult& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributes.emplace(std::move(key), value); return *this; }
133 inline PostTextResult& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributes.emplace(key, value); return *this; }
135
137
152 inline const Aws::String& GetMessage() const{ return m_message; }
153 inline void SetMessage(const Aws::String& value) { m_message = value; }
154 inline void SetMessage(Aws::String&& value) { m_message = std::move(value); }
155 inline void SetMessage(const char* value) { m_message.assign(value); }
156 inline PostTextResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
157 inline PostTextResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
158 inline PostTextResult& WithMessage(const char* value) { SetMessage(value); return *this;}
160
162
167 inline const SentimentResponse& GetSentimentResponse() const{ return m_sentimentResponse; }
168 inline void SetSentimentResponse(const SentimentResponse& value) { m_sentimentResponse = value; }
169 inline void SetSentimentResponse(SentimentResponse&& value) { m_sentimentResponse = std::move(value); }
170 inline PostTextResult& WithSentimentResponse(const SentimentResponse& value) { SetSentimentResponse(value); return *this;}
171 inline PostTextResult& WithSentimentResponse(SentimentResponse&& value) { SetSentimentResponse(std::move(value)); return *this;}
173
175
185 inline const MessageFormatType& GetMessageFormat() const{ return m_messageFormat; }
186 inline void SetMessageFormat(const MessageFormatType& value) { m_messageFormat = value; }
187 inline void SetMessageFormat(MessageFormatType&& value) { m_messageFormat = std::move(value); }
188 inline PostTextResult& WithMessageFormat(const MessageFormatType& value) { SetMessageFormat(value); return *this;}
189 inline PostTextResult& WithMessageFormat(MessageFormatType&& value) { SetMessageFormat(std::move(value)); return *this;}
191
193
222 inline const DialogState& GetDialogState() const{ return m_dialogState; }
223 inline void SetDialogState(const DialogState& value) { m_dialogState = value; }
224 inline void SetDialogState(DialogState&& value) { m_dialogState = std::move(value); }
225 inline PostTextResult& WithDialogState(const DialogState& value) { SetDialogState(value); return *this;}
226 inline PostTextResult& WithDialogState(DialogState&& value) { SetDialogState(std::move(value)); return *this;}
228
230
234 inline const Aws::String& GetSlotToElicit() const{ return m_slotToElicit; }
235 inline void SetSlotToElicit(const Aws::String& value) { m_slotToElicit = value; }
236 inline void SetSlotToElicit(Aws::String&& value) { m_slotToElicit = std::move(value); }
237 inline void SetSlotToElicit(const char* value) { m_slotToElicit.assign(value); }
238 inline PostTextResult& WithSlotToElicit(const Aws::String& value) { SetSlotToElicit(value); return *this;}
239 inline PostTextResult& WithSlotToElicit(Aws::String&& value) { SetSlotToElicit(std::move(value)); return *this;}
240 inline PostTextResult& WithSlotToElicit(const char* value) { SetSlotToElicit(value); return *this;}
242
244
250 inline const ResponseCard& GetResponseCard() const{ return m_responseCard; }
251 inline void SetResponseCard(const ResponseCard& value) { m_responseCard = value; }
252 inline void SetResponseCard(ResponseCard&& value) { m_responseCard = std::move(value); }
253 inline PostTextResult& WithResponseCard(const ResponseCard& value) { SetResponseCard(value); return *this;}
254 inline PostTextResult& WithResponseCard(ResponseCard&& value) { SetResponseCard(std::move(value)); return *this;}
256
258
261 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
262 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
263 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
264 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
265 inline PostTextResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
266 inline PostTextResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
267 inline PostTextResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
269
271
276 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
277 inline void SetBotVersion(const Aws::String& value) { m_botVersion = value; }
278 inline void SetBotVersion(Aws::String&& value) { m_botVersion = std::move(value); }
279 inline void SetBotVersion(const char* value) { m_botVersion.assign(value); }
280 inline PostTextResult& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
281 inline PostTextResult& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
282 inline PostTextResult& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
284
286
293 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const{ return m_activeContexts; }
294 inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContexts = value; }
295 inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContexts = std::move(value); }
297 inline PostTextResult& WithActiveContexts(Aws::Vector<ActiveContext>&& value) { SetActiveContexts(std::move(value)); return *this;}
298 inline PostTextResult& AddActiveContexts(const ActiveContext& value) { m_activeContexts.push_back(value); return *this; }
299 inline PostTextResult& AddActiveContexts(ActiveContext&& value) { m_activeContexts.push_back(std::move(value)); return *this; }
301
303
304 inline const Aws::String& GetRequestId() const{ return m_requestId; }
305 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
306 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
307 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
308 inline PostTextResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
309 inline PostTextResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
310 inline PostTextResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
312 private:
313
314 Aws::String m_intentName;
315
316 IntentConfidence m_nluIntentConfidence;
317
318 Aws::Vector<PredictedIntent> m_alternativeIntents;
319
321
322 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
323
324 Aws::String m_message;
325
326 SentimentResponse m_sentimentResponse;
327
328 MessageFormatType m_messageFormat;
329
330 DialogState m_dialogState;
331
332 Aws::String m_slotToElicit;
333
334 ResponseCard m_responseCard;
335
336 Aws::String m_sessionId;
337
338 Aws::String m_botVersion;
339
340 Aws::Vector<ActiveContext> m_activeContexts;
341
342 Aws::String m_requestId;
343 };
344
345} // namespace Model
346} // namespace LexRuntimeService
347} // namespace Aws
const ResponseCard & GetResponseCard() const
PostTextResult & WithResponseCard(ResponseCard &&value)
void SetMessage(const Aws::String &value)
const MessageFormatType & GetMessageFormat() const
void SetSessionId(const Aws::String &value)
void SetResponseCard(ResponseCard &&value)
void SetSessionId(const char *value)
void SetMessage(Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API PostTextResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PostTextResult & WithSlotToElicit(const Aws::String &value)
void SetSlotToElicit(const Aws::String &value)
const Aws::Vector< PredictedIntent > & GetAlternativeIntents() const
void SetRequestId(Aws::String &&value)
PostTextResult & WithSlotToElicit(const char *value)
PostTextResult & AddSlots(Aws::String &&key, const Aws::String &value)
PostTextResult & WithBotVersion(const char *value)
PostTextResult & WithAlternativeIntents(Aws::Vector< PredictedIntent > &&value)
void SetRequestId(const char *value)
void SetAlternativeIntents(const Aws::Vector< PredictedIntent > &value)
void SetRequestId(const Aws::String &value)
PostTextResult & WithRequestId(Aws::String &&value)
PostTextResult & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
void SetResponseCard(const ResponseCard &value)
PostTextResult & AddAlternativeIntents(PredictedIntent &&value)
PostTextResult & WithDialogState(DialogState &&value)
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetMessageFormat(MessageFormatType &&value)
PostTextResult & WithSlots(Aws::Map< Aws::String, Aws::String > &&value)
void SetSessionId(Aws::String &&value)
PostTextResult & AddSlots(Aws::String &&key, const char *value)
PostTextResult & WithNluIntentConfidence(IntentConfidence &&value)
const DialogState & GetDialogState() const
PostTextResult & WithBotVersion(Aws::String &&value)
PostTextResult & WithMessage(const Aws::String &value)
AWS_LEXRUNTIMESERVICE_API PostTextResult()
PostTextResult & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
PostTextResult & WithSessionId(const char *value)
const Aws::String & GetMessage() const
PostTextResult & WithMessageFormat(MessageFormatType &&value)
PostTextResult & AddSlots(Aws::String &&key, Aws::String &&value)
void SetDialogState(DialogState &&value)
PostTextResult & WithSessionId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetSlots() const
void SetNluIntentConfidence(const IntentConfidence &value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
PostTextResult & WithRequestId(const Aws::String &value)
PostTextResult & AddSlots(const char *key, Aws::String &&value)
void SetSlots(Aws::Map< Aws::String, Aws::String > &&value)
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PostTextResult & WithNluIntentConfidence(const IntentConfidence &value)
PostTextResult & WithMessage(Aws::String &&value)
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
void SetIntentName(Aws::String &&value)
const IntentConfidence & GetNluIntentConfidence() const
void SetSlotToElicit(const char *value)
PostTextResult & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
const Aws::String & GetBotVersion() const
PostTextResult & WithRequestId(const char *value)
PostTextResult & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
PostTextResult & WithIntentName(const char *value)
PostTextResult & WithAlternativeIntents(const Aws::Vector< PredictedIntent > &value)
void SetSlots(const Aws::Map< Aws::String, Aws::String > &value)
PostTextResult & WithMessage(const char *value)
void SetMessage(const char *value)
void SetDialogState(const DialogState &value)
void SetSentimentResponse(const SentimentResponse &value)
PostTextResult & AddActiveContexts(ActiveContext &&value)
void SetMessageFormat(const MessageFormatType &value)
AWS_LEXRUNTIMESERVICE_API PostTextResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PostTextResult & AddSlots(const char *key, const char *value)
void SetAlternativeIntents(Aws::Vector< PredictedIntent > &&value)
PostTextResult & AddSessionAttributes(Aws::String &&key, const char *value)
PostTextResult & AddSessionAttributes(const char *key, const char *value)
const Aws::String & GetSlotToElicit() const
void SetIntentName(const Aws::String &value)
const Aws::String & GetSessionId() const
PostTextResult & AddSessionAttributes(const char *key, Aws::String &&value)
PostTextResult & AddSlots(const Aws::String &key, const Aws::String &value)
PostTextResult & WithSlots(const Aws::Map< Aws::String, Aws::String > &value)
PostTextResult & WithResponseCard(const ResponseCard &value)
const Aws::String & GetIntentName() const
PostTextResult & WithBotVersion(const Aws::String &value)
void SetActiveContexts(Aws::Vector< ActiveContext > &&value)
PostTextResult & WithSessionId(const Aws::String &value)
PostTextResult & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
const SentimentResponse & GetSentimentResponse() const
void SetSlotToElicit(Aws::String &&value)
PostTextResult & WithDialogState(const DialogState &value)
const Aws::String & GetRequestId() const
PostTextResult & AddSlots(const Aws::String &key, Aws::String &&value)
PostTextResult & WithSentimentResponse(SentimentResponse &&value)
void SetNluIntentConfidence(IntentConfidence &&value)
void SetBotVersion(const char *value)
PostTextResult & WithSentimentResponse(const SentimentResponse &value)
PostTextResult & WithIntentName(Aws::String &&value)
void SetIntentName(const char *value)
PostTextResult & WithIntentName(const Aws::String &value)
PostTextResult & WithMessageFormat(const MessageFormatType &value)
PostTextResult & AddActiveContexts(const ActiveContext &value)
PostTextResult & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
PostTextResult & WithSlotToElicit(Aws::String &&value)
void SetBotVersion(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
PostTextResult & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
void SetSentimentResponse(SentimentResponse &&value)
PostTextResult & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
PostTextResult & AddAlternativeIntents(const PredictedIntent &value)
void SetBotVersion(Aws::String &&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