AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
InAppMessageContent.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/InAppMessageBodyConfig.h>
10#include <aws/pinpoint/model/InAppMessageButton.h>
11#include <aws/pinpoint/model/InAppMessageHeaderConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint {
23namespace Model {
24
31 public:
32 AWS_PINPOINT_API InAppMessageContent() = default;
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetBackgroundColor() const { return m_backgroundColor; }
42 inline bool BackgroundColorHasBeenSet() const { return m_backgroundColorHasBeenSet; }
43 template <typename BackgroundColorT = Aws::String>
44 void SetBackgroundColor(BackgroundColorT&& value) {
45 m_backgroundColorHasBeenSet = true;
46 m_backgroundColor = std::forward<BackgroundColorT>(value);
47 }
48 template <typename BackgroundColorT = Aws::String>
49 InAppMessageContent& WithBackgroundColor(BackgroundColorT&& value) {
50 SetBackgroundColor(std::forward<BackgroundColorT>(value));
51 return *this;
52 }
54
56
59 inline const InAppMessageBodyConfig& GetBodyConfig() const { return m_bodyConfig; }
60 inline bool BodyConfigHasBeenSet() const { return m_bodyConfigHasBeenSet; }
61 template <typename BodyConfigT = InAppMessageBodyConfig>
62 void SetBodyConfig(BodyConfigT&& value) {
63 m_bodyConfigHasBeenSet = true;
64 m_bodyConfig = std::forward<BodyConfigT>(value);
65 }
66 template <typename BodyConfigT = InAppMessageBodyConfig>
67 InAppMessageContent& WithBodyConfig(BodyConfigT&& value) {
68 SetBodyConfig(std::forward<BodyConfigT>(value));
69 return *this;
70 }
72
74
77 inline const InAppMessageHeaderConfig& GetHeaderConfig() const { return m_headerConfig; }
78 inline bool HeaderConfigHasBeenSet() const { return m_headerConfigHasBeenSet; }
79 template <typename HeaderConfigT = InAppMessageHeaderConfig>
80 void SetHeaderConfig(HeaderConfigT&& value) {
81 m_headerConfigHasBeenSet = true;
82 m_headerConfig = std::forward<HeaderConfigT>(value);
83 }
84 template <typename HeaderConfigT = InAppMessageHeaderConfig>
85 InAppMessageContent& WithHeaderConfig(HeaderConfigT&& value) {
86 SetHeaderConfig(std::forward<HeaderConfigT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
96 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
97 template <typename ImageUrlT = Aws::String>
98 void SetImageUrl(ImageUrlT&& value) {
99 m_imageUrlHasBeenSet = true;
100 m_imageUrl = std::forward<ImageUrlT>(value);
101 }
102 template <typename ImageUrlT = Aws::String>
103 InAppMessageContent& WithImageUrl(ImageUrlT&& value) {
104 SetImageUrl(std::forward<ImageUrlT>(value));
105 return *this;
106 }
108
110
113 inline const InAppMessageButton& GetPrimaryBtn() const { return m_primaryBtn; }
114 inline bool PrimaryBtnHasBeenSet() const { return m_primaryBtnHasBeenSet; }
115 template <typename PrimaryBtnT = InAppMessageButton>
116 void SetPrimaryBtn(PrimaryBtnT&& value) {
117 m_primaryBtnHasBeenSet = true;
118 m_primaryBtn = std::forward<PrimaryBtnT>(value);
119 }
120 template <typename PrimaryBtnT = InAppMessageButton>
121 InAppMessageContent& WithPrimaryBtn(PrimaryBtnT&& value) {
122 SetPrimaryBtn(std::forward<PrimaryBtnT>(value));
123 return *this;
124 }
126
128
131 inline const InAppMessageButton& GetSecondaryBtn() const { return m_secondaryBtn; }
132 inline bool SecondaryBtnHasBeenSet() const { return m_secondaryBtnHasBeenSet; }
133 template <typename SecondaryBtnT = InAppMessageButton>
134 void SetSecondaryBtn(SecondaryBtnT&& value) {
135 m_secondaryBtnHasBeenSet = true;
136 m_secondaryBtn = std::forward<SecondaryBtnT>(value);
137 }
138 template <typename SecondaryBtnT = InAppMessageButton>
139 InAppMessageContent& WithSecondaryBtn(SecondaryBtnT&& value) {
140 SetSecondaryBtn(std::forward<SecondaryBtnT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_backgroundColor;
146
147 InAppMessageBodyConfig m_bodyConfig;
148
149 InAppMessageHeaderConfig m_headerConfig;
150
151 Aws::String m_imageUrl;
152
153 InAppMessageButton m_primaryBtn;
154
155 InAppMessageButton m_secondaryBtn;
156 bool m_backgroundColorHasBeenSet = false;
157 bool m_bodyConfigHasBeenSet = false;
158 bool m_headerConfigHasBeenSet = false;
159 bool m_imageUrlHasBeenSet = false;
160 bool m_primaryBtnHasBeenSet = false;
161 bool m_secondaryBtnHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Pinpoint
166} // namespace Aws
const Aws::String & GetBackgroundColor() const
const InAppMessageHeaderConfig & GetHeaderConfig() const
AWS_PINPOINT_API InAppMessageContent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBackgroundColor(BackgroundColorT &&value)
InAppMessageContent & WithPrimaryBtn(PrimaryBtnT &&value)
InAppMessageContent & WithBodyConfig(BodyConfigT &&value)
InAppMessageContent & WithImageUrl(ImageUrlT &&value)
InAppMessageContent & WithBackgroundColor(BackgroundColorT &&value)
AWS_PINPOINT_API InAppMessageContent(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const InAppMessageButton & GetPrimaryBtn() const
InAppMessageContent & WithSecondaryBtn(SecondaryBtnT &&value)
const InAppMessageButton & GetSecondaryBtn() const
AWS_PINPOINT_API InAppMessageContent()=default
const InAppMessageBodyConfig & GetBodyConfig() const
InAppMessageContent & WithHeaderConfig(HeaderConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue