/** * 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 LexRuntimeV2 { namespace Model { /** *

A button that appears on a response card show to the user.

See * Also:

AWS * API Reference

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

The text that is displayed on the button.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The text that is displayed on the button.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The text that is displayed on the button.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The text that is displayed on the button.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The text that is displayed on the button.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The text that is displayed on the button.

*/ inline Button& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The text that is displayed on the button.

*/ inline Button& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The text that is displayed on the button.

*/ inline Button& WithText(const char* value) { SetText(value); return *this;} /** *

The value returned to Amazon Lex V2 when a user chooses the button.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value returned to Amazon Lex V2 when a user chooses the button.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value returned to Amazon Lex V2 when a user chooses the button.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value returned to Amazon Lex V2 when a user chooses the button.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value returned to Amazon Lex V2 when a user chooses the button.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value returned to Amazon Lex V2 when a user chooses the button.

*/ inline Button& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value returned to Amazon Lex V2 when a user chooses the button.

*/ inline Button& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value returned to Amazon Lex V2 when a user chooses the button.

*/ inline Button& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_text; bool m_textHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws