AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InAppMessageContent.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/InAppMessageBodyConfig.h>
10#include <aws/pinpoint/model/InAppMessageHeaderConfig.h>
11#include <aws/pinpoint/model/InAppMessageButton.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_PINPOINT_API InAppMessageContent();
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetBackgroundColor() const{ return m_backgroundColor; }
48 inline bool BackgroundColorHasBeenSet() const { return m_backgroundColorHasBeenSet; }
49 inline void SetBackgroundColor(const Aws::String& value) { m_backgroundColorHasBeenSet = true; m_backgroundColor = value; }
50 inline void SetBackgroundColor(Aws::String&& value) { m_backgroundColorHasBeenSet = true; m_backgroundColor = std::move(value); }
51 inline void SetBackgroundColor(const char* value) { m_backgroundColorHasBeenSet = true; m_backgroundColor.assign(value); }
52 inline InAppMessageContent& WithBackgroundColor(const Aws::String& value) { SetBackgroundColor(value); return *this;}
53 inline InAppMessageContent& WithBackgroundColor(Aws::String&& value) { SetBackgroundColor(std::move(value)); return *this;}
54 inline InAppMessageContent& WithBackgroundColor(const char* value) { SetBackgroundColor(value); return *this;}
56
58
61 inline const InAppMessageBodyConfig& GetBodyConfig() const{ return m_bodyConfig; }
62 inline bool BodyConfigHasBeenSet() const { return m_bodyConfigHasBeenSet; }
63 inline void SetBodyConfig(const InAppMessageBodyConfig& value) { m_bodyConfigHasBeenSet = true; m_bodyConfig = value; }
64 inline void SetBodyConfig(InAppMessageBodyConfig&& value) { m_bodyConfigHasBeenSet = true; m_bodyConfig = std::move(value); }
65 inline InAppMessageContent& WithBodyConfig(const InAppMessageBodyConfig& value) { SetBodyConfig(value); return *this;}
66 inline InAppMessageContent& WithBodyConfig(InAppMessageBodyConfig&& value) { SetBodyConfig(std::move(value)); return *this;}
68
70
73 inline const InAppMessageHeaderConfig& GetHeaderConfig() const{ return m_headerConfig; }
74 inline bool HeaderConfigHasBeenSet() const { return m_headerConfigHasBeenSet; }
75 inline void SetHeaderConfig(const InAppMessageHeaderConfig& value) { m_headerConfigHasBeenSet = true; m_headerConfig = value; }
76 inline void SetHeaderConfig(InAppMessageHeaderConfig&& value) { m_headerConfigHasBeenSet = true; m_headerConfig = std::move(value); }
78 inline InAppMessageContent& WithHeaderConfig(InAppMessageHeaderConfig&& value) { SetHeaderConfig(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetImageUrl() const{ return m_imageUrl; }
86 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
87 inline void SetImageUrl(const Aws::String& value) { m_imageUrlHasBeenSet = true; m_imageUrl = value; }
88 inline void SetImageUrl(Aws::String&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::move(value); }
89 inline void SetImageUrl(const char* value) { m_imageUrlHasBeenSet = true; m_imageUrl.assign(value); }
90 inline InAppMessageContent& WithImageUrl(const Aws::String& value) { SetImageUrl(value); return *this;}
91 inline InAppMessageContent& WithImageUrl(Aws::String&& value) { SetImageUrl(std::move(value)); return *this;}
92 inline InAppMessageContent& WithImageUrl(const char* value) { SetImageUrl(value); return *this;}
94
96
99 inline const InAppMessageButton& GetPrimaryBtn() const{ return m_primaryBtn; }
100 inline bool PrimaryBtnHasBeenSet() const { return m_primaryBtnHasBeenSet; }
101 inline void SetPrimaryBtn(const InAppMessageButton& value) { m_primaryBtnHasBeenSet = true; m_primaryBtn = value; }
102 inline void SetPrimaryBtn(InAppMessageButton&& value) { m_primaryBtnHasBeenSet = true; m_primaryBtn = std::move(value); }
103 inline InAppMessageContent& WithPrimaryBtn(const InAppMessageButton& value) { SetPrimaryBtn(value); return *this;}
104 inline InAppMessageContent& WithPrimaryBtn(InAppMessageButton&& value) { SetPrimaryBtn(std::move(value)); return *this;}
106
108
111 inline const InAppMessageButton& GetSecondaryBtn() const{ return m_secondaryBtn; }
112 inline bool SecondaryBtnHasBeenSet() const { return m_secondaryBtnHasBeenSet; }
113 inline void SetSecondaryBtn(const InAppMessageButton& value) { m_secondaryBtnHasBeenSet = true; m_secondaryBtn = value; }
114 inline void SetSecondaryBtn(InAppMessageButton&& value) { m_secondaryBtnHasBeenSet = true; m_secondaryBtn = std::move(value); }
115 inline InAppMessageContent& WithSecondaryBtn(const InAppMessageButton& value) { SetSecondaryBtn(value); return *this;}
116 inline InAppMessageContent& WithSecondaryBtn(InAppMessageButton&& value) { SetSecondaryBtn(std::move(value)); return *this;}
118 private:
119
120 Aws::String m_backgroundColor;
121 bool m_backgroundColorHasBeenSet = false;
122
123 InAppMessageBodyConfig m_bodyConfig;
124 bool m_bodyConfigHasBeenSet = false;
125
126 InAppMessageHeaderConfig m_headerConfig;
127 bool m_headerConfigHasBeenSet = false;
128
129 Aws::String m_imageUrl;
130 bool m_imageUrlHasBeenSet = false;
131
132 InAppMessageButton m_primaryBtn;
133 bool m_primaryBtnHasBeenSet = false;
134
135 InAppMessageButton m_secondaryBtn;
136 bool m_secondaryBtnHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Pinpoint
141} // namespace Aws
void SetBodyConfig(InAppMessageBodyConfig &&value)
void SetSecondaryBtn(InAppMessageButton &&value)
const Aws::String & GetBackgroundColor() const
InAppMessageContent & WithImageUrl(const char *value)
const InAppMessageHeaderConfig & GetHeaderConfig() const
InAppMessageContent & WithBodyConfig(InAppMessageBodyConfig &&value)
AWS_PINPOINT_API InAppMessageContent & operator=(Aws::Utils::Json::JsonView jsonValue)
InAppMessageContent & WithBodyConfig(const InAppMessageBodyConfig &value)
void SetHeaderConfig(const InAppMessageHeaderConfig &value)
InAppMessageContent & WithSecondaryBtn(const InAppMessageButton &value)
void SetSecondaryBtn(const InAppMessageButton &value)
InAppMessageContent & WithSecondaryBtn(InAppMessageButton &&value)
InAppMessageContent & WithImageUrl(Aws::String &&value)
InAppMessageContent & WithHeaderConfig(InAppMessageHeaderConfig &&value)
void SetPrimaryBtn(const InAppMessageButton &value)
InAppMessageContent & WithPrimaryBtn(InAppMessageButton &&value)
InAppMessageContent & WithPrimaryBtn(const InAppMessageButton &value)
InAppMessageContent & WithBackgroundColor(const char *value)
InAppMessageContent & WithBackgroundColor(Aws::String &&value)
void SetHeaderConfig(InAppMessageHeaderConfig &&value)
AWS_PINPOINT_API InAppMessageContent(Aws::Utils::Json::JsonView jsonValue)
InAppMessageContent & WithBackgroundColor(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const InAppMessageButton & GetPrimaryBtn() const
void SetBodyConfig(const InAppMessageBodyConfig &value)
const InAppMessageButton & GetSecondaryBtn() const
void SetBackgroundColor(const Aws::String &value)
const InAppMessageBodyConfig & GetBodyConfig() const
InAppMessageContent & WithHeaderConfig(const InAppMessageHeaderConfig &value)
void SetImageUrl(const Aws::String &value)
InAppMessageContent & WithImageUrl(const Aws::String &value)
void SetPrimaryBtn(InAppMessageButton &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue