AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CampaignInAppMessage.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/pinpoint/model/Layout.h>
12#include <aws/pinpoint/model/InAppMessageContent.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pinpoint
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_PINPOINT_API CampaignInAppMessage() = default;
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetBody() const { return m_body; }
49 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
50 template<typename BodyT = Aws::String>
51 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
52 template<typename BodyT = Aws::String>
53 CampaignInAppMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
55
57
60 inline const Aws::Vector<InAppMessageContent>& GetContent() const { return m_content; }
61 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
62 template<typename ContentT = Aws::Vector<InAppMessageContent>>
63 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
64 template<typename ContentT = Aws::Vector<InAppMessageContent>>
65 CampaignInAppMessage& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
66 template<typename ContentT = InAppMessageContent>
67 CampaignInAppMessage& AddContent(ContentT&& value) { m_contentHasBeenSet = true; m_content.emplace_back(std::forward<ContentT>(value)); return *this; }
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetCustomConfig() const { return m_customConfig; }
75 inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; }
76 template<typename CustomConfigT = Aws::Map<Aws::String, Aws::String>>
77 void SetCustomConfig(CustomConfigT&& value) { m_customConfigHasBeenSet = true; m_customConfig = std::forward<CustomConfigT>(value); }
78 template<typename CustomConfigT = Aws::Map<Aws::String, Aws::String>>
79 CampaignInAppMessage& WithCustomConfig(CustomConfigT&& value) { SetCustomConfig(std::forward<CustomConfigT>(value)); return *this;}
80 template<typename CustomConfigKeyT = Aws::String, typename CustomConfigValueT = Aws::String>
81 CampaignInAppMessage& AddCustomConfig(CustomConfigKeyT&& key, CustomConfigValueT&& value) {
82 m_customConfigHasBeenSet = true; m_customConfig.emplace(std::forward<CustomConfigKeyT>(key), std::forward<CustomConfigValueT>(value)); return *this;
83 }
85
87
90 inline Layout GetLayout() const { return m_layout; }
91 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
92 inline void SetLayout(Layout value) { m_layoutHasBeenSet = true; m_layout = value; }
93 inline CampaignInAppMessage& WithLayout(Layout value) { SetLayout(value); return *this;}
95 private:
96
97 Aws::String m_body;
98 bool m_bodyHasBeenSet = false;
99
101 bool m_contentHasBeenSet = false;
102
104 bool m_customConfigHasBeenSet = false;
105
106 Layout m_layout{Layout::NOT_SET};
107 bool m_layoutHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Pinpoint
112} // namespace Aws
CampaignInAppMessage & WithLayout(Layout value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
CampaignInAppMessage & WithCustomConfig(CustomConfigT &&value)
AWS_PINPOINT_API CampaignInAppMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetCustomConfig() const
const Aws::Vector< InAppMessageContent > & GetContent() const
AWS_PINPOINT_API CampaignInAppMessage(Aws::Utils::Json::JsonView jsonValue)
CampaignInAppMessage & AddCustomConfig(CustomConfigKeyT &&key, CustomConfigValueT &&value)
CampaignInAppMessage & AddContent(ContentT &&value)
CampaignInAppMessage & WithBody(BodyT &&value)
AWS_PINPOINT_API CampaignInAppMessage()=default
CampaignInAppMessage & WithContent(ContentT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue