AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutSessionRequest.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/lex/LexRuntimeServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/lex/model/DialogAction.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lex/model/IntentSummary.h>
14#include <aws/lex/model/ActiveContext.h>
15#include <utility>
16
17namespace Aws
18{
19namespace LexRuntimeService
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_LEXRUNTIMESERVICE_API PutSessionRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutSession"; }
36
37 AWS_LEXRUNTIMESERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_LEXRUNTIMESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetBotName() const{ return m_botName; }
47 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
48 inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
49 inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
50 inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
51 inline PutSessionRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
52 inline PutSessionRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
53 inline PutSessionRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
55
57
60 inline const Aws::String& GetBotAlias() const{ return m_botAlias; }
61 inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
62 inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; }
63 inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); }
64 inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); }
65 inline PutSessionRequest& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;}
66 inline PutSessionRequest& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;}
67 inline PutSessionRequest& WithBotAlias(const char* value) { SetBotAlias(value); return *this;}
69
71
75 inline const Aws::String& GetUserId() const{ return m_userId; }
76 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
77 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
78 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
79 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
80 inline PutSessionRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
81 inline PutSessionRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
82 inline PutSessionRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
84
86
91 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
92 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
93 inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; }
94 inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); }
97 inline PutSessionRequest& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
98 inline PutSessionRequest& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
99 inline PutSessionRequest& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
100 inline PutSessionRequest& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
101 inline PutSessionRequest& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
102 inline PutSessionRequest& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
103 inline PutSessionRequest& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
105
107
111 inline const DialogAction& GetDialogAction() const{ return m_dialogAction; }
112 inline bool DialogActionHasBeenSet() const { return m_dialogActionHasBeenSet; }
113 inline void SetDialogAction(const DialogAction& value) { m_dialogActionHasBeenSet = true; m_dialogAction = value; }
114 inline void SetDialogAction(DialogAction&& value) { m_dialogActionHasBeenSet = true; m_dialogAction = std::move(value); }
115 inline PutSessionRequest& WithDialogAction(const DialogAction& value) { SetDialogAction(value); return *this;}
116 inline PutSessionRequest& WithDialogAction(DialogAction&& value) { SetDialogAction(std::move(value)); return *this;}
118
120
135 inline const Aws::Vector<IntentSummary>& GetRecentIntentSummaryView() const{ return m_recentIntentSummaryView; }
136 inline bool RecentIntentSummaryViewHasBeenSet() const { return m_recentIntentSummaryViewHasBeenSet; }
137 inline void SetRecentIntentSummaryView(const Aws::Vector<IntentSummary>& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView = value; }
138 inline void SetRecentIntentSummaryView(Aws::Vector<IntentSummary>&& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView = std::move(value); }
141 inline PutSessionRequest& AddRecentIntentSummaryView(const IntentSummary& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView.push_back(value); return *this; }
142 inline PutSessionRequest& AddRecentIntentSummaryView(IntentSummary&& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView.push_back(std::move(value)); return *this; }
144
146
162 inline const Aws::String& GetAccept() const{ return m_accept; }
163 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
164 inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
165 inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
166 inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
167 inline PutSessionRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
168 inline PutSessionRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
169 inline PutSessionRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
171
173
180 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const{ return m_activeContexts; }
181 inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
182 inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContextsHasBeenSet = true; m_activeContexts = value; }
183 inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::move(value); }
185 inline PutSessionRequest& WithActiveContexts(Aws::Vector<ActiveContext>&& value) { SetActiveContexts(std::move(value)); return *this;}
186 inline PutSessionRequest& AddActiveContexts(const ActiveContext& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(value); return *this; }
187 inline PutSessionRequest& AddActiveContexts(ActiveContext&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(std::move(value)); return *this; }
189 private:
190
191 Aws::String m_botName;
192 bool m_botNameHasBeenSet = false;
193
194 Aws::String m_botAlias;
195 bool m_botAliasHasBeenSet = false;
196
197 Aws::String m_userId;
198 bool m_userIdHasBeenSet = false;
199
200 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
201 bool m_sessionAttributesHasBeenSet = false;
202
203 DialogAction m_dialogAction;
204 bool m_dialogActionHasBeenSet = false;
205
206 Aws::Vector<IntentSummary> m_recentIntentSummaryView;
207 bool m_recentIntentSummaryViewHasBeenSet = false;
208
209 Aws::String m_accept;
210 bool m_acceptHasBeenSet = false;
211
212 Aws::Vector<ActiveContext> m_activeContexts;
213 bool m_activeContextsHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace LexRuntimeService
218} // namespace Aws
void SetRecentIntentSummaryView(Aws::Vector< IntentSummary > &&value)
PutSessionRequest & WithBotName(const char *value)
PutSessionRequest & AddSessionAttributes(const char *key, const char *value)
PutSessionRequest & WithAccept(const char *value)
AWS_LEXRUNTIMESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutSessionRequest & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
PutSessionRequest & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
PutSessionRequest & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
PutSessionRequest & AddSessionAttributes(const char *key, Aws::String &&value)
PutSessionRequest & WithAccept(Aws::String &&value)
PutSessionRequest & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PutSessionRequest & WithUserId(const char *value)
PutSessionRequest & AddActiveContexts(const ActiveContext &value)
PutSessionRequest & WithDialogAction(DialogAction &&value)
PutSessionRequest & WithBotAlias(const Aws::String &value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
PutSessionRequest & WithUserId(Aws::String &&value)
PutSessionRequest & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
PutSessionRequest & AddSessionAttributes(Aws::String &&key, const char *value)
AWS_LEXRUNTIMESERVICE_API PutSessionRequest()
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
PutSessionRequest & AddRecentIntentSummaryView(IntentSummary &&value)
PutSessionRequest & WithUserId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
PutSessionRequest & AddRecentIntentSummaryView(const IntentSummary &value)
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PutSessionRequest & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
PutSessionRequest & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
PutSessionRequest & WithRecentIntentSummaryView(const Aws::Vector< IntentSummary > &value)
PutSessionRequest & WithBotAlias(Aws::String &&value)
void SetActiveContexts(Aws::Vector< ActiveContext > &&value)
PutSessionRequest & WithDialogAction(const DialogAction &value)
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
PutSessionRequest & WithAccept(const Aws::String &value)
PutSessionRequest & WithBotAlias(const char *value)
const Aws::Vector< IntentSummary > & GetRecentIntentSummaryView() const
PutSessionRequest & WithBotName(Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API Aws::String SerializePayload() const override
PutSessionRequest & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
PutSessionRequest & WithBotName(const Aws::String &value)
PutSessionRequest & AddActiveContexts(ActiveContext &&value)
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetRecentIntentSummaryView(const Aws::Vector< IntentSummary > &value)
PutSessionRequest & WithRecentIntentSummaryView(Aws::Vector< IntentSummary > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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