7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/Action.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
68 template<
typename APNSPushTypeT = Aws::String>
69 void SetAPNSPushType(APNSPushTypeT&& value) { m_aPNSPushTypeHasBeenSet =
true; m_aPNSPushType = std::forward<APNSPushTypeT>(value); }
70 template<
typename APNSPushTypeT = Aws::String>
86 inline void SetAction(
Action value) { m_actionHasBeenSet =
true; m_action = value; }
97 inline int GetBadge()
const {
return m_badge; }
99 inline void SetBadge(
int value) { m_badgeHasBeenSet =
true; m_badge = value; }
109 template<
typename BodyT = Aws::String>
110 void SetBody(BodyT&& value) { m_bodyHasBeenSet =
true; m_body = std::forward<BodyT>(value); }
111 template<
typename BodyT = Aws::String>
123 template<
typename CategoryT = Aws::String>
124 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet =
true; m_category = std::forward<CategoryT>(value); }
125 template<
typename CategoryT = Aws::String>
139 template<
typename CollapseIdT = Aws::String>
140 void SetCollapseId(CollapseIdT&& value) { m_collapseIdHasBeenSet =
true; m_collapseId = std::forward<CollapseIdT>(value); }
141 template<
typename CollapseIdT = Aws::String>
152 template<
typename DataT = Aws::Map<Aws::String, Aws::String>>
153 void SetData(DataT&& value) { m_dataHasBeenSet =
true; m_data = std::forward<DataT>(value); }
154 template<
typename DataT = Aws::Map<Aws::String, Aws::String>>
156 template<
typename DataKeyT = Aws::String,
typename DataValueT = Aws::String>
158 m_dataHasBeenSet =
true; m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value));
return *
this;
168 template<
typename MediaUrlT = Aws::String>
169 void SetMediaUrl(MediaUrlT&& value) { m_mediaUrlHasBeenSet =
true; m_mediaUrl = std::forward<MediaUrlT>(value); }
170 template<
typename MediaUrlT = Aws::String>
181 template<
typename PreferredAuthenticationMethodT = Aws::String>
182 void SetPreferredAuthenticationMethod(PreferredAuthenticationMethodT&& value) { m_preferredAuthenticationMethodHasBeenSet =
true; m_preferredAuthenticationMethod = std::forward<PreferredAuthenticationMethodT>(value); }
183 template<
typename PreferredAuthenticationMethodT = Aws::String>
202 template<
typename PriorityT = Aws::String>
203 void SetPriority(PriorityT&& value) { m_priorityHasBeenSet =
true; m_priority = std::forward<PriorityT>(value); }
204 template<
typename PriorityT = Aws::String>
226 template<
typename RawContentT = Aws::String>
227 void SetRawContent(RawContentT&& value) { m_rawContentHasBeenSet =
true; m_rawContent = std::forward<RawContentT>(value); }
228 template<
typename RawContentT = Aws::String>
257 inline void SetSilentPush(
bool value) { m_silentPushHasBeenSet =
true; m_silentPush = value; }
271 template<
typename SoundT = Aws::String>
272 void SetSound(SoundT&& value) { m_soundHasBeenSet =
true; m_sound = std::forward<SoundT>(value); }
273 template<
typename SoundT = Aws::String>
284 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
285 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet =
true; m_substitutions = std::forward<SubstitutionsT>(value); }
286 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
288 template<
typename SubstitutionsKeyT = Aws::String,
typename SubstitutionsValueT = Aws::Vector<Aws::String>>
290 m_substitutionsHasBeenSet =
true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
return *
this;
302 template<
typename ThreadIdT = Aws::String>
303 void SetThreadId(ThreadIdT&& value) { m_threadIdHasBeenSet =
true; m_threadId = std::forward<ThreadIdT>(value); }
304 template<
typename ThreadIdT = Aws::String>
319 inline void SetTimeToLive(
int value) { m_timeToLiveHasBeenSet =
true; m_timeToLive = value; }
330 template<
typename TitleT = Aws::String>
331 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
332 template<
typename TitleT = Aws::String>
343 template<
typename UrlT = Aws::String>
344 void SetUrl(UrlT&& value) { m_urlHasBeenSet =
true; m_url = std::forward<UrlT>(value); }
345 template<
typename UrlT = Aws::String>
351 bool m_aPNSPushTypeHasBeenSet =
false;
354 bool m_actionHasBeenSet =
false;
357 bool m_badgeHasBeenSet =
false;
360 bool m_bodyHasBeenSet =
false;
363 bool m_categoryHasBeenSet =
false;
366 bool m_collapseIdHasBeenSet =
false;
369 bool m_dataHasBeenSet =
false;
372 bool m_mediaUrlHasBeenSet =
false;
375 bool m_preferredAuthenticationMethodHasBeenSet =
false;
378 bool m_priorityHasBeenSet =
false;
381 bool m_rawContentHasBeenSet =
false;
383 bool m_silentPush{
false};
384 bool m_silentPushHasBeenSet =
false;
387 bool m_soundHasBeenSet =
false;
390 bool m_substitutionsHasBeenSet =
false;
393 bool m_threadIdHasBeenSet =
false;
396 bool m_timeToLiveHasBeenSet =
false;
399 bool m_titleHasBeenSet =
false;
402 bool m_urlHasBeenSet =
false;
APNSMessage & WithAPNSPushType(APNSPushTypeT &&value)
void SetSubstitutions(SubstitutionsT &&value)
APNSMessage & WithThreadId(ThreadIdT &&value)
APNSMessage & WithSubstitutions(SubstitutionsT &&value)
AWS_PINPOINT_API APNSMessage(Aws::Utils::Json::JsonView jsonValue)
bool GetSilentPush() const
APNSMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
void SetTitle(TitleT &&value)
void SetAPNSPushType(APNSPushTypeT &&value)
void SetBody(BodyT &&value)
APNSMessage & AddData(DataKeyT &&key, DataValueT &&value)
bool ThreadIdHasBeenSet() const
APNSMessage & WithMediaUrl(MediaUrlT &&value)
APNSMessage & WithData(DataT &&value)
APNSMessage & WithBadge(int value)
void SetRawContent(RawContentT &&value)
void SetCollapseId(CollapseIdT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
bool SubstitutionsHasBeenSet() const
const Aws::String & GetThreadId() const
APNSMessage & WithCategory(CategoryT &&value)
void SetMediaUrl(MediaUrlT &&value)
void SetThreadId(ThreadIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
int GetTimeToLive() const
APNSMessage & WithSound(SoundT &&value)
AWS_PINPOINT_API APNSMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TitleHasBeenSet() const
APNSMessage & WithTimeToLive(int value)
bool CollapseIdHasBeenSet() const
const Aws::String & GetPriority() const
const Aws::String & GetAPNSPushType() const
bool PriorityHasBeenSet() const
void SetTimeToLive(int value)
bool DataHasBeenSet() const
bool BadgeHasBeenSet() const
const Aws::String & GetPreferredAuthenticationMethod() const
APNSMessage & WithAction(Action value)
bool TimeToLiveHasBeenSet() const
APNSMessage & WithTitle(TitleT &&value)
void SetPriority(PriorityT &&value)
const Aws::String & GetBody() const
const Aws::String & GetCategory() const
bool PreferredAuthenticationMethodHasBeenSet() const
bool ActionHasBeenSet() const
bool CategoryHasBeenSet() const
const Aws::String & GetTitle() const
void SetUrl(UrlT &&value)
APNSMessage & WithBody(BodyT &&value)
bool SilentPushHasBeenSet() const
bool MediaUrlHasBeenSet() const
void SetData(DataT &&value)
APNSMessage & WithUrl(UrlT &&value)
void SetSound(SoundT &&value)
APNSMessage & WithRawContent(RawContentT &&value)
const Aws::String & GetUrl() const
void SetCategory(CategoryT &&value)
bool APNSPushTypeHasBeenSet() const
const Aws::String & GetCollapseId() const
void SetAction(Action value)
bool BodyHasBeenSet() const
bool RawContentHasBeenSet() const
const Aws::String & GetMediaUrl() const
APNSMessage & WithPreferredAuthenticationMethod(PreferredAuthenticationMethodT &&value)
void SetSilentPush(bool value)
bool SoundHasBeenSet() const
bool UrlHasBeenSet() const
AWS_PINPOINT_API APNSMessage()=default
void SetPreferredAuthenticationMethod(PreferredAuthenticationMethodT &&value)
APNSMessage & WithPriority(PriorityT &&value)
APNSMessage & WithCollapseId(CollapseIdT &&value)
APNSMessage & WithSilentPush(bool value)
const Aws::String & GetSound() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRawContent() const
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