AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IntentClassificationTestResultItemCounts.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/lexv2-models/model/TestResultMatchStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API IntentClassificationTestResultItemCounts() = default;
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetTotalResultCount() const { return m_totalResultCount; }
47 inline bool TotalResultCountHasBeenSet() const { return m_totalResultCountHasBeenSet; }
48 inline void SetTotalResultCount(int value) { m_totalResultCountHasBeenSet = true; m_totalResultCount = value; }
51
53
57 inline const Aws::Map<TestResultMatchStatus, int>& GetSpeechTranscriptionResultCounts() const { return m_speechTranscriptionResultCounts; }
58 inline bool SpeechTranscriptionResultCountsHasBeenSet() const { return m_speechTranscriptionResultCountsHasBeenSet; }
59 template<typename SpeechTranscriptionResultCountsT = Aws::Map<TestResultMatchStatus, int>>
60 void SetSpeechTranscriptionResultCounts(SpeechTranscriptionResultCountsT&& value) { m_speechTranscriptionResultCountsHasBeenSet = true; m_speechTranscriptionResultCounts = std::forward<SpeechTranscriptionResultCountsT>(value); }
61 template<typename SpeechTranscriptionResultCountsT = Aws::Map<TestResultMatchStatus, int>>
62 IntentClassificationTestResultItemCounts& WithSpeechTranscriptionResultCounts(SpeechTranscriptionResultCountsT&& value) { SetSpeechTranscriptionResultCounts(std::forward<SpeechTranscriptionResultCountsT>(value)); return *this;}
64 m_speechTranscriptionResultCountsHasBeenSet = true; m_speechTranscriptionResultCounts.emplace(key, value); return *this;
65 }
67
69
73 inline const Aws::Map<TestResultMatchStatus, int>& GetIntentMatchResultCounts() const { return m_intentMatchResultCounts; }
74 inline bool IntentMatchResultCountsHasBeenSet() const { return m_intentMatchResultCountsHasBeenSet; }
75 template<typename IntentMatchResultCountsT = Aws::Map<TestResultMatchStatus, int>>
76 void SetIntentMatchResultCounts(IntentMatchResultCountsT&& value) { m_intentMatchResultCountsHasBeenSet = true; m_intentMatchResultCounts = std::forward<IntentMatchResultCountsT>(value); }
77 template<typename IntentMatchResultCountsT = Aws::Map<TestResultMatchStatus, int>>
78 IntentClassificationTestResultItemCounts& WithIntentMatchResultCounts(IntentMatchResultCountsT&& value) { SetIntentMatchResultCounts(std::forward<IntentMatchResultCountsT>(value)); return *this;}
80 m_intentMatchResultCountsHasBeenSet = true; m_intentMatchResultCounts.emplace(key, value); return *this;
81 }
83 private:
84
85 int m_totalResultCount{0};
86 bool m_totalResultCountHasBeenSet = false;
87
88 Aws::Map<TestResultMatchStatus, int> m_speechTranscriptionResultCounts;
89 bool m_speechTranscriptionResultCountsHasBeenSet = false;
90
91 Aws::Map<TestResultMatchStatus, int> m_intentMatchResultCounts;
92 bool m_intentMatchResultCountsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace LexModelsV2
97} // namespace Aws
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
IntentClassificationTestResultItemCounts & WithSpeechTranscriptionResultCounts(SpeechTranscriptionResultCountsT &&value)
IntentClassificationTestResultItemCounts & WithIntentMatchResultCounts(IntentMatchResultCountsT &&value)
const Aws::Map< TestResultMatchStatus, int > & GetIntentMatchResultCounts() const
AWS_LEXMODELSV2_API IntentClassificationTestResultItemCounts & operator=(Aws::Utils::Json::JsonView jsonValue)
IntentClassificationTestResultItemCounts & AddIntentMatchResultCounts(TestResultMatchStatus key, int value)
const Aws::Map< TestResultMatchStatus, int > & GetSpeechTranscriptionResultCounts() const
IntentClassificationTestResultItemCounts & AddSpeechTranscriptionResultCounts(TestResultMatchStatus key, int value)
AWS_LEXMODELSV2_API IntentClassificationTestResultItemCounts(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue