AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SlotResolutionTestResultItemCounts.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 SlotResolutionTestResultItemCounts() = 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 SlotResolutionTestResultItemCounts& 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>& GetSlotMatchResultCounts() const { return m_slotMatchResultCounts; }
74 inline bool SlotMatchResultCountsHasBeenSet() const { return m_slotMatchResultCountsHasBeenSet; }
75 template<typename SlotMatchResultCountsT = Aws::Map<TestResultMatchStatus, int>>
76 void SetSlotMatchResultCounts(SlotMatchResultCountsT&& value) { m_slotMatchResultCountsHasBeenSet = true; m_slotMatchResultCounts = std::forward<SlotMatchResultCountsT>(value); }
77 template<typename SlotMatchResultCountsT = Aws::Map<TestResultMatchStatus, int>>
78 SlotResolutionTestResultItemCounts& WithSlotMatchResultCounts(SlotMatchResultCountsT&& value) { SetSlotMatchResultCounts(std::forward<SlotMatchResultCountsT>(value)); return *this;}
80 m_slotMatchResultCountsHasBeenSet = true; m_slotMatchResultCounts.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_slotMatchResultCounts;
92 bool m_slotMatchResultCountsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace LexModelsV2
97} // namespace Aws
const Aws::Map< TestResultMatchStatus, int > & GetSlotMatchResultCounts() const
SlotResolutionTestResultItemCounts & AddSpeechTranscriptionResultCounts(TestResultMatchStatus key, int value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API SlotResolutionTestResultItemCounts & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSpeechTranscriptionResultCounts(SpeechTranscriptionResultCountsT &&value)
AWS_LEXMODELSV2_API SlotResolutionTestResultItemCounts()=default
SlotResolutionTestResultItemCounts & AddSlotMatchResultCounts(TestResultMatchStatus key, int value)
const Aws::Map< TestResultMatchStatus, int > & GetSpeechTranscriptionResultCounts() const
SlotResolutionTestResultItemCounts & WithSlotMatchResultCounts(SlotMatchResultCountsT &&value)
AWS_LEXMODELSV2_API SlotResolutionTestResultItemCounts(Aws::Utils::Json::JsonView jsonValue)
SlotResolutionTestResultItemCounts & WithSpeechTranscriptionResultCounts(SpeechTranscriptionResultCountsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue