AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UtteranceSpecification.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/IntentState.h>
13#include <aws/lexv2-models/model/UtteranceBotResponse.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 UtteranceSpecification() = default;
36 AWS_LEXMODELSV2_API UtteranceSpecification(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 UtteranceSpecification& 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 UtteranceSpecification& 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>
89 SetLocaleId(std::forward<LocaleIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetSessionId() const { return m_sessionId; }
99 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
100 template <typename SessionIdT = Aws::String>
101 void SetSessionId(SessionIdT&& value) {
102 m_sessionIdHasBeenSet = true;
103 m_sessionId = std::forward<SessionIdT>(value);
104 }
105 template <typename SessionIdT = Aws::String>
107 SetSessionId(std::forward<SessionIdT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetChannel() const { return m_channel; }
118 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
119 template <typename ChannelT = Aws::String>
120 void SetChannel(ChannelT&& value) {
121 m_channelHasBeenSet = true;
122 m_channel = std::forward<ChannelT>(value);
123 }
124 template <typename ChannelT = Aws::String>
126 SetChannel(std::forward<ChannelT>(value));
127 return *this;
128 }
130
132
141 inline AnalyticsModality GetMode() const { return m_mode; }
142 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
143 inline void SetMode(AnalyticsModality value) {
144 m_modeHasBeenSet = true;
145 m_mode = value;
146 }
148 SetMode(value);
149 return *this;
150 }
152
154
159 inline const Aws::Utils::DateTime& GetConversationStartTime() const { return m_conversationStartTime; }
160 inline bool ConversationStartTimeHasBeenSet() const { return m_conversationStartTimeHasBeenSet; }
161 template <typename ConversationStartTimeT = Aws::Utils::DateTime>
162 void SetConversationStartTime(ConversationStartTimeT&& value) {
163 m_conversationStartTimeHasBeenSet = true;
164 m_conversationStartTime = std::forward<ConversationStartTimeT>(value);
165 }
166 template <typename ConversationStartTimeT = Aws::Utils::DateTime>
167 UtteranceSpecification& WithConversationStartTime(ConversationStartTimeT&& value) {
168 SetConversationStartTime(std::forward<ConversationStartTimeT>(value));
169 return *this;
170 }
172
174
179 inline const Aws::Utils::DateTime& GetConversationEndTime() const { return m_conversationEndTime; }
180 inline bool ConversationEndTimeHasBeenSet() const { return m_conversationEndTimeHasBeenSet; }
181 template <typename ConversationEndTimeT = Aws::Utils::DateTime>
182 void SetConversationEndTime(ConversationEndTimeT&& value) {
183 m_conversationEndTimeHasBeenSet = true;
184 m_conversationEndTime = std::forward<ConversationEndTimeT>(value);
185 }
186 template <typename ConversationEndTimeT = Aws::Utils::DateTime>
187 UtteranceSpecification& WithConversationEndTime(ConversationEndTimeT&& value) {
188 SetConversationEndTime(std::forward<ConversationEndTimeT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetUtterance() const { return m_utterance; }
198 inline bool UtteranceHasBeenSet() const { return m_utteranceHasBeenSet; }
199 template <typename UtteranceT = Aws::String>
200 void SetUtterance(UtteranceT&& value) {
201 m_utteranceHasBeenSet = true;
202 m_utterance = std::forward<UtteranceT>(value);
203 }
204 template <typename UtteranceT = Aws::String>
206 SetUtterance(std::forward<UtteranceT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetUtteranceTimestamp() const { return m_utteranceTimestamp; }
216 inline bool UtteranceTimestampHasBeenSet() const { return m_utteranceTimestampHasBeenSet; }
217 template <typename UtteranceTimestampT = Aws::Utils::DateTime>
218 void SetUtteranceTimestamp(UtteranceTimestampT&& value) {
219 m_utteranceTimestampHasBeenSet = true;
220 m_utteranceTimestamp = std::forward<UtteranceTimestampT>(value);
221 }
222 template <typename UtteranceTimestampT = Aws::Utils::DateTime>
223 UtteranceSpecification& WithUtteranceTimestamp(UtteranceTimestampT&& value) {
224 SetUtteranceTimestamp(std::forward<UtteranceTimestampT>(value));
225 return *this;
226 }
228
230
233 inline long long GetAudioVoiceDurationMillis() const { return m_audioVoiceDurationMillis; }
234 inline bool AudioVoiceDurationMillisHasBeenSet() const { return m_audioVoiceDurationMillisHasBeenSet; }
235 inline void SetAudioVoiceDurationMillis(long long value) {
236 m_audioVoiceDurationMillisHasBeenSet = true;
237 m_audioVoiceDurationMillis = value;
238 }
241 return *this;
242 }
244
246
249 inline bool GetUtteranceUnderstood() const { return m_utteranceUnderstood; }
250 inline bool UtteranceUnderstoodHasBeenSet() const { return m_utteranceUnderstoodHasBeenSet; }
251 inline void SetUtteranceUnderstood(bool value) {
252 m_utteranceUnderstoodHasBeenSet = true;
253 m_utteranceUnderstood = value;
254 }
257 return *this;
258 }
260
262
274 inline const Aws::String& GetInputType() const { return m_inputType; }
275 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
276 template <typename InputTypeT = Aws::String>
277 void SetInputType(InputTypeT&& value) {
278 m_inputTypeHasBeenSet = true;
279 m_inputType = std::forward<InputTypeT>(value);
280 }
281 template <typename InputTypeT = Aws::String>
283 SetInputType(std::forward<InputTypeT>(value));
284 return *this;
285 }
287
289
296 inline const Aws::String& GetOutputType() const { return m_outputType; }
297 inline bool OutputTypeHasBeenSet() const { return m_outputTypeHasBeenSet; }
298 template <typename OutputTypeT = Aws::String>
299 void SetOutputType(OutputTypeT&& value) {
300 m_outputTypeHasBeenSet = true;
301 m_outputType = std::forward<OutputTypeT>(value);
302 }
303 template <typename OutputTypeT = Aws::String>
305 SetOutputType(std::forward<OutputTypeT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::String& GetAssociatedIntentName() const { return m_associatedIntentName; }
315 inline bool AssociatedIntentNameHasBeenSet() const { return m_associatedIntentNameHasBeenSet; }
316 template <typename AssociatedIntentNameT = Aws::String>
317 void SetAssociatedIntentName(AssociatedIntentNameT&& value) {
318 m_associatedIntentNameHasBeenSet = true;
319 m_associatedIntentName = std::forward<AssociatedIntentNameT>(value);
320 }
321 template <typename AssociatedIntentNameT = Aws::String>
322 UtteranceSpecification& WithAssociatedIntentName(AssociatedIntentNameT&& value) {
323 SetAssociatedIntentName(std::forward<AssociatedIntentNameT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::String& GetAssociatedSlotName() const { return m_associatedSlotName; }
333 inline bool AssociatedSlotNameHasBeenSet() const { return m_associatedSlotNameHasBeenSet; }
334 template <typename AssociatedSlotNameT = Aws::String>
335 void SetAssociatedSlotName(AssociatedSlotNameT&& value) {
336 m_associatedSlotNameHasBeenSet = true;
337 m_associatedSlotName = std::forward<AssociatedSlotNameT>(value);
338 }
339 template <typename AssociatedSlotNameT = Aws::String>
340 UtteranceSpecification& WithAssociatedSlotName(AssociatedSlotNameT&& value) {
341 SetAssociatedSlotName(std::forward<AssociatedSlotNameT>(value));
342 return *this;
343 }
345
347
350 inline IntentState GetIntentState() const { return m_intentState; }
351 inline bool IntentStateHasBeenSet() const { return m_intentStateHasBeenSet; }
352 inline void SetIntentState(IntentState value) {
353 m_intentStateHasBeenSet = true;
354 m_intentState = value;
355 }
357 SetIntentState(value);
358 return *this;
359 }
361
363
369 inline const Aws::String& GetDialogActionType() const { return m_dialogActionType; }
370 inline bool DialogActionTypeHasBeenSet() const { return m_dialogActionTypeHasBeenSet; }
371 template <typename DialogActionTypeT = Aws::String>
372 void SetDialogActionType(DialogActionTypeT&& value) {
373 m_dialogActionTypeHasBeenSet = true;
374 m_dialogActionType = std::forward<DialogActionTypeT>(value);
375 }
376 template <typename DialogActionTypeT = Aws::String>
377 UtteranceSpecification& WithDialogActionType(DialogActionTypeT&& value) {
378 SetDialogActionType(std::forward<DialogActionTypeT>(value));
379 return *this;
380 }
382
384
387 inline const Aws::String& GetBotResponseAudioVoiceId() const { return m_botResponseAudioVoiceId; }
388 inline bool BotResponseAudioVoiceIdHasBeenSet() const { return m_botResponseAudioVoiceIdHasBeenSet; }
389 template <typename BotResponseAudioVoiceIdT = Aws::String>
390 void SetBotResponseAudioVoiceId(BotResponseAudioVoiceIdT&& value) {
391 m_botResponseAudioVoiceIdHasBeenSet = true;
392 m_botResponseAudioVoiceId = std::forward<BotResponseAudioVoiceIdT>(value);
393 }
394 template <typename BotResponseAudioVoiceIdT = Aws::String>
395 UtteranceSpecification& WithBotResponseAudioVoiceId(BotResponseAudioVoiceIdT&& value) {
396 SetBotResponseAudioVoiceId(std::forward<BotResponseAudioVoiceIdT>(value));
397 return *this;
398 }
400
402
406 inline const Aws::String& GetSlotsFilledInSession() const { return m_slotsFilledInSession; }
407 inline bool SlotsFilledInSessionHasBeenSet() const { return m_slotsFilledInSessionHasBeenSet; }
408 template <typename SlotsFilledInSessionT = Aws::String>
409 void SetSlotsFilledInSession(SlotsFilledInSessionT&& value) {
410 m_slotsFilledInSessionHasBeenSet = true;
411 m_slotsFilledInSession = std::forward<SlotsFilledInSessionT>(value);
412 }
413 template <typename SlotsFilledInSessionT = Aws::String>
414 UtteranceSpecification& WithSlotsFilledInSession(SlotsFilledInSessionT&& value) {
415 SetSlotsFilledInSession(std::forward<SlotsFilledInSessionT>(value));
416 return *this;
417 }
419
421
424 inline const Aws::String& GetUtteranceRequestId() const { return m_utteranceRequestId; }
425 inline bool UtteranceRequestIdHasBeenSet() const { return m_utteranceRequestIdHasBeenSet; }
426 template <typename UtteranceRequestIdT = Aws::String>
427 void SetUtteranceRequestId(UtteranceRequestIdT&& value) {
428 m_utteranceRequestIdHasBeenSet = true;
429 m_utteranceRequestId = std::forward<UtteranceRequestIdT>(value);
430 }
431 template <typename UtteranceRequestIdT = Aws::String>
432 UtteranceSpecification& WithUtteranceRequestId(UtteranceRequestIdT&& value) {
433 SetUtteranceRequestId(std::forward<UtteranceRequestIdT>(value));
434 return *this;
435 }
437
439
443 inline const Aws::Vector<UtteranceBotResponse>& GetBotResponses() const { return m_botResponses; }
444 inline bool BotResponsesHasBeenSet() const { return m_botResponsesHasBeenSet; }
445 template <typename BotResponsesT = Aws::Vector<UtteranceBotResponse>>
446 void SetBotResponses(BotResponsesT&& value) {
447 m_botResponsesHasBeenSet = true;
448 m_botResponses = std::forward<BotResponsesT>(value);
449 }
450 template <typename BotResponsesT = Aws::Vector<UtteranceBotResponse>>
451 UtteranceSpecification& WithBotResponses(BotResponsesT&& value) {
452 SetBotResponses(std::forward<BotResponsesT>(value));
453 return *this;
454 }
455 template <typename BotResponsesT = UtteranceBotResponse>
456 UtteranceSpecification& AddBotResponses(BotResponsesT&& value) {
457 m_botResponsesHasBeenSet = true;
458 m_botResponses.emplace_back(std::forward<BotResponsesT>(value));
459 return *this;
460 }
462 private:
463 Aws::String m_botAliasId;
464
465 Aws::String m_botVersion;
466
467 Aws::String m_localeId;
468
469 Aws::String m_sessionId;
470
471 Aws::String m_channel;
472
474
475 Aws::Utils::DateTime m_conversationStartTime{};
476
477 Aws::Utils::DateTime m_conversationEndTime{};
478
479 Aws::String m_utterance;
480
481 Aws::Utils::DateTime m_utteranceTimestamp{};
482
483 long long m_audioVoiceDurationMillis{0};
484
485 bool m_utteranceUnderstood{false};
486
487 Aws::String m_inputType;
488
489 Aws::String m_outputType;
490
491 Aws::String m_associatedIntentName;
492
493 Aws::String m_associatedSlotName;
494
495 IntentState m_intentState{IntentState::NOT_SET};
496
497 Aws::String m_dialogActionType;
498
499 Aws::String m_botResponseAudioVoiceId;
500
501 Aws::String m_slotsFilledInSession;
502
503 Aws::String m_utteranceRequestId;
504
506 bool m_botAliasIdHasBeenSet = false;
507 bool m_botVersionHasBeenSet = false;
508 bool m_localeIdHasBeenSet = false;
509 bool m_sessionIdHasBeenSet = false;
510 bool m_channelHasBeenSet = false;
511 bool m_modeHasBeenSet = false;
512 bool m_conversationStartTimeHasBeenSet = false;
513 bool m_conversationEndTimeHasBeenSet = false;
514 bool m_utteranceHasBeenSet = false;
515 bool m_utteranceTimestampHasBeenSet = false;
516 bool m_audioVoiceDurationMillisHasBeenSet = false;
517 bool m_utteranceUnderstoodHasBeenSet = false;
518 bool m_inputTypeHasBeenSet = false;
519 bool m_outputTypeHasBeenSet = false;
520 bool m_associatedIntentNameHasBeenSet = false;
521 bool m_associatedSlotNameHasBeenSet = false;
522 bool m_intentStateHasBeenSet = false;
523 bool m_dialogActionTypeHasBeenSet = false;
524 bool m_botResponseAudioVoiceIdHasBeenSet = false;
525 bool m_slotsFilledInSessionHasBeenSet = false;
526 bool m_utteranceRequestIdHasBeenSet = false;
527 bool m_botResponsesHasBeenSet = false;
528};
529
530} // namespace Model
531} // namespace LexModelsV2
532} // namespace Aws
void SetUtteranceTimestamp(UtteranceTimestampT &&value)
UtteranceSpecification & WithBotAliasId(BotAliasIdT &&value)
void SetAssociatedIntentName(AssociatedIntentNameT &&value)
UtteranceSpecification & WithIntentState(IntentState value)
const Aws::Vector< UtteranceBotResponse > & GetBotResponses() const
const Aws::Utils::DateTime & GetConversationStartTime() const
UtteranceSpecification & WithUtteranceTimestamp(UtteranceTimestampT &&value)
void SetConversationEndTime(ConversationEndTimeT &&value)
UtteranceSpecification & WithOutputType(OutputTypeT &&value)
UtteranceSpecification & WithConversationStartTime(ConversationStartTimeT &&value)
void SetAssociatedSlotName(AssociatedSlotNameT &&value)
UtteranceSpecification & WithUtteranceRequestId(UtteranceRequestIdT &&value)
UtteranceSpecification & WithLocaleId(LocaleIdT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
UtteranceSpecification & WithConversationEndTime(ConversationEndTimeT &&value)
UtteranceSpecification & WithUtterance(UtteranceT &&value)
UtteranceSpecification & WithBotResponses(BotResponsesT &&value)
const Aws::Utils::DateTime & GetConversationEndTime() const
UtteranceSpecification & WithAudioVoiceDurationMillis(long long value)
UtteranceSpecification & WithBotVersion(BotVersionT &&value)
UtteranceSpecification & WithUtteranceUnderstood(bool value)
void SetSlotsFilledInSession(SlotsFilledInSessionT &&value)
UtteranceSpecification & WithBotResponseAudioVoiceId(BotResponseAudioVoiceIdT &&value)
UtteranceSpecification & WithSlotsFilledInSession(SlotsFilledInSessionT &&value)
UtteranceSpecification & AddBotResponses(BotResponsesT &&value)
void SetUtteranceRequestId(UtteranceRequestIdT &&value)
UtteranceSpecification & WithDialogActionType(DialogActionTypeT &&value)
void SetConversationStartTime(ConversationStartTimeT &&value)
AWS_LEXMODELSV2_API UtteranceSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBotResponseAudioVoiceId(BotResponseAudioVoiceIdT &&value)
AWS_LEXMODELSV2_API UtteranceSpecification()=default
UtteranceSpecification & WithAssociatedSlotName(AssociatedSlotNameT &&value)
const Aws::Utils::DateTime & GetUtteranceTimestamp() const
UtteranceSpecification & WithSessionId(SessionIdT &&value)
UtteranceSpecification & WithInputType(InputTypeT &&value)
UtteranceSpecification & WithMode(AnalyticsModality value)
UtteranceSpecification & WithChannel(ChannelT &&value)
UtteranceSpecification & WithAssociatedIntentName(AssociatedIntentNameT &&value)
AWS_LEXMODELSV2_API UtteranceSpecification(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue