/** * 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 name of an intent that was invoked.

See * Also:

AWS * API Reference

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

The name of an intent that was invoked.

*/ inline const Aws::String& GetIntentName() const{ return m_intentName; } /** *

The name of an intent that was invoked.

*/ inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; } /** *

The name of an intent that was invoked.

*/ inline void SetIntentName(const Aws::String& value) { m_intentNameHasBeenSet = true; m_intentName = value; } /** *

The name of an intent that was invoked.

*/ inline void SetIntentName(Aws::String&& value) { m_intentNameHasBeenSet = true; m_intentName = std::move(value); } /** *

The name of an intent that was invoked.

*/ inline void SetIntentName(const char* value) { m_intentNameHasBeenSet = true; m_intentName.assign(value); } /** *

The name of an intent that was invoked.

*/ inline InvokedIntentSample& WithIntentName(const Aws::String& value) { SetIntentName(value); return *this;} /** *

The name of an intent that was invoked.

*/ inline InvokedIntentSample& WithIntentName(Aws::String&& value) { SetIntentName(std::move(value)); return *this;} /** *

The name of an intent that was invoked.

*/ inline InvokedIntentSample& WithIntentName(const char* value) { SetIntentName(value); return *this;} private: Aws::String m_intentName; bool m_intentNameHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws