AWS SDK for C++  1.9.176
AWS SDK for C++
GetSessionResult.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 template<typename RESULT_TYPE>
19 class AmazonWebServiceResult;
20 
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace LexRuntimeService
29 {
30 namespace Model
31 {
33  {
34  public:
38 
39 
48  inline const Aws::Vector<IntentSummary>& GetRecentIntentSummaryView() const{ return m_recentIntentSummaryView; }
49 
58  inline void SetRecentIntentSummaryView(const Aws::Vector<IntentSummary>& value) { m_recentIntentSummaryView = value; }
59 
68  inline void SetRecentIntentSummaryView(Aws::Vector<IntentSummary>&& value) { m_recentIntentSummaryView = std::move(value); }
69 
78  inline GetSessionResult& WithRecentIntentSummaryView(const Aws::Vector<IntentSummary>& value) { SetRecentIntentSummaryView(value); return *this;}
79 
88  inline GetSessionResult& WithRecentIntentSummaryView(Aws::Vector<IntentSummary>&& value) { SetRecentIntentSummaryView(std::move(value)); return *this;}
89 
98  inline GetSessionResult& AddRecentIntentSummaryView(const IntentSummary& value) { m_recentIntentSummaryView.push_back(value); return *this; }
99 
108  inline GetSessionResult& AddRecentIntentSummaryView(IntentSummary&& value) { m_recentIntentSummaryView.push_back(std::move(value)); return *this; }
109 
110 
116  inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
117 
123  inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributes = value; }
124 
130  inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributes = std::move(value); }
131 
137  inline GetSessionResult& WithSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetSessionAttributes(value); return *this;}
138 
144  inline GetSessionResult& WithSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetSessionAttributes(std::move(value)); return *this;}
145 
151  inline GetSessionResult& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributes.emplace(key, value); return *this; }
152 
158  inline GetSessionResult& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributes.emplace(std::move(key), value); return *this; }
159 
165  inline GetSessionResult& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributes.emplace(key, std::move(value)); return *this; }
166 
172  inline GetSessionResult& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
173 
179  inline GetSessionResult& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributes.emplace(key, std::move(value)); return *this; }
180 
186  inline GetSessionResult& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributes.emplace(std::move(key), value); return *this; }
187 
193  inline GetSessionResult& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributes.emplace(key, value); return *this; }
194 
195 
199  inline const Aws::String& GetSessionId() const{ return m_sessionId; }
200 
204  inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
205 
209  inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
210 
214  inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
215 
219  inline GetSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
220 
224  inline GetSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
225 
229  inline GetSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
230 
231 
235  inline const DialogAction& GetDialogAction() const{ return m_dialogAction; }
236 
240  inline void SetDialogAction(const DialogAction& value) { m_dialogAction = value; }
241 
245  inline void SetDialogAction(DialogAction&& value) { m_dialogAction = std::move(value); }
246 
250  inline GetSessionResult& WithDialogAction(const DialogAction& value) { SetDialogAction(value); return *this;}
251 
255  inline GetSessionResult& WithDialogAction(DialogAction&& value) { SetDialogAction(std::move(value)); return *this;}
256 
257 
265  inline const Aws::Vector<ActiveContext>& GetActiveContexts() const{ return m_activeContexts; }
266 
274  inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContexts = value; }
275 
283  inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContexts = std::move(value); }
284 
292  inline GetSessionResult& WithActiveContexts(const Aws::Vector<ActiveContext>& value) { SetActiveContexts(value); return *this;}
293 
301  inline GetSessionResult& WithActiveContexts(Aws::Vector<ActiveContext>&& value) { SetActiveContexts(std::move(value)); return *this;}
302 
310  inline GetSessionResult& AddActiveContexts(const ActiveContext& value) { m_activeContexts.push_back(value); return *this; }
311 
319  inline GetSessionResult& AddActiveContexts(ActiveContext&& value) { m_activeContexts.push_back(std::move(value)); return *this; }
320 
321  private:
322 
323  Aws::Vector<IntentSummary> m_recentIntentSummaryView;
324 
325  Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
326 
327  Aws::String m_sessionId;
328 
329  DialogAction m_dialogAction;
330 
331  Aws::Vector<ActiveContext> m_activeContexts;
332  };
333 
334 } // namespace Model
335 } // namespace LexRuntimeService
336 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::LexRuntimeService::Model::GetSessionResult::WithRecentIntentSummaryView
GetSessionResult & WithRecentIntentSummaryView(Aws::Vector< IntentSummary > &&value)
Definition: GetSessionResult.h:88
Aws::LexRuntimeService::Model::GetSessionResult::SetSessionId
void SetSessionId(const char *value)
Definition: GetSessionResult.h:214
Aws::LexRuntimeService::Model::GetSessionResult::SetSessionId
void SetSessionId(const Aws::String &value)
Definition: GetSessionResult.h:204
Aws::LexRuntimeService::Model::GetSessionResult::SetSessionAttributes
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetSessionResult.h:123
Aws::LexRuntimeService::Model::GetSessionResult::GetSessionAttributes
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
Definition: GetSessionResult.h:116
Aws::LexRuntimeService::Model::GetSessionResult::AddActiveContexts
GetSessionResult & AddActiveContexts(ActiveContext &&value)
Definition: GetSessionResult.h:319
Aws::LexRuntimeService::Model::GetSessionResult::SetRecentIntentSummaryView
void SetRecentIntentSummaryView(Aws::Vector< IntentSummary > &&value)
Definition: GetSessionResult.h:68
Aws::LexRuntimeService::Model::GetSessionResult::AddSessionAttributes
GetSessionResult & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
Definition: GetSessionResult.h:165
Aws::LexRuntimeService::Model::GetSessionResult::GetDialogAction
const DialogAction & GetDialogAction() const
Definition: GetSessionResult.h:235
Aws::LexRuntimeService::Model::GetSessionResult::WithSessionId
GetSessionResult & WithSessionId(const Aws::String &value)
Definition: GetSessionResult.h:219
ActiveContext.h
Aws::LexRuntimeService::Model::GetSessionResult
Definition: GetSessionResult.h:33
Aws::LexRuntimeService::Model::GetSessionResult::GetRecentIntentSummaryView
const Aws::Vector< IntentSummary > & GetRecentIntentSummaryView() const
Definition: GetSessionResult.h:48
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::LexRuntimeService::Model::GetSessionResult::WithDialogAction
GetSessionResult & WithDialogAction(const DialogAction &value)
Definition: GetSessionResult.h:250
Aws::LexRuntimeService::Model::GetSessionResult::GetSessionId
const Aws::String & GetSessionId() const
Definition: GetSessionResult.h:199
AWS_LEXRUNTIMESERVICE_API
#define AWS_LEXRUNTIMESERVICE_API
Definition: LexRuntimeService_EXPORTS.h:28
AWSVector.h
Aws::LexRuntimeService::Model::GetSessionResult::WithSessionAttributes
GetSessionResult & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetSessionResult.h:137
Aws::LexRuntimeService::Model::GetSessionResult::WithDialogAction
GetSessionResult & WithDialogAction(DialogAction &&value)
Definition: GetSessionResult.h:255
Aws::LexRuntimeService::Model::GetSessionResult::AddSessionAttributes
GetSessionResult & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
Definition: GetSessionResult.h:158
Aws::LexRuntimeService::Model::GetSessionResult::SetActiveContexts
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
Definition: GetSessionResult.h:274
LexRuntimeService_EXPORTS.h
Aws::LexRuntimeService::Model::GetSessionResult::operator=
GetSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::LexRuntimeService::Model::GetSessionResult::WithSessionAttributes
GetSessionResult & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetSessionResult.h:144
Aws::LexRuntimeService::Model::GetSessionResult::WithActiveContexts
GetSessionResult & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
Definition: GetSessionResult.h:301
Aws::LexRuntimeService::Model::GetSessionResult::WithSessionId
GetSessionResult & WithSessionId(Aws::String &&value)
Definition: GetSessionResult.h:224
DialogAction.h
Aws::LexRuntimeService::Model::GetSessionResult::AddActiveContexts
GetSessionResult & AddActiveContexts(const ActiveContext &value)
Definition: GetSessionResult.h:310
Aws::LexRuntimeService::Model::GetSessionResult::AddSessionAttributes
GetSessionResult & AddSessionAttributes(const char *key, const char *value)
Definition: GetSessionResult.h:193
Aws::LexRuntimeService::Model::GetSessionResult::WithActiveContexts
GetSessionResult & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
Definition: GetSessionResult.h:292
Aws::LexRuntimeService::Model::GetSessionResult::SetActiveContexts
void SetActiveContexts(Aws::Vector< ActiveContext > &&value)
Definition: GetSessionResult.h:283
Aws::LexRuntimeService::Model::DialogAction
Definition: DialogAction.h:40
AWSString.h
Aws::LexRuntimeService::Model::GetSessionResult::SetRecentIntentSummaryView
void SetRecentIntentSummaryView(const Aws::Vector< IntentSummary > &value)
Definition: GetSessionResult.h:58
Aws::LexRuntimeService::Model::GetSessionResult::SetSessionAttributes
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetSessionResult.h:130
Aws::LexRuntimeService::Model::GetSessionResult::AddRecentIntentSummaryView
GetSessionResult & AddRecentIntentSummaryView(const IntentSummary &value)
Definition: GetSessionResult.h:98
Aws::LexRuntimeService::Model::ActiveContext
Definition: ActiveContext.h:38
Aws::LexRuntimeService::Model::GetSessionResult::GetSessionResult
GetSessionResult()
Aws::LexRuntimeService::Model::GetSessionResult::WithRecentIntentSummaryView
GetSessionResult & WithRecentIntentSummaryView(const Aws::Vector< IntentSummary > &value)
Definition: GetSessionResult.h:78
Aws::LexRuntimeService::Model::GetSessionResult::SetSessionId
void SetSessionId(Aws::String &&value)
Definition: GetSessionResult.h:209
Aws::LexRuntimeService::Model::GetSessionResult::AddSessionAttributes
GetSessionResult & AddSessionAttributes(Aws::String &&key, const char *value)
Definition: GetSessionResult.h:186
Aws::LexRuntimeService::Model::GetSessionResult::GetSessionResult
GetSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::LexRuntimeService::Model::IntentSummary
Definition: IntentSummary.h:39
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::LexRuntimeService::Model::GetSessionResult::AddSessionAttributes
GetSessionResult & AddSessionAttributes(const char *key, Aws::String &&value)
Definition: GetSessionResult.h:179
Aws::LexRuntimeService::Model::GetSessionResult::SetDialogAction
void SetDialogAction(const DialogAction &value)
Definition: GetSessionResult.h:240
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LexRuntimeService::Model::GetSessionResult::GetActiveContexts
const Aws::Vector< ActiveContext > & GetActiveContexts() const
Definition: GetSessionResult.h:265
Aws::LexRuntimeService::Model::GetSessionResult::AddSessionAttributes
GetSessionResult & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
Definition: GetSessionResult.h:151
Aws::LexRuntimeService::Model::GetSessionResult::AddRecentIntentSummaryView
GetSessionResult & AddRecentIntentSummaryView(IntentSummary &&value)
Definition: GetSessionResult.h:108
AWSMap.h
IntentSummary.h
Aws::LexRuntimeService::Model::GetSessionResult::WithSessionId
GetSessionResult & WithSessionId(const char *value)
Definition: GetSessionResult.h:229
Aws::LexRuntimeService::Model::GetSessionResult::SetDialogAction
void SetDialogAction(DialogAction &&value)
Definition: GetSessionResult.h:245
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::LexRuntimeService::Model::GetSessionResult::AddSessionAttributes
GetSessionResult & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
Definition: GetSessionResult.h:172