AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InAppTemplateRequest.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/core/utils/memory/stl/AWSString.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 InAppTemplateRequest();
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<InAppMessageContent>& GetContent() const{ return m_content; }
51 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
52 inline void SetContent(const Aws::Vector<InAppMessageContent>& value) { m_contentHasBeenSet = true; m_content = value; }
53 inline void SetContent(Aws::Vector<InAppMessageContent>&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
54 inline InAppTemplateRequest& WithContent(const Aws::Vector<InAppMessageContent>& value) { SetContent(value); return *this;}
55 inline InAppTemplateRequest& WithContent(Aws::Vector<InAppMessageContent>&& value) { SetContent(std::move(value)); return *this;}
56 inline InAppTemplateRequest& AddContent(const InAppMessageContent& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; }
57 inline InAppTemplateRequest& AddContent(InAppMessageContent&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; }
59
61
64 inline const Aws::Map<Aws::String, Aws::String>& GetCustomConfig() const{ return m_customConfig; }
65 inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; }
66 inline void SetCustomConfig(const Aws::Map<Aws::String, Aws::String>& value) { m_customConfigHasBeenSet = true; m_customConfig = value; }
67 inline void SetCustomConfig(Aws::Map<Aws::String, Aws::String>&& value) { m_customConfigHasBeenSet = true; m_customConfig = std::move(value); }
70 inline InAppTemplateRequest& AddCustomConfig(const Aws::String& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; }
71 inline InAppTemplateRequest& AddCustomConfig(Aws::String&& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; }
72 inline InAppTemplateRequest& AddCustomConfig(const Aws::String& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; }
73 inline InAppTemplateRequest& AddCustomConfig(Aws::String&& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), std::move(value)); return *this; }
74 inline InAppTemplateRequest& AddCustomConfig(const char* key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; }
75 inline InAppTemplateRequest& AddCustomConfig(Aws::String&& key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; }
76 inline InAppTemplateRequest& AddCustomConfig(const char* key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; }
78
80
83 inline const Layout& GetLayout() const{ return m_layout; }
84 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
85 inline void SetLayout(const Layout& value) { m_layoutHasBeenSet = true; m_layout = value; }
86 inline void SetLayout(Layout&& value) { m_layoutHasBeenSet = true; m_layout = std::move(value); }
87 inline InAppTemplateRequest& WithLayout(const Layout& value) { SetLayout(value); return *this;}
88 inline InAppTemplateRequest& WithLayout(Layout&& value) { SetLayout(std::move(value)); return *this;}
90
92
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
109 inline InAppTemplateRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
110 inline InAppTemplateRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
111 inline InAppTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
112 inline InAppTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
113 inline InAppTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
114 inline InAppTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
115 inline InAppTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
116 inline InAppTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline InAppTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
119
121
124 inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
125 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
126 inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
127 inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
128 inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
130 inline InAppTemplateRequest& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;}
131 inline InAppTemplateRequest& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
133 private:
134
136 bool m_contentHasBeenSet = false;
137
139 bool m_customConfigHasBeenSet = false;
140
141 Layout m_layout;
142 bool m_layoutHasBeenSet = false;
143
145 bool m_tagsHasBeenSet = false;
146
147 Aws::String m_templateDescription;
148 bool m_templateDescriptionHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace Pinpoint
153} // namespace Aws
InAppTemplateRequest & AddCustomConfig(Aws::String &&key, Aws::String &&value)
InAppTemplateRequest & AddCustomConfig(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
InAppTemplateRequest & AddCustomConfig(const Aws::String &key, const Aws::String &value)
const Aws::Vector< InAppMessageContent > & GetContent() const
InAppTemplateRequest & AddTags(Aws::String &&key, const char *value)
InAppTemplateRequest & WithLayout(const Layout &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomConfig() const
InAppTemplateRequest & AddCustomConfig(Aws::String &&key, const char *value)
InAppTemplateRequest & WithContent(Aws::Vector< InAppMessageContent > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
InAppTemplateRequest & AddCustomConfig(Aws::String &&key, const Aws::String &value)
InAppTemplateRequest & WithTemplateDescription(const char *value)
InAppTemplateRequest & WithTemplateDescription(const Aws::String &value)
InAppTemplateRequest & WithTemplateDescription(Aws::String &&value)
InAppTemplateRequest & AddContent(const InAppMessageContent &value)
InAppTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetCustomConfig(Aws::Map< Aws::String, Aws::String > &&value)
InAppTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
InAppTemplateRequest & AddTags(const char *key, const char *value)
void SetContent(Aws::Vector< InAppMessageContent > &&value)
InAppTemplateRequest & WithLayout(Layout &&value)
InAppTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_PINPOINT_API InAppTemplateRequest(Aws::Utils::Json::JsonView jsonValue)
InAppTemplateRequest & WithContent(const Aws::Vector< InAppMessageContent > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContent(const Aws::Vector< InAppMessageContent > &value)
InAppTemplateRequest & WithCustomConfig(const Aws::Map< Aws::String, Aws::String > &value)
void SetTemplateDescription(const Aws::String &value)
InAppTemplateRequest & WithCustomConfig(Aws::Map< Aws::String, Aws::String > &&value)
InAppTemplateRequest & AddTags(const char *key, Aws::String &&value)
InAppTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
InAppTemplateRequest & AddContent(InAppMessageContent &&value)
InAppTemplateRequest & AddCustomConfig(const Aws::String &key, Aws::String &&value)
InAppTemplateRequest & AddCustomConfig(const char *key, const char *value)
void SetCustomConfig(const Aws::Map< Aws::String, Aws::String > &value)
InAppTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
InAppTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_PINPOINT_API InAppTemplateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
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