AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename BackgroundColorT = Aws::String>
50 void SetBackgroundColor(BackgroundColorT&& value) { m_backgroundColorHasBeenSet = true; m_backgroundColor = std::forward<BackgroundColorT>(value); }
51 template<typename BackgroundColorT = Aws::String>
52 InAppMessageContent& WithBackgroundColor(BackgroundColorT&& value) { SetBackgroundColor(std::forward<BackgroundColorT>(value)); return *this;}
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) { m_bodyConfigHasBeenSet = true; m_bodyConfig = std::forward<BodyConfigT>(value); }
63 template<typename BodyConfigT = InAppMessageBodyConfig>
64 InAppMessageContent& WithBodyConfig(BodyConfigT&& value) { SetBodyConfig(std::forward<BodyConfigT>(value)); return *this;}
66
68
71 inline const InAppMessageHeaderConfig& GetHeaderConfig() const { return m_headerConfig; }
72 inline bool HeaderConfigHasBeenSet() const { return m_headerConfigHasBeenSet; }
73 template<typename HeaderConfigT = InAppMessageHeaderConfig>
74 void SetHeaderConfig(HeaderConfigT&& value) { m_headerConfigHasBeenSet = true; m_headerConfig = std::forward<HeaderConfigT>(value); }
75 template<typename HeaderConfigT = InAppMessageHeaderConfig>
76 InAppMessageContent& WithHeaderConfig(HeaderConfigT&& value) { SetHeaderConfig(std::forward<HeaderConfigT>(value)); return *this;}
78
80
83 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
84 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
85 template<typename ImageUrlT = Aws::String>
86 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::forward<ImageUrlT>(value); }
87 template<typename ImageUrlT = Aws::String>
88 InAppMessageContent& WithImageUrl(ImageUrlT&& value) { SetImageUrl(std::forward<ImageUrlT>(value)); return *this;}
90
92
95 inline const InAppMessageButton& GetPrimaryBtn() const { return m_primaryBtn; }
96 inline bool PrimaryBtnHasBeenSet() const { return m_primaryBtnHasBeenSet; }
97 template<typename PrimaryBtnT = InAppMessageButton>
98 void SetPrimaryBtn(PrimaryBtnT&& value) { m_primaryBtnHasBeenSet = true; m_primaryBtn = std::forward<PrimaryBtnT>(value); }
99 template<typename PrimaryBtnT = InAppMessageButton>
100 InAppMessageContent& WithPrimaryBtn(PrimaryBtnT&& value) { SetPrimaryBtn(std::forward<PrimaryBtnT>(value)); return *this;}
102
104
107 inline const InAppMessageButton& GetSecondaryBtn() const { return m_secondaryBtn; }
108 inline bool SecondaryBtnHasBeenSet() const { return m_secondaryBtnHasBeenSet; }
109 template<typename SecondaryBtnT = InAppMessageButton>
110 void SetSecondaryBtn(SecondaryBtnT&& value) { m_secondaryBtnHasBeenSet = true; m_secondaryBtn = std::forward<SecondaryBtnT>(value); }
111 template<typename SecondaryBtnT = InAppMessageButton>
112 InAppMessageContent& WithSecondaryBtn(SecondaryBtnT&& value) { SetSecondaryBtn(std::forward<SecondaryBtnT>(value)); return *this;}
114 private:
115
116 Aws::String m_backgroundColor;
117 bool m_backgroundColorHasBeenSet = false;
118
119 InAppMessageBodyConfig m_bodyConfig;
120 bool m_bodyConfigHasBeenSet = false;
121
122 InAppMessageHeaderConfig m_headerConfig;
123 bool m_headerConfigHasBeenSet = false;
124
125 Aws::String m_imageUrl;
126 bool m_imageUrlHasBeenSet = false;
127
128 InAppMessageButton m_primaryBtn;
129 bool m_primaryBtnHasBeenSet = false;
130
131 InAppMessageButton m_secondaryBtn;
132 bool m_secondaryBtnHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Pinpoint
137} // 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