AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSessionResult.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lex/model/DialogAction.h>
12#include <aws/lex/model/IntentSummary.h>
13#include <aws/lex/model/ActiveContext.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace LexRuntimeService
29{
30namespace Model
31{
33 {
34 public:
35 AWS_LEXRUNTIMESERVICE_API GetSessionResult();
38
39
41
49 inline const Aws::Vector<IntentSummary>& GetRecentIntentSummaryView() const{ return m_recentIntentSummaryView; }
50 inline void SetRecentIntentSummaryView(const Aws::Vector<IntentSummary>& value) { m_recentIntentSummaryView = value; }
51 inline void SetRecentIntentSummaryView(Aws::Vector<IntentSummary>&& value) { m_recentIntentSummaryView = std::move(value); }
54 inline GetSessionResult& AddRecentIntentSummaryView(const IntentSummary& value) { m_recentIntentSummaryView.push_back(value); return *this; }
55 inline GetSessionResult& AddRecentIntentSummaryView(IntentSummary&& value) { m_recentIntentSummaryView.push_back(std::move(value)); return *this; }
57
59
64 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
65 inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributes = value; }
66 inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributes = std::move(value); }
69 inline GetSessionResult& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributes.emplace(key, value); return *this; }
70 inline GetSessionResult& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributes.emplace(std::move(key), value); return *this; }
71 inline GetSessionResult& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributes.emplace(key, std::move(value)); return *this; }
72 inline GetSessionResult& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
73 inline GetSessionResult& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributes.emplace(key, std::move(value)); return *this; }
74 inline GetSessionResult& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributes.emplace(std::move(key), value); return *this; }
75 inline GetSessionResult& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributes.emplace(key, value); return *this; }
77
79
82 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
83 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
84 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
85 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
86 inline GetSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
87 inline GetSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
88 inline GetSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
90
92
95 inline const DialogAction& GetDialogAction() const{ return m_dialogAction; }
96 inline void SetDialogAction(const DialogAction& value) { m_dialogAction = value; }
97 inline void SetDialogAction(DialogAction&& value) { m_dialogAction = std::move(value); }
98 inline GetSessionResult& WithDialogAction(const DialogAction& value) { SetDialogAction(value); return *this;}
99 inline GetSessionResult& WithDialogAction(DialogAction&& value) { SetDialogAction(std::move(value)); return *this;}
101
103
110 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const{ return m_activeContexts; }
111 inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContexts = value; }
112 inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContexts = std::move(value); }
114 inline GetSessionResult& WithActiveContexts(Aws::Vector<ActiveContext>&& value) { SetActiveContexts(std::move(value)); return *this;}
115 inline GetSessionResult& AddActiveContexts(const ActiveContext& value) { m_activeContexts.push_back(value); return *this; }
116 inline GetSessionResult& AddActiveContexts(ActiveContext&& value) { m_activeContexts.push_back(std::move(value)); return *this; }
118
120
121 inline const Aws::String& GetRequestId() const{ return m_requestId; }
122 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
123 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
124 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
125 inline GetSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
126 inline GetSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
127 inline GetSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
129 private:
130
131 Aws::Vector<IntentSummary> m_recentIntentSummaryView;
132
133 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
134
135 Aws::String m_sessionId;
136
137 DialogAction m_dialogAction;
138
139 Aws::Vector<ActiveContext> m_activeContexts;
140
141 Aws::String m_requestId;
142 };
143
144} // namespace Model
145} // namespace LexRuntimeService
146} // namespace Aws
GetSessionResult & AddActiveContexts(ActiveContext &&value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
GetSessionResult & AddActiveContexts(const ActiveContext &value)
GetSessionResult & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
GetSessionResult & WithSessionId(Aws::String &&value)
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
GetSessionResult & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
GetSessionResult & WithRecentIntentSummaryView(const Aws::Vector< IntentSummary > &value)
GetSessionResult & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetRecentIntentSummaryView(const Aws::Vector< IntentSummary > &value)
GetSessionResult & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
GetSessionResult & WithRecentIntentSummaryView(Aws::Vector< IntentSummary > &&value)
AWS_LEXRUNTIMESERVICE_API GetSessionResult()
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
GetSessionResult & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
GetSessionResult & AddSessionAttributes(const char *key, Aws::String &&value)
GetSessionResult & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
GetSessionResult & AddSessionAttributes(const char *key, const char *value)
GetSessionResult & WithRequestId(Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API GetSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionResult & WithRequestId(const Aws::String &value)
GetSessionResult & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
void SetDialogAction(const DialogAction &value)
GetSessionResult & WithDialogAction(DialogAction &&value)
GetSessionResult & WithRequestId(const char *value)
void SetRecentIntentSummaryView(Aws::Vector< IntentSummary > &&value)
GetSessionResult & WithSessionId(const Aws::String &value)
const Aws::Vector< IntentSummary > & GetRecentIntentSummaryView() const
AWS_LEXRUNTIMESERVICE_API GetSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionResult & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
GetSessionResult & WithDialogAction(const DialogAction &value)
GetSessionResult & AddRecentIntentSummaryView(IntentSummary &&value)
void SetActiveContexts(Aws::Vector< ActiveContext > &&value)
GetSessionResult & WithSessionId(const char *value)
GetSessionResult & AddRecentIntentSummaryView(const IntentSummary &value)
GetSessionResult & AddSessionAttributes(Aws::String &&key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue