/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents an option to be shown on the client platform (Facebook, Slack,
* etc.)See Also:
AWS
* API Reference
Text that is visible to the user on the button.
*/ inline const Aws::String& GetText() const{ return m_text; } /** *Text that is visible to the user on the button.
*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *Text that is visible to the user on the button.
*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *Text that is visible to the user on the button.
*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *Text that is visible to the user on the button.
*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *Text that is visible to the user on the button.
*/ inline Button& WithText(const Aws::String& value) { SetText(value); return *this;} /** *Text that is visible to the user on the button.
*/ inline Button& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *Text that is visible to the user on the button.
*/ inline Button& WithText(const char* value) { SetText(value); return *this;} /** *The value sent to Amazon Lex when a user chooses the button. For example, * consider button text "NYC." When the user chooses the button, the value sent can * be "New York City."
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The value sent to Amazon Lex when a user chooses the button. For example, * consider button text "NYC." When the user chooses the button, the value sent can * be "New York City."
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value sent to Amazon Lex when a user chooses the button. For example, * consider button text "NYC." When the user chooses the button, the value sent can * be "New York City."
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The value sent to Amazon Lex when a user chooses the button. For example, * consider button text "NYC." When the user chooses the button, the value sent can * be "New York City."
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The value sent to Amazon Lex when a user chooses the button. For example, * consider button text "NYC." When the user chooses the button, the value sent can * be "New York City."
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The value sent to Amazon Lex when a user chooses the button. For example, * consider button text "NYC." When the user chooses the button, the value sent can * be "New York City."
*/ inline Button& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The value sent to Amazon Lex when a user chooses the button. For example, * consider button text "NYC." When the user chooses the button, the value sent can * be "New York City."
*/ inline Button& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The value sent to Amazon Lex when a user chooses the button. For example, * consider button text "NYC." When the user chooses the button, the value sent can * be "New York City."
*/ 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 LexRuntimeService } // namespace Aws