AWS SDK for C++  1.8.95
AWS SDK for C++
PutSessionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace LexRuntimeService
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
45  inline const Aws::String& GetBotName() const{ return m_botName; }
46 
50  inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
51 
55  inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
56 
60  inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
61 
65  inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
66 
70  inline PutSessionRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
71 
75  inline PutSessionRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
76 
80  inline PutSessionRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
81 
82 
86  inline const Aws::String& GetBotAlias() const{ return m_botAlias; }
87 
91  inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
92 
96  inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; }
97 
101  inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); }
102 
106  inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); }
107 
111  inline PutSessionRequest& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;}
112 
116  inline PutSessionRequest& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;}
117 
121  inline PutSessionRequest& WithBotAlias(const char* value) { SetBotAlias(value); return *this;}
122 
123 
128  inline const Aws::String& GetUserId() const{ return m_userId; }
129 
134  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
135 
140  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
141 
146  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
147 
152  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
153 
158  inline PutSessionRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
159 
164  inline PutSessionRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
165 
170  inline PutSessionRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
171 
172 
178  inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
179 
185  inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
186 
192  inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; }
193 
199  inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); }
200 
206  inline PutSessionRequest& WithSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetSessionAttributes(value); return *this;}
207 
213  inline PutSessionRequest& WithSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetSessionAttributes(std::move(value)); return *this;}
214 
220  inline PutSessionRequest& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
221 
227  inline PutSessionRequest& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
228 
234  inline PutSessionRequest& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
235 
241  inline PutSessionRequest& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
242 
248  inline PutSessionRequest& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
249 
255  inline PutSessionRequest& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
256 
262  inline PutSessionRequest& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
263 
264 
269  inline const DialogAction& GetDialogAction() const{ return m_dialogAction; }
270 
275  inline bool DialogActionHasBeenSet() const { return m_dialogActionHasBeenSet; }
276 
281  inline void SetDialogAction(const DialogAction& value) { m_dialogActionHasBeenSet = true; m_dialogAction = value; }
282 
287  inline void SetDialogAction(DialogAction&& value) { m_dialogActionHasBeenSet = true; m_dialogAction = std::move(value); }
288 
293  inline PutSessionRequest& WithDialogAction(const DialogAction& value) { SetDialogAction(value); return *this;}
294 
299  inline PutSessionRequest& WithDialogAction(DialogAction&& value) { SetDialogAction(std::move(value)); return *this;}
300 
301 
317  inline const Aws::Vector<IntentSummary>& GetRecentIntentSummaryView() const{ return m_recentIntentSummaryView; }
318 
334  inline bool RecentIntentSummaryViewHasBeenSet() const { return m_recentIntentSummaryViewHasBeenSet; }
335 
351  inline void SetRecentIntentSummaryView(const Aws::Vector<IntentSummary>& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView = value; }
352 
368  inline void SetRecentIntentSummaryView(Aws::Vector<IntentSummary>&& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView = std::move(value); }
369 
385  inline PutSessionRequest& WithRecentIntentSummaryView(const Aws::Vector<IntentSummary>& value) { SetRecentIntentSummaryView(value); return *this;}
386 
402  inline PutSessionRequest& WithRecentIntentSummaryView(Aws::Vector<IntentSummary>&& value) { SetRecentIntentSummaryView(std::move(value)); return *this;}
403 
419  inline PutSessionRequest& AddRecentIntentSummaryView(const IntentSummary& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView.push_back(value); return *this; }
420 
436  inline PutSessionRequest& AddRecentIntentSummaryView(IntentSummary&& value) { m_recentIntentSummaryViewHasBeenSet = true; m_recentIntentSummaryView.push_back(std::move(value)); return *this; }
437 
438 
455  inline const Aws::String& GetAccept() const{ return m_accept; }
456 
473  inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
474 
491  inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
492 
509  inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
510 
527  inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
528 
545  inline PutSessionRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
546 
563  inline PutSessionRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
564 
581  inline PutSessionRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
582 
583 
591  inline const Aws::Vector<ActiveContext>& GetActiveContexts() const{ return m_activeContexts; }
592 
600  inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
601 
609  inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContextsHasBeenSet = true; m_activeContexts = value; }
610 
618  inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::move(value); }
619 
627  inline PutSessionRequest& WithActiveContexts(const Aws::Vector<ActiveContext>& value) { SetActiveContexts(value); return *this;}
628 
636  inline PutSessionRequest& WithActiveContexts(Aws::Vector<ActiveContext>&& value) { SetActiveContexts(std::move(value)); return *this;}
637 
645  inline PutSessionRequest& AddActiveContexts(const ActiveContext& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(value); return *this; }
646 
654  inline PutSessionRequest& AddActiveContexts(ActiveContext&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(std::move(value)); return *this; }
655 
656  private:
657 
658  Aws::String m_botName;
659  bool m_botNameHasBeenSet;
660 
661  Aws::String m_botAlias;
662  bool m_botAliasHasBeenSet;
663 
664  Aws::String m_userId;
665  bool m_userIdHasBeenSet;
666 
667  Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
668  bool m_sessionAttributesHasBeenSet;
669 
670  DialogAction m_dialogAction;
671  bool m_dialogActionHasBeenSet;
672 
673  Aws::Vector<IntentSummary> m_recentIntentSummaryView;
674  bool m_recentIntentSummaryViewHasBeenSet;
675 
676  Aws::String m_accept;
677  bool m_acceptHasBeenSet;
678 
679  Aws::Vector<ActiveContext> m_activeContexts;
680  bool m_activeContextsHasBeenSet;
681  };
682 
683 } // namespace Model
684 } // namespace LexRuntimeService
685 } // namespace Aws
PutSessionRequest & AddRecentIntentSummaryView(IntentSummary &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
#define AWS_LEXRUNTIMESERVICE_API
PutSessionRequest & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
PutSessionRequest & WithDialogAction(DialogAction &&value)
PutSessionRequest & WithUserId(const char *value)
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
PutSessionRequest & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
PutSessionRequest & AddSessionAttributes(const char *key, Aws::String &&value)
PutSessionRequest & WithRecentIntentSummaryView(Aws::Vector< IntentSummary > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
PutSessionRequest & AddRecentIntentSummaryView(const IntentSummary &value)
PutSessionRequest & WithBotAlias(Aws::String &&value)
PutSessionRequest & WithBotAlias(const char *value)
PutSessionRequest & AddActiveContexts(ActiveContext &&value)
void SetRecentIntentSummaryView(Aws::Vector< IntentSummary > &&value)
void SetActiveContexts(Aws::Vector< ActiveContext > &&value)
PutSessionRequest & WithDialogAction(const DialogAction &value)
PutSessionRequest & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
PutSessionRequest & WithUserId(Aws::String &&value)
PutSessionRequest & WithBotName(const char *value)
PutSessionRequest & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
PutSessionRequest & WithBotName(const Aws::String &value)
PutSessionRequest & WithUserId(const Aws::String &value)
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
PutSessionRequest & WithAccept(const Aws::String &value)
PutSessionRequest & WithRecentIntentSummaryView(const Aws::Vector< IntentSummary > &value)
PutSessionRequest & AddSessionAttributes(Aws::String &&key, const char *value)
PutSessionRequest & WithAccept(Aws::String &&value)
PutSessionRequest & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
PutSessionRequest & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PutSessionRequest & AddSessionAttributes(const char *key, const char *value)
PutSessionRequest & AddActiveContexts(const ActiveContext &value)
void SetRecentIntentSummaryView(const Aws::Vector< IntentSummary > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutSessionRequest & WithBotAlias(const Aws::String &value)
const Aws::Vector< IntentSummary > & GetRecentIntentSummaryView() const
PutSessionRequest & WithAccept(const char *value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
PutSessionRequest & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
PutSessionRequest & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetDialogAction(const DialogAction &value)
PutSessionRequest & WithBotName(Aws::String &&value)