AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PostContentResult.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lex/model/MessageFormatType.h>
11#include <aws/lex/model/DialogState.h>
12#include <aws/core/utils/Array.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace LexRuntimeService
21{
22namespace Model
23{
25 {
26 public:
27 AWS_LEXRUNTIMESERVICE_API PostContentResult();
28 //We have to define these because Microsoft doesn't auto generate them
29 AWS_LEXRUNTIMESERVICE_API PostContentResult(PostContentResult&&);
30 AWS_LEXRUNTIMESERVICE_API PostContentResult& operator=(PostContentResult&&);
31 //we delete these because Microsoft doesn't handle move generation correctly
32 //and we therefore don't trust them to get it right here either.
35
36
39
40
41
43
47 inline const Aws::String& GetContentType() const{ return m_contentType; }
48 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
49 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
50 inline void SetContentType(const char* value) { m_contentType.assign(value); }
51 inline PostContentResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
52 inline PostContentResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
53 inline PostContentResult& WithContentType(const char* value) { SetContentType(value); return *this;}
55
57
60 inline const Aws::String& GetIntentName() const{ return m_intentName; }
61 inline void SetIntentName(const Aws::String& value) { m_intentName = value; }
62 inline void SetIntentName(Aws::String&& value) { m_intentName = std::move(value); }
63 inline void SetIntentName(const char* value) { m_intentName.assign(value); }
64 inline PostContentResult& WithIntentName(const Aws::String& value) { SetIntentName(value); return *this;}
65 inline PostContentResult& WithIntentName(Aws::String&& value) { SetIntentName(std::move(value)); return *this;}
66 inline PostContentResult& WithIntentName(const char* value) { SetIntentName(value); return *this;}
68
70
76 inline const Aws::String& GetNluIntentConfidence() const{ return m_nluIntentConfidence; }
77 inline void SetNluIntentConfidence(const Aws::String& value) { m_nluIntentConfidence = value; }
78 inline void SetNluIntentConfidence(Aws::String&& value) { m_nluIntentConfidence = std::move(value); }
79 inline void SetNluIntentConfidence(const char* value) { m_nluIntentConfidence.assign(value); }
80 inline PostContentResult& WithNluIntentConfidence(const Aws::String& value) { SetNluIntentConfidence(value); return *this;}
81 inline PostContentResult& WithNluIntentConfidence(Aws::String&& value) { SetNluIntentConfidence(std::move(value)); return *this;}
82 inline PostContentResult& WithNluIntentConfidence(const char* value) { SetNluIntentConfidence(value); return *this;}
84
86
92 inline const Aws::String& GetAlternativeIntents() const{ return m_alternativeIntents; }
93 inline void SetAlternativeIntents(const Aws::String& value) { m_alternativeIntents = value; }
94 inline void SetAlternativeIntents(Aws::String&& value) { m_alternativeIntents = std::move(value); }
95 inline void SetAlternativeIntents(const char* value) { m_alternativeIntents.assign(value); }
96 inline PostContentResult& WithAlternativeIntents(const Aws::String& value) { SetAlternativeIntents(value); return *this;}
97 inline PostContentResult& WithAlternativeIntents(Aws::String&& value) { SetAlternativeIntents(std::move(value)); return *this;}
98 inline PostContentResult& WithAlternativeIntents(const char* value) { SetAlternativeIntents(value); return *this;}
100
102
116 inline const Aws::String& GetSlots() const{ return m_slots; }
117 inline void SetSlots(const Aws::String& value) { m_slots = value; }
118 inline void SetSlots(Aws::String&& value) { m_slots = std::move(value); }
119 inline void SetSlots(const char* value) { m_slots.assign(value); }
120 inline PostContentResult& WithSlots(const Aws::String& value) { SetSlots(value); return *this;}
121 inline PostContentResult& WithSlots(Aws::String&& value) { SetSlots(std::move(value)); return *this;}
122 inline PostContentResult& WithSlots(const char* value) { SetSlots(value); return *this;}
124
126
130 inline const Aws::String& GetSessionAttributes() const{ return m_sessionAttributes; }
131 inline void SetSessionAttributes(const Aws::String& value) { m_sessionAttributes = value; }
132 inline void SetSessionAttributes(Aws::String&& value) { m_sessionAttributes = std::move(value); }
133 inline void SetSessionAttributes(const char* value) { m_sessionAttributes.assign(value); }
134 inline PostContentResult& WithSessionAttributes(const Aws::String& value) { SetSessionAttributes(value); return *this;}
135 inline PostContentResult& WithSessionAttributes(Aws::String&& value) { SetSessionAttributes(std::move(value)); return *this;}
136 inline PostContentResult& WithSessionAttributes(const char* value) { SetSessionAttributes(value); return *this;}
138
140
145 inline const Aws::String& GetSentimentResponse() const{ return m_sentimentResponse; }
146 inline void SetSentimentResponse(const Aws::String& value) { m_sentimentResponse = value; }
147 inline void SetSentimentResponse(Aws::String&& value) { m_sentimentResponse = std::move(value); }
148 inline void SetSentimentResponse(const char* value) { m_sentimentResponse.assign(value); }
149 inline PostContentResult& WithSentimentResponse(const Aws::String& value) { SetSentimentResponse(value); return *this;}
150 inline PostContentResult& WithSentimentResponse(Aws::String&& value) { SetSentimentResponse(std::move(value)); return *this;}
151 inline PostContentResult& WithSentimentResponse(const char* value) { SetSentimentResponse(value); return *this;}
153
155
172 inline const Aws::String& GetEncodedMessage() const{ return m_encodedMessage; }
173 inline void SetEncodedMessage(const Aws::String& value) { m_encodedMessage = value; }
174 inline void SetEncodedMessage(Aws::String&& value) { m_encodedMessage = std::move(value); }
175 inline void SetEncodedMessage(const char* value) { m_encodedMessage.assign(value); }
176 inline PostContentResult& WithEncodedMessage(const Aws::String& value) { SetEncodedMessage(value); return *this;}
177 inline PostContentResult& WithEncodedMessage(Aws::String&& value) { SetEncodedMessage(std::move(value)); return *this;}
178 inline PostContentResult& WithEncodedMessage(const char* value) { SetEncodedMessage(value); return *this;}
180
182
192 inline const MessageFormatType& GetMessageFormat() const{ return m_messageFormat; }
193 inline void SetMessageFormat(const MessageFormatType& value) { m_messageFormat = value; }
194 inline void SetMessageFormat(MessageFormatType&& value) { m_messageFormat = std::move(value); }
195 inline PostContentResult& WithMessageFormat(const MessageFormatType& value) { SetMessageFormat(value); return *this;}
196 inline PostContentResult& WithMessageFormat(MessageFormatType&& value) { SetMessageFormat(std::move(value)); return *this;}
198
200
230 inline const DialogState& GetDialogState() const{ return m_dialogState; }
231 inline void SetDialogState(const DialogState& value) { m_dialogState = value; }
232 inline void SetDialogState(DialogState&& value) { m_dialogState = std::move(value); }
233 inline PostContentResult& WithDialogState(const DialogState& value) { SetDialogState(value); return *this;}
234 inline PostContentResult& WithDialogState(DialogState&& value) { SetDialogState(std::move(value)); return *this;}
236
238
242 inline const Aws::String& GetSlotToElicit() const{ return m_slotToElicit; }
243 inline void SetSlotToElicit(const Aws::String& value) { m_slotToElicit = value; }
244 inline void SetSlotToElicit(Aws::String&& value) { m_slotToElicit = std::move(value); }
245 inline void SetSlotToElicit(const char* value) { m_slotToElicit.assign(value); }
246 inline PostContentResult& WithSlotToElicit(const Aws::String& value) { SetSlotToElicit(value); return *this;}
247 inline PostContentResult& WithSlotToElicit(Aws::String&& value) { SetSlotToElicit(std::move(value)); return *this;}
248 inline PostContentResult& WithSlotToElicit(const char* value) { SetSlotToElicit(value); return *this;}
250
252
261 inline const Aws::String& GetEncodedInputTranscript() const{ return m_encodedInputTranscript; }
262 inline void SetEncodedInputTranscript(const Aws::String& value) { m_encodedInputTranscript = value; }
263 inline void SetEncodedInputTranscript(Aws::String&& value) { m_encodedInputTranscript = std::move(value); }
264 inline void SetEncodedInputTranscript(const char* value) { m_encodedInputTranscript.assign(value); }
266 inline PostContentResult& WithEncodedInputTranscript(Aws::String&& value) { SetEncodedInputTranscript(std::move(value)); return *this;}
267 inline PostContentResult& WithEncodedInputTranscript(const char* value) { SetEncodedInputTranscript(value); return *this;}
269
271
280 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
281 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
282
284
286
291 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
292 inline void SetBotVersion(const Aws::String& value) { m_botVersion = value; }
293 inline void SetBotVersion(Aws::String&& value) { m_botVersion = std::move(value); }
294 inline void SetBotVersion(const char* value) { m_botVersion.assign(value); }
295 inline PostContentResult& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
296 inline PostContentResult& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
297 inline PostContentResult& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
299
301
304 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
305 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
306 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
307 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
308 inline PostContentResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
309 inline PostContentResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
310 inline PostContentResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
312
314
321 inline const Aws::String& GetActiveContexts() const{ return m_activeContexts; }
322 inline void SetActiveContexts(const Aws::String& value) { m_activeContexts = value; }
323 inline void SetActiveContexts(Aws::String&& value) { m_activeContexts = std::move(value); }
324 inline void SetActiveContexts(const char* value) { m_activeContexts.assign(value); }
325 inline PostContentResult& WithActiveContexts(const Aws::String& value) { SetActiveContexts(value); return *this;}
326 inline PostContentResult& WithActiveContexts(Aws::String&& value) { SetActiveContexts(std::move(value)); return *this;}
327 inline PostContentResult& WithActiveContexts(const char* value) { SetActiveContexts(value); return *this;}
329
331
332 inline const Aws::String& GetRequestId() const{ return m_requestId; }
333 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
334 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
335 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
336 inline PostContentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
337 inline PostContentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
338 inline PostContentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
340 private:
341
342 Aws::String m_contentType;
343
344 Aws::String m_intentName;
345
346 Aws::String m_nluIntentConfidence;
347
348 Aws::String m_alternativeIntents;
349
350 Aws::String m_slots;
351
352 Aws::String m_sessionAttributes;
353
354 Aws::String m_sentimentResponse;
355
356 Aws::String m_encodedMessage;
357
358 MessageFormatType m_messageFormat;
359
360 DialogState m_dialogState;
361
362 Aws::String m_slotToElicit;
363
364 Aws::String m_encodedInputTranscript;
365
367
368 Aws::String m_botVersion;
369
370 Aws::String m_sessionId;
371
372 Aws::String m_activeContexts;
373
374 Aws::String m_requestId;
375 };
376
377} // namespace Model
378} // namespace LexRuntimeService
379} // namespace Aws
const MessageFormatType & GetMessageFormat() const
AWS_LEXRUNTIMESERVICE_API PostContentResult(PostContentResult &&)
PostContentResult & WithIntentName(Aws::String &&value)
void SetSentimentResponse(const Aws::String &value)
PostContentResult & WithSlotToElicit(const char *value)
PostContentResult & WithBotVersion(const char *value)
void SetEncodedMessage(const char *value)
PostContentResult & WithSentimentResponse(const Aws::String &value)
void SetSlotToElicit(const Aws::String &value)
void SetRequestId(Aws::String &&value)
const Aws::String & GetEncodedInputTranscript() const
void SetActiveContexts(const char *value)
void SetAlternativeIntents(Aws::String &&value)
const Aws::String & GetSessionId() const
PostContentResult & WithAlternativeIntents(const char *value)
PostContentResult & WithBotVersion(Aws::String &&value)
const Aws::String & GetEncodedMessage() const
PostContentResult & WithSlots(const char *value)
PostContentResult & WithRequestId(Aws::String &&value)
PostContentResult & WithBotVersion(const Aws::String &value)
void SetSessionId(Aws::String &&value)
void SetSlotToElicit(Aws::String &&value)
PostContentResult & WithActiveContexts(const char *value)
PostContentResult & WithAlternativeIntents(Aws::String &&value)
const Aws::String & GetContentType() const
PostContentResult & WithRequestId(const Aws::String &value)
PostContentResult & WithSessionAttributes(const char *value)
void SetActiveContexts(const Aws::String &value)
void SetActiveContexts(Aws::String &&value)
void SetBotVersion(const Aws::String &value)
const Aws::String & GetActiveContexts() const
PostContentResult & WithSessionAttributes(Aws::String &&value)
void SetEncodedMessage(const Aws::String &value)
PostContentResult & WithSessionId(const Aws::String &value)
AWS_LEXRUNTIMESERVICE_API PostContentResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetIntentName(const char *value)
PostContentResult & WithSentimentResponse(Aws::String &&value)
void SetEncodedMessage(Aws::String &&value)
void SetContentType(const Aws::String &value)
PostContentResult(const PostContentResult &)=delete
void SetEncodedInputTranscript(const Aws::String &value)
void SetEncodedInputTranscript(Aws::String &&value)
PostContentResult & WithEncodedMessage(Aws::String &&value)
PostContentResult & WithSlots(const Aws::String &value)
void SetRequestId(const char *value)
void SetRequestId(const Aws::String &value)
void SetSlots(const Aws::String &value)
const Aws::String & GetNluIntentConfidence() const
Aws::IOStream & GetAudioStream() const
void SetSentimentResponse(const char *value)
void SetIntentName(Aws::String &&value)
PostContentResult & WithSentimentResponse(const char *value)
PostContentResult & WithSlotToElicit(const Aws::String &value)
void SetSessionAttributes(const Aws::String &value)
PostContentResult & WithNluIntentConfidence(const char *value)
void SetEncodedInputTranscript(const char *value)
void SetSentimentResponse(Aws::String &&value)
void SetAlternativeIntents(const char *value)
void SetSlots(Aws::String &&value)
void SetMessageFormat(const MessageFormatType &value)
void SetSlotToElicit(const char *value)
void SetDialogState(const DialogState &value)
PostContentResult & operator=(const PostContentResult &)=delete
AWS_LEXRUNTIMESERVICE_API PostContentResult & operator=(PostContentResult &&)
AWS_LEXRUNTIMESERVICE_API PostContentResult()
void SetDialogState(DialogState &&value)
AWS_LEXRUNTIMESERVICE_API PostContentResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetAlternativeIntents(const Aws::String &value)
PostContentResult & WithActiveContexts(const Aws::String &value)
PostContentResult & WithNluIntentConfidence(Aws::String &&value)
const Aws::String & GetBotVersion() const
void ReplaceBody(Aws::IOStream *body)
PostContentResult & WithDialogState(DialogState &&value)
const Aws::String & GetSlotToElicit() const
PostContentResult & WithSessionId(const char *value)
PostContentResult & WithActiveContexts(Aws::String &&value)
PostContentResult & WithEncodedInputTranscript(Aws::String &&value)
PostContentResult & WithEncodedInputTranscript(const Aws::String &value)
void SetIntentName(const Aws::String &value)
PostContentResult & WithIntentName(const Aws::String &value)
PostContentResult & WithMessageFormat(MessageFormatType &&value)
const DialogState & GetDialogState() const
void SetMessageFormat(MessageFormatType &&value)
void SetSessionAttributes(Aws::String &&value)
PostContentResult & WithIntentName(const char *value)
void SetContentType(const char *value)
const Aws::String & GetSentimentResponse() const
PostContentResult & WithEncodedMessage(const Aws::String &value)
PostContentResult & WithDialogState(const DialogState &value)
PostContentResult & WithAlternativeIntents(const Aws::String &value)
const Aws::String & GetAlternativeIntents() const
void SetSessionId(const Aws::String &value)
void SetSessionId(const char *value)
void SetNluIntentConfidence(const Aws::String &value)
const Aws::String & GetIntentName() const
PostContentResult & WithMessageFormat(const MessageFormatType &value)
PostContentResult & WithContentType(Aws::String &&value)
const Aws::String & GetSlots() const
void SetSessionAttributes(const char *value)
PostContentResult & WithContentType(const Aws::String &value)
PostContentResult & WithSlotToElicit(Aws::String &&value)
const Aws::String & GetRequestId() const
void SetNluIntentConfidence(Aws::String &&value)
void SetSlots(const char *value)
void SetBotVersion(Aws::String &&value)
void SetBotVersion(const char *value)
PostContentResult & WithNluIntentConfidence(const Aws::String &value)
void SetNluIntentConfidence(const char *value)
PostContentResult & WithSessionAttributes(const Aws::String &value)
PostContentResult & WithEncodedInputTranscript(const char *value)
PostContentResult & WithContentType(const char *value)
const Aws::String & GetSessionAttributes() const
PostContentResult & WithSessionId(Aws::String &&value)
void SetContentType(Aws::String &&value)
PostContentResult & WithEncodedMessage(const char *value)
PostContentResult & WithSlots(Aws::String &&value)
PostContentResult & WithRequestId(const char *value)
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String