AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PostTextRequest.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/lex/model/ActiveContext.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LexRuntimeService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LEXRUNTIMESERVICE_API PostTextRequest();
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_LEXRUNTIMESERVICE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetBotName() const{ return m_botName; }
43 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
44 inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
45 inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
46 inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
47 inline PostTextRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
48 inline PostTextRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
49 inline PostTextRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
51
53
56 inline const Aws::String& GetBotAlias() const{ return m_botAlias; }
57 inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
58 inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; }
59 inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); }
60 inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); }
61 inline PostTextRequest& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;}
62 inline PostTextRequest& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;}
63 inline PostTextRequest& WithBotAlias(const char* value) { SetBotAlias(value); return *this;}
65
67
85 inline const Aws::String& GetUserId() const{ return m_userId; }
86 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
87 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
88 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
89 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
90 inline PostTextRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
91 inline PostTextRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
92 inline PostTextRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
94
96
102 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
103 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
104 inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; }
105 inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); }
108 inline PostTextRequest& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
109 inline PostTextRequest& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
110 inline PostTextRequest& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
111 inline PostTextRequest& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
112 inline PostTextRequest& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
113 inline PostTextRequest& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
114 inline PostTextRequest& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
116
118
126 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const{ return m_requestAttributes; }
127 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
128 inline void SetRequestAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = value; }
129 inline void SetRequestAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::move(value); }
132 inline PostTextRequest& AddRequestAttributes(const Aws::String& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
133 inline PostTextRequest& AddRequestAttributes(Aws::String&& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
134 inline PostTextRequest& AddRequestAttributes(const Aws::String& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
135 inline PostTextRequest& AddRequestAttributes(Aws::String&& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), std::move(value)); return *this; }
136 inline PostTextRequest& AddRequestAttributes(const char* key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
137 inline PostTextRequest& AddRequestAttributes(Aws::String&& key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
138 inline PostTextRequest& AddRequestAttributes(const char* key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
140
142
145 inline const Aws::String& GetInputText() const{ return m_inputText; }
146 inline bool InputTextHasBeenSet() const { return m_inputTextHasBeenSet; }
147 inline void SetInputText(const Aws::String& value) { m_inputTextHasBeenSet = true; m_inputText = value; }
148 inline void SetInputText(Aws::String&& value) { m_inputTextHasBeenSet = true; m_inputText = std::move(value); }
149 inline void SetInputText(const char* value) { m_inputTextHasBeenSet = true; m_inputText.assign(value); }
150 inline PostTextRequest& WithInputText(const Aws::String& value) { SetInputText(value); return *this;}
151 inline PostTextRequest& WithInputText(Aws::String&& value) { SetInputText(std::move(value)); return *this;}
152 inline PostTextRequest& WithInputText(const char* value) { SetInputText(value); return *this;}
154
156
163 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const{ return m_activeContexts; }
164 inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
165 inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContextsHasBeenSet = true; m_activeContexts = value; }
166 inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::move(value); }
168 inline PostTextRequest& WithActiveContexts(Aws::Vector<ActiveContext>&& value) { SetActiveContexts(std::move(value)); return *this;}
169 inline PostTextRequest& AddActiveContexts(const ActiveContext& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(value); return *this; }
170 inline PostTextRequest& AddActiveContexts(ActiveContext&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(std::move(value)); return *this; }
172 private:
173
174 Aws::String m_botName;
175 bool m_botNameHasBeenSet = false;
176
177 Aws::String m_botAlias;
178 bool m_botAliasHasBeenSet = false;
179
180 Aws::String m_userId;
181 bool m_userIdHasBeenSet = false;
182
183 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
184 bool m_sessionAttributesHasBeenSet = false;
185
186 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
187 bool m_requestAttributesHasBeenSet = false;
188
189 Aws::String m_inputText;
190 bool m_inputTextHasBeenSet = false;
191
192 Aws::Vector<ActiveContext> m_activeContexts;
193 bool m_activeContextsHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace LexRuntimeService
198} // namespace Aws
AWS_LEXRUNTIMESERVICE_API Aws::String SerializePayload() const override
PostTextRequest & AddActiveContexts(ActiveContext &&value)
const Aws::String & GetBotName() const
PostTextRequest & WithBotName(const Aws::String &value)
bool BotAliasHasBeenSet() const
PostTextRequest & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetUserId(Aws::String &&value)
const Aws::String & GetInputText() const
PostTextRequest & AddRequestAttributes(Aws::String &&key, const Aws::String &value)
PostTextRequest & AddRequestAttributes(Aws::String &&key, const char *value)
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetUserId(const Aws::String &value)
bool ActiveContextsHasBeenSet() const
PostTextRequest & WithBotAlias(const char *value)
bool InputTextHasBeenSet() const
void SetBotAlias(const char *value)
const Aws::Vector< ActiveContext > & GetActiveContexts() const
void SetActiveContexts(Aws::Vector< ActiveContext > &&value)
void SetUserId(const char *value)
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
PostTextRequest & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
PostTextRequest & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
void SetRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PostTextRequest & AddActiveContexts(const ActiveContext &value)
const Aws::String & GetUserId() const
PostTextRequest & WithBotAlias(const Aws::String &value)
PostTextRequest & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
PostTextRequest & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API PostTextRequest()
PostTextRequest & AddRequestAttributes(const char *key, const char *value)
void SetRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
PostTextRequest & WithBotName(Aws::String &&value)
PostTextRequest & WithRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PostTextRequest & AddRequestAttributes(const char *key, Aws::String &&value)
void SetBotAlias(const Aws::String &value)
PostTextRequest & WithUserId(Aws::String &&value)
PostTextRequest & WithInputText(Aws::String &&value)
void SetBotName(const char *value)
void SetInputText(Aws::String &&value)
PostTextRequest & WithUserId(const char *value)
bool BotNameHasBeenSet() const
PostTextRequest & WithRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
PostTextRequest & AddSessionAttributes(const char *key, const char *value)
void SetBotName(Aws::String &&value)
PostTextRequest & WithBotName(const char *value)
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
PostTextRequest & WithInputText(const Aws::String &value)
PostTextRequest & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PostTextRequest & AddSessionAttributes(Aws::String &&key, const char *value)
bool RequestAttributesHasBeenSet() const
PostTextRequest & AddSessionAttributes(const char *key, Aws::String &&value)
PostTextRequest & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
PostTextRequest & WithInputText(const char *value)
PostTextRequest & AddRequestAttributes(Aws::String &&key, Aws::String &&value)
bool UserIdHasBeenSet() const
PostTextRequest & AddRequestAttributes(const Aws::String &key, Aws::String &&value)
const Aws::String & GetBotAlias() const
void SetInputText(const char *value)
PostTextRequest & WithUserId(const Aws::String &value)
void SetBotName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
PostTextRequest & WithBotAlias(Aws::String &&value)
PostTextRequest & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
void SetInputText(const Aws::String &value)
PostTextRequest & AddRequestAttributes(const Aws::String &key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
bool SessionAttributesHasBeenSet() const
void SetBotAlias(Aws::String &&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