AWS SDK for C++  1.9.161
AWS SDK for C++
PostTextRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace LexRuntimeService
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "PostText"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetBotName() const{ return m_botName; }
42 
46  inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
47 
51  inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
52 
56  inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
57 
61  inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
62 
66  inline PostTextRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
67 
71  inline PostTextRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
72 
76  inline PostTextRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
77 
78 
82  inline const Aws::String& GetBotAlias() const{ return m_botAlias; }
83 
87  inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
88 
92  inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; }
93 
97  inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); }
98 
102  inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); }
103 
107  inline PostTextRequest& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;}
108 
112  inline PostTextRequest& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;}
113 
117  inline PostTextRequest& WithBotAlias(const char* value) { SetBotAlias(value); return *this;}
118 
119 
138  inline const Aws::String& GetUserId() const{ return m_userId; }
139 
158  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
159 
178  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
179 
198  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
199 
218  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
219 
238  inline PostTextRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
239 
258  inline PostTextRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
259 
278  inline PostTextRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
279 
280 
287  inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
288 
295  inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
296 
303  inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; }
304 
311  inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); }
312 
319  inline PostTextRequest& WithSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetSessionAttributes(value); return *this;}
320 
327  inline PostTextRequest& WithSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetSessionAttributes(std::move(value)); return *this;}
328 
335  inline PostTextRequest& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
336 
343  inline PostTextRequest& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
344 
351  inline PostTextRequest& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
352 
359  inline PostTextRequest& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
360 
367  inline PostTextRequest& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
368 
375  inline PostTextRequest& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
376 
383  inline PostTextRequest& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
384 
385 
394  inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const{ return m_requestAttributes; }
395 
404  inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
405 
414  inline void SetRequestAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = value; }
415 
424  inline void SetRequestAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::move(value); }
425 
434  inline PostTextRequest& WithRequestAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetRequestAttributes(value); return *this;}
435 
444  inline PostTextRequest& WithRequestAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestAttributes(std::move(value)); return *this;}
445 
454  inline PostTextRequest& AddRequestAttributes(const Aws::String& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
455 
464  inline PostTextRequest& AddRequestAttributes(Aws::String&& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
465 
474  inline PostTextRequest& AddRequestAttributes(const Aws::String& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
475 
484  inline PostTextRequest& AddRequestAttributes(Aws::String&& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), std::move(value)); return *this; }
485 
494  inline PostTextRequest& AddRequestAttributes(const char* key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
495 
504  inline PostTextRequest& AddRequestAttributes(Aws::String&& key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
505 
514  inline PostTextRequest& AddRequestAttributes(const char* key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
515 
516 
520  inline const Aws::String& GetInputText() const{ return m_inputText; }
521 
525  inline bool InputTextHasBeenSet() const { return m_inputTextHasBeenSet; }
526 
530  inline void SetInputText(const Aws::String& value) { m_inputTextHasBeenSet = true; m_inputText = value; }
531 
535  inline void SetInputText(Aws::String&& value) { m_inputTextHasBeenSet = true; m_inputText = std::move(value); }
536 
540  inline void SetInputText(const char* value) { m_inputTextHasBeenSet = true; m_inputText.assign(value); }
541 
545  inline PostTextRequest& WithInputText(const Aws::String& value) { SetInputText(value); return *this;}
546 
550  inline PostTextRequest& WithInputText(Aws::String&& value) { SetInputText(std::move(value)); return *this;}
551 
555  inline PostTextRequest& WithInputText(const char* value) { SetInputText(value); return *this;}
556 
557 
565  inline const Aws::Vector<ActiveContext>& GetActiveContexts() const{ return m_activeContexts; }
566 
574  inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
575 
583  inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContextsHasBeenSet = true; m_activeContexts = value; }
584 
592  inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::move(value); }
593 
601  inline PostTextRequest& WithActiveContexts(const Aws::Vector<ActiveContext>& value) { SetActiveContexts(value); return *this;}
602 
610  inline PostTextRequest& WithActiveContexts(Aws::Vector<ActiveContext>&& value) { SetActiveContexts(std::move(value)); return *this;}
611 
619  inline PostTextRequest& AddActiveContexts(const ActiveContext& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(value); return *this; }
620 
628  inline PostTextRequest& AddActiveContexts(ActiveContext&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(std::move(value)); return *this; }
629 
630  private:
631 
632  Aws::String m_botName;
633  bool m_botNameHasBeenSet;
634 
635  Aws::String m_botAlias;
636  bool m_botAliasHasBeenSet;
637 
638  Aws::String m_userId;
639  bool m_userIdHasBeenSet;
640 
641  Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
642  bool m_sessionAttributesHasBeenSet;
643 
644  Aws::Map<Aws::String, Aws::String> m_requestAttributes;
645  bool m_requestAttributesHasBeenSet;
646 
647  Aws::String m_inputText;
648  bool m_inputTextHasBeenSet;
649 
650  Aws::Vector<ActiveContext> m_activeContexts;
651  bool m_activeContextsHasBeenSet;
652  };
653 
654 } // namespace Model
655 } // namespace LexRuntimeService
656 } // namespace Aws
Aws::LexRuntimeService::Model::PostTextRequest::WithActiveContexts
PostTextRequest & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
Definition: PostTextRequest.h:601
Aws::LexRuntimeService::Model::PostTextRequest::WithUserId
PostTextRequest & WithUserId(const char *value)
Definition: PostTextRequest.h:278
Aws::LexRuntimeService::Model::PostTextRequest::AddSessionAttributes
PostTextRequest & AddSessionAttributes(const char *key, const char *value)
Definition: PostTextRequest.h:383
Aws::LexRuntimeService::Model::PostTextRequest::AddRequestAttributes
PostTextRequest & AddRequestAttributes(Aws::String &&key, Aws::String &&value)
Definition: PostTextRequest.h:484
Aws::LexRuntimeService::Model::PostTextRequest::GetUserId
const Aws::String & GetUserId() const
Definition: PostTextRequest.h:138
Aws::LexRuntimeService::Model::PostTextRequest::AddSessionAttributes
PostTextRequest & AddSessionAttributes(Aws::String &&key, const char *value)
Definition: PostTextRequest.h:375
Aws::LexRuntimeService::LexRuntimeServiceRequest
Definition: LexRuntimeServiceRequest.h:18
Aws::LexRuntimeService::Model::PostTextRequest::WithInputText
PostTextRequest & WithInputText(const char *value)
Definition: PostTextRequest.h:555
Aws::LexRuntimeService::Model::PostTextRequest::GetBotName
const Aws::String & GetBotName() const
Definition: PostTextRequest.h:41
Aws::LexRuntimeService::Model::PostTextRequest::SetBotName
void SetBotName(const Aws::String &value)
Definition: PostTextRequest.h:51
LexRuntimeServiceRequest.h
Aws::LexRuntimeService::Model::PostTextRequest::WithBotName
PostTextRequest & WithBotName(const Aws::String &value)
Definition: PostTextRequest.h:66
Aws::LexRuntimeService::Model::PostTextRequest::AddRequestAttributes
PostTextRequest & AddRequestAttributes(Aws::String &&key, const char *value)
Definition: PostTextRequest.h:504
Aws::LexRuntimeService::Model::PostTextRequest::BotAliasHasBeenSet
bool BotAliasHasBeenSet() const
Definition: PostTextRequest.h:87
Aws::LexRuntimeService::Model::PostTextRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: PostTextRequest.h:198
Aws::LexRuntimeService::Model::PostTextRequest::AddSessionAttributes
PostTextRequest & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
Definition: PostTextRequest.h:351
ActiveContext.h
Aws::LexRuntimeService::Model::PostTextRequest::ActiveContextsHasBeenSet
bool ActiveContextsHasBeenSet() const
Definition: PostTextRequest.h:574
Aws::LexRuntimeService::Model::PostTextRequest::GetBotAlias
const Aws::String & GetBotAlias() const
Definition: PostTextRequest.h:82
Aws::LexRuntimeService::Model::PostTextRequest::AddRequestAttributes
PostTextRequest & AddRequestAttributes(const Aws::String &key, const Aws::String &value)
Definition: PostTextRequest.h:454
Aws::LexRuntimeService::Model::PostTextRequest::RequestAttributesHasBeenSet
bool RequestAttributesHasBeenSet() const
Definition: PostTextRequest.h:404
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::LexRuntimeService::Model::PostTextRequest::WithActiveContexts
PostTextRequest & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
Definition: PostTextRequest.h:610
Aws::LexRuntimeService::Model::PostTextRequest::WithBotAlias
PostTextRequest & WithBotAlias(const Aws::String &value)
Definition: PostTextRequest.h:107
Aws::LexRuntimeService::Model::PostTextRequest::WithInputText
PostTextRequest & WithInputText(Aws::String &&value)
Definition: PostTextRequest.h:550
Aws::LexRuntimeService::Model::PostTextRequest::GetSessionAttributes
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
Definition: PostTextRequest.h:287
AWS_LEXRUNTIMESERVICE_API
#define AWS_LEXRUNTIMESERVICE_API
Definition: LexRuntimeService_EXPORTS.h:28
Aws::LexRuntimeService::Model::PostTextRequest::PostTextRequest
PostTextRequest()
AWSVector.h
Aws::LexRuntimeService::Model::PostTextRequest::SetBotAlias
void SetBotAlias(Aws::String &&value)
Definition: PostTextRequest.h:97
Aws::LexRuntimeService::Model::PostTextRequest::AddSessionAttributes
PostTextRequest & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
Definition: PostTextRequest.h:343
Aws::LexRuntimeService::Model::PostTextRequest::SetUserId
void SetUserId(const char *value)
Definition: PostTextRequest.h:218
Aws::LexRuntimeService::Model::PostTextRequest::SetSessionAttributes
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PostTextRequest.h:311
Aws::LexRuntimeService::Model::PostTextRequest::SetActiveContexts
void SetActiveContexts(Aws::Vector< ActiveContext > &&value)
Definition: PostTextRequest.h:592
Aws::LexRuntimeService::Model::PostTextRequest::SetSessionAttributes
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PostTextRequest.h:303
LexRuntimeService_EXPORTS.h
Aws::LexRuntimeService::Model::PostTextRequest::AddRequestAttributes
PostTextRequest & AddRequestAttributes(const Aws::String &key, Aws::String &&value)
Definition: PostTextRequest.h:474
Aws::LexRuntimeService::Model::PostTextRequest::WithUserId
PostTextRequest & WithUserId(Aws::String &&value)
Definition: PostTextRequest.h:258
Aws::LexRuntimeService::Model::PostTextRequest::AddRequestAttributes
PostTextRequest & AddRequestAttributes(const char *key, Aws::String &&value)
Definition: PostTextRequest.h:494
Aws::LexRuntimeService::Model::PostTextRequest::SetActiveContexts
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
Definition: PostTextRequest.h:583
Aws::LexRuntimeService::Model::PostTextRequest::SetBotAlias
void SetBotAlias(const char *value)
Definition: PostTextRequest.h:102
Aws::LexRuntimeService::Model::PostTextRequest::SetBotName
void SetBotName(const char *value)
Definition: PostTextRequest.h:61
Aws::LexRuntimeService::Model::PostTextRequest::AddSessionAttributes
PostTextRequest & AddSessionAttributes(const char *key, Aws::String &&value)
Definition: PostTextRequest.h:367
Aws::LexRuntimeService::Model::PostTextRequest::SessionAttributesHasBeenSet
bool SessionAttributesHasBeenSet() const
Definition: PostTextRequest.h:295
Aws::LexRuntimeService::Model::PostTextRequest::SetInputText
void SetInputText(const Aws::String &value)
Definition: PostTextRequest.h:530
Aws::LexRuntimeService::Model::PostTextRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LexRuntimeService::Model::PostTextRequest::WithRequestAttributes
PostTextRequest & WithRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PostTextRequest.h:434
AWSString.h
Aws::LexRuntimeService::Model::PostTextRequest::SetInputText
void SetInputText(const char *value)
Definition: PostTextRequest.h:540
Aws::LexRuntimeService::Model::PostTextRequest::AddRequestAttributes
PostTextRequest & AddRequestAttributes(const char *key, const char *value)
Definition: PostTextRequest.h:514
Aws::LexRuntimeService::Model::PostTextRequest::WithRequestAttributes
PostTextRequest & WithRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PostTextRequest.h:444
Aws::LexRuntimeService::Model::PostTextRequest::AddActiveContexts
PostTextRequest & AddActiveContexts(const ActiveContext &value)
Definition: PostTextRequest.h:619
Aws::LexRuntimeService::Model::PostTextRequest::BotNameHasBeenSet
bool BotNameHasBeenSet() const
Definition: PostTextRequest.h:46
Aws::LexRuntimeService::Model::PostTextRequest::WithBotName
PostTextRequest & WithBotName(Aws::String &&value)
Definition: PostTextRequest.h:71
Aws::LexRuntimeService::Model::PostTextRequest::AddRequestAttributes
PostTextRequest & AddRequestAttributes(Aws::String &&key, const Aws::String &value)
Definition: PostTextRequest.h:464
Aws::LexRuntimeService::Model::PostTextRequest::AddSessionAttributes
PostTextRequest & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
Definition: PostTextRequest.h:359
Aws::LexRuntimeService::Model::ActiveContext
Definition: ActiveContext.h:38
Aws::LexRuntimeService::Model::PostTextRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: PostTextRequest.h:178
Aws::LexRuntimeService::Model::PostTextRequest::WithInputText
PostTextRequest & WithInputText(const Aws::String &value)
Definition: PostTextRequest.h:545
Aws::LexRuntimeService::Model::PostTextRequest
Definition: PostTextRequest.h:25
Aws::LexRuntimeService::Model::PostTextRequest::SetBotName
void SetBotName(Aws::String &&value)
Definition: PostTextRequest.h:56
Aws::LexRuntimeService::Model::PostTextRequest::GetInputText
const Aws::String & GetInputText() const
Definition: PostTextRequest.h:520
Aws
Definition: AccessManagementClient.h:15
Aws::LexRuntimeService::Model::PostTextRequest::WithUserId
PostTextRequest & WithUserId(const Aws::String &value)
Definition: PostTextRequest.h:238
Aws::LexRuntimeService::Model::PostTextRequest::SetRequestAttributes
void SetRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PostTextRequest.h:414
Aws::LexRuntimeService::Model::PostTextRequest::WithBotAlias
PostTextRequest & WithBotAlias(const char *value)
Definition: PostTextRequest.h:117
Aws::LexRuntimeService::Model::PostTextRequest::GetActiveContexts
const Aws::Vector< ActiveContext > & GetActiveContexts() const
Definition: PostTextRequest.h:565
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LexRuntimeService::Model::PostTextRequest::WithSessionAttributes
PostTextRequest & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PostTextRequest.h:327
Aws::LexRuntimeService::Model::PostTextRequest::SetBotAlias
void SetBotAlias(const Aws::String &value)
Definition: PostTextRequest.h:92
Aws::LexRuntimeService::Model::PostTextRequest::SetInputText
void SetInputText(Aws::String &&value)
Definition: PostTextRequest.h:535
Aws::LexRuntimeService::Model::PostTextRequest::AddActiveContexts
PostTextRequest & AddActiveContexts(ActiveContext &&value)
Definition: PostTextRequest.h:628
Aws::LexRuntimeService::Model::PostTextRequest::SetRequestAttributes
void SetRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PostTextRequest.h:424
Aws::LexRuntimeService::Model::PostTextRequest::GetRequestAttributes
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
Definition: PostTextRequest.h:394
Aws::LexRuntimeService::Model::PostTextRequest::InputTextHasBeenSet
bool InputTextHasBeenSet() const
Definition: PostTextRequest.h:525
Aws::LexRuntimeService::Model::PostTextRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: PostTextRequest.h:158
Aws::LexRuntimeService::Model::PostTextRequest::WithBotAlias
PostTextRequest & WithBotAlias(Aws::String &&value)
Definition: PostTextRequest.h:112
Aws::LexRuntimeService::Model::PostTextRequest::WithSessionAttributes
PostTextRequest & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PostTextRequest.h:319
AWSMap.h
Aws::LexRuntimeService::Model::PostTextRequest::AddSessionAttributes
PostTextRequest & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
Definition: PostTextRequest.h:335
Aws::LexRuntimeService::Model::PostTextRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PostTextRequest.h:33
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::LexRuntimeService::Model::PostTextRequest::WithBotName
PostTextRequest & WithBotName(const char *value)
Definition: PostTextRequest.h:76