AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename BotAliasIdT = Aws::String>
53 void SetBotAliasId(BotAliasIdT&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::forward<BotAliasIdT>(value); }
54 template<typename BotAliasIdT = Aws::String>
55 SessionSpecification& WithBotAliasId(BotAliasIdT&& value) { SetBotAliasId(std::forward<BotAliasIdT>(value)); return *this;}
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) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
66 template<typename BotVersionT = Aws::String>
67 SessionSpecification& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetLocaleId() const { return m_localeId; }
75 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
76 template<typename LocaleIdT = Aws::String>
77 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
78 template<typename LocaleIdT = Aws::String>
79 SessionSpecification& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
81
83
87 inline const Aws::String& GetChannel() const { return m_channel; }
88 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
89 template<typename ChannelT = Aws::String>
90 void SetChannel(ChannelT&& value) { m_channelHasBeenSet = true; m_channel = std::forward<ChannelT>(value); }
91 template<typename ChannelT = Aws::String>
92 SessionSpecification& WithChannel(ChannelT&& value) { SetChannel(std::forward<ChannelT>(value)); return *this;}
94
96
99 inline const Aws::String& GetSessionId() const { return m_sessionId; }
100 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
101 template<typename SessionIdT = Aws::String>
102 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
103 template<typename SessionIdT = Aws::String>
104 SessionSpecification& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
106
108
113 inline const Aws::Utils::DateTime& GetConversationStartTime() const { return m_conversationStartTime; }
114 inline bool ConversationStartTimeHasBeenSet() const { return m_conversationStartTimeHasBeenSet; }
115 template<typename ConversationStartTimeT = Aws::Utils::DateTime>
116 void SetConversationStartTime(ConversationStartTimeT&& value) { m_conversationStartTimeHasBeenSet = true; m_conversationStartTime = std::forward<ConversationStartTimeT>(value); }
117 template<typename ConversationStartTimeT = Aws::Utils::DateTime>
118 SessionSpecification& WithConversationStartTime(ConversationStartTimeT&& value) { SetConversationStartTime(std::forward<ConversationStartTimeT>(value)); return *this;}
120
122
127 inline const Aws::Utils::DateTime& GetConversationEndTime() const { return m_conversationEndTime; }
128 inline bool ConversationEndTimeHasBeenSet() const { return m_conversationEndTimeHasBeenSet; }
129 template<typename ConversationEndTimeT = Aws::Utils::DateTime>
130 void SetConversationEndTime(ConversationEndTimeT&& value) { m_conversationEndTimeHasBeenSet = true; m_conversationEndTime = std::forward<ConversationEndTimeT>(value); }
131 template<typename ConversationEndTimeT = Aws::Utils::DateTime>
132 SessionSpecification& WithConversationEndTime(ConversationEndTimeT&& value) { SetConversationEndTime(std::forward<ConversationEndTimeT>(value)); return *this;}
134
136
141 inline long long GetConversationDurationSeconds() const { return m_conversationDurationSeconds; }
142 inline bool ConversationDurationSecondsHasBeenSet() const { return m_conversationDurationSecondsHasBeenSet; }
143 inline void SetConversationDurationSeconds(long long value) { m_conversationDurationSecondsHasBeenSet = true; m_conversationDurationSeconds = value; }
146
148
153 inline ConversationEndState GetConversationEndState() const { return m_conversationEndState; }
154 inline bool ConversationEndStateHasBeenSet() const { return m_conversationEndStateHasBeenSet; }
155 inline void SetConversationEndState(ConversationEndState value) { m_conversationEndStateHasBeenSet = true; m_conversationEndState = value; }
158
160
168 inline AnalyticsModality GetMode() const { return m_mode; }
169 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
170 inline void SetMode(AnalyticsModality value) { m_modeHasBeenSet = true; m_mode = value; }
171 inline SessionSpecification& WithMode(AnalyticsModality value) { SetMode(value); return *this;}
173
175
178 inline long long GetNumberOfTurns() const { return m_numberOfTurns; }
179 inline bool NumberOfTurnsHasBeenSet() const { return m_numberOfTurnsHasBeenSet; }
180 inline void SetNumberOfTurns(long long value) { m_numberOfTurnsHasBeenSet = true; m_numberOfTurns = value; }
181 inline SessionSpecification& WithNumberOfTurns(long long value) { SetNumberOfTurns(value); return *this;}
183
185
188 inline const Aws::Vector<InvokedIntentSample>& GetInvokedIntentSamples() const { return m_invokedIntentSamples; }
189 inline bool InvokedIntentSamplesHasBeenSet() const { return m_invokedIntentSamplesHasBeenSet; }
190 template<typename InvokedIntentSamplesT = Aws::Vector<InvokedIntentSample>>
191 void SetInvokedIntentSamples(InvokedIntentSamplesT&& value) { m_invokedIntentSamplesHasBeenSet = true; m_invokedIntentSamples = std::forward<InvokedIntentSamplesT>(value); }
192 template<typename InvokedIntentSamplesT = Aws::Vector<InvokedIntentSample>>
193 SessionSpecification& WithInvokedIntentSamples(InvokedIntentSamplesT&& value) { SetInvokedIntentSamples(std::forward<InvokedIntentSamplesT>(value)); return *this;}
194 template<typename InvokedIntentSamplesT = InvokedIntentSample>
195 SessionSpecification& AddInvokedIntentSamples(InvokedIntentSamplesT&& value) { m_invokedIntentSamplesHasBeenSet = true; m_invokedIntentSamples.emplace_back(std::forward<InvokedIntentSamplesT>(value)); return *this; }
197
199
202 inline const Aws::String& GetOriginatingRequestId() const { return m_originatingRequestId; }
203 inline bool OriginatingRequestIdHasBeenSet() const { return m_originatingRequestIdHasBeenSet; }
204 template<typename OriginatingRequestIdT = Aws::String>
205 void SetOriginatingRequestId(OriginatingRequestIdT&& value) { m_originatingRequestIdHasBeenSet = true; m_originatingRequestId = std::forward<OriginatingRequestIdT>(value); }
206 template<typename OriginatingRequestIdT = Aws::String>
207 SessionSpecification& WithOriginatingRequestId(OriginatingRequestIdT&& value) { SetOriginatingRequestId(std::forward<OriginatingRequestIdT>(value)); return *this;}
209 private:
210
211 Aws::String m_botAliasId;
212 bool m_botAliasIdHasBeenSet = false;
213
214 Aws::String m_botVersion;
215 bool m_botVersionHasBeenSet = false;
216
217 Aws::String m_localeId;
218 bool m_localeIdHasBeenSet = false;
219
220 Aws::String m_channel;
221 bool m_channelHasBeenSet = false;
222
223 Aws::String m_sessionId;
224 bool m_sessionIdHasBeenSet = false;
225
226 Aws::Utils::DateTime m_conversationStartTime{};
227 bool m_conversationStartTimeHasBeenSet = false;
228
229 Aws::Utils::DateTime m_conversationEndTime{};
230 bool m_conversationEndTimeHasBeenSet = false;
231
232 long long m_conversationDurationSeconds{0};
233 bool m_conversationDurationSecondsHasBeenSet = false;
234
236 bool m_conversationEndStateHasBeenSet = false;
237
239 bool m_modeHasBeenSet = false;
240
241 long long m_numberOfTurns{0};
242 bool m_numberOfTurnsHasBeenSet = false;
243
244 Aws::Vector<InvokedIntentSample> m_invokedIntentSamples;
245 bool m_invokedIntentSamplesHasBeenSet = false;
246
247 Aws::String m_originatingRequestId;
248 bool m_originatingRequestIdHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace LexModelsV2
253} // 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