AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DefaultPushNotificationTemplate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/Action.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
31 public:
32 AWS_PINPOINT_API DefaultPushNotificationTemplate() = default;
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
48 inline Action GetAction() const { return m_action; }
49 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
50 inline void SetAction(Action value) {
51 m_actionHasBeenSet = true;
52 m_action = value;
53 }
55 SetAction(value);
56 return *this;
57 }
59
61
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) {
69 m_bodyHasBeenSet = true;
70 m_body = std::forward<BodyT>(value);
71 }
72 template <typename BodyT = Aws::String>
74 SetBody(std::forward<BodyT>(value));
75 return *this;
76 }
78
80
90 inline const Aws::String& GetSound() const { return m_sound; }
91 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; }
92 template <typename SoundT = Aws::String>
93 void SetSound(SoundT&& value) {
94 m_soundHasBeenSet = true;
95 m_sound = std::forward<SoundT>(value);
96 }
97 template <typename SoundT = Aws::String>
99 SetSound(std::forward<SoundT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::String& GetTitle() const { return m_title; }
111 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
112 template <typename TitleT = Aws::String>
113 void SetTitle(TitleT&& value) {
114 m_titleHasBeenSet = true;
115 m_title = std::forward<TitleT>(value);
116 }
117 template <typename TitleT = Aws::String>
119 SetTitle(std::forward<TitleT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::String& GetUrl() const { return m_url; }
131 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
132 template <typename UrlT = Aws::String>
133 void SetUrl(UrlT&& value) {
134 m_urlHasBeenSet = true;
135 m_url = std::forward<UrlT>(value);
136 }
137 template <typename UrlT = Aws::String>
139 SetUrl(std::forward<UrlT>(value));
140 return *this;
141 }
143 private:
144 Action m_action{Action::NOT_SET};
145
146 Aws::String m_body;
147
148 Aws::String m_sound;
149
150 Aws::String m_title;
151
152 Aws::String m_url;
153 bool m_actionHasBeenSet = false;
154 bool m_bodyHasBeenSet = false;
155 bool m_soundHasBeenSet = false;
156 bool m_titleHasBeenSet = false;
157 bool m_urlHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Pinpoint
162} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultPushNotificationTemplate & WithTitle(TitleT &&value)
AWS_PINPOINT_API DefaultPushNotificationTemplate()=default
DefaultPushNotificationTemplate & WithAction(Action value)
DefaultPushNotificationTemplate & WithSound(SoundT &&value)
DefaultPushNotificationTemplate & WithUrl(UrlT &&value)
AWS_PINPOINT_API DefaultPushNotificationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API DefaultPushNotificationTemplate(Aws::Utils::Json::JsonView jsonValue)
DefaultPushNotificationTemplate & WithBody(BodyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue