AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DefaultPushNotificationMessage.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/Action.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.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
36 {
37 public:
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
55 inline const Action& GetAction() const{ return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
58 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
59 inline DefaultPushNotificationMessage& WithAction(const Action& value) { SetAction(value); return *this;}
60 inline DefaultPushNotificationMessage& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
62
64
67 inline const Aws::String& GetBody() const{ return m_body; }
68 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
69 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
70 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
71 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
72 inline DefaultPushNotificationMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;}
73 inline DefaultPushNotificationMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
74 inline DefaultPushNotificationMessage& WithBody(const char* value) { SetBody(value); return *this;}
76
78
83 inline const Aws::Map<Aws::String, Aws::String>& GetData() const{ return m_data; }
84 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
85 inline void SetData(const Aws::Map<Aws::String, Aws::String>& value) { m_dataHasBeenSet = true; m_data = value; }
86 inline void SetData(Aws::Map<Aws::String, Aws::String>&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
88 inline DefaultPushNotificationMessage& WithData(Aws::Map<Aws::String, Aws::String>&& value) { SetData(std::move(value)); return *this;}
89 inline DefaultPushNotificationMessage& AddData(const Aws::String& key, const Aws::String& value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
90 inline DefaultPushNotificationMessage& AddData(Aws::String&& key, const Aws::String& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), value); return *this; }
91 inline DefaultPushNotificationMessage& AddData(const Aws::String& key, Aws::String&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
92 inline DefaultPushNotificationMessage& AddData(Aws::String&& key, Aws::String&& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), std::move(value)); return *this; }
93 inline DefaultPushNotificationMessage& AddData(const char* key, Aws::String&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
94 inline DefaultPushNotificationMessage& AddData(Aws::String&& key, const char* value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), value); return *this; }
95 inline DefaultPushNotificationMessage& AddData(const char* key, const char* value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
97
99
105 inline bool GetSilentPush() const{ return m_silentPush; }
106 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
107 inline void SetSilentPush(bool value) { m_silentPushHasBeenSet = true; m_silentPush = value; }
108 inline DefaultPushNotificationMessage& WithSilentPush(bool value) { SetSilentPush(value); return *this;}
110
112
116 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const{ return m_substitutions; }
117 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
118 inline void SetSubstitutions(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_substitutionsHasBeenSet = true; m_substitutions = value; }
119 inline void SetSubstitutions(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_substitutionsHasBeenSet = true; m_substitutions = std::move(value); }
122 inline DefaultPushNotificationMessage& AddSubstitutions(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
123 inline DefaultPushNotificationMessage& AddSubstitutions(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), value); return *this; }
124 inline DefaultPushNotificationMessage& AddSubstitutions(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
125 inline DefaultPushNotificationMessage& AddSubstitutions(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::move(key), std::move(value)); return *this; }
126 inline DefaultPushNotificationMessage& AddSubstitutions(const char* key, Aws::Vector<Aws::String>&& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, std::move(value)); return *this; }
127 inline DefaultPushNotificationMessage& AddSubstitutions(const char* key, const Aws::Vector<Aws::String>& value) { m_substitutionsHasBeenSet = true; m_substitutions.emplace(key, value); return *this; }
129
131
135 inline const Aws::String& GetTitle() const{ return m_title; }
136 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
137 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
138 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
139 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
140 inline DefaultPushNotificationMessage& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
141 inline DefaultPushNotificationMessage& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
142 inline DefaultPushNotificationMessage& WithTitle(const char* value) { SetTitle(value); return *this;}
144
146
151 inline const Aws::String& GetUrl() const{ return m_url; }
152 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
153 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
154 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
155 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
156 inline DefaultPushNotificationMessage& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
157 inline DefaultPushNotificationMessage& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
158 inline DefaultPushNotificationMessage& WithUrl(const char* value) { SetUrl(value); return *this;}
160 private:
161
162 Action m_action;
163 bool m_actionHasBeenSet = false;
164
165 Aws::String m_body;
166 bool m_bodyHasBeenSet = false;
167
169 bool m_dataHasBeenSet = false;
170
171 bool m_silentPush;
172 bool m_silentPushHasBeenSet = false;
173
175 bool m_substitutionsHasBeenSet = false;
176
177 Aws::String m_title;
178 bool m_titleHasBeenSet = false;
179
180 Aws::String m_url;
181 bool m_urlHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Pinpoint
186} // namespace Aws
DefaultPushNotificationMessage & WithSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
DefaultPushNotificationMessage & WithTitle(Aws::String &&value)
DefaultPushNotificationMessage & WithAction(Action &&value)
DefaultPushNotificationMessage & WithTitle(const Aws::String &value)
AWS_PINPOINT_API DefaultPushNotificationMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultPushNotificationMessage & WithSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
DefaultPushNotificationMessage & AddData(Aws::String &&key, Aws::String &&value)
DefaultPushNotificationMessage & WithUrl(const char *value)
DefaultPushNotificationMessage & AddData(const char *key, Aws::String &&value)
DefaultPushNotificationMessage & WithBody(const char *value)
DefaultPushNotificationMessage & WithBody(const Aws::String &value)
DefaultPushNotificationMessage & WithTitle(const char *value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultPushNotificationMessage & WithData(const Aws::Map< Aws::String, Aws::String > &value)
void SetData(const Aws::Map< Aws::String, Aws::String > &value)
void SetSubstitutions(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
DefaultPushNotificationMessage & WithBody(Aws::String &&value)
DefaultPushNotificationMessage & AddData(Aws::String &&key, const char *value)
DefaultPushNotificationMessage & AddSubstitutions(const Aws::String &key, const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
DefaultPushNotificationMessage & AddSubstitutions(const char *key, Aws::Vector< Aws::String > &&value)
AWS_PINPOINT_API DefaultPushNotificationMessage(Aws::Utils::Json::JsonView jsonValue)
DefaultPushNotificationMessage & WithUrl(Aws::String &&value)
DefaultPushNotificationMessage & WithSilentPush(bool value)
DefaultPushNotificationMessage & AddData(const Aws::String &key, const Aws::String &value)
DefaultPushNotificationMessage & AddSubstitutions(Aws::String &&key, const Aws::Vector< Aws::String > &value)
DefaultPushNotificationMessage & WithUrl(const Aws::String &value)
DefaultPushNotificationMessage & AddSubstitutions(const char *key, const Aws::Vector< Aws::String > &value)
void SetData(Aws::Map< Aws::String, Aws::String > &&value)
DefaultPushNotificationMessage & AddData(Aws::String &&key, const Aws::String &value)
DefaultPushNotificationMessage & AddSubstitutions(const Aws::String &key, Aws::Vector< Aws::String > &&value)
DefaultPushNotificationMessage & WithData(Aws::Map< Aws::String, Aws::String > &&value)
DefaultPushNotificationMessage & WithAction(const Action &value)
DefaultPushNotificationMessage & AddData(const char *key, const char *value)
void SetSubstitutions(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
DefaultPushNotificationMessage & AddData(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
DefaultPushNotificationMessage & AddSubstitutions(Aws::String &&key, Aws::Vector< 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