AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserTurnResult.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/UserTurnInputSpecification.h>
9#include <aws/lexv2-models/model/UserTurnOutputSpecification.h>
10#include <aws/lexv2-models/model/ExecutionErrorDetails.h>
11#include <aws/lexv2-models/model/TestResultMatchStatus.h>
12#include <aws/lexv2-models/model/ConversationLevelResultDetail.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LexModelsV2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_LEXMODELSV2_API UserTurnResult();
40 AWS_LEXMODELSV2_API UserTurnResult(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API UserTurnResult& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const UserTurnInputSpecification& GetInput() const{ return m_input; }
50 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
51 inline void SetInput(const UserTurnInputSpecification& value) { m_inputHasBeenSet = true; m_input = value; }
52 inline void SetInput(UserTurnInputSpecification&& value) { m_inputHasBeenSet = true; m_input = std::move(value); }
53 inline UserTurnResult& WithInput(const UserTurnInputSpecification& value) { SetInput(value); return *this;}
54 inline UserTurnResult& WithInput(UserTurnInputSpecification&& value) { SetInput(std::move(value)); return *this;}
56
58
61 inline const UserTurnOutputSpecification& GetExpectedOutput() const{ return m_expectedOutput; }
62 inline bool ExpectedOutputHasBeenSet() const { return m_expectedOutputHasBeenSet; }
63 inline void SetExpectedOutput(const UserTurnOutputSpecification& value) { m_expectedOutputHasBeenSet = true; m_expectedOutput = value; }
64 inline void SetExpectedOutput(UserTurnOutputSpecification&& value) { m_expectedOutputHasBeenSet = true; m_expectedOutput = std::move(value); }
66 inline UserTurnResult& WithExpectedOutput(UserTurnOutputSpecification&& value) { SetExpectedOutput(std::move(value)); return *this;}
68
70
73 inline const UserTurnOutputSpecification& GetActualOutput() const{ return m_actualOutput; }
74 inline bool ActualOutputHasBeenSet() const { return m_actualOutputHasBeenSet; }
75 inline void SetActualOutput(const UserTurnOutputSpecification& value) { m_actualOutputHasBeenSet = true; m_actualOutput = value; }
76 inline void SetActualOutput(UserTurnOutputSpecification&& value) { m_actualOutputHasBeenSet = true; m_actualOutput = std::move(value); }
77 inline UserTurnResult& WithActualOutput(const UserTurnOutputSpecification& value) { SetActualOutput(value); return *this;}
78 inline UserTurnResult& WithActualOutput(UserTurnOutputSpecification&& value) { SetActualOutput(std::move(value)); return *this;}
80
82
83 inline const ExecutionErrorDetails& GetErrorDetails() const{ return m_errorDetails; }
84 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
85 inline void SetErrorDetails(const ExecutionErrorDetails& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
86 inline void SetErrorDetails(ExecutionErrorDetails&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
87 inline UserTurnResult& WithErrorDetails(const ExecutionErrorDetails& value) { SetErrorDetails(value); return *this;}
88 inline UserTurnResult& WithErrorDetails(ExecutionErrorDetails&& value) { SetErrorDetails(std::move(value)); return *this;}
90
92
96 inline const TestResultMatchStatus& GetEndToEndResult() const{ return m_endToEndResult; }
97 inline bool EndToEndResultHasBeenSet() const { return m_endToEndResultHasBeenSet; }
98 inline void SetEndToEndResult(const TestResultMatchStatus& value) { m_endToEndResultHasBeenSet = true; m_endToEndResult = value; }
99 inline void SetEndToEndResult(TestResultMatchStatus&& value) { m_endToEndResultHasBeenSet = true; m_endToEndResult = std::move(value); }
100 inline UserTurnResult& WithEndToEndResult(const TestResultMatchStatus& value) { SetEndToEndResult(value); return *this;}
101 inline UserTurnResult& WithEndToEndResult(TestResultMatchStatus&& value) { SetEndToEndResult(std::move(value)); return *this;}
103
105
108 inline const TestResultMatchStatus& GetIntentMatchResult() const{ return m_intentMatchResult; }
109 inline bool IntentMatchResultHasBeenSet() const { return m_intentMatchResultHasBeenSet; }
110 inline void SetIntentMatchResult(const TestResultMatchStatus& value) { m_intentMatchResultHasBeenSet = true; m_intentMatchResult = value; }
111 inline void SetIntentMatchResult(TestResultMatchStatus&& value) { m_intentMatchResultHasBeenSet = true; m_intentMatchResult = std::move(value); }
113 inline UserTurnResult& WithIntentMatchResult(TestResultMatchStatus&& value) { SetIntentMatchResult(std::move(value)); return *this;}
115
117
120 inline const TestResultMatchStatus& GetSlotMatchResult() const{ return m_slotMatchResult; }
121 inline bool SlotMatchResultHasBeenSet() const { return m_slotMatchResultHasBeenSet; }
122 inline void SetSlotMatchResult(const TestResultMatchStatus& value) { m_slotMatchResultHasBeenSet = true; m_slotMatchResult = value; }
123 inline void SetSlotMatchResult(TestResultMatchStatus&& value) { m_slotMatchResultHasBeenSet = true; m_slotMatchResult = std::move(value); }
124 inline UserTurnResult& WithSlotMatchResult(const TestResultMatchStatus& value) { SetSlotMatchResult(value); return *this;}
125 inline UserTurnResult& WithSlotMatchResult(TestResultMatchStatus&& value) { SetSlotMatchResult(std::move(value)); return *this;}
127
129
133 inline const TestResultMatchStatus& GetSpeechTranscriptionResult() const{ return m_speechTranscriptionResult; }
134 inline bool SpeechTranscriptionResultHasBeenSet() const { return m_speechTranscriptionResultHasBeenSet; }
135 inline void SetSpeechTranscriptionResult(const TestResultMatchStatus& value) { m_speechTranscriptionResultHasBeenSet = true; m_speechTranscriptionResult = value; }
136 inline void SetSpeechTranscriptionResult(TestResultMatchStatus&& value) { m_speechTranscriptionResultHasBeenSet = true; m_speechTranscriptionResult = std::move(value); }
140
142
146 inline const ConversationLevelResultDetail& GetConversationLevelResult() const{ return m_conversationLevelResult; }
147 inline bool ConversationLevelResultHasBeenSet() const { return m_conversationLevelResultHasBeenSet; }
148 inline void SetConversationLevelResult(const ConversationLevelResultDetail& value) { m_conversationLevelResultHasBeenSet = true; m_conversationLevelResult = value; }
149 inline void SetConversationLevelResult(ConversationLevelResultDetail&& value) { m_conversationLevelResultHasBeenSet = true; m_conversationLevelResult = std::move(value); }
153 private:
154
156 bool m_inputHasBeenSet = false;
157
158 UserTurnOutputSpecification m_expectedOutput;
159 bool m_expectedOutputHasBeenSet = false;
160
161 UserTurnOutputSpecification m_actualOutput;
162 bool m_actualOutputHasBeenSet = false;
163
164 ExecutionErrorDetails m_errorDetails;
165 bool m_errorDetailsHasBeenSet = false;
166
167 TestResultMatchStatus m_endToEndResult;
168 bool m_endToEndResultHasBeenSet = false;
169
170 TestResultMatchStatus m_intentMatchResult;
171 bool m_intentMatchResultHasBeenSet = false;
172
173 TestResultMatchStatus m_slotMatchResult;
174 bool m_slotMatchResultHasBeenSet = false;
175
176 TestResultMatchStatus m_speechTranscriptionResult;
177 bool m_speechTranscriptionResultHasBeenSet = false;
178
179 ConversationLevelResultDetail m_conversationLevelResult;
180 bool m_conversationLevelResultHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace LexModelsV2
185} // namespace Aws
UserTurnResult & WithSpeechTranscriptionResult(const TestResultMatchStatus &value)
void SetExpectedOutput(UserTurnOutputSpecification &&value)
UserTurnResult & WithSlotMatchResult(TestResultMatchStatus &&value)
UserTurnResult & WithConversationLevelResult(ConversationLevelResultDetail &&value)
void SetInput(UserTurnInputSpecification &&value)
void SetConversationLevelResult(ConversationLevelResultDetail &&value)
const TestResultMatchStatus & GetIntentMatchResult() const
AWS_LEXMODELSV2_API UserTurnResult(Aws::Utils::Json::JsonView jsonValue)
void SetErrorDetails(ExecutionErrorDetails &&value)
UserTurnResult & WithSlotMatchResult(const TestResultMatchStatus &value)
UserTurnResult & WithErrorDetails(ExecutionErrorDetails &&value)
UserTurnResult & WithIntentMatchResult(const TestResultMatchStatus &value)
void SetIntentMatchResult(TestResultMatchStatus &&value)
UserTurnResult & WithExpectedOutput(UserTurnOutputSpecification &&value)
UserTurnResult & WithEndToEndResult(TestResultMatchStatus &&value)
void SetSpeechTranscriptionResult(TestResultMatchStatus &&value)
const TestResultMatchStatus & GetSpeechTranscriptionResult() const
void SetIntentMatchResult(const TestResultMatchStatus &value)
UserTurnResult & WithErrorDetails(const ExecutionErrorDetails &value)
UserTurnResult & WithExpectedOutput(const UserTurnOutputSpecification &value)
void SetActualOutput(const UserTurnOutputSpecification &value)
const ExecutionErrorDetails & GetErrorDetails() const
const UserTurnInputSpecification & GetInput() const
UserTurnResult & WithConversationLevelResult(const ConversationLevelResultDetail &value)
UserTurnResult & WithActualOutput(UserTurnOutputSpecification &&value)
void SetActualOutput(UserTurnOutputSpecification &&value)
void SetErrorDetails(const ExecutionErrorDetails &value)
void SetExpectedOutput(const UserTurnOutputSpecification &value)
UserTurnResult & WithInput(UserTurnInputSpecification &&value)
void SetSlotMatchResult(TestResultMatchStatus &&value)
const UserTurnOutputSpecification & GetExpectedOutput() const
UserTurnResult & WithSpeechTranscriptionResult(TestResultMatchStatus &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API UserTurnResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConversationLevelResultDetail & GetConversationLevelResult() const
const UserTurnOutputSpecification & GetActualOutput() const
UserTurnResult & WithActualOutput(const UserTurnOutputSpecification &value)
const TestResultMatchStatus & GetSlotMatchResult() const
UserTurnResult & WithIntentMatchResult(TestResultMatchStatus &&value)
void SetSpeechTranscriptionResult(const TestResultMatchStatus &value)
void SetInput(const UserTurnInputSpecification &value)
void SetConversationLevelResult(const ConversationLevelResultDetail &value)
const TestResultMatchStatus & GetEndToEndResult() const
void SetEndToEndResult(TestResultMatchStatus &&value)
void SetEndToEndResult(const TestResultMatchStatus &value)
UserTurnResult & WithInput(const UserTurnInputSpecification &value)
void SetSlotMatchResult(const TestResultMatchStatus &value)
UserTurnResult & WithEndToEndResult(const TestResultMatchStatus &value)
Aws::Utils::Json::JsonValue JsonValue