AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DefaultButtonConfiguration.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/ButtonAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_PINPOINT_API DefaultButtonConfiguration() = default;
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetBackgroundColor() const { return m_backgroundColor; }
46 inline bool BackgroundColorHasBeenSet() const { return m_backgroundColorHasBeenSet; }
47 template<typename BackgroundColorT = Aws::String>
48 void SetBackgroundColor(BackgroundColorT&& value) { m_backgroundColorHasBeenSet = true; m_backgroundColor = std::forward<BackgroundColorT>(value); }
49 template<typename BackgroundColorT = Aws::String>
50 DefaultButtonConfiguration& WithBackgroundColor(BackgroundColorT&& value) { SetBackgroundColor(std::forward<BackgroundColorT>(value)); return *this;}
52
54
57 inline int GetBorderRadius() const { return m_borderRadius; }
58 inline bool BorderRadiusHasBeenSet() const { return m_borderRadiusHasBeenSet; }
59 inline void SetBorderRadius(int value) { m_borderRadiusHasBeenSet = true; m_borderRadius = value; }
60 inline DefaultButtonConfiguration& WithBorderRadius(int value) { SetBorderRadius(value); return *this;}
62
64
67 inline ButtonAction GetButtonAction() const { return m_buttonAction; }
68 inline bool ButtonActionHasBeenSet() const { return m_buttonActionHasBeenSet; }
69 inline void SetButtonAction(ButtonAction value) { m_buttonActionHasBeenSet = true; m_buttonAction = value; }
72
74
77 inline const Aws::String& GetLink() const { return m_link; }
78 inline bool LinkHasBeenSet() const { return m_linkHasBeenSet; }
79 template<typename LinkT = Aws::String>
80 void SetLink(LinkT&& value) { m_linkHasBeenSet = true; m_link = std::forward<LinkT>(value); }
81 template<typename LinkT = Aws::String>
82 DefaultButtonConfiguration& WithLink(LinkT&& value) { SetLink(std::forward<LinkT>(value)); return *this;}
84
86
89 inline const Aws::String& GetText() const { return m_text; }
90 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
91 template<typename TextT = Aws::String>
92 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
93 template<typename TextT = Aws::String>
94 DefaultButtonConfiguration& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
96
98
101 inline const Aws::String& GetTextColor() const { return m_textColor; }
102 inline bool TextColorHasBeenSet() const { return m_textColorHasBeenSet; }
103 template<typename TextColorT = Aws::String>
104 void SetTextColor(TextColorT&& value) { m_textColorHasBeenSet = true; m_textColor = std::forward<TextColorT>(value); }
105 template<typename TextColorT = Aws::String>
106 DefaultButtonConfiguration& WithTextColor(TextColorT&& value) { SetTextColor(std::forward<TextColorT>(value)); return *this;}
108 private:
109
110 Aws::String m_backgroundColor;
111 bool m_backgroundColorHasBeenSet = false;
112
113 int m_borderRadius{0};
114 bool m_borderRadiusHasBeenSet = false;
115
116 ButtonAction m_buttonAction{ButtonAction::NOT_SET};
117 bool m_buttonActionHasBeenSet = false;
118
119 Aws::String m_link;
120 bool m_linkHasBeenSet = false;
121
122 Aws::String m_text;
123 bool m_textHasBeenSet = false;
124
125 Aws::String m_textColor;
126 bool m_textColorHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Pinpoint
131} // 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