AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConversationLevelTestResultItem.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/TestResultMatchStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-models/model/ConversationLevelIntentClassificationResultItem.h>
12#include <aws/lexv2-models/model/ConversationLevelSlotResolutionResultItem.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 ConversationLevelTestResultItem() = default;
42 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetConversationId() const { return m_conversationId; }
50 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
51 template<typename ConversationIdT = Aws::String>
52 void SetConversationId(ConversationIdT&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::forward<ConversationIdT>(value); }
53 template<typename ConversationIdT = Aws::String>
54 ConversationLevelTestResultItem& WithConversationId(ConversationIdT&& value) { SetConversationId(std::forward<ConversationIdT>(value)); return *this;}
56
58
61 inline TestResultMatchStatus GetEndToEndResult() const { return m_endToEndResult; }
62 inline bool EndToEndResultHasBeenSet() const { return m_endToEndResultHasBeenSet; }
63 inline void SetEndToEndResult(TestResultMatchStatus value) { m_endToEndResultHasBeenSet = true; m_endToEndResult = value; }
66
68
72 inline TestResultMatchStatus GetSpeechTranscriptionResult() const { return m_speechTranscriptionResult; }
73 inline bool SpeechTranscriptionResultHasBeenSet() const { return m_speechTranscriptionResultHasBeenSet; }
74 inline void SetSpeechTranscriptionResult(TestResultMatchStatus value) { m_speechTranscriptionResultHasBeenSet = true; m_speechTranscriptionResult = value; }
77
79
82 inline const Aws::Vector<ConversationLevelIntentClassificationResultItem>& GetIntentClassificationResults() const { return m_intentClassificationResults; }
83 inline bool IntentClassificationResultsHasBeenSet() const { return m_intentClassificationResultsHasBeenSet; }
84 template<typename IntentClassificationResultsT = Aws::Vector<ConversationLevelIntentClassificationResultItem>>
85 void SetIntentClassificationResults(IntentClassificationResultsT&& value) { m_intentClassificationResultsHasBeenSet = true; m_intentClassificationResults = std::forward<IntentClassificationResultsT>(value); }
86 template<typename IntentClassificationResultsT = Aws::Vector<ConversationLevelIntentClassificationResultItem>>
87 ConversationLevelTestResultItem& WithIntentClassificationResults(IntentClassificationResultsT&& value) { SetIntentClassificationResults(std::forward<IntentClassificationResultsT>(value)); return *this;}
88 template<typename IntentClassificationResultsT = ConversationLevelIntentClassificationResultItem>
89 ConversationLevelTestResultItem& AddIntentClassificationResults(IntentClassificationResultsT&& value) { m_intentClassificationResultsHasBeenSet = true; m_intentClassificationResults.emplace_back(std::forward<IntentClassificationResultsT>(value)); return *this; }
91
93
96 inline const Aws::Vector<ConversationLevelSlotResolutionResultItem>& GetSlotResolutionResults() const { return m_slotResolutionResults; }
97 inline bool SlotResolutionResultsHasBeenSet() const { return m_slotResolutionResultsHasBeenSet; }
98 template<typename SlotResolutionResultsT = Aws::Vector<ConversationLevelSlotResolutionResultItem>>
99 void SetSlotResolutionResults(SlotResolutionResultsT&& value) { m_slotResolutionResultsHasBeenSet = true; m_slotResolutionResults = std::forward<SlotResolutionResultsT>(value); }
100 template<typename SlotResolutionResultsT = Aws::Vector<ConversationLevelSlotResolutionResultItem>>
101 ConversationLevelTestResultItem& WithSlotResolutionResults(SlotResolutionResultsT&& value) { SetSlotResolutionResults(std::forward<SlotResolutionResultsT>(value)); return *this;}
102 template<typename SlotResolutionResultsT = ConversationLevelSlotResolutionResultItem>
103 ConversationLevelTestResultItem& AddSlotResolutionResults(SlotResolutionResultsT&& value) { m_slotResolutionResultsHasBeenSet = true; m_slotResolutionResults.emplace_back(std::forward<SlotResolutionResultsT>(value)); return *this; }
105 private:
106
107 Aws::String m_conversationId;
108 bool m_conversationIdHasBeenSet = false;
109
111 bool m_endToEndResultHasBeenSet = false;
112
113 TestResultMatchStatus m_speechTranscriptionResult{TestResultMatchStatus::NOT_SET};
114 bool m_speechTranscriptionResultHasBeenSet = false;
115
117 bool m_intentClassificationResultsHasBeenSet = false;
118
120 bool m_slotResolutionResultsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace LexModelsV2
125} // 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