AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Button.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lex/LexRuntimeService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexRuntimeService {
20namespace Model {
21
28class Button {
29 public:
30 AWS_LEXRUNTIMESERVICE_API Button() = default;
31 AWS_LEXRUNTIMESERVICE_API Button(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXRUNTIMESERVICE_API Button& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetText() const { return m_text; }
40 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
41 template <typename TextT = Aws::String>
42 void SetText(TextT&& value) {
43 m_textHasBeenSet = true;
44 m_text = std::forward<TextT>(value);
45 }
46 template <typename TextT = Aws::String>
47 Button& WithText(TextT&& value) {
48 SetText(std::forward<TextT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = Aws::String>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = std::forward<ValueT>(value);
65 }
66 template <typename ValueT = Aws::String>
67 Button& WithValue(ValueT&& value) {
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_text;
74
75 Aws::String m_value;
76 bool m_textHasBeenSet = false;
77 bool m_valueHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace LexRuntimeService
82} // namespace Aws
AWS_LEXRUNTIMESERVICE_API Button & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
Definition Button.h:39
AWS_LEXRUNTIMESERVICE_API Button()=default
Button & WithText(TextT &&value)
Definition Button.h:47
AWS_LEXRUNTIMESERVICE_API Button(Aws::Utils::Json::JsonView jsonValue)
void SetValue(ValueT &&value)
Definition Button.h:62
Button & WithValue(ValueT &&value)
Definition Button.h:67
void SetText(TextT &&value)
Definition Button.h:42
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetValue() const
Definition Button.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue