AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
OverallTestResultItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9#include <aws/lexv2-models/model/TestResultMatchStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelsV2 {
21namespace Model {
22
30 public:
31 AWS_LEXMODELSV2_API OverallTestResultItem() = default;
32 AWS_LEXMODELSV2_API OverallTestResultItem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetMultiTurnConversation() const { return m_multiTurnConversation; }
41 inline bool MultiTurnConversationHasBeenSet() const { return m_multiTurnConversationHasBeenSet; }
42 inline void SetMultiTurnConversation(bool value) {
43 m_multiTurnConversationHasBeenSet = true;
44 m_multiTurnConversation = value;
45 }
48 return *this;
49 }
51
53
56 inline int GetTotalResultCount() const { return m_totalResultCount; }
57 inline bool TotalResultCountHasBeenSet() const { return m_totalResultCountHasBeenSet; }
58 inline void SetTotalResultCount(int value) {
59 m_totalResultCountHasBeenSet = true;
60 m_totalResultCount = value;
61 }
64 return *this;
65 }
67
69
73 return m_speechTranscriptionResultCounts;
74 }
75 inline bool SpeechTranscriptionResultCountsHasBeenSet() const { return m_speechTranscriptionResultCountsHasBeenSet; }
76 template <typename SpeechTranscriptionResultCountsT = Aws::Map<TestResultMatchStatus, int>>
77 void SetSpeechTranscriptionResultCounts(SpeechTranscriptionResultCountsT&& value) {
78 m_speechTranscriptionResultCountsHasBeenSet = true;
79 m_speechTranscriptionResultCounts = std::forward<SpeechTranscriptionResultCountsT>(value);
80 }
81 template <typename SpeechTranscriptionResultCountsT = Aws::Map<TestResultMatchStatus, int>>
82 OverallTestResultItem& WithSpeechTranscriptionResultCounts(SpeechTranscriptionResultCountsT&& value) {
83 SetSpeechTranscriptionResultCounts(std::forward<SpeechTranscriptionResultCountsT>(value));
84 return *this;
85 }
87 m_speechTranscriptionResultCountsHasBeenSet = true;
88 m_speechTranscriptionResultCounts.emplace(key, value);
89 return *this;
90 }
92
94
97 inline const Aws::Map<TestResultMatchStatus, int>& GetEndToEndResultCounts() const { return m_endToEndResultCounts; }
98 inline bool EndToEndResultCountsHasBeenSet() const { return m_endToEndResultCountsHasBeenSet; }
99 template <typename EndToEndResultCountsT = Aws::Map<TestResultMatchStatus, int>>
100 void SetEndToEndResultCounts(EndToEndResultCountsT&& value) {
101 m_endToEndResultCountsHasBeenSet = true;
102 m_endToEndResultCounts = std::forward<EndToEndResultCountsT>(value);
103 }
104 template <typename EndToEndResultCountsT = Aws::Map<TestResultMatchStatus, int>>
105 OverallTestResultItem& WithEndToEndResultCounts(EndToEndResultCountsT&& value) {
106 SetEndToEndResultCounts(std::forward<EndToEndResultCountsT>(value));
107 return *this;
108 }
110 m_endToEndResultCountsHasBeenSet = true;
111 m_endToEndResultCounts.emplace(key, value);
112 return *this;
113 }
115 private:
116 bool m_multiTurnConversation{false};
117
118 int m_totalResultCount{0};
119
120 Aws::Map<TestResultMatchStatus, int> m_speechTranscriptionResultCounts;
121
122 Aws::Map<TestResultMatchStatus, int> m_endToEndResultCounts;
123 bool m_multiTurnConversationHasBeenSet = false;
124 bool m_totalResultCountHasBeenSet = false;
125 bool m_speechTranscriptionResultCountsHasBeenSet = false;
126 bool m_endToEndResultCountsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace LexModelsV2
131} // namespace Aws
OverallTestResultItem & WithTotalResultCount(int value)
AWS_LEXMODELSV2_API OverallTestResultItem()=default
OverallTestResultItem & WithSpeechTranscriptionResultCounts(SpeechTranscriptionResultCountsT &&value)
OverallTestResultItem & WithEndToEndResultCounts(EndToEndResultCountsT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSpeechTranscriptionResultCounts(SpeechTranscriptionResultCountsT &&value)
OverallTestResultItem & WithMultiTurnConversation(bool value)
AWS_LEXMODELSV2_API OverallTestResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< TestResultMatchStatus, int > & GetEndToEndResultCounts() const
OverallTestResultItem & AddEndToEndResultCounts(TestResultMatchStatus key, int value)
OverallTestResultItem & AddSpeechTranscriptionResultCounts(TestResultMatchStatus key, int value)
void SetEndToEndResultCounts(EndToEndResultCountsT &&value)
AWS_LEXMODELSV2_API OverallTestResultItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< TestResultMatchStatus, int > & GetSpeechTranscriptionResultCounts() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue