AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
PostContentRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex/LexRuntimeServiceRequest.h>
10#include <aws/lex/LexRuntimeService_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace LexRuntimeService {
16namespace Model {
17
21 public:
22 AWS_LEXRUNTIMESERVICE_API PostContentRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PostContent"; }
29
30 AWS_LEXRUNTIMESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
31
32 AWS_LEXRUNTIMESERVICE_API bool SignBody() const override { return false; }
33
35
38 inline const Aws::String& GetBotName() const { return m_botName; }
39 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
40 template <typename BotNameT = Aws::String>
41 void SetBotName(BotNameT&& value) {
42 m_botNameHasBeenSet = true;
43 m_botName = std::forward<BotNameT>(value);
44 }
45 template <typename BotNameT = Aws::String>
46 PostContentRequest& WithBotName(BotNameT&& value) {
47 SetBotName(std::forward<BotNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetBotAlias() const { return m_botAlias; }
57 inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
58 template <typename BotAliasT = Aws::String>
59 void SetBotAlias(BotAliasT&& value) {
60 m_botAliasHasBeenSet = true;
61 m_botAlias = std::forward<BotAliasT>(value);
62 }
63 template <typename BotAliasT = Aws::String>
64 PostContentRequest& WithBotAlias(BotAliasT&& value) {
65 SetBotAlias(std::forward<BotAliasT>(value));
66 return *this;
67 }
69
71
89 inline const Aws::String& GetUserId() const { return m_userId; }
90 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
91 template <typename UserIdT = Aws::String>
92 void SetUserId(UserIdT&& value) {
93 m_userIdHasBeenSet = true;
94 m_userId = std::forward<UserIdT>(value);
95 }
96 template <typename UserIdT = Aws::String>
97 PostContentRequest& WithUserId(UserIdT&& value) {
98 SetUserId(std::forward<UserIdT>(value));
99 return *this;
100 }
102
104
114 inline const Aws::String& GetSessionAttributes() const { return m_sessionAttributes; }
115 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
116 template <typename SessionAttributesT = Aws::String>
117 void SetSessionAttributes(SessionAttributesT&& value) {
118 m_sessionAttributesHasBeenSet = true;
119 m_sessionAttributes = std::forward<SessionAttributesT>(value);
120 }
121 template <typename SessionAttributesT = Aws::String>
122 PostContentRequest& WithSessionAttributes(SessionAttributesT&& value) {
123 SetSessionAttributes(std::forward<SessionAttributesT>(value));
124 return *this;
125 }
127
129
141 inline const Aws::String& GetRequestAttributes() const { return m_requestAttributes; }
142 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
143 template <typename RequestAttributesT = Aws::String>
144 void SetRequestAttributes(RequestAttributesT&& value) {
145 m_requestAttributesHasBeenSet = true;
146 m_requestAttributes = std::forward<RequestAttributesT>(value);
147 }
148 template <typename RequestAttributesT = Aws::String>
149 PostContentRequest& WithRequestAttributes(RequestAttributesT&& value) {
150 SetRequestAttributes(std::forward<RequestAttributesT>(value));
151 return *this;
152 }
154
156
173 inline const Aws::String& GetAccept() const { return m_accept; }
174 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
175 template <typename AcceptT = Aws::String>
176 void SetAccept(AcceptT&& value) {
177 m_acceptHasBeenSet = true;
178 m_accept = std::forward<AcceptT>(value);
179 }
180 template <typename AcceptT = Aws::String>
181 PostContentRequest& WithAccept(AcceptT&& value) {
182 SetAccept(std::forward<AcceptT>(value));
183 return *this;
184 }
186
188
195 inline const Aws::String& GetActiveContexts() const { return m_activeContexts; }
196 inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
197 template <typename ActiveContextsT = Aws::String>
198 void SetActiveContexts(ActiveContextsT&& value) {
199 m_activeContextsHasBeenSet = true;
200 m_activeContexts = std::forward<ActiveContextsT>(value);
201 }
202 template <typename ActiveContextsT = Aws::String>
203 PostContentRequest& WithActiveContexts(ActiveContextsT&& value) {
204 SetActiveContexts(std::forward<ActiveContextsT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_botName;
210
211 Aws::String m_botAlias;
212
213 Aws::String m_userId;
214
215 Aws::String m_sessionAttributes;
216
217 Aws::String m_requestAttributes;
218
219 Aws::String m_accept;
220
221 Aws::String m_activeContexts;
222 bool m_botNameHasBeenSet = false;
223 bool m_botAliasHasBeenSet = false;
224 bool m_userIdHasBeenSet = false;
225 bool m_sessionAttributesHasBeenSet = false;
226 bool m_requestAttributesHasBeenSet = false;
227 bool m_acceptHasBeenSet = false;
228 bool m_activeContextsHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace LexRuntimeService
233} // namespace Aws
void SetSessionAttributes(SessionAttributesT &&value)
PostContentRequest & WithActiveContexts(ActiveContextsT &&value)
PostContentRequest & WithBotAlias(BotAliasT &&value)
bool BotAliasHasBeenSet() const
PostContentRequest & WithAccept(AcceptT &&value)
bool ActiveContextsHasBeenSet() const
void SetUserId(UserIdT &&value)
void SetRequestAttributes(RequestAttributesT &&value)
PostContentRequest & WithSessionAttributes(SessionAttributesT &&value)
void SetBotAlias(BotAliasT &&value)
PostContentRequest & WithRequestAttributes(RequestAttributesT &&value)
AWS_LEXRUNTIMESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetSessionAttributes() const
bool RequestAttributesHasBeenSet() const
bool BotNameHasBeenSet() const
bool AcceptHasBeenSet() const
const Aws::String & GetBotName() const
bool SessionAttributesHasBeenSet() const
PostContentRequest & WithBotName(BotNameT &&value)
void SetActiveContexts(ActiveContextsT &&value)
const Aws::String & GetRequestAttributes() const
void SetBotName(BotNameT &&value)
const Aws::String & GetActiveContexts() const
const Aws::String & GetBotAlias() const
const Aws::String & GetAccept() const
bool UserIdHasBeenSet() const
AWS_LEXRUNTIMESERVICE_API PostContentRequest()=default
const Aws::String & GetUserId() const
AWS_LEXRUNTIMESERVICE_API bool SignBody() const override
virtual const char * GetServiceRequestName() const override
PostContentRequest & WithUserId(UserIdT &&value)
void SetAccept(AcceptT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String