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/lexv2-models/LexModelsV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelsV2 {
20namespace Model {
21
28class Button {
29 public:
30 AWS_LEXMODELSV2_API Button() = default;
31 AWS_LEXMODELSV2_API Button(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXMODELSV2_API Button& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetText() const { return m_text; }
41 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
42 template <typename TextT = Aws::String>
43 void SetText(TextT&& value) {
44 m_textHasBeenSet = true;
45 m_text = std::forward<TextT>(value);
46 }
47 template <typename TextT = Aws::String>
48 Button& WithText(TextT&& value) {
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
53
55
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 LexModelsV2
82} // namespace Aws
void SetValue(ValueT &&value)
Definition Button.h:62
const Aws::String & GetText() const
Definition Button.h:40
AWS_LEXMODELSV2_API Button(Aws::Utils::Json::JsonView jsonValue)
Button & WithText(TextT &&value)
Definition Button.h:48
Button & WithValue(ValueT &&value)
Definition Button.h:67
const Aws::String & GetValue() const
Definition Button.h:59
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API Button()=default
void SetText(TextT &&value)
Definition Button.h:43
AWS_LEXMODELSV2_API Button & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue