AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
42
43
45
48 inline const Aws::String& GetIntentName() const { return m_intentName; }
49 template<typename IntentNameT = Aws::String>
50 void SetIntentName(IntentNameT&& value) { m_intentNameHasBeenSet = true; m_intentName = std::forward<IntentNameT>(value); }
51 template<typename IntentNameT = Aws::String>
52 PostTextResult& WithIntentName(IntentNameT&& value) { SetIntentName(std::forward<IntentNameT>(value)); return *this;}
54
56
64 inline const IntentConfidence& GetNluIntentConfidence() const { return m_nluIntentConfidence; }
65 template<typename NluIntentConfidenceT = IntentConfidence>
66 void SetNluIntentConfidence(NluIntentConfidenceT&& value) { m_nluIntentConfidenceHasBeenSet = true; m_nluIntentConfidence = std::forward<NluIntentConfidenceT>(value); }
67 template<typename NluIntentConfidenceT = IntentConfidence>
68 PostTextResult& WithNluIntentConfidence(NluIntentConfidenceT&& value) { SetNluIntentConfidence(std::forward<NluIntentConfidenceT>(value)); return *this;}
70
72
78 inline const Aws::Vector<PredictedIntent>& GetAlternativeIntents() const { return m_alternativeIntents; }
79 template<typename AlternativeIntentsT = Aws::Vector<PredictedIntent>>
80 void SetAlternativeIntents(AlternativeIntentsT&& value) { m_alternativeIntentsHasBeenSet = true; m_alternativeIntents = std::forward<AlternativeIntentsT>(value); }
81 template<typename AlternativeIntentsT = Aws::Vector<PredictedIntent>>
82 PostTextResult& WithAlternativeIntents(AlternativeIntentsT&& value) { SetAlternativeIntents(std::forward<AlternativeIntentsT>(value)); return *this;}
83 template<typename AlternativeIntentsT = PredictedIntent>
84 PostTextResult& AddAlternativeIntents(AlternativeIntentsT&& value) { m_alternativeIntentsHasBeenSet = true; m_alternativeIntents.emplace_back(std::forward<AlternativeIntentsT>(value)); return *this; }
86
88
101 inline const Aws::Map<Aws::String, Aws::String>& GetSlots() const { return m_slots; }
102 template<typename SlotsT = Aws::Map<Aws::String, Aws::String>>
103 void SetSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots = std::forward<SlotsT>(value); }
104 template<typename SlotsT = Aws::Map<Aws::String, Aws::String>>
105 PostTextResult& WithSlots(SlotsT&& value) { SetSlots(std::forward<SlotsT>(value)); return *this;}
106 template<typename SlotsKeyT = Aws::String, typename SlotsValueT = Aws::String>
107 PostTextResult& AddSlots(SlotsKeyT&& key, SlotsValueT&& value) {
108 m_slotsHasBeenSet = true; m_slots.emplace(std::forward<SlotsKeyT>(key), std::forward<SlotsValueT>(value)); return *this;
109 }
111
113
117 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const { return m_sessionAttributes; }
118 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
119 void SetSessionAttributes(SessionAttributesT&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::forward<SessionAttributesT>(value); }
120 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
121 PostTextResult& WithSessionAttributes(SessionAttributesT&& value) { SetSessionAttributes(std::forward<SessionAttributesT>(value)); return *this;}
122 template<typename SessionAttributesKeyT = Aws::String, typename SessionAttributesValueT = Aws::String>
123 PostTextResult& AddSessionAttributes(SessionAttributesKeyT&& key, SessionAttributesValueT&& value) {
124 m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(key), std::forward<SessionAttributesValueT>(value)); return *this;
125 }
127
129
144 inline const Aws::String& GetMessage() const { return m_message; }
145 template<typename MessageT = Aws::String>
146 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
147 template<typename MessageT = Aws::String>
148 PostTextResult& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
150
152
157 inline const SentimentResponse& GetSentimentResponse() const { return m_sentimentResponse; }
158 template<typename SentimentResponseT = SentimentResponse>
159 void SetSentimentResponse(SentimentResponseT&& value) { m_sentimentResponseHasBeenSet = true; m_sentimentResponse = std::forward<SentimentResponseT>(value); }
160 template<typename SentimentResponseT = SentimentResponse>
161 PostTextResult& WithSentimentResponse(SentimentResponseT&& value) { SetSentimentResponse(std::forward<SentimentResponseT>(value)); return *this;}
163
165
175 inline MessageFormatType GetMessageFormat() const { return m_messageFormat; }
176 inline void SetMessageFormat(MessageFormatType value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; }
179
181
210 inline DialogState GetDialogState() const { return m_dialogState; }
211 inline void SetDialogState(DialogState value) { m_dialogStateHasBeenSet = true; m_dialogState = value; }
212 inline PostTextResult& WithDialogState(DialogState value) { SetDialogState(value); return *this;}
214
216
220 inline const Aws::String& GetSlotToElicit() const { return m_slotToElicit; }
221 template<typename SlotToElicitT = Aws::String>
222 void SetSlotToElicit(SlotToElicitT&& value) { m_slotToElicitHasBeenSet = true; m_slotToElicit = std::forward<SlotToElicitT>(value); }
223 template<typename SlotToElicitT = Aws::String>
224 PostTextResult& WithSlotToElicit(SlotToElicitT&& value) { SetSlotToElicit(std::forward<SlotToElicitT>(value)); return *this;}
226
228
234 inline const ResponseCard& GetResponseCard() const { return m_responseCard; }
235 template<typename ResponseCardT = ResponseCard>
236 void SetResponseCard(ResponseCardT&& value) { m_responseCardHasBeenSet = true; m_responseCard = std::forward<ResponseCardT>(value); }
237 template<typename ResponseCardT = ResponseCard>
238 PostTextResult& WithResponseCard(ResponseCardT&& value) { SetResponseCard(std::forward<ResponseCardT>(value)); return *this;}
240
242
245 inline const Aws::String& GetSessionId() const { return m_sessionId; }
246 template<typename SessionIdT = Aws::String>
247 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
248 template<typename SessionIdT = Aws::String>
249 PostTextResult& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
251
253
258 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
259 template<typename BotVersionT = Aws::String>
260 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
261 template<typename BotVersionT = Aws::String>
262 PostTextResult& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
264
266
273 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const { return m_activeContexts; }
274 template<typename ActiveContextsT = Aws::Vector<ActiveContext>>
275 void SetActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::forward<ActiveContextsT>(value); }
276 template<typename ActiveContextsT = Aws::Vector<ActiveContext>>
277 PostTextResult& WithActiveContexts(ActiveContextsT&& value) { SetActiveContexts(std::forward<ActiveContextsT>(value)); return *this;}
278 template<typename ActiveContextsT = ActiveContext>
279 PostTextResult& AddActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.emplace_back(std::forward<ActiveContextsT>(value)); return *this; }
281
283
284 inline const Aws::String& GetRequestId() const { return m_requestId; }
285 template<typename RequestIdT = Aws::String>
286 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
287 template<typename RequestIdT = Aws::String>
288 PostTextResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
290 private:
291
292 Aws::String m_intentName;
293 bool m_intentNameHasBeenSet = false;
294
295 IntentConfidence m_nluIntentConfidence;
296 bool m_nluIntentConfidenceHasBeenSet = false;
297
298 Aws::Vector<PredictedIntent> m_alternativeIntents;
299 bool m_alternativeIntentsHasBeenSet = false;
300
302 bool m_slotsHasBeenSet = false;
303
304 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
305 bool m_sessionAttributesHasBeenSet = false;
306
307 Aws::String m_message;
308 bool m_messageHasBeenSet = false;
309
310 SentimentResponse m_sentimentResponse;
311 bool m_sentimentResponseHasBeenSet = false;
312
314 bool m_messageFormatHasBeenSet = false;
315
316 DialogState m_dialogState{DialogState::NOT_SET};
317 bool m_dialogStateHasBeenSet = false;
318
319 Aws::String m_slotToElicit;
320 bool m_slotToElicitHasBeenSet = false;
321
322 ResponseCard m_responseCard;
323 bool m_responseCardHasBeenSet = false;
324
325 Aws::String m_sessionId;
326 bool m_sessionIdHasBeenSet = false;
327
328 Aws::String m_botVersion;
329 bool m_botVersionHasBeenSet = false;
330
331 Aws::Vector<ActiveContext> m_activeContexts;
332 bool m_activeContextsHasBeenSet = false;
333
334 Aws::String m_requestId;
335 bool m_requestIdHasBeenSet = false;
336 };
337
338} // namespace Model
339} // namespace LexRuntimeService
340} // 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