/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a button to use on a response card used to gather slot values from
* a user.See Also:
AWS
* API Reference
The text that appears on the button. Use this to tell the user what value is * returned when they choose this button.
*/ inline const Aws::String& GetText() const{ return m_text; } /** *The text that appears on the button. Use this to tell the user what value is * returned when they choose this button.
*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *The text that appears on the button. Use this to tell the user what value is * returned when they choose this button.
*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *The text that appears on the button. Use this to tell the user what value is * returned when they choose this button.
*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *The text that appears on the button. Use this to tell the user what value is * returned when they choose this button.
*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *The text that appears on the button. Use this to tell the user what value is * returned when they choose this button.
*/ inline Button& WithText(const Aws::String& value) { SetText(value); return *this;} /** *The text that appears on the button. Use this to tell the user what value is * returned when they choose this button.
*/ inline Button& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *The text that appears on the button. Use this to tell the user what value is * returned when they choose this button.
*/ inline Button& WithText(const char* value) { SetText(value); return *this;} /** *The value returned to Amazon Lex when the user chooses this button. This must * be one of the slot values configured for the slot.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The value returned to Amazon Lex when the user chooses this button. This must * be one of the slot values configured for the slot.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value returned to Amazon Lex when the user chooses this button. This must * be one of the slot values configured for the slot.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The value returned to Amazon Lex when the user chooses this button. This must * be one of the slot values configured for the slot.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The value returned to Amazon Lex when the user chooses this button. This must * be one of the slot values configured for the slot.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The value returned to Amazon Lex when the user chooses this button. This must * be one of the slot values configured for the slot.
*/ inline Button& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The value returned to Amazon Lex when the user chooses this button. This must * be one of the slot values configured for the slot.
*/ inline Button& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The value returned to Amazon Lex when the user chooses this button. This must * be one of the slot values configured for the slot.
*/ 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 LexModelsV2 } // namespace Aws