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>
58 inline void SetAction(
Action value) { m_actionHasBeenSet =
true; m_action = value; }
68 template<
typename BodyT = Aws::String>
69 void SetBody(BodyT&& value) { m_bodyHasBeenSet =
true; m_body = std::forward<BodyT>(value); }
70 template<
typename BodyT = Aws::String>
85 template<
typename CollapseKeyT = Aws::String>
86 void SetCollapseKey(CollapseKeyT&& value) { m_collapseKeyHasBeenSet =
true; m_collapseKey = std::forward<CollapseKeyT>(value); }
87 template<
typename CollapseKeyT = Aws::String>
99 template<
typename DataT = Aws::Map<Aws::String, Aws::String>>
100 void SetData(DataT&& value) { m_dataHasBeenSet =
true; m_data = std::forward<DataT>(value); }
101 template<
typename DataT = Aws::Map<Aws::String, Aws::String>>
103 template<
typename DataKeyT = Aws::String,
typename DataValueT = Aws::String>
105 m_dataHasBeenSet =
true; m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value));
return *
this;
115 template<
typename IconReferenceT = Aws::String>
116 void SetIconReference(IconReferenceT&& value) { m_iconReferenceHasBeenSet =
true; m_iconReference = std::forward<IconReferenceT>(value); }
117 template<
typename IconReferenceT = Aws::String>
128 template<
typename ImageIconUrlT = Aws::String>
129 void SetImageIconUrl(ImageIconUrlT&& value) { m_imageIconUrlHasBeenSet =
true; m_imageIconUrl = std::forward<ImageIconUrlT>(value); }
130 template<
typename ImageIconUrlT = Aws::String>
140 template<
typename ImageUrlT = Aws::String>
141 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet =
true; m_imageUrl = std::forward<ImageUrlT>(value); }
142 template<
typename ImageUrlT = Aws::String>
153 template<
typename PreferredAuthenticationMethodT = Aws::String>
154 void SetPreferredAuthenticationMethod(PreferredAuthenticationMethodT&& value) { m_preferredAuthenticationMethodHasBeenSet =
true; m_preferredAuthenticationMethod = std::forward<PreferredAuthenticationMethodT>(value); }
155 template<
typename PreferredAuthenticationMethodT = Aws::String>
173 template<
typename PriorityT = Aws::String>
174 void SetPriority(PriorityT&& value) { m_priorityHasBeenSet =
true; m_priority = std::forward<PriorityT>(value); }
175 template<
typename PriorityT = Aws::String>
187 template<
typename RawContentT = Aws::String>
188 void SetRawContent(RawContentT&& value) { m_rawContentHasBeenSet =
true; m_rawContent = std::forward<RawContentT>(value); }
189 template<
typename RawContentT = Aws::String>
200 template<
typename RestrictedPackageNameT = Aws::String>
201 void SetRestrictedPackageName(RestrictedPackageNameT&& value) { m_restrictedPackageNameHasBeenSet =
true; m_restrictedPackageName = std::forward<RestrictedPackageNameT>(value); }
202 template<
typename RestrictedPackageNameT = Aws::String>
215 inline void SetSilentPush(
bool value) { m_silentPushHasBeenSet =
true; m_silentPush = value; }
226 template<
typename SmallImageIconUrlT = Aws::String>
227 void SetSmallImageIconUrl(SmallImageIconUrlT&& value) { m_smallImageIconUrlHasBeenSet =
true; m_smallImageIconUrl = std::forward<SmallImageIconUrlT>(value); }
228 template<
typename SmallImageIconUrlT = Aws::String>
241 template<
typename SoundT = Aws::String>
242 void SetSound(SoundT&& value) { m_soundHasBeenSet =
true; m_sound = std::forward<SoundT>(value); }
243 template<
typename SoundT = Aws::String>
254 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
255 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet =
true; m_substitutions = std::forward<SubstitutionsT>(value); }
256 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
258 template<
typename SubstitutionsKeyT = Aws::String,
typename SubstitutionsValueT = Aws::Vector<Aws::String>>
260 m_substitutionsHasBeenSet =
true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
return *
this;
275 inline void SetTimeToLive(
int value) { m_timeToLiveHasBeenSet =
true; m_timeToLive = value; }
286 template<
typename TitleT = Aws::String>
287 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
288 template<
typename TitleT = Aws::String>
299 template<
typename UrlT = Aws::String>
300 void SetUrl(UrlT&& value) { m_urlHasBeenSet =
true; m_url = std::forward<UrlT>(value); }
301 template<
typename UrlT = Aws::String>
307 bool m_actionHasBeenSet =
false;
310 bool m_bodyHasBeenSet =
false;
313 bool m_collapseKeyHasBeenSet =
false;
316 bool m_dataHasBeenSet =
false;
319 bool m_iconReferenceHasBeenSet =
false;
322 bool m_imageIconUrlHasBeenSet =
false;
325 bool m_imageUrlHasBeenSet =
false;
328 bool m_preferredAuthenticationMethodHasBeenSet =
false;
331 bool m_priorityHasBeenSet =
false;
334 bool m_rawContentHasBeenSet =
false;
337 bool m_restrictedPackageNameHasBeenSet =
false;
339 bool m_silentPush{
false};
340 bool m_silentPushHasBeenSet =
false;
343 bool m_smallImageIconUrlHasBeenSet =
false;
346 bool m_soundHasBeenSet =
false;
349 bool m_substitutionsHasBeenSet =
false;
352 bool m_timeToLiveHasBeenSet =
false;
355 bool m_titleHasBeenSet =
false;
358 bool m_urlHasBeenSet =
false;
const Aws::String & GetImageUrl() const
void SetImageIconUrl(ImageIconUrlT &&value)
void SetAction(Action value)
bool ActionHasBeenSet() const
const Aws::String & GetRawContent() const
GCMMessage & WithBody(BodyT &&value)
void SetRawContent(RawContentT &&value)
void SetBody(BodyT &&value)
bool ImageUrlHasBeenSet() const
void SetPreferredAuthenticationMethod(PreferredAuthenticationMethodT &&value)
AWS_PINPOINT_API GCMMessage()=default
GCMMessage & WithCollapseKey(CollapseKeyT &&value)
GCMMessage & WithRawContent(RawContentT &&value)
void SetRestrictedPackageName(RestrictedPackageNameT &&value)
bool GetSilentPush() const
bool SoundHasBeenSet() const
GCMMessage & WithTimeToLive(int value)
const Aws::String & GetSmallImageIconUrl() const
bool SmallImageIconUrlHasBeenSet() const
GCMMessage & AddData(DataKeyT &&key, DataValueT &&value)
bool RawContentHasBeenSet() const
void SetImageUrl(ImageUrlT &&value)
void SetTitle(TitleT &&value)
GCMMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
GCMMessage & WithSubstitutions(SubstitutionsT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
void SetSmallImageIconUrl(SmallImageIconUrlT &&value)
bool TimeToLiveHasBeenSet() const
void SetSilentPush(bool value)
bool PreferredAuthenticationMethodHasBeenSet() const
void SetCollapseKey(CollapseKeyT &&value)
int GetTimeToLive() const
GCMMessage & WithSound(SoundT &&value)
void SetSubstitutions(SubstitutionsT &&value)
const Aws::String & GetPriority() const
GCMMessage & WithSmallImageIconUrl(SmallImageIconUrlT &&value)
const Aws::String & GetImageIconUrl() const
const Aws::String & GetRestrictedPackageName() const
bool SubstitutionsHasBeenSet() const
bool IconReferenceHasBeenSet() const
void SetSound(SoundT &&value)
GCMMessage & WithAction(Action value)
bool PriorityHasBeenSet() const
GCMMessage & WithUrl(UrlT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
bool TitleHasBeenSet() const
const Aws::String & GetUrl() const
GCMMessage & WithPriority(PriorityT &&value)
void SetTimeToLive(int value)
AWS_PINPOINT_API GCMMessage(Aws::Utils::Json::JsonView jsonValue)
bool ImageIconUrlHasBeenSet() const
bool RestrictedPackageNameHasBeenSet() const
GCMMessage & WithImageUrl(ImageUrlT &&value)
void SetUrl(UrlT &&value)
bool CollapseKeyHasBeenSet() const
GCMMessage & WithData(DataT &&value)
const Aws::String & GetIconReference() const
GCMMessage & WithIconReference(IconReferenceT &&value)
GCMMessage & WithPreferredAuthenticationMethod(PreferredAuthenticationMethodT &&value)
void SetData(DataT &&value)
const Aws::String & GetBody() const
void SetPriority(PriorityT &&value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
bool UrlHasBeenSet() const
const Aws::String & GetCollapseKey() const
GCMMessage & WithSilentPush(bool value)
bool DataHasBeenSet() const
const Aws::String & GetTitle() const
GCMMessage & WithImageIconUrl(ImageIconUrlT &&value)
const Aws::String & GetPreferredAuthenticationMethod() const
void SetIconReference(IconReferenceT &&value)
GCMMessage & WithRestrictedPackageName(RestrictedPackageNameT &&value)
GCMMessage & WithTitle(TitleT &&value)
bool BodyHasBeenSet() const
AWS_PINPOINT_API GCMMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SilentPushHasBeenSet() const
const Aws::String & GetSound() 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