AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
ConversationLevelTestResultItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/ConversationLevelIntentClassificationResultItem.h>
11#include <aws/lexv2-models/model/ConversationLevelSlotResolutionResultItem.h>
12#include <aws/lexv2-models/model/TestResultMatchStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2 {
24namespace Model {
25
33 public:
34 AWS_LEXMODELSV2_API ConversationLevelTestResultItem() = default;
37 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetConversationId() const { return m_conversationId; }
44 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
45 template <typename ConversationIdT = Aws::String>
46 void SetConversationId(ConversationIdT&& value) {
47 m_conversationIdHasBeenSet = true;
48 m_conversationId = std::forward<ConversationIdT>(value);
49 }
50 template <typename ConversationIdT = Aws::String>
52 SetConversationId(std::forward<ConversationIdT>(value));
53 return *this;
54 }
56
58
61 inline TestResultMatchStatus GetEndToEndResult() const { return m_endToEndResult; }
62 inline bool EndToEndResultHasBeenSet() const { return m_endToEndResultHasBeenSet; }
64 m_endToEndResultHasBeenSet = true;
65 m_endToEndResult = value;
66 }
68 SetEndToEndResult(value);
69 return *this;
70 }
72
74
78 inline TestResultMatchStatus GetSpeechTranscriptionResult() const { return m_speechTranscriptionResult; }
79 inline bool SpeechTranscriptionResultHasBeenSet() const { return m_speechTranscriptionResultHasBeenSet; }
81 m_speechTranscriptionResultHasBeenSet = true;
82 m_speechTranscriptionResult = value;
83 }
86 return *this;
87 }
89
91
95 return m_intentClassificationResults;
96 }
97 inline bool IntentClassificationResultsHasBeenSet() const { return m_intentClassificationResultsHasBeenSet; }
98 template <typename IntentClassificationResultsT = Aws::Vector<ConversationLevelIntentClassificationResultItem>>
99 void SetIntentClassificationResults(IntentClassificationResultsT&& value) {
100 m_intentClassificationResultsHasBeenSet = true;
101 m_intentClassificationResults = std::forward<IntentClassificationResultsT>(value);
102 }
103 template <typename IntentClassificationResultsT = Aws::Vector<ConversationLevelIntentClassificationResultItem>>
105 SetIntentClassificationResults(std::forward<IntentClassificationResultsT>(value));
106 return *this;
107 }
108 template <typename IntentClassificationResultsT = ConversationLevelIntentClassificationResultItem>
110 m_intentClassificationResultsHasBeenSet = true;
111 m_intentClassificationResults.emplace_back(std::forward<IntentClassificationResultsT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Vector<ConversationLevelSlotResolutionResultItem>& GetSlotResolutionResults() const { return m_slotResolutionResults; }
121 inline bool SlotResolutionResultsHasBeenSet() const { return m_slotResolutionResultsHasBeenSet; }
122 template <typename SlotResolutionResultsT = Aws::Vector<ConversationLevelSlotResolutionResultItem>>
123 void SetSlotResolutionResults(SlotResolutionResultsT&& value) {
124 m_slotResolutionResultsHasBeenSet = true;
125 m_slotResolutionResults = std::forward<SlotResolutionResultsT>(value);
126 }
127 template <typename SlotResolutionResultsT = Aws::Vector<ConversationLevelSlotResolutionResultItem>>
129 SetSlotResolutionResults(std::forward<SlotResolutionResultsT>(value));
130 return *this;
131 }
132 template <typename SlotResolutionResultsT = ConversationLevelSlotResolutionResultItem>
134 m_slotResolutionResultsHasBeenSet = true;
135 m_slotResolutionResults.emplace_back(std::forward<SlotResolutionResultsT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_conversationId;
141
143
144 TestResultMatchStatus m_speechTranscriptionResult{TestResultMatchStatus::NOT_SET};
145
147
149 bool m_conversationIdHasBeenSet = false;
150 bool m_endToEndResultHasBeenSet = false;
151 bool m_speechTranscriptionResultHasBeenSet = false;
152 bool m_intentClassificationResultsHasBeenSet = false;
153 bool m_slotResolutionResultsHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace LexModelsV2
158} // namespace Aws
ConversationLevelTestResultItem & AddSlotResolutionResults(SlotResolutionResultsT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ConversationLevelSlotResolutionResultItem > & GetSlotResolutionResults() const
ConversationLevelTestResultItem & AddIntentClassificationResults(IntentClassificationResultsT &&value)
AWS_LEXMODELSV2_API ConversationLevelTestResultItem(Aws::Utils::Json::JsonView jsonValue)
void SetIntentClassificationResults(IntentClassificationResultsT &&value)
const Aws::Vector< ConversationLevelIntentClassificationResultItem > & GetIntentClassificationResults() const
AWS_LEXMODELSV2_API ConversationLevelTestResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ConversationLevelTestResultItem & WithIntentClassificationResults(IntentClassificationResultsT &&value)
ConversationLevelTestResultItem & WithEndToEndResult(TestResultMatchStatus value)
ConversationLevelTestResultItem & WithSlotResolutionResults(SlotResolutionResultsT &&value)
ConversationLevelTestResultItem & WithSpeechTranscriptionResult(TestResultMatchStatus value)
AWS_LEXMODELSV2_API ConversationLevelTestResultItem()=default
ConversationLevelTestResultItem & WithConversationId(ConversationIdT &&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