AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DefaultPushNotificationMessage.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PINPOINT_API DefaultPushNotificationMessage() = default;
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
55 inline Action GetAction() const { return m_action; }
56 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
57 inline void SetAction(Action value) { m_actionHasBeenSet = true; m_action = value; }
58 inline DefaultPushNotificationMessage& WithAction(Action value) { SetAction(value); return *this;}
60
62
65 inline const Aws::String& GetBody() const { return m_body; }
66 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
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>
70 DefaultPushNotificationMessage& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
72
74
79 inline const Aws::Map<Aws::String, Aws::String>& GetData() const { return m_data; }
80 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
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>>
84 DefaultPushNotificationMessage& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
85 template<typename DataKeyT = Aws::String, typename DataValueT = Aws::String>
86 DefaultPushNotificationMessage& AddData(DataKeyT&& key, DataValueT&& value) {
87 m_dataHasBeenSet = true; m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value)); return *this;
88 }
90
92
98 inline bool GetSilentPush() const { return m_silentPush; }
99 inline bool SilentPushHasBeenSet() const { return m_silentPushHasBeenSet; }
100 inline void SetSilentPush(bool value) { m_silentPushHasBeenSet = true; m_silentPush = value; }
101 inline DefaultPushNotificationMessage& WithSilentPush(bool value) { SetSilentPush(value); return *this;}
103
105
109 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
110 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
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>>>
114 DefaultPushNotificationMessage& WithSubstitutions(SubstitutionsT&& value) { SetSubstitutions(std::forward<SubstitutionsT>(value)); return *this;}
115 template<typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
116 DefaultPushNotificationMessage& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
117 m_substitutionsHasBeenSet = true; m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value)); return *this;
118 }
120
122
126 inline const Aws::String& GetTitle() const { return m_title; }
127 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
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>
131 DefaultPushNotificationMessage& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
133
135
140 inline const Aws::String& GetUrl() const { return m_url; }
141 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
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>
145 DefaultPushNotificationMessage& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
147 private:
148
149 Action m_action{Action::NOT_SET};
150 bool m_actionHasBeenSet = false;
151
152 Aws::String m_body;
153 bool m_bodyHasBeenSet = false;
154
156 bool m_dataHasBeenSet = false;
157
158 bool m_silentPush{false};
159 bool m_silentPushHasBeenSet = false;
160
162 bool m_substitutionsHasBeenSet = false;
163
164 Aws::String m_title;
165 bool m_titleHasBeenSet = false;
166
167 Aws::String m_url;
168 bool m_urlHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Pinpoint
173} // namespace Aws
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)
DefaultPushNotificationMessage & WithSubstitutions(SubstitutionsT &&value)
DefaultPushNotificationMessage & WithUrl(UrlT &&value)
const Aws::Map< Aws::String, Aws::String > & GetData() const
AWS_PINPOINT_API DefaultPushNotificationMessage(Aws::Utils::Json::JsonView jsonValue)
DefaultPushNotificationMessage & WithSilentPush(bool value)
DefaultPushNotificationMessage & AddData(DataKeyT &&key, DataValueT &&value)
AWS_PINPOINT_API DefaultPushNotificationMessage()=default
DefaultPushNotificationMessage & WithTitle(TitleT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
DefaultPushNotificationMessage & WithBody(BodyT &&value)
DefaultPushNotificationMessage & WithAction(Action 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