AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SessionSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lexv2-models/model/ConversationEndState.h>
11#include <aws/lexv2-models/model/AnalyticsModality.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lexv2-models/model/InvokedIntentSample.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace LexModelsV2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_LEXMODELSV2_API SessionSpecification();
41 AWS_LEXMODELSV2_API SessionSpecification(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetBotAliasId() const{ return m_botAliasId; }
51 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
52 inline void SetBotAliasId(const Aws::String& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = value; }
53 inline void SetBotAliasId(Aws::String&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::move(value); }
54 inline void SetBotAliasId(const char* value) { m_botAliasIdHasBeenSet = true; m_botAliasId.assign(value); }
55 inline SessionSpecification& WithBotAliasId(const Aws::String& value) { SetBotAliasId(value); return *this;}
56 inline SessionSpecification& WithBotAliasId(Aws::String&& value) { SetBotAliasId(std::move(value)); return *this;}
57 inline SessionSpecification& WithBotAliasId(const char* value) { SetBotAliasId(value); return *this;}
59
61
64 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
65 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
66 inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
67 inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
68 inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
69 inline SessionSpecification& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
70 inline SessionSpecification& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
71 inline SessionSpecification& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
73
75
78 inline const Aws::String& GetLocaleId() const{ return m_localeId; }
79 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
80 inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
81 inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
82 inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
83 inline SessionSpecification& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
84 inline SessionSpecification& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
85 inline SessionSpecification& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
87
89
93 inline const Aws::String& GetChannel() const{ return m_channel; }
94 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
95 inline void SetChannel(const Aws::String& value) { m_channelHasBeenSet = true; m_channel = value; }
96 inline void SetChannel(Aws::String&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); }
97 inline void SetChannel(const char* value) { m_channelHasBeenSet = true; m_channel.assign(value); }
98 inline SessionSpecification& WithChannel(const Aws::String& value) { SetChannel(value); return *this;}
99 inline SessionSpecification& WithChannel(Aws::String&& value) { SetChannel(std::move(value)); return *this;}
100 inline SessionSpecification& WithChannel(const char* value) { SetChannel(value); return *this;}
102
104
107 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
108 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
109 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
110 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
111 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
112 inline SessionSpecification& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
113 inline SessionSpecification& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
114 inline SessionSpecification& WithSessionId(const char* value) { SetSessionId(value); return *this;}
116
118
123 inline const Aws::Utils::DateTime& GetConversationStartTime() const{ return m_conversationStartTime; }
124 inline bool ConversationStartTimeHasBeenSet() const { return m_conversationStartTimeHasBeenSet; }
125 inline void SetConversationStartTime(const Aws::Utils::DateTime& value) { m_conversationStartTimeHasBeenSet = true; m_conversationStartTime = value; }
126 inline void SetConversationStartTime(Aws::Utils::DateTime&& value) { m_conversationStartTimeHasBeenSet = true; m_conversationStartTime = std::move(value); }
130
132
137 inline const Aws::Utils::DateTime& GetConversationEndTime() const{ return m_conversationEndTime; }
138 inline bool ConversationEndTimeHasBeenSet() const { return m_conversationEndTimeHasBeenSet; }
139 inline void SetConversationEndTime(const Aws::Utils::DateTime& value) { m_conversationEndTimeHasBeenSet = true; m_conversationEndTime = value; }
140 inline void SetConversationEndTime(Aws::Utils::DateTime&& value) { m_conversationEndTimeHasBeenSet = true; m_conversationEndTime = std::move(value); }
144
146
151 inline long long GetConversationDurationSeconds() const{ return m_conversationDurationSeconds; }
152 inline bool ConversationDurationSecondsHasBeenSet() const { return m_conversationDurationSecondsHasBeenSet; }
153 inline void SetConversationDurationSeconds(long long value) { m_conversationDurationSecondsHasBeenSet = true; m_conversationDurationSeconds = value; }
156
158
163 inline const ConversationEndState& GetConversationEndState() const{ return m_conversationEndState; }
164 inline bool ConversationEndStateHasBeenSet() const { return m_conversationEndStateHasBeenSet; }
165 inline void SetConversationEndState(const ConversationEndState& value) { m_conversationEndStateHasBeenSet = true; m_conversationEndState = value; }
166 inline void SetConversationEndState(ConversationEndState&& value) { m_conversationEndStateHasBeenSet = true; m_conversationEndState = std::move(value); }
170
172
180 inline const AnalyticsModality& GetMode() const{ return m_mode; }
181 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
182 inline void SetMode(const AnalyticsModality& value) { m_modeHasBeenSet = true; m_mode = value; }
183 inline void SetMode(AnalyticsModality&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
184 inline SessionSpecification& WithMode(const AnalyticsModality& value) { SetMode(value); return *this;}
185 inline SessionSpecification& WithMode(AnalyticsModality&& value) { SetMode(std::move(value)); return *this;}
187
189
192 inline long long GetNumberOfTurns() const{ return m_numberOfTurns; }
193 inline bool NumberOfTurnsHasBeenSet() const { return m_numberOfTurnsHasBeenSet; }
194 inline void SetNumberOfTurns(long long value) { m_numberOfTurnsHasBeenSet = true; m_numberOfTurns = value; }
195 inline SessionSpecification& WithNumberOfTurns(long long value) { SetNumberOfTurns(value); return *this;}
197
199
202 inline const Aws::Vector<InvokedIntentSample>& GetInvokedIntentSamples() const{ return m_invokedIntentSamples; }
203 inline bool InvokedIntentSamplesHasBeenSet() const { return m_invokedIntentSamplesHasBeenSet; }
204 inline void SetInvokedIntentSamples(const Aws::Vector<InvokedIntentSample>& value) { m_invokedIntentSamplesHasBeenSet = true; m_invokedIntentSamples = value; }
205 inline void SetInvokedIntentSamples(Aws::Vector<InvokedIntentSample>&& value) { m_invokedIntentSamplesHasBeenSet = true; m_invokedIntentSamples = std::move(value); }
208 inline SessionSpecification& AddInvokedIntentSamples(const InvokedIntentSample& value) { m_invokedIntentSamplesHasBeenSet = true; m_invokedIntentSamples.push_back(value); return *this; }
209 inline SessionSpecification& AddInvokedIntentSamples(InvokedIntentSample&& value) { m_invokedIntentSamplesHasBeenSet = true; m_invokedIntentSamples.push_back(std::move(value)); return *this; }
211
213
216 inline const Aws::String& GetOriginatingRequestId() const{ return m_originatingRequestId; }
217 inline bool OriginatingRequestIdHasBeenSet() const { return m_originatingRequestIdHasBeenSet; }
218 inline void SetOriginatingRequestId(const Aws::String& value) { m_originatingRequestIdHasBeenSet = true; m_originatingRequestId = value; }
219 inline void SetOriginatingRequestId(Aws::String&& value) { m_originatingRequestIdHasBeenSet = true; m_originatingRequestId = std::move(value); }
220 inline void SetOriginatingRequestId(const char* value) { m_originatingRequestIdHasBeenSet = true; m_originatingRequestId.assign(value); }
222 inline SessionSpecification& WithOriginatingRequestId(Aws::String&& value) { SetOriginatingRequestId(std::move(value)); return *this;}
223 inline SessionSpecification& WithOriginatingRequestId(const char* value) { SetOriginatingRequestId(value); return *this;}
225 private:
226
227 Aws::String m_botAliasId;
228 bool m_botAliasIdHasBeenSet = false;
229
230 Aws::String m_botVersion;
231 bool m_botVersionHasBeenSet = false;
232
233 Aws::String m_localeId;
234 bool m_localeIdHasBeenSet = false;
235
236 Aws::String m_channel;
237 bool m_channelHasBeenSet = false;
238
239 Aws::String m_sessionId;
240 bool m_sessionIdHasBeenSet = false;
241
242 Aws::Utils::DateTime m_conversationStartTime;
243 bool m_conversationStartTimeHasBeenSet = false;
244
245 Aws::Utils::DateTime m_conversationEndTime;
246 bool m_conversationEndTimeHasBeenSet = false;
247
248 long long m_conversationDurationSeconds;
249 bool m_conversationDurationSecondsHasBeenSet = false;
250
251 ConversationEndState m_conversationEndState;
252 bool m_conversationEndStateHasBeenSet = false;
253
254 AnalyticsModality m_mode;
255 bool m_modeHasBeenSet = false;
256
257 long long m_numberOfTurns;
258 bool m_numberOfTurnsHasBeenSet = false;
259
260 Aws::Vector<InvokedIntentSample> m_invokedIntentSamples;
261 bool m_invokedIntentSamplesHasBeenSet = false;
262
263 Aws::String m_originatingRequestId;
264 bool m_originatingRequestIdHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace LexModelsV2
269} // namespace Aws
SessionSpecification & WithChannel(Aws::String &&value)
SessionSpecification & WithConversationEndState(const ConversationEndState &value)
void SetConversationStartTime(Aws::Utils::DateTime &&value)
SessionSpecification & WithMode(const AnalyticsModality &value)
AWS_LEXMODELSV2_API SessionSpecification(Aws::Utils::Json::JsonView jsonValue)
SessionSpecification & WithConversationEndTime(Aws::Utils::DateTime &&value)
void SetConversationEndTime(const Aws::Utils::DateTime &value)
SessionSpecification & WithBotAliasId(Aws::String &&value)
const Aws::Utils::DateTime & GetConversationEndTime() const
SessionSpecification & WithMode(AnalyticsModality &&value)
SessionSpecification & AddInvokedIntentSamples(InvokedIntentSample &&value)
SessionSpecification & WithOriginatingRequestId(const char *value)
void SetMode(const AnalyticsModality &value)
SessionSpecification & WithBotAliasId(const char *value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
SessionSpecification & WithBotVersion(const char *value)
SessionSpecification & WithSessionId(const Aws::String &value)
SessionSpecification & WithChannel(const Aws::String &value)
SessionSpecification & WithSessionId(Aws::String &&value)
void SetOriginatingRequestId(const Aws::String &value)
SessionSpecification & WithBotVersion(Aws::String &&value)
SessionSpecification & WithLocaleId(const Aws::String &value)
SessionSpecification & WithBotAliasId(const Aws::String &value)
SessionSpecification & WithConversationStartTime(const Aws::Utils::DateTime &value)
SessionSpecification & WithConversationEndState(ConversationEndState &&value)
SessionSpecification & WithChannel(const char *value)
const Aws::Utils::DateTime & GetConversationStartTime() const
SessionSpecification & WithOriginatingRequestId(Aws::String &&value)
const ConversationEndState & GetConversationEndState() const
void SetInvokedIntentSamples(const Aws::Vector< InvokedIntentSample > &value)
AWS_LEXMODELSV2_API SessionSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConversationEndState(ConversationEndState &&value)
SessionSpecification & WithLocaleId(const char *value)
SessionSpecification & WithOriginatingRequestId(const Aws::String &value)
SessionSpecification & WithSessionId(const char *value)
void SetConversationStartTime(const Aws::Utils::DateTime &value)
SessionSpecification & WithLocaleId(Aws::String &&value)
SessionSpecification & WithConversationDurationSeconds(long long value)
SessionSpecification & WithConversationEndTime(const Aws::Utils::DateTime &value)
SessionSpecification & WithInvokedIntentSamples(Aws::Vector< InvokedIntentSample > &&value)
SessionSpecification & WithInvokedIntentSamples(const Aws::Vector< InvokedIntentSample > &value)
SessionSpecification & WithNumberOfTurns(long long value)
void SetConversationEndTime(Aws::Utils::DateTime &&value)
SessionSpecification & WithConversationStartTime(Aws::Utils::DateTime &&value)
void SetConversationEndState(const ConversationEndState &value)
const Aws::Vector< InvokedIntentSample > & GetInvokedIntentSamples() const
SessionSpecification & AddInvokedIntentSamples(const InvokedIntentSample &value)
void SetInvokedIntentSamples(Aws::Vector< InvokedIntentSample > &&value)
SessionSpecification & WithBotVersion(const Aws::String &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