AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
PostContentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/stream/ResponseStream.h>
11#include <aws/lex/LexRuntimeService_EXPORTS.h>
12#include <aws/lex/model/DialogState.h>
13#include <aws/lex/model/MessageFormatType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace LexRuntimeService {
22namespace Model {
24 public:
25 AWS_LEXRUNTIMESERVICE_API PostContentResult() = default;
26 AWS_LEXRUNTIMESERVICE_API PostContentResult(PostContentResult&&) = default;
27 AWS_LEXRUNTIMESERVICE_API PostContentResult& operator=(PostContentResult&&) = default;
28 // we delete these because Microsoft doesn't handle move generation correctly
29 // and we therefore don't trust them to get it right here either.
32
35
37
41 inline const Aws::String& GetContentType() const { return m_contentType; }
42 template <typename ContentTypeT = Aws::String>
43 void SetContentType(ContentTypeT&& value) {
44 m_contentTypeHasBeenSet = true;
45 m_contentType = std::forward<ContentTypeT>(value);
46 }
47 template <typename ContentTypeT = Aws::String>
48 PostContentResult& WithContentType(ContentTypeT&& value) {
49 SetContentType(std::forward<ContentTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetIntentName() const { return m_intentName; }
59 template <typename IntentNameT = Aws::String>
60 void SetIntentName(IntentNameT&& value) {
61 m_intentNameHasBeenSet = true;
62 m_intentName = std::forward<IntentNameT>(value);
63 }
64 template <typename IntentNameT = Aws::String>
65 PostContentResult& WithIntentName(IntentNameT&& value) {
66 SetIntentName(std::forward<IntentNameT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetNluIntentConfidence() const { return m_nluIntentConfidence; }
79 template <typename NluIntentConfidenceT = Aws::String>
80 void SetNluIntentConfidence(NluIntentConfidenceT&& value) {
81 m_nluIntentConfidenceHasBeenSet = true;
82 m_nluIntentConfidence = std::forward<NluIntentConfidenceT>(value);
83 }
84 template <typename NluIntentConfidenceT = Aws::String>
85 PostContentResult& WithNluIntentConfidence(NluIntentConfidenceT&& value) {
86 SetNluIntentConfidence(std::forward<NluIntentConfidenceT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::String& GetAlternativeIntents() const { return m_alternativeIntents; }
99 template <typename AlternativeIntentsT = Aws::String>
100 void SetAlternativeIntents(AlternativeIntentsT&& value) {
101 m_alternativeIntentsHasBeenSet = true;
102 m_alternativeIntents = std::forward<AlternativeIntentsT>(value);
103 }
104 template <typename AlternativeIntentsT = Aws::String>
105 PostContentResult& WithAlternativeIntents(AlternativeIntentsT&& value) {
106 SetAlternativeIntents(std::forward<AlternativeIntentsT>(value));
107 return *this;
108 }
110
112
126 inline const Aws::String& GetSlots() const { return m_slots; }
127 template <typename SlotsT = Aws::String>
128 void SetSlots(SlotsT&& value) {
129 m_slotsHasBeenSet = true;
130 m_slots = std::forward<SlotsT>(value);
131 }
132 template <typename SlotsT = Aws::String>
133 PostContentResult& WithSlots(SlotsT&& value) {
134 SetSlots(std::forward<SlotsT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::String& GetSessionAttributes() const { return m_sessionAttributes; }
145 template <typename SessionAttributesT = Aws::String>
146 void SetSessionAttributes(SessionAttributesT&& value) {
147 m_sessionAttributesHasBeenSet = true;
148 m_sessionAttributes = std::forward<SessionAttributesT>(value);
149 }
150 template <typename SessionAttributesT = Aws::String>
151 PostContentResult& WithSessionAttributes(SessionAttributesT&& value) {
152 SetSessionAttributes(std::forward<SessionAttributesT>(value));
153 return *this;
154 }
156
158
163 inline const Aws::String& GetSentimentResponse() const { return m_sentimentResponse; }
164 template <typename SentimentResponseT = Aws::String>
165 void SetSentimentResponse(SentimentResponseT&& value) {
166 m_sentimentResponseHasBeenSet = true;
167 m_sentimentResponse = std::forward<SentimentResponseT>(value);
168 }
169 template <typename SentimentResponseT = Aws::String>
170 PostContentResult& WithSentimentResponse(SentimentResponseT&& value) {
171 SetSentimentResponse(std::forward<SentimentResponseT>(value));
172 return *this;
173 }
175
177
194 inline const Aws::String& GetEncodedMessage() const { return m_encodedMessage; }
195 template <typename EncodedMessageT = Aws::String>
196 void SetEncodedMessage(EncodedMessageT&& value) {
197 m_encodedMessageHasBeenSet = true;
198 m_encodedMessage = std::forward<EncodedMessageT>(value);
199 }
200 template <typename EncodedMessageT = Aws::String>
201 PostContentResult& WithEncodedMessage(EncodedMessageT&& value) {
202 SetEncodedMessage(std::forward<EncodedMessageT>(value));
203 return *this;
204 }
206
208
218 inline MessageFormatType GetMessageFormat() const { return m_messageFormat; }
220 m_messageFormatHasBeenSet = true;
221 m_messageFormat = value;
222 }
224 SetMessageFormat(value);
225 return *this;
226 }
228
230
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 PostContentResult& WithSlotToElicit(SlotToElicitT&& value) {
284 SetSlotToElicit(std::forward<SlotToElicitT>(value));
285 return *this;
286 }
288
290
299 inline const Aws::String& GetEncodedInputTranscript() const { return m_encodedInputTranscript; }
300 template <typename EncodedInputTranscriptT = Aws::String>
301 void SetEncodedInputTranscript(EncodedInputTranscriptT&& value) {
302 m_encodedInputTranscriptHasBeenSet = true;
303 m_encodedInputTranscript = std::forward<EncodedInputTranscriptT>(value);
304 }
305 template <typename EncodedInputTranscriptT = Aws::String>
306 PostContentResult& WithEncodedInputTranscript(EncodedInputTranscriptT&& value) {
307 SetEncodedInputTranscript(std::forward<EncodedInputTranscriptT>(value));
308 return *this;
309 }
311
313
322 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
323 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
324
326
328
333 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
334 template <typename BotVersionT = Aws::String>
335 void SetBotVersion(BotVersionT&& value) {
336 m_botVersionHasBeenSet = true;
337 m_botVersion = std::forward<BotVersionT>(value);
338 }
339 template <typename BotVersionT = Aws::String>
340 PostContentResult& WithBotVersion(BotVersionT&& value) {
341 SetBotVersion(std::forward<BotVersionT>(value));
342 return *this;
343 }
345
347
350 inline const Aws::String& GetSessionId() const { return m_sessionId; }
351 template <typename SessionIdT = Aws::String>
352 void SetSessionId(SessionIdT&& value) {
353 m_sessionIdHasBeenSet = true;
354 m_sessionId = std::forward<SessionIdT>(value);
355 }
356 template <typename SessionIdT = Aws::String>
357 PostContentResult& WithSessionId(SessionIdT&& value) {
358 SetSessionId(std::forward<SessionIdT>(value));
359 return *this;
360 }
362
364
371 inline const Aws::String& GetActiveContexts() const { return m_activeContexts; }
372 template <typename ActiveContextsT = Aws::String>
373 void SetActiveContexts(ActiveContextsT&& value) {
374 m_activeContextsHasBeenSet = true;
375 m_activeContexts = std::forward<ActiveContextsT>(value);
376 }
377 template <typename ActiveContextsT = Aws::String>
378 PostContentResult& WithActiveContexts(ActiveContextsT&& value) {
379 SetActiveContexts(std::forward<ActiveContextsT>(value));
380 return *this;
381 }
383
385
386 inline const Aws::String& GetRequestId() const { return m_requestId; }
387 template <typename RequestIdT = Aws::String>
388 void SetRequestId(RequestIdT&& value) {
389 m_requestIdHasBeenSet = true;
390 m_requestId = std::forward<RequestIdT>(value);
391 }
392 template <typename RequestIdT = Aws::String>
393 PostContentResult& WithRequestId(RequestIdT&& value) {
394 SetRequestId(std::forward<RequestIdT>(value));
395 return *this;
396 }
398 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
399
400 private:
401 Aws::String m_contentType;
402
403 Aws::String m_intentName;
404
405 Aws::String m_nluIntentConfidence;
406
407 Aws::String m_alternativeIntents;
408
409 Aws::String m_slots;
410
411 Aws::String m_sessionAttributes;
412
413 Aws::String m_sentimentResponse;
414
415 Aws::String m_encodedMessage;
416
418
419 DialogState m_dialogState{DialogState::NOT_SET};
420
421 Aws::String m_slotToElicit;
422
423 Aws::String m_encodedInputTranscript;
424
426
427 Aws::String m_botVersion;
428
429 Aws::String m_sessionId;
430
431 Aws::String m_activeContexts;
432
433 Aws::String m_requestId;
434 Aws::Http::HttpResponseCode m_HttpResponseCode;
435 bool m_contentTypeHasBeenSet = false;
436 bool m_intentNameHasBeenSet = false;
437 bool m_nluIntentConfidenceHasBeenSet = false;
438 bool m_alternativeIntentsHasBeenSet = false;
439 bool m_slotsHasBeenSet = false;
440 bool m_sessionAttributesHasBeenSet = false;
441 bool m_sentimentResponseHasBeenSet = false;
442 bool m_encodedMessageHasBeenSet = false;
443 bool m_messageFormatHasBeenSet = false;
444 bool m_dialogStateHasBeenSet = false;
445 bool m_slotToElicitHasBeenSet = false;
446 bool m_encodedInputTranscriptHasBeenSet = false;
447 bool m_audioStreamHasBeenSet = false;
448 bool m_botVersionHasBeenSet = false;
449 bool m_sessionIdHasBeenSet = false;
450 bool m_activeContextsHasBeenSet = false;
451 bool m_requestIdHasBeenSet = false;
452};
453
454} // namespace Model
455} // namespace LexRuntimeService
456} // namespace Aws
PostContentResult & WithNluIntentConfidence(NluIntentConfidenceT &&value)
void SetIntentName(IntentNameT &&value)
void SetSentimentResponse(SentimentResponseT &&value)
const Aws::String & GetEncodedInputTranscript() const
PostContentResult & WithSessionAttributes(SessionAttributesT &&value)
PostContentResult & WithSlots(SlotsT &&value)
const Aws::String & GetSessionId() const
const Aws::String & GetEncodedMessage() const
void SetContentType(ContentTypeT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetContentType() const
void SetEncodedInputTranscript(EncodedInputTranscriptT &&value)
PostContentResult & WithContentType(ContentTypeT &&value)
const Aws::String & GetActiveContexts() const
AWS_LEXRUNTIMESERVICE_API PostContentResult(PostContentResult &&)=default
AWS_LEXRUNTIMESERVICE_API PostContentResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetSlotToElicit(SlotToElicitT &&value)
PostContentResult & WithSessionId(SessionIdT &&value)
PostContentResult & WithActiveContexts(ActiveContextsT &&value)
PostContentResult(const PostContentResult &)=delete
void SetSessionAttributes(SessionAttributesT &&value)
AWS_LEXRUNTIMESERVICE_API PostContentResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
MessageFormatType GetMessageFormat() const
void SetMessageFormat(MessageFormatType value)
const Aws::String & GetNluIntentConfidence() const
Aws::IOStream & GetAudioStream() const
PostContentResult & operator=(const PostContentResult &)=delete
void SetActiveContexts(ActiveContextsT &&value)
AWS_LEXRUNTIMESERVICE_API PostContentResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetAlternativeIntents(AlternativeIntentsT &&value)
void SetNluIntentConfidence(NluIntentConfidenceT &&value)
PostContentResult & WithEncodedInputTranscript(EncodedInputTranscriptT &&value)
PostContentResult & WithDialogState(DialogState value)
const Aws::String & GetBotVersion() const
PostContentResult & WithMessageFormat(MessageFormatType value)
void ReplaceBody(Aws::IOStream *body)
const Aws::String & GetSlotToElicit() const
PostContentResult & WithRequestId(RequestIdT &&value)
PostContentResult & WithSentimentResponse(SentimentResponseT &&value)
PostContentResult & WithBotVersion(BotVersionT &&value)
const Aws::String & GetSentimentResponse() const
const Aws::String & GetAlternativeIntents() const
DialogState GetDialogState() const
const Aws::String & GetIntentName() const
PostContentResult & WithIntentName(IntentNameT &&value)
void SetDialogState(DialogState value)
void SetSessionId(SessionIdT &&value)
const Aws::String & GetSlots() const
const Aws::String & GetRequestId() const
PostContentResult & WithEncodedMessage(EncodedMessageT &&value)
PostContentResult & WithAlternativeIntents(AlternativeIntentsT &&value)
const Aws::String & GetSessionAttributes() const
void SetBotVersion(BotVersionT &&value)
AWS_LEXRUNTIMESERVICE_API PostContentResult & operator=(PostContentResult &&)=default
void SetSlots(SlotsT &&value)
PostContentResult & WithSlotToElicit(SlotToElicitT &&value)
void SetEncodedMessage(EncodedMessageT &&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