AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InAppMessage.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/pinpoint/model/Layout.h>
11#include <aws/pinpoint/model/InAppMessageContent.h>
12#include <aws/core/utils/memory/stl/AWSString.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
37 {
38 public:
39 AWS_PINPOINT_API InAppMessage();
40 AWS_PINPOINT_API InAppMessage(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<InAppMessageContent>& GetContent() const{ return m_content; }
50 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
51 inline void SetContent(const Aws::Vector<InAppMessageContent>& value) { m_contentHasBeenSet = true; m_content = value; }
52 inline void SetContent(Aws::Vector<InAppMessageContent>&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
53 inline InAppMessage& WithContent(const Aws::Vector<InAppMessageContent>& value) { SetContent(value); return *this;}
54 inline InAppMessage& WithContent(Aws::Vector<InAppMessageContent>&& value) { SetContent(std::move(value)); return *this;}
55 inline InAppMessage& AddContent(const InAppMessageContent& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; }
56 inline InAppMessage& AddContent(InAppMessageContent&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; }
58
60
63 inline const Aws::Map<Aws::String, Aws::String>& GetCustomConfig() const{ return m_customConfig; }
64 inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; }
65 inline void SetCustomConfig(const Aws::Map<Aws::String, Aws::String>& value) { m_customConfigHasBeenSet = true; m_customConfig = value; }
66 inline void SetCustomConfig(Aws::Map<Aws::String, Aws::String>&& value) { m_customConfigHasBeenSet = true; m_customConfig = std::move(value); }
68 inline InAppMessage& WithCustomConfig(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomConfig(std::move(value)); return *this;}
69 inline InAppMessage& AddCustomConfig(const Aws::String& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; }
70 inline InAppMessage& AddCustomConfig(Aws::String&& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; }
71 inline InAppMessage& AddCustomConfig(const Aws::String& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; }
72 inline InAppMessage& AddCustomConfig(Aws::String&& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), std::move(value)); return *this; }
73 inline InAppMessage& AddCustomConfig(const char* key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; }
74 inline InAppMessage& AddCustomConfig(Aws::String&& key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; }
75 inline InAppMessage& AddCustomConfig(const char* key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; }
77
79
82 inline const Layout& GetLayout() const{ return m_layout; }
83 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
84 inline void SetLayout(const Layout& value) { m_layoutHasBeenSet = true; m_layout = value; }
85 inline void SetLayout(Layout&& value) { m_layoutHasBeenSet = true; m_layout = std::move(value); }
86 inline InAppMessage& WithLayout(const Layout& value) { SetLayout(value); return *this;}
87 inline InAppMessage& WithLayout(Layout&& value) { SetLayout(std::move(value)); return *this;}
89 private:
90
92 bool m_contentHasBeenSet = false;
93
95 bool m_customConfigHasBeenSet = false;
96
97 Layout m_layout;
98 bool m_layoutHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Pinpoint
103} // namespace Aws
InAppMessage & AddContent(InAppMessageContent &&value)
AWS_PINPOINT_API InAppMessage(Aws::Utils::Json::JsonView jsonValue)
InAppMessage & WithLayout(const Layout &value)
InAppMessage & WithContent(Aws::Vector< InAppMessageContent > &&value)
InAppMessage & AddCustomConfig(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetCustomConfig() const
AWS_PINPOINT_API InAppMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
InAppMessage & AddCustomConfig(const Aws::String &key, const Aws::String &value)
void SetLayout(const Layout &value)
InAppMessage & WithLayout(Layout &&value)
InAppMessage & WithContent(const Aws::Vector< InAppMessageContent > &value)
void SetContent(Aws::Vector< InAppMessageContent > &&value)
void SetCustomConfig(Aws::Map< Aws::String, Aws::String > &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
InAppMessage & AddContent(const InAppMessageContent &value)
InAppMessage & AddCustomConfig(Aws::String &&key, const Aws::String &value)
InAppMessage & AddCustomConfig(Aws::String &&key, const char *value)
InAppMessage & AddCustomConfig(Aws::String &&key, Aws::String &&value)
void SetContent(const Aws::Vector< InAppMessageContent > &value)
void SetCustomConfig(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< InAppMessageContent > & GetContent() const
InAppMessage & WithCustomConfig(const Aws::Map< Aws::String, Aws::String > &value)
InAppMessage & AddCustomConfig(const char *key, Aws::String &&value)
const Layout & GetLayout() const
InAppMessage & WithCustomConfig(Aws::Map< Aws::String, Aws::String > &&value)
InAppMessage & AddCustomConfig(const Aws::String &key, Aws::String &&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