AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBackgroundColor(const Aws::String& value) { m_backgroundColorHasBeenSet = true; m_backgroundColor = value; }
48 inline void SetBackgroundColor(Aws::String&& value) { m_backgroundColorHasBeenSet = true; m_backgroundColor = std::move(value); }
49 inline void SetBackgroundColor(const char* value) { m_backgroundColorHasBeenSet = true; m_backgroundColor.assign(value); }
51 inline DefaultButtonConfiguration& WithBackgroundColor(Aws::String&& value) { SetBackgroundColor(std::move(value)); return *this;}
52 inline DefaultButtonConfiguration& WithBackgroundColor(const char* value) { SetBackgroundColor(value); return *this;}
54
56
59 inline int GetBorderRadius() const{ return m_borderRadius; }
60 inline bool BorderRadiusHasBeenSet() const { return m_borderRadiusHasBeenSet; }
61 inline void SetBorderRadius(int value) { m_borderRadiusHasBeenSet = true; m_borderRadius = value; }
62 inline DefaultButtonConfiguration& WithBorderRadius(int value) { SetBorderRadius(value); return *this;}
64
66
69 inline const ButtonAction& GetButtonAction() const{ return m_buttonAction; }
70 inline bool ButtonActionHasBeenSet() const { return m_buttonActionHasBeenSet; }
71 inline void SetButtonAction(const ButtonAction& value) { m_buttonActionHasBeenSet = true; m_buttonAction = value; }
72 inline void SetButtonAction(ButtonAction&& value) { m_buttonActionHasBeenSet = true; m_buttonAction = std::move(value); }
73 inline DefaultButtonConfiguration& WithButtonAction(const ButtonAction& value) { SetButtonAction(value); return *this;}
74 inline DefaultButtonConfiguration& WithButtonAction(ButtonAction&& value) { SetButtonAction(std::move(value)); return *this;}
76
78
81 inline const Aws::String& GetLink() const{ return m_link; }
82 inline bool LinkHasBeenSet() const { return m_linkHasBeenSet; }
83 inline void SetLink(const Aws::String& value) { m_linkHasBeenSet = true; m_link = value; }
84 inline void SetLink(Aws::String&& value) { m_linkHasBeenSet = true; m_link = std::move(value); }
85 inline void SetLink(const char* value) { m_linkHasBeenSet = true; m_link.assign(value); }
86 inline DefaultButtonConfiguration& WithLink(const Aws::String& value) { SetLink(value); return *this;}
87 inline DefaultButtonConfiguration& WithLink(Aws::String&& value) { SetLink(std::move(value)); return *this;}
88 inline DefaultButtonConfiguration& WithLink(const char* value) { SetLink(value); return *this;}
90
92
95 inline const Aws::String& GetText() const{ return m_text; }
96 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
97 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
98 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
99 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
100 inline DefaultButtonConfiguration& WithText(const Aws::String& value) { SetText(value); return *this;}
101 inline DefaultButtonConfiguration& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
102 inline DefaultButtonConfiguration& WithText(const char* value) { SetText(value); return *this;}
104
106
109 inline const Aws::String& GetTextColor() const{ return m_textColor; }
110 inline bool TextColorHasBeenSet() const { return m_textColorHasBeenSet; }
111 inline void SetTextColor(const Aws::String& value) { m_textColorHasBeenSet = true; m_textColor = value; }
112 inline void SetTextColor(Aws::String&& value) { m_textColorHasBeenSet = true; m_textColor = std::move(value); }
113 inline void SetTextColor(const char* value) { m_textColorHasBeenSet = true; m_textColor.assign(value); }
114 inline DefaultButtonConfiguration& WithTextColor(const Aws::String& value) { SetTextColor(value); return *this;}
115 inline DefaultButtonConfiguration& WithTextColor(Aws::String&& value) { SetTextColor(std::move(value)); return *this;}
116 inline DefaultButtonConfiguration& WithTextColor(const char* value) { SetTextColor(value); return *this;}
118 private:
119
120 Aws::String m_backgroundColor;
121 bool m_backgroundColorHasBeenSet = false;
122
123 int m_borderRadius;
124 bool m_borderRadiusHasBeenSet = false;
125
126 ButtonAction m_buttonAction;
127 bool m_buttonActionHasBeenSet = false;
128
129 Aws::String m_link;
130 bool m_linkHasBeenSet = false;
131
132 Aws::String m_text;
133 bool m_textHasBeenSet = false;
134
135 Aws::String m_textColor;
136 bool m_textColorHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Pinpoint
141} // namespace Aws
DefaultButtonConfiguration & WithBackgroundColor(Aws::String &&value)
DefaultButtonConfiguration & WithTextColor(const Aws::String &value)
DefaultButtonConfiguration & WithLink(const char *value)
AWS_PINPOINT_API DefaultButtonConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultButtonConfiguration & WithButtonAction(ButtonAction &&value)
DefaultButtonConfiguration & WithText(Aws::String &&value)
DefaultButtonConfiguration & WithButtonAction(const ButtonAction &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultButtonConfiguration & WithBackgroundColor(const Aws::String &value)
DefaultButtonConfiguration & WithLink(Aws::String &&value)
DefaultButtonConfiguration & WithLink(const Aws::String &value)
DefaultButtonConfiguration & WithTextColor(const char *value)
DefaultButtonConfiguration & WithText(const char *value)
DefaultButtonConfiguration & WithBorderRadius(int value)
DefaultButtonConfiguration & WithTextColor(Aws::String &&value)
DefaultButtonConfiguration & WithBackgroundColor(const char *value)
DefaultButtonConfiguration & WithText(const Aws::String &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