AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DefaultPushNotificationTemplate.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PINPOINT_API DefaultPushNotificationTemplate() = default;
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
54 inline Action GetAction() const { return m_action; }
55 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
56 inline void SetAction(Action value) { m_actionHasBeenSet = true; m_action = value; }
57 inline DefaultPushNotificationTemplate& WithAction(Action value) { SetAction(value); return *this;}
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) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
69 template<typename BodyT = Aws::String>
70 DefaultPushNotificationTemplate& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
72
74
84 inline const Aws::String& GetSound() const { return m_sound; }
85 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; }
86 template<typename SoundT = Aws::String>
87 void SetSound(SoundT&& value) { m_soundHasBeenSet = true; m_sound = std::forward<SoundT>(value); }
88 template<typename SoundT = Aws::String>
89 DefaultPushNotificationTemplate& WithSound(SoundT&& value) { SetSound(std::forward<SoundT>(value)); return *this;}
91
93
98 inline const Aws::String& GetTitle() const { return m_title; }
99 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
100 template<typename TitleT = Aws::String>
101 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
102 template<typename TitleT = Aws::String>
103 DefaultPushNotificationTemplate& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
105
107
112 inline const Aws::String& GetUrl() const { return m_url; }
113 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
114 template<typename UrlT = Aws::String>
115 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
116 template<typename UrlT = Aws::String>
117 DefaultPushNotificationTemplate& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
119 private:
120
121 Action m_action{Action::NOT_SET};
122 bool m_actionHasBeenSet = false;
123
124 Aws::String m_body;
125 bool m_bodyHasBeenSet = false;
126
127 Aws::String m_sound;
128 bool m_soundHasBeenSet = false;
129
130 Aws::String m_title;
131 bool m_titleHasBeenSet = false;
132
133 Aws::String m_url;
134 bool m_urlHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Pinpoint
139} // 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