AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutSessionRequest.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/LexRuntimeV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-runtime/model/SessionState.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/lexv2-runtime/model/Message.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LexRuntimeV2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LEXRUNTIMEV2_API PutSessionRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PutSession"; }
35
36 AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override;
37
38 AWS_LEXRUNTIMEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetBotId() const{ return m_botId; }
46 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
47 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
48 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
49 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
50 inline PutSessionRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
51 inline PutSessionRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
52 inline PutSessionRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
54
56
59 inline const Aws::String& GetBotAliasId() const{ return m_botAliasId; }
60 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
61 inline void SetBotAliasId(const Aws::String& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = value; }
62 inline void SetBotAliasId(Aws::String&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::move(value); }
63 inline void SetBotAliasId(const char* value) { m_botAliasIdHasBeenSet = true; m_botAliasId.assign(value); }
64 inline PutSessionRequest& WithBotAliasId(const Aws::String& value) { SetBotAliasId(value); return *this;}
65 inline PutSessionRequest& WithBotAliasId(Aws::String&& value) { SetBotAliasId(std::move(value)); return *this;}
66 inline PutSessionRequest& WithBotAliasId(const char* value) { SetBotAliasId(value); return *this;}
68
70
73 inline const Aws::String& GetLocaleId() const{ return m_localeId; }
74 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
75 inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
76 inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
77 inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
78 inline PutSessionRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
79 inline PutSessionRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
80 inline PutSessionRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
82
84
87 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
88 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
89 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
90 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
91 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
92 inline PutSessionRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
93 inline PutSessionRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
94 inline PutSessionRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
96
98
102 inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
103 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
104 inline void SetMessages(const Aws::Vector<Message>& value) { m_messagesHasBeenSet = true; m_messages = value; }
105 inline void SetMessages(Aws::Vector<Message>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
106 inline PutSessionRequest& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
107 inline PutSessionRequest& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
108 inline PutSessionRequest& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
109 inline PutSessionRequest& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
111
113
119 inline const SessionState& GetSessionState() const{ return m_sessionState; }
120 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
121 inline void SetSessionState(const SessionState& value) { m_sessionStateHasBeenSet = true; m_sessionState = value; }
122 inline void SetSessionState(SessionState&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::move(value); }
123 inline PutSessionRequest& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;}
124 inline PutSessionRequest& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;}
126
128
134 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const{ return m_requestAttributes; }
135 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
136 inline void SetRequestAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = value; }
137 inline void SetRequestAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::move(value); }
140 inline PutSessionRequest& AddRequestAttributes(const Aws::String& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
141 inline PutSessionRequest& AddRequestAttributes(Aws::String&& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
142 inline PutSessionRequest& AddRequestAttributes(const Aws::String& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
143 inline PutSessionRequest& AddRequestAttributes(Aws::String&& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), std::move(value)); return *this; }
144 inline PutSessionRequest& AddRequestAttributes(const char* key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
145 inline PutSessionRequest& AddRequestAttributes(Aws::String&& key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
146 inline PutSessionRequest& AddRequestAttributes(const char* key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
148
150
156 inline const Aws::String& GetResponseContentType() const{ return m_responseContentType; }
157 inline bool ResponseContentTypeHasBeenSet() const { return m_responseContentTypeHasBeenSet; }
158 inline void SetResponseContentType(const Aws::String& value) { m_responseContentTypeHasBeenSet = true; m_responseContentType = value; }
159 inline void SetResponseContentType(Aws::String&& value) { m_responseContentTypeHasBeenSet = true; m_responseContentType = std::move(value); }
160 inline void SetResponseContentType(const char* value) { m_responseContentTypeHasBeenSet = true; m_responseContentType.assign(value); }
162 inline PutSessionRequest& WithResponseContentType(Aws::String&& value) { SetResponseContentType(std::move(value)); return *this;}
163 inline PutSessionRequest& WithResponseContentType(const char* value) { SetResponseContentType(value); return *this;}
165 private:
166
167 Aws::String m_botId;
168 bool m_botIdHasBeenSet = false;
169
170 Aws::String m_botAliasId;
171 bool m_botAliasIdHasBeenSet = false;
172
173 Aws::String m_localeId;
174 bool m_localeIdHasBeenSet = false;
175
176 Aws::String m_sessionId;
177 bool m_sessionIdHasBeenSet = false;
178
179 Aws::Vector<Message> m_messages;
180 bool m_messagesHasBeenSet = false;
181
182 SessionState m_sessionState;
183 bool m_sessionStateHasBeenSet = false;
184
185 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
186 bool m_requestAttributesHasBeenSet = false;
187
188 Aws::String m_responseContentType;
189 bool m_responseContentTypeHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace LexRuntimeV2
194} // namespace Aws
void SetBotAliasId(const Aws::String &value)
PutSessionRequest & WithBotAliasId(const char *value)
PutSessionRequest & AddRequestAttributes(const Aws::String &key, const Aws::String &value)
const Aws::String & GetResponseContentType() const
PutSessionRequest & WithSessionId(const char *value)
PutSessionRequest & AddRequestAttributes(Aws::String &&key, Aws::String &&value)
void SetLocaleId(const Aws::String &value)
PutSessionRequest & AddRequestAttributes(const char *key, const char *value)
AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override
PutSessionRequest & WithLocaleId(const Aws::String &value)
PutSessionRequest & AddRequestAttributes(Aws::String &&key, const char *value)
PutSessionRequest & WithResponseContentType(const Aws::String &value)
void SetRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
PutSessionRequest & WithRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
PutSessionRequest & WithBotId(const Aws::String &value)
PutSessionRequest & WithResponseContentType(Aws::String &&value)
PutSessionRequest & WithBotAliasId(Aws::String &&value)
PutSessionRequest & WithBotId(const char *value)
void SetRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
PutSessionRequest & WithResponseContentType(const char *value)
PutSessionRequest & WithSessionState(const SessionState &value)
PutSessionRequest & WithBotId(Aws::String &&value)
PutSessionRequest & WithSessionId(Aws::String &&value)
PutSessionRequest & WithBotAliasId(const Aws::String &value)
PutSessionRequest & WithSessionId(const Aws::String &value)
void SetResponseContentType(const Aws::String &value)
PutSessionRequest & WithMessages(Aws::Vector< Message > &&value)
void SetSessionState(const SessionState &value)
PutSessionRequest & WithLocaleId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetMessages(const Aws::Vector< Message > &value)
PutSessionRequest & AddMessages(Message &&value)
AWS_LEXRUNTIMEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutSessionRequest & AddMessages(const Message &value)
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
PutSessionRequest & WithLocaleId(const char *value)
PutSessionRequest & AddRequestAttributes(const Aws::String &key, Aws::String &&value)
PutSessionRequest & AddRequestAttributes(const char *key, Aws::String &&value)
PutSessionRequest & AddRequestAttributes(Aws::String &&key, const Aws::String &value)
void SetBotId(const Aws::String &value)
PutSessionRequest & WithMessages(const Aws::Vector< Message > &value)
const Aws::Vector< Message > & GetMessages() const
PutSessionRequest & WithSessionState(SessionState &&value)
void SetSessionId(const Aws::String &value)
void SetMessages(Aws::Vector< Message > &&value)
PutSessionRequest & WithRequestAttributes(Aws::Map< Aws::String, Aws::String > &&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