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

An object containing the intent that the bot mapped the utterance * to.

See Also:

AWS * API Reference

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

The intent that the bot mapped the utterance to.

*/ inline const Aws::String& GetLastUsedIntent() const{ return m_lastUsedIntent; } /** *

The intent that the bot mapped the utterance to.

*/ inline bool LastUsedIntentHasBeenSet() const { return m_lastUsedIntentHasBeenSet; } /** *

The intent that the bot mapped the utterance to.

*/ inline void SetLastUsedIntent(const Aws::String& value) { m_lastUsedIntentHasBeenSet = true; m_lastUsedIntent = value; } /** *

The intent that the bot mapped the utterance to.

*/ inline void SetLastUsedIntent(Aws::String&& value) { m_lastUsedIntentHasBeenSet = true; m_lastUsedIntent = std::move(value); } /** *

The intent that the bot mapped the utterance to.

*/ inline void SetLastUsedIntent(const char* value) { m_lastUsedIntentHasBeenSet = true; m_lastUsedIntent.assign(value); } /** *

The intent that the bot mapped the utterance to.

*/ inline AnalyticsUtteranceAttributeResult& WithLastUsedIntent(const Aws::String& value) { SetLastUsedIntent(value); return *this;} /** *

The intent that the bot mapped the utterance to.

*/ inline AnalyticsUtteranceAttributeResult& WithLastUsedIntent(Aws::String&& value) { SetLastUsedIntent(std::move(value)); return *this;} /** *

The intent that the bot mapped the utterance to.

*/ inline AnalyticsUtteranceAttributeResult& WithLastUsedIntent(const char* value) { SetLastUsedIntent(value); return *this;} private: Aws::String m_lastUsedIntent; bool m_lastUsedIntentHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws