/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { /** *

Information about the counts for a slot resolution in the results of a test * execution.

See Also:

AWS * API Reference

*/ class SlotResolutionTestResultItemCounts { public: AWS_LEXMODELSV2_API SlotResolutionTestResultItemCounts(); AWS_LEXMODELSV2_API SlotResolutionTestResultItemCounts(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API SlotResolutionTestResultItemCounts& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The total number of results.

*/ inline int GetTotalResultCount() const{ return m_totalResultCount; } /** *

The total number of results.

*/ inline bool TotalResultCountHasBeenSet() const { return m_totalResultCountHasBeenSet; } /** *

The total number of results.

*/ inline void SetTotalResultCount(int value) { m_totalResultCountHasBeenSet = true; m_totalResultCount = value; } /** *

The total number of results.

*/ inline SlotResolutionTestResultItemCounts& WithTotalResultCount(int value) { SetTotalResultCount(value); return *this;} /** *

The number of matched, mismatched and execution error results for speech * transcription for the slot.

*/ inline const Aws::Map& GetSpeechTranscriptionResultCounts() const{ return m_speechTranscriptionResultCounts; } /** *

The number of matched, mismatched and execution error results for speech * transcription for the slot.

*/ inline bool SpeechTranscriptionResultCountsHasBeenSet() const { return m_speechTranscriptionResultCountsHasBeenSet; } /** *

The number of matched, mismatched and execution error results for speech * transcription for the slot.

*/ inline void SetSpeechTranscriptionResultCounts(const Aws::Map& value) { m_speechTranscriptionResultCountsHasBeenSet = true; m_speechTranscriptionResultCounts = value; } /** *

The number of matched, mismatched and execution error results for speech * transcription for the slot.

*/ inline void SetSpeechTranscriptionResultCounts(Aws::Map&& value) { m_speechTranscriptionResultCountsHasBeenSet = true; m_speechTranscriptionResultCounts = std::move(value); } /** *

The number of matched, mismatched and execution error results for speech * transcription for the slot.

*/ inline SlotResolutionTestResultItemCounts& WithSpeechTranscriptionResultCounts(const Aws::Map& value) { SetSpeechTranscriptionResultCounts(value); return *this;} /** *

The number of matched, mismatched and execution error results for speech * transcription for the slot.

*/ inline SlotResolutionTestResultItemCounts& WithSpeechTranscriptionResultCounts(Aws::Map&& value) { SetSpeechTranscriptionResultCounts(std::move(value)); return *this;} /** *

The number of matched, mismatched and execution error results for speech * transcription for the slot.

*/ inline SlotResolutionTestResultItemCounts& AddSpeechTranscriptionResultCounts(const TestResultMatchStatus& key, int value) { m_speechTranscriptionResultCountsHasBeenSet = true; m_speechTranscriptionResultCounts.emplace(key, value); return *this; } /** *

The number of matched, mismatched and execution error results for speech * transcription for the slot.

*/ inline SlotResolutionTestResultItemCounts& AddSpeechTranscriptionResultCounts(TestResultMatchStatus&& key, int value) { m_speechTranscriptionResultCountsHasBeenSet = true; m_speechTranscriptionResultCounts.emplace(std::move(key), value); return *this; } /** *

The number of matched and mismatched results for slot resolution for the * slot.

*/ inline const Aws::Map& GetSlotMatchResultCounts() const{ return m_slotMatchResultCounts; } /** *

The number of matched and mismatched results for slot resolution for the * slot.

*/ inline bool SlotMatchResultCountsHasBeenSet() const { return m_slotMatchResultCountsHasBeenSet; } /** *

The number of matched and mismatched results for slot resolution for the * slot.

*/ inline void SetSlotMatchResultCounts(const Aws::Map& value) { m_slotMatchResultCountsHasBeenSet = true; m_slotMatchResultCounts = value; } /** *

The number of matched and mismatched results for slot resolution for the * slot.

*/ inline void SetSlotMatchResultCounts(Aws::Map&& value) { m_slotMatchResultCountsHasBeenSet = true; m_slotMatchResultCounts = std::move(value); } /** *

The number of matched and mismatched results for slot resolution for the * slot.

*/ inline SlotResolutionTestResultItemCounts& WithSlotMatchResultCounts(const Aws::Map& value) { SetSlotMatchResultCounts(value); return *this;} /** *

The number of matched and mismatched results for slot resolution for the * slot.

*/ inline SlotResolutionTestResultItemCounts& WithSlotMatchResultCounts(Aws::Map&& value) { SetSlotMatchResultCounts(std::move(value)); return *this;} /** *

The number of matched and mismatched results for slot resolution for the * slot.

*/ inline SlotResolutionTestResultItemCounts& AddSlotMatchResultCounts(const TestResultMatchStatus& key, int value) { m_slotMatchResultCountsHasBeenSet = true; m_slotMatchResultCounts.emplace(key, value); return *this; } /** *

The number of matched and mismatched results for slot resolution for the * slot.

*/ inline SlotResolutionTestResultItemCounts& AddSlotMatchResultCounts(TestResultMatchStatus&& key, int value) { m_slotMatchResultCountsHasBeenSet = true; m_slotMatchResultCounts.emplace(std::move(key), value); return *this; } private: int m_totalResultCount; bool m_totalResultCountHasBeenSet = false; Aws::Map m_speechTranscriptionResultCounts; bool m_speechTranscriptionResultCountsHasBeenSet = false; Aws::Map m_slotMatchResultCounts; bool m_slotMatchResultCountsHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws