/** * 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 that specifies the last used intent at the time of the utterance as * an attribute to return.

See Also:

AWS * API Reference

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

An attribute to return. The only available attribute is the intent that the * bot mapped the utterance to.

*/ inline const AnalyticsUtteranceAttributeName& GetName() const{ return m_name; } /** *

An attribute to return. The only available attribute is the intent that the * bot mapped the utterance to.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

An attribute to return. The only available attribute is the intent that the * bot mapped the utterance to.

*/ inline void SetName(const AnalyticsUtteranceAttributeName& value) { m_nameHasBeenSet = true; m_name = value; } /** *

An attribute to return. The only available attribute is the intent that the * bot mapped the utterance to.

*/ inline void SetName(AnalyticsUtteranceAttributeName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

An attribute to return. The only available attribute is the intent that the * bot mapped the utterance to.

*/ inline AnalyticsUtteranceAttribute& WithName(const AnalyticsUtteranceAttributeName& value) { SetName(value); return *this;} /** *

An attribute to return. The only available attribute is the intent that the * bot mapped the utterance to.

*/ inline AnalyticsUtteranceAttribute& WithName(AnalyticsUtteranceAttributeName&& value) { SetName(std::move(value)); return *this;} private: AnalyticsUtteranceAttributeName m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws