AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UtteranceSpecification.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/lexv2-models/model/AnalyticsModality.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/lexv2-models/model/IntentState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lexv2-models/model/UtteranceBotResponse.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 UtteranceSpecification() = default;
41 AWS_LEXMODELSV2_API UtteranceSpecification(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 UtteranceSpecification& 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 UtteranceSpecification& 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 UtteranceSpecification& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetSessionId() const { return m_sessionId; }
87 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
88 template<typename SessionIdT = Aws::String>
89 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
90 template<typename SessionIdT = Aws::String>
91 UtteranceSpecification& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
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) { m_channelHasBeenSet = true; m_channel = std::forward<ChannelT>(value); }
103 template<typename ChannelT = Aws::String>
104 UtteranceSpecification& WithChannel(ChannelT&& value) { SetChannel(std::forward<ChannelT>(value)); return *this;}
106
108
117 inline AnalyticsModality GetMode() const { return m_mode; }
118 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
119 inline void SetMode(AnalyticsModality value) { m_modeHasBeenSet = true; m_mode = value; }
120 inline UtteranceSpecification& WithMode(AnalyticsModality value) { SetMode(value); return *this;}
122
124
129 inline const Aws::Utils::DateTime& GetConversationStartTime() const { return m_conversationStartTime; }
130 inline bool ConversationStartTimeHasBeenSet() const { return m_conversationStartTimeHasBeenSet; }
131 template<typename ConversationStartTimeT = Aws::Utils::DateTime>
132 void SetConversationStartTime(ConversationStartTimeT&& value) { m_conversationStartTimeHasBeenSet = true; m_conversationStartTime = std::forward<ConversationStartTimeT>(value); }
133 template<typename ConversationStartTimeT = Aws::Utils::DateTime>
134 UtteranceSpecification& WithConversationStartTime(ConversationStartTimeT&& value) { SetConversationStartTime(std::forward<ConversationStartTimeT>(value)); return *this;}
136
138
143 inline const Aws::Utils::DateTime& GetConversationEndTime() const { return m_conversationEndTime; }
144 inline bool ConversationEndTimeHasBeenSet() const { return m_conversationEndTimeHasBeenSet; }
145 template<typename ConversationEndTimeT = Aws::Utils::DateTime>
146 void SetConversationEndTime(ConversationEndTimeT&& value) { m_conversationEndTimeHasBeenSet = true; m_conversationEndTime = std::forward<ConversationEndTimeT>(value); }
147 template<typename ConversationEndTimeT = Aws::Utils::DateTime>
148 UtteranceSpecification& WithConversationEndTime(ConversationEndTimeT&& value) { SetConversationEndTime(std::forward<ConversationEndTimeT>(value)); return *this;}
150
152
155 inline const Aws::String& GetUtterance() const { return m_utterance; }
156 inline bool UtteranceHasBeenSet() const { return m_utteranceHasBeenSet; }
157 template<typename UtteranceT = Aws::String>
158 void SetUtterance(UtteranceT&& value) { m_utteranceHasBeenSet = true; m_utterance = std::forward<UtteranceT>(value); }
159 template<typename UtteranceT = Aws::String>
160 UtteranceSpecification& WithUtterance(UtteranceT&& value) { SetUtterance(std::forward<UtteranceT>(value)); return *this;}
162
164
167 inline const Aws::Utils::DateTime& GetUtteranceTimestamp() const { return m_utteranceTimestamp; }
168 inline bool UtteranceTimestampHasBeenSet() const { return m_utteranceTimestampHasBeenSet; }
169 template<typename UtteranceTimestampT = Aws::Utils::DateTime>
170 void SetUtteranceTimestamp(UtteranceTimestampT&& value) { m_utteranceTimestampHasBeenSet = true; m_utteranceTimestamp = std::forward<UtteranceTimestampT>(value); }
171 template<typename UtteranceTimestampT = Aws::Utils::DateTime>
172 UtteranceSpecification& WithUtteranceTimestamp(UtteranceTimestampT&& value) { SetUtteranceTimestamp(std::forward<UtteranceTimestampT>(value)); return *this;}
174
176
179 inline long long GetAudioVoiceDurationMillis() const { return m_audioVoiceDurationMillis; }
180 inline bool AudioVoiceDurationMillisHasBeenSet() const { return m_audioVoiceDurationMillisHasBeenSet; }
181 inline void SetAudioVoiceDurationMillis(long long value) { m_audioVoiceDurationMillisHasBeenSet = true; m_audioVoiceDurationMillis = value; }
184
186
189 inline bool GetUtteranceUnderstood() const { return m_utteranceUnderstood; }
190 inline bool UtteranceUnderstoodHasBeenSet() const { return m_utteranceUnderstoodHasBeenSet; }
191 inline void SetUtteranceUnderstood(bool value) { m_utteranceUnderstoodHasBeenSet = true; m_utteranceUnderstood = value; }
192 inline UtteranceSpecification& WithUtteranceUnderstood(bool value) { SetUtteranceUnderstood(value); return *this;}
194
196
208 inline const Aws::String& GetInputType() const { return m_inputType; }
209 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
210 template<typename InputTypeT = Aws::String>
211 void SetInputType(InputTypeT&& value) { m_inputTypeHasBeenSet = true; m_inputType = std::forward<InputTypeT>(value); }
212 template<typename InputTypeT = Aws::String>
213 UtteranceSpecification& WithInputType(InputTypeT&& value) { SetInputType(std::forward<InputTypeT>(value)); return *this;}
215
217
224 inline const Aws::String& GetOutputType() const { return m_outputType; }
225 inline bool OutputTypeHasBeenSet() const { return m_outputTypeHasBeenSet; }
226 template<typename OutputTypeT = Aws::String>
227 void SetOutputType(OutputTypeT&& value) { m_outputTypeHasBeenSet = true; m_outputType = std::forward<OutputTypeT>(value); }
228 template<typename OutputTypeT = Aws::String>
229 UtteranceSpecification& WithOutputType(OutputTypeT&& value) { SetOutputType(std::forward<OutputTypeT>(value)); return *this;}
231
233
236 inline const Aws::String& GetAssociatedIntentName() const { return m_associatedIntentName; }
237 inline bool AssociatedIntentNameHasBeenSet() const { return m_associatedIntentNameHasBeenSet; }
238 template<typename AssociatedIntentNameT = Aws::String>
239 void SetAssociatedIntentName(AssociatedIntentNameT&& value) { m_associatedIntentNameHasBeenSet = true; m_associatedIntentName = std::forward<AssociatedIntentNameT>(value); }
240 template<typename AssociatedIntentNameT = Aws::String>
241 UtteranceSpecification& WithAssociatedIntentName(AssociatedIntentNameT&& value) { SetAssociatedIntentName(std::forward<AssociatedIntentNameT>(value)); return *this;}
243
245
248 inline const Aws::String& GetAssociatedSlotName() const { return m_associatedSlotName; }
249 inline bool AssociatedSlotNameHasBeenSet() const { return m_associatedSlotNameHasBeenSet; }
250 template<typename AssociatedSlotNameT = Aws::String>
251 void SetAssociatedSlotName(AssociatedSlotNameT&& value) { m_associatedSlotNameHasBeenSet = true; m_associatedSlotName = std::forward<AssociatedSlotNameT>(value); }
252 template<typename AssociatedSlotNameT = Aws::String>
253 UtteranceSpecification& WithAssociatedSlotName(AssociatedSlotNameT&& value) { SetAssociatedSlotName(std::forward<AssociatedSlotNameT>(value)); return *this;}
255
257
260 inline IntentState GetIntentState() const { return m_intentState; }
261 inline bool IntentStateHasBeenSet() const { return m_intentStateHasBeenSet; }
262 inline void SetIntentState(IntentState value) { m_intentStateHasBeenSet = true; m_intentState = value; }
263 inline UtteranceSpecification& WithIntentState(IntentState value) { SetIntentState(value); return *this;}
265
267
273 inline const Aws::String& GetDialogActionType() const { return m_dialogActionType; }
274 inline bool DialogActionTypeHasBeenSet() const { return m_dialogActionTypeHasBeenSet; }
275 template<typename DialogActionTypeT = Aws::String>
276 void SetDialogActionType(DialogActionTypeT&& value) { m_dialogActionTypeHasBeenSet = true; m_dialogActionType = std::forward<DialogActionTypeT>(value); }
277 template<typename DialogActionTypeT = Aws::String>
278 UtteranceSpecification& WithDialogActionType(DialogActionTypeT&& value) { SetDialogActionType(std::forward<DialogActionTypeT>(value)); return *this;}
280
282
285 inline const Aws::String& GetBotResponseAudioVoiceId() const { return m_botResponseAudioVoiceId; }
286 inline bool BotResponseAudioVoiceIdHasBeenSet() const { return m_botResponseAudioVoiceIdHasBeenSet; }
287 template<typename BotResponseAudioVoiceIdT = Aws::String>
288 void SetBotResponseAudioVoiceId(BotResponseAudioVoiceIdT&& value) { m_botResponseAudioVoiceIdHasBeenSet = true; m_botResponseAudioVoiceId = std::forward<BotResponseAudioVoiceIdT>(value); }
289 template<typename BotResponseAudioVoiceIdT = Aws::String>
290 UtteranceSpecification& WithBotResponseAudioVoiceId(BotResponseAudioVoiceIdT&& value) { SetBotResponseAudioVoiceId(std::forward<BotResponseAudioVoiceIdT>(value)); return *this;}
292
294
298 inline const Aws::String& GetSlotsFilledInSession() const { return m_slotsFilledInSession; }
299 inline bool SlotsFilledInSessionHasBeenSet() const { return m_slotsFilledInSessionHasBeenSet; }
300 template<typename SlotsFilledInSessionT = Aws::String>
301 void SetSlotsFilledInSession(SlotsFilledInSessionT&& value) { m_slotsFilledInSessionHasBeenSet = true; m_slotsFilledInSession = std::forward<SlotsFilledInSessionT>(value); }
302 template<typename SlotsFilledInSessionT = Aws::String>
303 UtteranceSpecification& WithSlotsFilledInSession(SlotsFilledInSessionT&& value) { SetSlotsFilledInSession(std::forward<SlotsFilledInSessionT>(value)); return *this;}
305
307
310 inline const Aws::String& GetUtteranceRequestId() const { return m_utteranceRequestId; }
311 inline bool UtteranceRequestIdHasBeenSet() const { return m_utteranceRequestIdHasBeenSet; }
312 template<typename UtteranceRequestIdT = Aws::String>
313 void SetUtteranceRequestId(UtteranceRequestIdT&& value) { m_utteranceRequestIdHasBeenSet = true; m_utteranceRequestId = std::forward<UtteranceRequestIdT>(value); }
314 template<typename UtteranceRequestIdT = Aws::String>
315 UtteranceSpecification& WithUtteranceRequestId(UtteranceRequestIdT&& value) { SetUtteranceRequestId(std::forward<UtteranceRequestIdT>(value)); return *this;}
317
319
323 inline const Aws::Vector<UtteranceBotResponse>& GetBotResponses() const { return m_botResponses; }
324 inline bool BotResponsesHasBeenSet() const { return m_botResponsesHasBeenSet; }
325 template<typename BotResponsesT = Aws::Vector<UtteranceBotResponse>>
326 void SetBotResponses(BotResponsesT&& value) { m_botResponsesHasBeenSet = true; m_botResponses = std::forward<BotResponsesT>(value); }
327 template<typename BotResponsesT = Aws::Vector<UtteranceBotResponse>>
328 UtteranceSpecification& WithBotResponses(BotResponsesT&& value) { SetBotResponses(std::forward<BotResponsesT>(value)); return *this;}
329 template<typename BotResponsesT = UtteranceBotResponse>
330 UtteranceSpecification& AddBotResponses(BotResponsesT&& value) { m_botResponsesHasBeenSet = true; m_botResponses.emplace_back(std::forward<BotResponsesT>(value)); return *this; }
332 private:
333
334 Aws::String m_botAliasId;
335 bool m_botAliasIdHasBeenSet = false;
336
337 Aws::String m_botVersion;
338 bool m_botVersionHasBeenSet = false;
339
340 Aws::String m_localeId;
341 bool m_localeIdHasBeenSet = false;
342
343 Aws::String m_sessionId;
344 bool m_sessionIdHasBeenSet = false;
345
346 Aws::String m_channel;
347 bool m_channelHasBeenSet = false;
348
350 bool m_modeHasBeenSet = false;
351
352 Aws::Utils::DateTime m_conversationStartTime{};
353 bool m_conversationStartTimeHasBeenSet = false;
354
355 Aws::Utils::DateTime m_conversationEndTime{};
356 bool m_conversationEndTimeHasBeenSet = false;
357
358 Aws::String m_utterance;
359 bool m_utteranceHasBeenSet = false;
360
361 Aws::Utils::DateTime m_utteranceTimestamp{};
362 bool m_utteranceTimestampHasBeenSet = false;
363
364 long long m_audioVoiceDurationMillis{0};
365 bool m_audioVoiceDurationMillisHasBeenSet = false;
366
367 bool m_utteranceUnderstood{false};
368 bool m_utteranceUnderstoodHasBeenSet = false;
369
370 Aws::String m_inputType;
371 bool m_inputTypeHasBeenSet = false;
372
373 Aws::String m_outputType;
374 bool m_outputTypeHasBeenSet = false;
375
376 Aws::String m_associatedIntentName;
377 bool m_associatedIntentNameHasBeenSet = false;
378
379 Aws::String m_associatedSlotName;
380 bool m_associatedSlotNameHasBeenSet = false;
381
382 IntentState m_intentState{IntentState::NOT_SET};
383 bool m_intentStateHasBeenSet = false;
384
385 Aws::String m_dialogActionType;
386 bool m_dialogActionTypeHasBeenSet = false;
387
388 Aws::String m_botResponseAudioVoiceId;
389 bool m_botResponseAudioVoiceIdHasBeenSet = false;
390
391 Aws::String m_slotsFilledInSession;
392 bool m_slotsFilledInSessionHasBeenSet = false;
393
394 Aws::String m_utteranceRequestId;
395 bool m_utteranceRequestIdHasBeenSet = false;
396
398 bool m_botResponsesHasBeenSet = false;
399 };
400
401} // namespace Model
402} // namespace LexModelsV2
403} // 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