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;
100 inline void SetSilentPush(
bool value) { m_silentPushHasBeenSet =
true; m_silentPush = value; }
111 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
112 void SetSubstitutions(SubstitutionsT&& value) { m_substitutionsHasBeenSet =
true; m_substitutions = std::forward<SubstitutionsT>(value); }
113 template<
typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
115 template<
typename SubstitutionsKeyT = Aws::String,
typename SubstitutionsValueT = Aws::Vector<Aws::String>>
117 m_substitutionsHasBeenSet =
true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
return *
this;
128 template<
typename TitleT = Aws::String>
129 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
130 template<
typename TitleT = Aws::String>
142 template<
typename UrlT = Aws::String>
143 void SetUrl(UrlT&& value) { m_urlHasBeenSet =
true; m_url = std::forward<UrlT>(value); }
144 template<
typename UrlT = Aws::String>
150 bool m_actionHasBeenSet =
false;
153 bool m_bodyHasBeenSet =
false;
156 bool m_dataHasBeenSet =
false;
158 bool m_silentPush{
false};
159 bool m_silentPushHasBeenSet =
false;
162 bool m_substitutionsHasBeenSet =
false;
165 bool m_titleHasBeenSet =
false;
168 bool m_urlHasBeenSet =
false;
bool UrlHasBeenSet() const
void SetAction(Action value)
DefaultPushNotificationMessage & WithData(DataT &&value)
AWS_PINPOINT_API DefaultPushNotificationMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultPushNotificationMessage & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
bool ActionHasBeenSet() const
DefaultPushNotificationMessage & WithSubstitutions(SubstitutionsT &&value)
DefaultPushNotificationMessage & WithUrl(UrlT &&value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
const Aws::String & GetUrl() const
AWS_PINPOINT_API DefaultPushNotificationMessage(Aws::Utils::Json::JsonView jsonValue)
void SetBody(BodyT &&value)
DefaultPushNotificationMessage & WithSilentPush(bool value)
bool SilentPushHasBeenSet() const
void SetData(DataT &&value)
bool SubstitutionsHasBeenSet() const
void SetUrl(UrlT &&value)
void SetTitle(TitleT &&value)
DefaultPushNotificationMessage & AddData(DataKeyT &&key, DataValueT &&value)
void SetSubstitutions(SubstitutionsT &&value)
bool GetSilentPush() const
bool TitleHasBeenSet() const
const Aws::String & GetTitle() const
AWS_PINPOINT_API DefaultPushNotificationMessage()=default
bool BodyHasBeenSet() const
DefaultPushNotificationMessage & WithTitle(TitleT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
void SetSilentPush(bool value)
const Aws::String & GetBody() const
DefaultPushNotificationMessage & WithBody(BodyT &&value)
DefaultPushNotificationMessage & WithAction(Action value)
bool DataHasBeenSet() 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