/** * 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 success and failure rate of slot resolution in the * results of a test execution.

See Also:

AWS * API Reference

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

The name of the slot.

*/ inline const Aws::String& GetSlotName() const{ return m_slotName; } /** *

The name of the slot.

*/ inline bool SlotNameHasBeenSet() const { return m_slotNameHasBeenSet; } /** *

The name of the slot.

*/ inline void SetSlotName(const Aws::String& value) { m_slotNameHasBeenSet = true; m_slotName = value; } /** *

The name of the slot.

*/ inline void SetSlotName(Aws::String&& value) { m_slotNameHasBeenSet = true; m_slotName = std::move(value); } /** *

The name of the slot.

*/ inline void SetSlotName(const char* value) { m_slotNameHasBeenSet = true; m_slotName.assign(value); } /** *

The name of the slot.

*/ inline SlotResolutionTestResultItem& WithSlotName(const Aws::String& value) { SetSlotName(value); return *this;} /** *

The name of the slot.

*/ inline SlotResolutionTestResultItem& WithSlotName(Aws::String&& value) { SetSlotName(std::move(value)); return *this;} /** *

The name of the slot.

*/ inline SlotResolutionTestResultItem& WithSlotName(const char* value) { SetSlotName(value); return *this;} /** *

A result for slot resolution in the results of a test execution.

*/ inline const SlotResolutionTestResultItemCounts& GetResultCounts() const{ return m_resultCounts; } /** *

A result for slot resolution in the results of a test execution.

*/ inline bool ResultCountsHasBeenSet() const { return m_resultCountsHasBeenSet; } /** *

A result for slot resolution in the results of a test execution.

*/ inline void SetResultCounts(const SlotResolutionTestResultItemCounts& value) { m_resultCountsHasBeenSet = true; m_resultCounts = value; } /** *

A result for slot resolution in the results of a test execution.

*/ inline void SetResultCounts(SlotResolutionTestResultItemCounts&& value) { m_resultCountsHasBeenSet = true; m_resultCounts = std::move(value); } /** *

A result for slot resolution in the results of a test execution.

*/ inline SlotResolutionTestResultItem& WithResultCounts(const SlotResolutionTestResultItemCounts& value) { SetResultCounts(value); return *this;} /** *

A result for slot resolution in the results of a test execution.

*/ inline SlotResolutionTestResultItem& WithResultCounts(SlotResolutionTestResultItemCounts&& value) { SetResultCounts(std::move(value)); return *this;} private: Aws::String m_slotName; bool m_slotNameHasBeenSet = false; SlotResolutionTestResultItemCounts m_resultCounts; bool m_resultCountsHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws