AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
28 AWS_LEXRUNTIMESERVICE_API PostContentResult(PostContentResult&&) = default;
29 AWS_LEXRUNTIMESERVICE_API PostContentResult& operator=(PostContentResult&&) = default;
30 //we delete these because Microsoft doesn't handle move generation correctly
31 //and we therefore don't trust them to get it right here either.
34
35
38
39
40
42
46 inline const Aws::String& GetContentType() const { return m_contentType; }
47 template<typename ContentTypeT = Aws::String>
48 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
49 template<typename ContentTypeT = Aws::String>
50 PostContentResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
52
54
57 inline const Aws::String& GetIntentName() const { return m_intentName; }
58 template<typename IntentNameT = Aws::String>
59 void SetIntentName(IntentNameT&& value) { m_intentNameHasBeenSet = true; m_intentName = std::forward<IntentNameT>(value); }
60 template<typename IntentNameT = Aws::String>
61 PostContentResult& WithIntentName(IntentNameT&& value) { SetIntentName(std::forward<IntentNameT>(value)); return *this;}
63
65
71 inline const Aws::String& GetNluIntentConfidence() const { return m_nluIntentConfidence; }
72 template<typename NluIntentConfidenceT = Aws::String>
73 void SetNluIntentConfidence(NluIntentConfidenceT&& value) { m_nluIntentConfidenceHasBeenSet = true; m_nluIntentConfidence = std::forward<NluIntentConfidenceT>(value); }
74 template<typename NluIntentConfidenceT = Aws::String>
75 PostContentResult& WithNluIntentConfidence(NluIntentConfidenceT&& value) { SetNluIntentConfidence(std::forward<NluIntentConfidenceT>(value)); return *this;}
77
79
85 inline const Aws::String& GetAlternativeIntents() const { return m_alternativeIntents; }
86 template<typename AlternativeIntentsT = Aws::String>
87 void SetAlternativeIntents(AlternativeIntentsT&& value) { m_alternativeIntentsHasBeenSet = true; m_alternativeIntents = std::forward<AlternativeIntentsT>(value); }
88 template<typename AlternativeIntentsT = Aws::String>
89 PostContentResult& WithAlternativeIntents(AlternativeIntentsT&& value) { SetAlternativeIntents(std::forward<AlternativeIntentsT>(value)); return *this;}
91
93
107 inline const Aws::String& GetSlots() const { return m_slots; }
108 template<typename SlotsT = Aws::String>
109 void SetSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots = std::forward<SlotsT>(value); }
110 template<typename SlotsT = Aws::String>
111 PostContentResult& WithSlots(SlotsT&& value) { SetSlots(std::forward<SlotsT>(value)); return *this;}
113
115
119 inline const Aws::String& GetSessionAttributes() const { return m_sessionAttributes; }
120 template<typename SessionAttributesT = Aws::String>
121 void SetSessionAttributes(SessionAttributesT&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::forward<SessionAttributesT>(value); }
122 template<typename SessionAttributesT = Aws::String>
123 PostContentResult& WithSessionAttributes(SessionAttributesT&& value) { SetSessionAttributes(std::forward<SessionAttributesT>(value)); return *this;}
125
127
132 inline const Aws::String& GetSentimentResponse() const { return m_sentimentResponse; }
133 template<typename SentimentResponseT = Aws::String>
134 void SetSentimentResponse(SentimentResponseT&& value) { m_sentimentResponseHasBeenSet = true; m_sentimentResponse = std::forward<SentimentResponseT>(value); }
135 template<typename SentimentResponseT = Aws::String>
136 PostContentResult& WithSentimentResponse(SentimentResponseT&& value) { SetSentimentResponse(std::forward<SentimentResponseT>(value)); return *this;}
138
140
157 inline const Aws::String& GetEncodedMessage() const { return m_encodedMessage; }
158 template<typename EncodedMessageT = Aws::String>
159 void SetEncodedMessage(EncodedMessageT&& value) { m_encodedMessageHasBeenSet = true; m_encodedMessage = std::forward<EncodedMessageT>(value); }
160 template<typename EncodedMessageT = Aws::String>
161 PostContentResult& WithEncodedMessage(EncodedMessageT&& value) { SetEncodedMessage(std::forward<EncodedMessageT>(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
211 inline DialogState GetDialogState() const { return m_dialogState; }
212 inline void SetDialogState(DialogState value) { m_dialogStateHasBeenSet = true; m_dialogState = value; }
213 inline PostContentResult& WithDialogState(DialogState value) { SetDialogState(value); return *this;}
215
217
221 inline const Aws::String& GetSlotToElicit() const { return m_slotToElicit; }
222 template<typename SlotToElicitT = Aws::String>
223 void SetSlotToElicit(SlotToElicitT&& value) { m_slotToElicitHasBeenSet = true; m_slotToElicit = std::forward<SlotToElicitT>(value); }
224 template<typename SlotToElicitT = Aws::String>
225 PostContentResult& WithSlotToElicit(SlotToElicitT&& value) { SetSlotToElicit(std::forward<SlotToElicitT>(value)); return *this;}
227
229
238 inline const Aws::String& GetEncodedInputTranscript() const { return m_encodedInputTranscript; }
239 template<typename EncodedInputTranscriptT = Aws::String>
240 void SetEncodedInputTranscript(EncodedInputTranscriptT&& value) { m_encodedInputTranscriptHasBeenSet = true; m_encodedInputTranscript = std::forward<EncodedInputTranscriptT>(value); }
241 template<typename EncodedInputTranscriptT = Aws::String>
242 PostContentResult& WithEncodedInputTranscript(EncodedInputTranscriptT&& value) { SetEncodedInputTranscript(std::forward<EncodedInputTranscriptT>(value)); return *this;}
244
246
255 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
256 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
257
259
261
266 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
267 template<typename BotVersionT = Aws::String>
268 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
269 template<typename BotVersionT = Aws::String>
270 PostContentResult& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
272
274
277 inline const Aws::String& GetSessionId() const { return m_sessionId; }
278 template<typename SessionIdT = Aws::String>
279 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
280 template<typename SessionIdT = Aws::String>
281 PostContentResult& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
283
285
292 inline const Aws::String& GetActiveContexts() const { return m_activeContexts; }
293 template<typename ActiveContextsT = Aws::String>
294 void SetActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::forward<ActiveContextsT>(value); }
295 template<typename ActiveContextsT = Aws::String>
296 PostContentResult& WithActiveContexts(ActiveContextsT&& value) { SetActiveContexts(std::forward<ActiveContextsT>(value)); return *this;}
298
300
301 inline const Aws::String& GetRequestId() const { return m_requestId; }
302 template<typename RequestIdT = Aws::String>
303 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
304 template<typename RequestIdT = Aws::String>
305 PostContentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
307 private:
308
309 Aws::String m_contentType;
310 bool m_contentTypeHasBeenSet = false;
311
312 Aws::String m_intentName;
313 bool m_intentNameHasBeenSet = false;
314
315 Aws::String m_nluIntentConfidence;
316 bool m_nluIntentConfidenceHasBeenSet = false;
317
318 Aws::String m_alternativeIntents;
319 bool m_alternativeIntentsHasBeenSet = false;
320
321 Aws::String m_slots;
322 bool m_slotsHasBeenSet = false;
323
324 Aws::String m_sessionAttributes;
325 bool m_sessionAttributesHasBeenSet = false;
326
327 Aws::String m_sentimentResponse;
328 bool m_sentimentResponseHasBeenSet = false;
329
330 Aws::String m_encodedMessage;
331 bool m_encodedMessageHasBeenSet = false;
332
334 bool m_messageFormatHasBeenSet = false;
335
336 DialogState m_dialogState{DialogState::NOT_SET};
337 bool m_dialogStateHasBeenSet = false;
338
339 Aws::String m_slotToElicit;
340 bool m_slotToElicitHasBeenSet = false;
341
342 Aws::String m_encodedInputTranscript;
343 bool m_encodedInputTranscriptHasBeenSet = false;
344
346 bool m_audioStreamHasBeenSet = false;
347
348 Aws::String m_botVersion;
349 bool m_botVersionHasBeenSet = false;
350
351 Aws::String m_sessionId;
352 bool m_sessionIdHasBeenSet = false;
353
354 Aws::String m_activeContexts;
355 bool m_activeContextsHasBeenSet = false;
356
357 Aws::String m_requestId;
358 bool m_requestIdHasBeenSet = false;
359 };
360
361} // namespace Model
362} // namespace LexRuntimeService
363} // 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
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