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>
57 inline void SetAction(
Action value) { m_actionHasBeenSet =
true; m_action = value; }
67 template<
typename BodyT = Aws::String>
68 void SetBody(BodyT&& value) { m_bodyHasBeenSet =
true; m_body = std::forward<BodyT>(value); }
69 template<
typename BodyT = Aws::String>
81 template<
typename Consol
idationKeyT = Aws::String>
82 void SetConsolidationKey(ConsolidationKeyT&& value) { m_consolidationKeyHasBeenSet =
true; m_consolidationKey = std::forward<ConsolidationKeyT>(value); }
83 template<
typename Consol
idationKeyT = Aws::String>
95 template<
typename DataT = Aws::Map<Aws::String, Aws::String>>
96 void SetData(DataT&& value) { m_dataHasBeenSet =
true; m_data = std::forward<DataT>(value); }
97 template<
typename DataT = Aws::Map<Aws::String, Aws::String>>
99 template<
typename DataKeyT = Aws::String,
typename DataValueT = Aws::String>
101 m_dataHasBeenSet =
true; m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value));
return *
this;
113 template<
typename ExpiresAfterT = Aws::String>
114 void SetExpiresAfter(ExpiresAfterT&& value) { m_expiresAfterHasBeenSet =
true; m_expiresAfter = std::forward<ExpiresAfterT>(value); }
115 template<
typename ExpiresAfterT = Aws::String>
125 template<
typename IconReferenceT = Aws::String>
126 void SetIconReference(IconReferenceT&& value) { m_iconReferenceHasBeenSet =
true; m_iconReference = std::forward<IconReferenceT>(value); }
127 template<
typename IconReferenceT = Aws::String>
138 template<
typename ImageIconUrlT = Aws::String>
139 void SetImageIconUrl(ImageIconUrlT&& value) { m_imageIconUrlHasBeenSet =
true; m_imageIconUrl = std::forward<ImageIconUrlT>(value); }
140 template<
typename ImageIconUrlT = Aws::String>
150 template<
typename ImageUrlT = Aws::String>
151 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet =
true; m_imageUrl = std::forward<ImageUrlT>(value); }
152 template<
typename ImageUrlT = Aws::String>
163 template<
typename MD5T = Aws::String>
164 void SetMD5(MD5T&& value) { m_mD5HasBeenSet =
true; m_mD5 = std::forward<MD5T>(value); }
165 template<
typename MD5T = Aws::String>
177 template<
typename RawContentT = Aws::String>
178 void SetRawContent(RawContentT&& value) { m_rawContentHasBeenSet =
true; m_rawContent = std::forward<RawContentT>(value); }
179 template<
typename RawContentT = Aws::String>
192 inline void SetSilentPush(
bool value) { m_silentPushHasBeenSet =
true; m_silentPush = value; }
203 template<
typename SmallImageIconUrlT = Aws::String>
204 void SetSmallImageIconUrl(SmallImageIconUrlT&& value) { m_smallImageIconUrlHasBeenSet =
true; m_smallImageIconUrl = std::forward<SmallImageIconUrlT>(value); }
205 template<
typename SmallImageIconUrlT = Aws::String>
218 template<
typename SoundT = Aws::String>
219 void SetSound(SoundT&& value) { m_soundHasBeenSet =
true; m_sound = std::forward<SoundT>(value); }
220 template<
typename SoundT = Aws::String>
231 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
232 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet =
true; m_substitutions = std::forward<SubstitutionsT>(value); }
233 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
235 template<
typename SubstitutionsKeyT = Aws::String,
typename SubstitutionsValueT = Aws::Vector<Aws::String>>
237 m_substitutionsHasBeenSet =
true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
return *
this;
248 template<
typename TitleT = Aws::String>
249 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
250 template<
typename TitleT = Aws::String>
261 template<
typename UrlT = Aws::String>
262 void SetUrl(UrlT&& value) { m_urlHasBeenSet =
true; m_url = std::forward<UrlT>(value); }
263 template<
typename UrlT = Aws::String>
269 bool m_actionHasBeenSet =
false;
272 bool m_bodyHasBeenSet =
false;
275 bool m_consolidationKeyHasBeenSet =
false;
278 bool m_dataHasBeenSet =
false;
281 bool m_expiresAfterHasBeenSet =
false;
284 bool m_iconReferenceHasBeenSet =
false;
287 bool m_imageIconUrlHasBeenSet =
false;
290 bool m_imageUrlHasBeenSet =
false;
293 bool m_mD5HasBeenSet =
false;
296 bool m_rawContentHasBeenSet =
false;
298 bool m_silentPush{
false};
299 bool m_silentPushHasBeenSet =
false;
302 bool m_smallImageIconUrlHasBeenSet =
false;
305 bool m_soundHasBeenSet =
false;
308 bool m_substitutionsHasBeenSet =
false;
311 bool m_titleHasBeenSet =
false;
314 bool m_urlHasBeenSet =
false;
bool SubstitutionsHasBeenSet() const
ADMMessage & WithTitle(TitleT &&value)
ADMMessage & WithMD5(MD5T &&value)
ADMMessage & WithSilentPush(bool value)
ADMMessage & WithAction(Action value)
const Aws::String & GetTitle() const
const Aws::String & GetBody() const
const Aws::String & GetIconReference() const
const Aws::String & GetUrl() const
bool TitleHasBeenSet() const
const Aws::String & GetImageIconUrl() const
void SetMD5(MD5T &&value)
bool SmallImageIconUrlHasBeenSet() const
bool BodyHasBeenSet() const
ADMMessage & WithData(DataT &&value)
bool ExpiresAfterHasBeenSet() const
void SetAction(Action value)
ADMMessage & WithConsolidationKey(ConsolidationKeyT &&value)
void SetSmallImageIconUrl(SmallImageIconUrlT &&value)
AWS_PINPOINT_API ADMMessage(Aws::Utils::Json::JsonView jsonValue)
void SetData(DataT &&value)
ADMMessage & WithImageUrl(ImageUrlT &&value)
bool ImageUrlHasBeenSet() const
AWS_PINPOINT_API ADMMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIconReference(IconReferenceT &&value)
const Aws::String & GetRawContent() const
void SetTitle(TitleT &&value)
void SetImageIconUrl(ImageIconUrlT &&value)
void SetExpiresAfter(ExpiresAfterT &&value)
bool ActionHasBeenSet() const
const Aws::String & GetExpiresAfter() const
void SetRawContent(RawContentT &&value)
void SetImageUrl(ImageUrlT &&value)
void SetSilentPush(bool value)
void SetSound(SoundT &&value)
const Aws::String & GetSound() const
bool RawContentHasBeenSet() const
bool DataHasBeenSet() const
ADMMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
bool ImageIconUrlHasBeenSet() const
ADMMessage & AddData(DataKeyT &&key, DataValueT &&value)
const Aws::String & GetSmallImageIconUrl() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
AWS_PINPOINT_API ADMMessage()=default
bool IconReferenceHasBeenSet() const
bool UrlHasBeenSet() const
const Aws::String & GetMD5() const
void SetBody(BodyT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetData() const
bool SilentPushHasBeenSet() const
const Aws::String & GetConsolidationKey() const
void SetSubstitutions(SubstitutionsT &&value)
bool ConsolidationKeyHasBeenSet() const
ADMMessage & WithSubstitutions(SubstitutionsT &&value)
bool GetSilentPush() const
void SetUrl(UrlT &&value)
bool SoundHasBeenSet() const
const Aws::String & GetImageUrl() const
ADMMessage & WithImageIconUrl(ImageIconUrlT &&value)
ADMMessage & WithSound(SoundT &&value)
ADMMessage & WithExpiresAfter(ExpiresAfterT &&value)
ADMMessage & WithIconReference(IconReferenceT &&value)
ADMMessage & WithRawContent(RawContentT &&value)
ADMMessage & WithUrl(UrlT &&value)
bool MD5HasBeenSet() const
ADMMessage & WithBody(BodyT &&value)
void SetConsolidationKey(ConsolidationKeyT &&value)
ADMMessage & WithSmallImageIconUrl(SmallImageIconUrlT &&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
Aws::Utils::Json::JsonValue JsonValue