AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutSessionResult.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 PutSessionResult();
28 //We have to define these because Microsoft doesn't auto generate them
29 AWS_LEXRUNTIMESERVICE_API PutSessionResult(PutSessionResult&&);
30 AWS_LEXRUNTIMESERVICE_API PutSessionResult& operator=(PutSessionResult&&);
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 PutSessionResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
52 inline PutSessionResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
53 inline PutSessionResult& 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 PutSessionResult& WithIntentName(const Aws::String& value) { SetIntentName(value); return *this;}
65 inline PutSessionResult& WithIntentName(Aws::String&& value) { SetIntentName(std::move(value)); return *this;}
66 inline PutSessionResult& WithIntentName(const char* value) { SetIntentName(value); return *this;}
68
70
83 inline const Aws::String& GetSlots() const{ return m_slots; }
84 inline void SetSlots(const Aws::String& value) { m_slots = value; }
85 inline void SetSlots(Aws::String&& value) { m_slots = std::move(value); }
86 inline void SetSlots(const char* value) { m_slots.assign(value); }
87 inline PutSessionResult& WithSlots(const Aws::String& value) { SetSlots(value); return *this;}
88 inline PutSessionResult& WithSlots(Aws::String&& value) { SetSlots(std::move(value)); return *this;}
89 inline PutSessionResult& WithSlots(const char* value) { SetSlots(value); return *this;}
91
93
96 inline const Aws::String& GetSessionAttributes() const{ return m_sessionAttributes; }
97 inline void SetSessionAttributes(const Aws::String& value) { m_sessionAttributes = value; }
98 inline void SetSessionAttributes(Aws::String&& value) { m_sessionAttributes = std::move(value); }
99 inline void SetSessionAttributes(const char* value) { m_sessionAttributes.assign(value); }
100 inline PutSessionResult& WithSessionAttributes(const Aws::String& value) { SetSessionAttributes(value); return *this;}
101 inline PutSessionResult& WithSessionAttributes(Aws::String&& value) { SetSessionAttributes(std::move(value)); return *this;}
102 inline PutSessionResult& WithSessionAttributes(const char* value) { SetSessionAttributes(value); return *this;}
104
106
111 inline const Aws::String& GetEncodedMessage() const{ return m_encodedMessage; }
112 inline void SetEncodedMessage(const Aws::String& value) { m_encodedMessage = value; }
113 inline void SetEncodedMessage(Aws::String&& value) { m_encodedMessage = std::move(value); }
114 inline void SetEncodedMessage(const char* value) { m_encodedMessage.assign(value); }
115 inline PutSessionResult& WithEncodedMessage(const Aws::String& value) { SetEncodedMessage(value); return *this;}
116 inline PutSessionResult& WithEncodedMessage(Aws::String&& value) { SetEncodedMessage(std::move(value)); return *this;}
117 inline PutSessionResult& WithEncodedMessage(const char* value) { SetEncodedMessage(value); return *this;}
119
121
131 inline const MessageFormatType& GetMessageFormat() const{ return m_messageFormat; }
132 inline void SetMessageFormat(const MessageFormatType& value) { m_messageFormat = value; }
133 inline void SetMessageFormat(MessageFormatType&& value) { m_messageFormat = std::move(value); }
134 inline PutSessionResult& WithMessageFormat(const MessageFormatType& value) { SetMessageFormat(value); return *this;}
135 inline PutSessionResult& WithMessageFormat(MessageFormatType&& value) { SetMessageFormat(std::move(value)); return *this;}
137
139
153 inline const DialogState& GetDialogState() const{ return m_dialogState; }
154 inline void SetDialogState(const DialogState& value) { m_dialogState = value; }
155 inline void SetDialogState(DialogState&& value) { m_dialogState = std::move(value); }
156 inline PutSessionResult& WithDialogState(const DialogState& value) { SetDialogState(value); return *this;}
157 inline PutSessionResult& WithDialogState(DialogState&& value) { SetDialogState(std::move(value)); return *this;}
159
161
165 inline const Aws::String& GetSlotToElicit() const{ return m_slotToElicit; }
166 inline void SetSlotToElicit(const Aws::String& value) { m_slotToElicit = value; }
167 inline void SetSlotToElicit(Aws::String&& value) { m_slotToElicit = std::move(value); }
168 inline void SetSlotToElicit(const char* value) { m_slotToElicit.assign(value); }
169 inline PutSessionResult& WithSlotToElicit(const Aws::String& value) { SetSlotToElicit(value); return *this;}
170 inline PutSessionResult& WithSlotToElicit(Aws::String&& value) { SetSlotToElicit(std::move(value)); return *this;}
171 inline PutSessionResult& WithSlotToElicit(const char* value) { SetSlotToElicit(value); return *this;}
173
175
178 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
179 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
180
182
184
187 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
188 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
189 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
190 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
191 inline PutSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
192 inline PutSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
193 inline PutSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
195
197
200 inline const Aws::String& GetActiveContexts() const{ return m_activeContexts; }
201 inline void SetActiveContexts(const Aws::String& value) { m_activeContexts = value; }
202 inline void SetActiveContexts(Aws::String&& value) { m_activeContexts = std::move(value); }
203 inline void SetActiveContexts(const char* value) { m_activeContexts.assign(value); }
204 inline PutSessionResult& WithActiveContexts(const Aws::String& value) { SetActiveContexts(value); return *this;}
205 inline PutSessionResult& WithActiveContexts(Aws::String&& value) { SetActiveContexts(std::move(value)); return *this;}
206 inline PutSessionResult& WithActiveContexts(const char* value) { SetActiveContexts(value); return *this;}
208
210
211 inline const Aws::String& GetRequestId() const{ return m_requestId; }
212 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
213 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
214 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
215 inline PutSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
216 inline PutSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
217 inline PutSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
219 private:
220
221 Aws::String m_contentType;
222
223 Aws::String m_intentName;
224
225 Aws::String m_slots;
226
227 Aws::String m_sessionAttributes;
228
229 Aws::String m_encodedMessage;
230
231 MessageFormatType m_messageFormat;
232
233 DialogState m_dialogState;
234
235 Aws::String m_slotToElicit;
236
238
239 Aws::String m_sessionId;
240
241 Aws::String m_activeContexts;
242
243 Aws::String m_requestId;
244 };
245
246} // namespace Model
247} // namespace LexRuntimeService
248} // namespace Aws
PutSessionResult & WithSessionId(const char *value)
PutSessionResult & WithRequestId(const char *value)
PutSessionResult & WithSlotToElicit(Aws::String &&value)
PutSessionResult & WithSessionId(const Aws::String &value)
PutSessionResult & WithSlots(const Aws::String &value)
PutSessionResult & WithMessageFormat(const MessageFormatType &value)
void SetMessageFormat(MessageFormatType &&value)
AWS_LEXRUNTIMESERVICE_API PutSessionResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_LEXRUNTIMESERVICE_API PutSessionResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
PutSessionResult & WithMessageFormat(MessageFormatType &&value)
PutSessionResult & WithActiveContexts(const Aws::String &value)
PutSessionResult & WithDialogState(const DialogState &value)
PutSessionResult & WithSlotToElicit(const Aws::String &value)
PutSessionResult & WithContentType(const char *value)
PutSessionResult & WithContentType(const Aws::String &value)
PutSessionResult & WithDialogState(DialogState &&value)
PutSessionResult & WithEncodedMessage(const Aws::String &value)
AWS_LEXRUNTIMESERVICE_API PutSessionResult()
PutSessionResult & WithEncodedMessage(const char *value)
PutSessionResult & WithEncodedMessage(Aws::String &&value)
void SetMessageFormat(const MessageFormatType &value)
AWS_LEXRUNTIMESERVICE_API PutSessionResult(PutSessionResult &&)
PutSessionResult & WithIntentName(const char *value)
void SetActiveContexts(const Aws::String &value)
PutSessionResult & WithIntentName(Aws::String &&value)
PutSessionResult & WithActiveContexts(Aws::String &&value)
PutSessionResult & WithSessionAttributes(Aws::String &&value)
PutSessionResult & WithSlotToElicit(const char *value)
PutSessionResult & WithSlots(Aws::String &&value)
PutSessionResult & WithSessionAttributes(const char *value)
PutSessionResult & WithSessionAttributes(const Aws::String &value)
PutSessionResult & WithContentType(Aws::String &&value)
PutSessionResult & WithActiveContexts(const char *value)
void SetContentType(const Aws::String &value)
PutSessionResult & WithSlots(const char *value)
PutSessionResult & operator=(const PutSessionResult &)=delete
PutSessionResult & WithRequestId(const Aws::String &value)
PutSessionResult & WithRequestId(Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API PutSessionResult & operator=(PutSessionResult &&)
void SetSessionAttributes(const Aws::String &value)
PutSessionResult & WithSessionId(Aws::String &&value)
PutSessionResult & WithIntentName(const Aws::String &value)
PutSessionResult(const PutSessionResult &)=delete
void SetEncodedMessage(const Aws::String &value)
const MessageFormatType & GetMessageFormat() const
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