AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SessionSpecification.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/AnalyticsModality.h>
12#include <aws/lexv2-models/model/ConversationEndState.h>
13#include <aws/lexv2-models/model/InvokedIntentSample.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2 {
25namespace Model {
26
34 public:
35 AWS_LEXMODELSV2_API SessionSpecification() = default;
36 AWS_LEXMODELSV2_API SessionSpecification(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetBotAliasId() const { return m_botAliasId; }
45 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
46 template <typename BotAliasIdT = Aws::String>
47 void SetBotAliasId(BotAliasIdT&& value) {
48 m_botAliasIdHasBeenSet = true;
49 m_botAliasId = std::forward<BotAliasIdT>(value);
50 }
51 template <typename BotAliasIdT = Aws::String>
52 SessionSpecification& WithBotAliasId(BotAliasIdT&& value) {
53 SetBotAliasId(std::forward<BotAliasIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
63 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
64 template <typename BotVersionT = Aws::String>
65 void SetBotVersion(BotVersionT&& value) {
66 m_botVersionHasBeenSet = true;
67 m_botVersion = std::forward<BotVersionT>(value);
68 }
69 template <typename BotVersionT = Aws::String>
70 SessionSpecification& WithBotVersion(BotVersionT&& value) {
71 SetBotVersion(std::forward<BotVersionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetLocaleId() const { return m_localeId; }
81 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
82 template <typename LocaleIdT = Aws::String>
83 void SetLocaleId(LocaleIdT&& value) {
84 m_localeIdHasBeenSet = true;
85 m_localeId = std::forward<LocaleIdT>(value);
86 }
87 template <typename LocaleIdT = Aws::String>
88 SessionSpecification& WithLocaleId(LocaleIdT&& value) {
89 SetLocaleId(std::forward<LocaleIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetChannel() const { return m_channel; }
100 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
101 template <typename ChannelT = Aws::String>
102 void SetChannel(ChannelT&& value) {
103 m_channelHasBeenSet = true;
104 m_channel = std::forward<ChannelT>(value);
105 }
106 template <typename ChannelT = Aws::String>
108 SetChannel(std::forward<ChannelT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetSessionId() const { return m_sessionId; }
118 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
119 template <typename SessionIdT = Aws::String>
120 void SetSessionId(SessionIdT&& value) {
121 m_sessionIdHasBeenSet = true;
122 m_sessionId = std::forward<SessionIdT>(value);
123 }
124 template <typename SessionIdT = Aws::String>
125 SessionSpecification& WithSessionId(SessionIdT&& value) {
126 SetSessionId(std::forward<SessionIdT>(value));
127 return *this;
128 }
130
132
137 inline const Aws::Utils::DateTime& GetConversationStartTime() const { return m_conversationStartTime; }
138 inline bool ConversationStartTimeHasBeenSet() const { return m_conversationStartTimeHasBeenSet; }
139 template <typename ConversationStartTimeT = Aws::Utils::DateTime>
140 void SetConversationStartTime(ConversationStartTimeT&& value) {
141 m_conversationStartTimeHasBeenSet = true;
142 m_conversationStartTime = std::forward<ConversationStartTimeT>(value);
143 }
144 template <typename ConversationStartTimeT = Aws::Utils::DateTime>
145 SessionSpecification& WithConversationStartTime(ConversationStartTimeT&& value) {
146 SetConversationStartTime(std::forward<ConversationStartTimeT>(value));
147 return *this;
148 }
150
152
157 inline const Aws::Utils::DateTime& GetConversationEndTime() const { return m_conversationEndTime; }
158 inline bool ConversationEndTimeHasBeenSet() const { return m_conversationEndTimeHasBeenSet; }
159 template <typename ConversationEndTimeT = Aws::Utils::DateTime>
160 void SetConversationEndTime(ConversationEndTimeT&& value) {
161 m_conversationEndTimeHasBeenSet = true;
162 m_conversationEndTime = std::forward<ConversationEndTimeT>(value);
163 }
164 template <typename ConversationEndTimeT = Aws::Utils::DateTime>
165 SessionSpecification& WithConversationEndTime(ConversationEndTimeT&& value) {
166 SetConversationEndTime(std::forward<ConversationEndTimeT>(value));
167 return *this;
168 }
170
172
177 inline long long GetConversationDurationSeconds() const { return m_conversationDurationSeconds; }
178 inline bool ConversationDurationSecondsHasBeenSet() const { return m_conversationDurationSecondsHasBeenSet; }
179 inline void SetConversationDurationSeconds(long long value) {
180 m_conversationDurationSecondsHasBeenSet = true;
181 m_conversationDurationSeconds = value;
182 }
185 return *this;
186 }
188
190
195 inline ConversationEndState GetConversationEndState() const { return m_conversationEndState; }
196 inline bool ConversationEndStateHasBeenSet() const { return m_conversationEndStateHasBeenSet; }
198 m_conversationEndStateHasBeenSet = true;
199 m_conversationEndState = value;
200 }
203 return *this;
204 }
206
208
216 inline AnalyticsModality GetMode() const { return m_mode; }
217 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
218 inline void SetMode(AnalyticsModality value) {
219 m_modeHasBeenSet = true;
220 m_mode = value;
221 }
223 SetMode(value);
224 return *this;
225 }
227
229
232 inline long long GetNumberOfTurns() const { return m_numberOfTurns; }
233 inline bool NumberOfTurnsHasBeenSet() const { return m_numberOfTurnsHasBeenSet; }
234 inline void SetNumberOfTurns(long long value) {
235 m_numberOfTurnsHasBeenSet = true;
236 m_numberOfTurns = value;
237 }
238 inline SessionSpecification& WithNumberOfTurns(long long value) {
239 SetNumberOfTurns(value);
240 return *this;
241 }
243
245
248 inline const Aws::Vector<InvokedIntentSample>& GetInvokedIntentSamples() const { return m_invokedIntentSamples; }
249 inline bool InvokedIntentSamplesHasBeenSet() const { return m_invokedIntentSamplesHasBeenSet; }
250 template <typename InvokedIntentSamplesT = Aws::Vector<InvokedIntentSample>>
251 void SetInvokedIntentSamples(InvokedIntentSamplesT&& value) {
252 m_invokedIntentSamplesHasBeenSet = true;
253 m_invokedIntentSamples = std::forward<InvokedIntentSamplesT>(value);
254 }
255 template <typename InvokedIntentSamplesT = Aws::Vector<InvokedIntentSample>>
256 SessionSpecification& WithInvokedIntentSamples(InvokedIntentSamplesT&& value) {
257 SetInvokedIntentSamples(std::forward<InvokedIntentSamplesT>(value));
258 return *this;
259 }
260 template <typename InvokedIntentSamplesT = InvokedIntentSample>
261 SessionSpecification& AddInvokedIntentSamples(InvokedIntentSamplesT&& value) {
262 m_invokedIntentSamplesHasBeenSet = true;
263 m_invokedIntentSamples.emplace_back(std::forward<InvokedIntentSamplesT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::String& GetOriginatingRequestId() const { return m_originatingRequestId; }
273 inline bool OriginatingRequestIdHasBeenSet() const { return m_originatingRequestIdHasBeenSet; }
274 template <typename OriginatingRequestIdT = Aws::String>
275 void SetOriginatingRequestId(OriginatingRequestIdT&& value) {
276 m_originatingRequestIdHasBeenSet = true;
277 m_originatingRequestId = std::forward<OriginatingRequestIdT>(value);
278 }
279 template <typename OriginatingRequestIdT = Aws::String>
280 SessionSpecification& WithOriginatingRequestId(OriginatingRequestIdT&& value) {
281 SetOriginatingRequestId(std::forward<OriginatingRequestIdT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_botAliasId;
287
288 Aws::String m_botVersion;
289
290 Aws::String m_localeId;
291
292 Aws::String m_channel;
293
294 Aws::String m_sessionId;
295
296 Aws::Utils::DateTime m_conversationStartTime{};
297
298 Aws::Utils::DateTime m_conversationEndTime{};
299
300 long long m_conversationDurationSeconds{0};
301
303
305
306 long long m_numberOfTurns{0};
307
308 Aws::Vector<InvokedIntentSample> m_invokedIntentSamples;
309
310 Aws::String m_originatingRequestId;
311 bool m_botAliasIdHasBeenSet = false;
312 bool m_botVersionHasBeenSet = false;
313 bool m_localeIdHasBeenSet = false;
314 bool m_channelHasBeenSet = false;
315 bool m_sessionIdHasBeenSet = false;
316 bool m_conversationStartTimeHasBeenSet = false;
317 bool m_conversationEndTimeHasBeenSet = false;
318 bool m_conversationDurationSecondsHasBeenSet = false;
319 bool m_conversationEndStateHasBeenSet = false;
320 bool m_modeHasBeenSet = false;
321 bool m_numberOfTurnsHasBeenSet = false;
322 bool m_invokedIntentSamplesHasBeenSet = false;
323 bool m_originatingRequestIdHasBeenSet = false;
324};
325
326} // namespace Model
327} // namespace LexModelsV2
328} // namespace Aws
AWS_LEXMODELSV2_API SessionSpecification(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetConversationEndTime() const
SessionSpecification & WithBotAliasId(BotAliasIdT &&value)
SessionSpecification & WithInvokedIntentSamples(InvokedIntentSamplesT &&value)
AWS_LEXMODELSV2_API SessionSpecification()=default
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
SessionSpecification & WithMode(AnalyticsModality value)
void SetConversationStartTime(ConversationStartTimeT &&value)
void SetConversationEndState(ConversationEndState value)
SessionSpecification & WithConversationStartTime(ConversationStartTimeT &&value)
SessionSpecification & WithOriginatingRequestId(OriginatingRequestIdT &&value)
SessionSpecification & WithLocaleId(LocaleIdT &&value)
void SetInvokedIntentSamples(InvokedIntentSamplesT &&value)
void SetOriginatingRequestId(OriginatingRequestIdT &&value)
SessionSpecification & WithChannel(ChannelT &&value)
const Aws::Utils::DateTime & GetConversationStartTime() const
SessionSpecification & WithConversationEndState(ConversationEndState value)
AWS_LEXMODELSV2_API SessionSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionSpecification & WithConversationEndTime(ConversationEndTimeT &&value)
void SetConversationEndTime(ConversationEndTimeT &&value)
SessionSpecification & WithBotVersion(BotVersionT &&value)
SessionSpecification & WithConversationDurationSeconds(long long value)
SessionSpecification & WithNumberOfTurns(long long value)
SessionSpecification & AddInvokedIntentSamples(InvokedIntentSamplesT &&value)
const Aws::Vector< InvokedIntentSample > & GetInvokedIntentSamples() const
SessionSpecification & WithSessionId(SessionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue