AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
51 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
52 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
53 inline CampaignInAppMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;}
54 inline CampaignInAppMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
55 inline CampaignInAppMessage& WithBody(const char* value) { SetBody(value); return *this;}
57
59
62 inline const Aws::Vector<InAppMessageContent>& GetContent() const{ return m_content; }
63 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
64 inline void SetContent(const Aws::Vector<InAppMessageContent>& value) { m_contentHasBeenSet = true; m_content = value; }
65 inline void SetContent(Aws::Vector<InAppMessageContent>&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
66 inline CampaignInAppMessage& WithContent(const Aws::Vector<InAppMessageContent>& value) { SetContent(value); return *this;}
67 inline CampaignInAppMessage& WithContent(Aws::Vector<InAppMessageContent>&& value) { SetContent(std::move(value)); return *this;}
68 inline CampaignInAppMessage& AddContent(const InAppMessageContent& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; }
69 inline CampaignInAppMessage& AddContent(InAppMessageContent&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetCustomConfig() const{ return m_customConfig; }
77 inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; }
78 inline void SetCustomConfig(const Aws::Map<Aws::String, Aws::String>& value) { m_customConfigHasBeenSet = true; m_customConfig = value; }
79 inline void SetCustomConfig(Aws::Map<Aws::String, Aws::String>&& value) { m_customConfigHasBeenSet = true; m_customConfig = std::move(value); }
82 inline CampaignInAppMessage& AddCustomConfig(const Aws::String& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; }
83 inline CampaignInAppMessage& AddCustomConfig(Aws::String&& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; }
84 inline CampaignInAppMessage& AddCustomConfig(const Aws::String& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; }
85 inline CampaignInAppMessage& AddCustomConfig(Aws::String&& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), std::move(value)); return *this; }
86 inline CampaignInAppMessage& AddCustomConfig(const char* key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; }
87 inline CampaignInAppMessage& AddCustomConfig(Aws::String&& key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; }
88 inline CampaignInAppMessage& AddCustomConfig(const char* key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; }
90
92
95 inline const Layout& GetLayout() const{ return m_layout; }
96 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
97 inline void SetLayout(const Layout& value) { m_layoutHasBeenSet = true; m_layout = value; }
98 inline void SetLayout(Layout&& value) { m_layoutHasBeenSet = true; m_layout = std::move(value); }
99 inline CampaignInAppMessage& WithLayout(const Layout& value) { SetLayout(value); return *this;}
100 inline CampaignInAppMessage& WithLayout(Layout&& value) { SetLayout(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_body;
105 bool m_bodyHasBeenSet = false;
106
108 bool m_contentHasBeenSet = false;
109
111 bool m_customConfigHasBeenSet = false;
112
113 Layout m_layout;
114 bool m_layoutHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Pinpoint
119} // namespace Aws
CampaignInAppMessage & WithLayout(Layout &&value)
CampaignInAppMessage & WithLayout(const Layout &value)
CampaignInAppMessage & WithBody(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
CampaignInAppMessage & WithCustomConfig(Aws::Map< Aws::String, Aws::String > &&value)
void SetCustomConfig(const Aws::Map< Aws::String, Aws::String > &value)
CampaignInAppMessage & AddCustomConfig(Aws::String &&key, const char *value)
AWS_PINPOINT_API CampaignInAppMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
CampaignInAppMessage & WithContent(const Aws::Vector< InAppMessageContent > &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomConfig() const
CampaignInAppMessage & AddCustomConfig(Aws::String &&key, Aws::String &&value)
CampaignInAppMessage & AddCustomConfig(const Aws::String &key, Aws::String &&value)
CampaignInAppMessage & AddCustomConfig(const Aws::String &key, const Aws::String &value)
CampaignInAppMessage & WithBody(Aws::String &&value)
const Aws::Vector< InAppMessageContent > & GetContent() const
AWS_PINPOINT_API CampaignInAppMessage(Aws::Utils::Json::JsonView jsonValue)
CampaignInAppMessage & AddCustomConfig(const char *key, Aws::String &&value)
void SetContent(const Aws::Vector< InAppMessageContent > &value)
void SetCustomConfig(Aws::Map< Aws::String, Aws::String > &&value)
CampaignInAppMessage & AddContent(InAppMessageContent &&value)
CampaignInAppMessage & WithBody(const char *value)
void SetContent(Aws::Vector< InAppMessageContent > &&value)
CampaignInAppMessage & AddCustomConfig(const char *key, const char *value)
CampaignInAppMessage & AddCustomConfig(Aws::String &&key, const Aws::String &value)
CampaignInAppMessage & WithCustomConfig(const Aws::Map< Aws::String, Aws::String > &value)
CampaignInAppMessage & WithContent(Aws::Vector< InAppMessageContent > &&value)
CampaignInAppMessage & AddContent(const InAppMessageContent &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