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 DataT = Aws::Map<Aws::String, Aws::String>>
82 void SetData(DataT&& value) { m_dataHasBeenSet =
true; m_data = std::forward<DataT>(value); }
83 template<
typename DataT = Aws::Map<Aws::String, Aws::String>>
85 template<
typename DataKeyT = Aws::String,
typename DataValueT = Aws::String>
87 m_dataHasBeenSet =
true; m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value));
return *
this;
97 template<
typename IconReferenceT = Aws::String>
98 void SetIconReference(IconReferenceT&& value) { m_iconReferenceHasBeenSet =
true; m_iconReference = std::forward<IconReferenceT>(value); }
99 template<
typename IconReferenceT = Aws::String>
110 template<
typename ImageIconUrlT = Aws::String>
111 void SetImageIconUrl(ImageIconUrlT&& value) { m_imageIconUrlHasBeenSet =
true; m_imageIconUrl = std::forward<ImageIconUrlT>(value); }
112 template<
typename ImageIconUrlT = Aws::String>
122 template<
typename ImageUrlT = Aws::String>
123 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet =
true; m_imageUrl = std::forward<ImageUrlT>(value); }
124 template<
typename ImageUrlT = Aws::String>
136 template<
typename RawContentT = Aws::String>
137 void SetRawContent(RawContentT&& value) { m_rawContentHasBeenSet =
true; m_rawContent = std::forward<RawContentT>(value); }
138 template<
typename RawContentT = Aws::String>
151 inline void SetSilentPush(
bool value) { m_silentPushHasBeenSet =
true; m_silentPush = value; }
162 template<
typename SmallImageIconUrlT = Aws::String>
163 void SetSmallImageIconUrl(SmallImageIconUrlT&& value) { m_smallImageIconUrlHasBeenSet =
true; m_smallImageIconUrl = std::forward<SmallImageIconUrlT>(value); }
164 template<
typename SmallImageIconUrlT = Aws::String>
177 template<
typename SoundT = Aws::String>
178 void SetSound(SoundT&& value) { m_soundHasBeenSet =
true; m_sound = std::forward<SoundT>(value); }
179 template<
typename SoundT = Aws::String>
190 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
191 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet =
true; m_substitutions = std::forward<SubstitutionsT>(value); }
192 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
194 template<
typename SubstitutionsKeyT = Aws::String,
typename SubstitutionsValueT = Aws::Vector<Aws::String>>
196 m_substitutionsHasBeenSet =
true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
return *
this;
208 inline void SetTimeToLive(
int value) { m_timeToLiveHasBeenSet =
true; m_timeToLive = value; }
219 template<
typename TitleT = Aws::String>
220 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
221 template<
typename TitleT = Aws::String>
232 template<
typename UrlT = Aws::String>
233 void SetUrl(UrlT&& value) { m_urlHasBeenSet =
true; m_url = std::forward<UrlT>(value); }
234 template<
typename UrlT = Aws::String>
240 bool m_actionHasBeenSet =
false;
243 bool m_bodyHasBeenSet =
false;
246 bool m_dataHasBeenSet =
false;
249 bool m_iconReferenceHasBeenSet =
false;
252 bool m_imageIconUrlHasBeenSet =
false;
255 bool m_imageUrlHasBeenSet =
false;
258 bool m_rawContentHasBeenSet =
false;
260 bool m_silentPush{
false};
261 bool m_silentPushHasBeenSet =
false;
264 bool m_smallImageIconUrlHasBeenSet =
false;
267 bool m_soundHasBeenSet =
false;
270 bool m_substitutionsHasBeenSet =
false;
273 bool m_timeToLiveHasBeenSet =
false;
276 bool m_titleHasBeenSet =
false;
279 bool m_urlHasBeenSet =
false;
bool SmallImageIconUrlHasBeenSet() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
BaiduMessage & WithSound(SoundT &&value)
int GetTimeToLive() const
void SetImageIconUrl(ImageIconUrlT &&value)
BaiduMessage & AddData(DataKeyT &&key, DataValueT &&value)
BaiduMessage & WithTimeToLive(int value)
BaiduMessage & WithRawContent(RawContentT &&value)
void SetRawContent(RawContentT &&value)
bool ImageUrlHasBeenSet() const
bool SubstitutionsHasBeenSet() const
void SetSound(SoundT &&value)
AWS_PINPOINT_API BaiduMessage()=default
BaiduMessage & WithBody(BodyT &&value)
const Aws::String & GetSmallImageIconUrl() const
bool RawContentHasBeenSet() const
const Aws::String & GetSound() const
void SetSilentPush(bool value)
const Aws::String & GetIconReference() const
void SetIconReference(IconReferenceT &&value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
BaiduMessage & WithUrl(UrlT &&value)
void SetBody(BodyT &&value)
bool GetSilentPush() const
BaiduMessage & WithTitle(TitleT &&value)
bool TitleHasBeenSet() const
bool SoundHasBeenSet() const
bool BodyHasBeenSet() const
const Aws::String & GetUrl() const
const Aws::String & GetImageUrl() const
const Aws::String & GetRawContent() const
bool DataHasBeenSet() const
void SetTimeToLive(int value)
BaiduMessage & WithSmallImageIconUrl(SmallImageIconUrlT &&value)
bool SilentPushHasBeenSet() const
bool UrlHasBeenSet() const
void SetUrl(UrlT &&value)
BaiduMessage & WithData(DataT &&value)
void SetData(DataT &&value)
bool ActionHasBeenSet() const
const Aws::String & GetImageIconUrl() const
const Aws::String & GetBody() const
AWS_PINPOINT_API BaiduMessage(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API BaiduMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
BaiduMessage & WithAction(Action value)
bool ImageIconUrlHasBeenSet() const
bool TimeToLiveHasBeenSet() const
BaiduMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
void SetTitle(TitleT &&value)
void SetSubstitutions(SubstitutionsT &&value)
BaiduMessage & WithIconReference(IconReferenceT &&value)
void SetImageUrl(ImageUrlT &&value)
bool IconReferenceHasBeenSet() const
BaiduMessage & WithSubstitutions(SubstitutionsT &&value)
BaiduMessage & WithImageIconUrl(ImageIconUrlT &&value)
BaiduMessage & WithImageUrl(ImageUrlT &&value)
void SetSmallImageIconUrl(SmallImageIconUrlT &&value)
void SetAction(Action value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTitle() const
BaiduMessage & WithSilentPush(bool 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