AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename BotNameT = Aws::String>
49 void SetBotName(BotNameT&& value) { m_botNameHasBeenSet = true; m_botName = std::forward<BotNameT>(value); }
50 template<typename BotNameT = Aws::String>
51 PutSessionRequest& WithBotName(BotNameT&& value) { SetBotName(std::forward<BotNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetBotAlias() const { return m_botAlias; }
59 inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
60 template<typename BotAliasT = Aws::String>
61 void SetBotAlias(BotAliasT&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::forward<BotAliasT>(value); }
62 template<typename BotAliasT = Aws::String>
63 PutSessionRequest& WithBotAlias(BotAliasT&& value) { SetBotAlias(std::forward<BotAliasT>(value)); return *this;}
65
67
71 inline const Aws::String& GetUserId() const { return m_userId; }
72 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
73 template<typename UserIdT = Aws::String>
74 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
75 template<typename UserIdT = Aws::String>
76 PutSessionRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
78
80
85 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const { return m_sessionAttributes; }
86 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
87 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
88 void SetSessionAttributes(SessionAttributesT&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::forward<SessionAttributesT>(value); }
89 template<typename SessionAttributesT = Aws::Map<Aws::String, Aws::String>>
90 PutSessionRequest& WithSessionAttributes(SessionAttributesT&& value) { SetSessionAttributes(std::forward<SessionAttributesT>(value)); return *this;}
91 template<typename SessionAttributesKeyT = Aws::String, typename SessionAttributesValueT = Aws::String>
92 PutSessionRequest& AddSessionAttributes(SessionAttributesKeyT&& key, SessionAttributesValueT&& value) {
93 m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::forward<SessionAttributesKeyT>(key), std::forward<SessionAttributesValueT>(value)); return *this;
94 }
96
98
102 inline const DialogAction& GetDialogAction() const { return m_dialogAction; }
103 inline bool DialogActionHasBeenSet() const { return m_dialogActionHasBeenSet; }
104 template<typename DialogActionT = DialogAction>
105 void SetDialogAction(DialogActionT&& value) { m_dialogActionHasBeenSet = true; m_dialogAction = std::forward<DialogActionT>(value); }
106 template<typename DialogActionT = DialogAction>
107 PutSessionRequest& WithDialogAction(DialogActionT&& value) { SetDialogAction(std::forward<DialogActionT>(value)); return *this;}
109
111
126 inline const Aws::Vector<IntentSummary>& GetRecentIntentSummaryView() const { return m_recentIntentSummaryView; }
127 inline bool RecentIntentSummaryViewHasBeenSet() const { return m_recentIntentSummaryViewHasBeenSet; }
128 template<typename RecentIntentSummaryViewT = Aws::Vector<IntentSummary>>
129 void SetRecentIntentSummaryView(RecentIntentSummaryViewT&& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView = std::forward<RecentIntentSummaryViewT>(value); }
130 template<typename RecentIntentSummaryViewT = Aws::Vector<IntentSummary>>
131 PutSessionRequest& WithRecentIntentSummaryView(RecentIntentSummaryViewT&& value) { SetRecentIntentSummaryView(std::forward<RecentIntentSummaryViewT>(value)); return *this;}
132 template<typename RecentIntentSummaryViewT = IntentSummary>
133 PutSessionRequest& AddRecentIntentSummaryView(RecentIntentSummaryViewT&& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView.emplace_back(std::forward<RecentIntentSummaryViewT>(value)); return *this; }
135
137
153 inline const Aws::String& GetAccept() const { return m_accept; }
154 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
155 template<typename AcceptT = Aws::String>
156 void SetAccept(AcceptT&& value) { m_acceptHasBeenSet = true; m_accept = std::forward<AcceptT>(value); }
157 template<typename AcceptT = Aws::String>
158 PutSessionRequest& WithAccept(AcceptT&& value) { SetAccept(std::forward<AcceptT>(value)); return *this;}
160
162
169 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const { return m_activeContexts; }
170 inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
171 template<typename ActiveContextsT = Aws::Vector<ActiveContext>>
172 void SetActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::forward<ActiveContextsT>(value); }
173 template<typename ActiveContextsT = Aws::Vector<ActiveContext>>
174 PutSessionRequest& WithActiveContexts(ActiveContextsT&& value) { SetActiveContexts(std::forward<ActiveContextsT>(value)); return *this;}
175 template<typename ActiveContextsT = ActiveContext>
176 PutSessionRequest& AddActiveContexts(ActiveContextsT&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.emplace_back(std::forward<ActiveContextsT>(value)); return *this; }
178 private:
179
180 Aws::String m_botName;
181 bool m_botNameHasBeenSet = false;
182
183 Aws::String m_botAlias;
184 bool m_botAliasHasBeenSet = false;
185
186 Aws::String m_userId;
187 bool m_userIdHasBeenSet = false;
188
189 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
190 bool m_sessionAttributesHasBeenSet = false;
191
192 DialogAction m_dialogAction;
193 bool m_dialogActionHasBeenSet = false;
194
195 Aws::Vector<IntentSummary> m_recentIntentSummaryView;
196 bool m_recentIntentSummaryViewHasBeenSet = false;
197
198 Aws::String m_accept;
199 bool m_acceptHasBeenSet = false;
200
201 Aws::Vector<ActiveContext> m_activeContexts;
202 bool m_activeContextsHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace LexRuntimeService
207} // namespace Aws
PutSessionRequest & AddSessionAttributes(SessionAttributesKeyT &&key, SessionAttributesValueT &&value)
AWS_LEXRUNTIMESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutSessionRequest & WithRecentIntentSummaryView(RecentIntentSummaryViewT &&value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
AWS_LEXRUNTIMESERVICE_API PutSessionRequest()=default
PutSessionRequest & WithSessionAttributes(SessionAttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
virtual const char * GetServiceRequestName() const override
PutSessionRequest & WithUserId(UserIdT &&value)
PutSessionRequest & AddActiveContexts(ActiveContextsT &&value)
PutSessionRequest & WithActiveContexts(ActiveContextsT &&value)
PutSessionRequest & WithBotAlias(BotAliasT &&value)
PutSessionRequest & AddRecentIntentSummaryView(RecentIntentSummaryViewT &&value)
const Aws::Vector< IntentSummary > & GetRecentIntentSummaryView() const
void SetRecentIntentSummaryView(RecentIntentSummaryViewT &&value)
PutSessionRequest & WithAccept(AcceptT &&value)
AWS_LEXRUNTIMESERVICE_API Aws::String SerializePayload() const override
PutSessionRequest & WithDialogAction(DialogActionT &&value)
void SetSessionAttributes(SessionAttributesT &&value)
PutSessionRequest & WithBotName(BotNameT &&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