AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DefaultButtonConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/ButtonAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
29 public:
30 AWS_PINPOINT_API DefaultButtonConfiguration() = default;
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBackgroundColor() const { return m_backgroundColor; }
40 inline bool BackgroundColorHasBeenSet() const { return m_backgroundColorHasBeenSet; }
41 template <typename BackgroundColorT = Aws::String>
42 void SetBackgroundColor(BackgroundColorT&& value) {
43 m_backgroundColorHasBeenSet = true;
44 m_backgroundColor = std::forward<BackgroundColorT>(value);
45 }
46 template <typename BackgroundColorT = Aws::String>
48 SetBackgroundColor(std::forward<BackgroundColorT>(value));
49 return *this;
50 }
52
54
57 inline int GetBorderRadius() const { return m_borderRadius; }
58 inline bool BorderRadiusHasBeenSet() const { return m_borderRadiusHasBeenSet; }
59 inline void SetBorderRadius(int value) {
60 m_borderRadiusHasBeenSet = true;
61 m_borderRadius = value;
62 }
64 SetBorderRadius(value);
65 return *this;
66 }
68
70
73 inline ButtonAction GetButtonAction() const { return m_buttonAction; }
74 inline bool ButtonActionHasBeenSet() const { return m_buttonActionHasBeenSet; }
75 inline void SetButtonAction(ButtonAction value) {
76 m_buttonActionHasBeenSet = true;
77 m_buttonAction = value;
78 }
80 SetButtonAction(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetLink() const { return m_link; }
90 inline bool LinkHasBeenSet() const { return m_linkHasBeenSet; }
91 template <typename LinkT = Aws::String>
92 void SetLink(LinkT&& value) {
93 m_linkHasBeenSet = true;
94 m_link = std::forward<LinkT>(value);
95 }
96 template <typename LinkT = Aws::String>
98 SetLink(std::forward<LinkT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetText() const { return m_text; }
108 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
109 template <typename TextT = Aws::String>
110 void SetText(TextT&& value) {
111 m_textHasBeenSet = true;
112 m_text = std::forward<TextT>(value);
113 }
114 template <typename TextT = Aws::String>
116 SetText(std::forward<TextT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetTextColor() const { return m_textColor; }
126 inline bool TextColorHasBeenSet() const { return m_textColorHasBeenSet; }
127 template <typename TextColorT = Aws::String>
128 void SetTextColor(TextColorT&& value) {
129 m_textColorHasBeenSet = true;
130 m_textColor = std::forward<TextColorT>(value);
131 }
132 template <typename TextColorT = Aws::String>
134 SetTextColor(std::forward<TextColorT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_backgroundColor;
140
141 int m_borderRadius{0};
142
143 ButtonAction m_buttonAction{ButtonAction::NOT_SET};
144
145 Aws::String m_link;
146
147 Aws::String m_text;
148
149 Aws::String m_textColor;
150 bool m_backgroundColorHasBeenSet = false;
151 bool m_borderRadiusHasBeenSet = false;
152 bool m_buttonActionHasBeenSet = false;
153 bool m_linkHasBeenSet = false;
154 bool m_textHasBeenSet = false;
155 bool m_textColorHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace Pinpoint
160} // namespace Aws
DefaultButtonConfiguration & WithText(TextT &&value)
AWS_PINPOINT_API DefaultButtonConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultButtonConfiguration & WithButtonAction(ButtonAction value)
DefaultButtonConfiguration & WithLink(LinkT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultButtonConfiguration & WithTextColor(TextColorT &&value)
DefaultButtonConfiguration & WithBorderRadius(int value)
AWS_PINPOINT_API DefaultButtonConfiguration()=default
DefaultButtonConfiguration & WithBackgroundColor(BackgroundColorT &&value)
AWS_PINPOINT_API DefaultButtonConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue