AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
54 inline const Action& GetAction() const{ return m_action; }
55 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
56 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
57 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
58 inline DefaultPushNotificationTemplate& WithAction(const Action& value) { SetAction(value); return *this;}
59 inline DefaultPushNotificationTemplate& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
61
63
67 inline const Aws::String& GetBody() const{ return m_body; }
68 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
69 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
70 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
71 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
72 inline DefaultPushNotificationTemplate& WithBody(const Aws::String& value) { SetBody(value); return *this;}
73 inline DefaultPushNotificationTemplate& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
74 inline DefaultPushNotificationTemplate& WithBody(const char* value) { SetBody(value); return *this;}
76
78
88 inline const Aws::String& GetSound() const{ return m_sound; }
89 inline bool SoundHasBeenSet() const { return m_soundHasBeenSet; }
90 inline void SetSound(const Aws::String& value) { m_soundHasBeenSet = true; m_sound = value; }
91 inline void SetSound(Aws::String&& value) { m_soundHasBeenSet = true; m_sound = std::move(value); }
92 inline void SetSound(const char* value) { m_soundHasBeenSet = true; m_sound.assign(value); }
93 inline DefaultPushNotificationTemplate& WithSound(const Aws::String& value) { SetSound(value); return *this;}
94 inline DefaultPushNotificationTemplate& WithSound(Aws::String&& value) { SetSound(std::move(value)); return *this;}
95 inline DefaultPushNotificationTemplate& WithSound(const char* value) { SetSound(value); return *this;}
97
99
104 inline const Aws::String& GetTitle() const{ return m_title; }
105 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
106 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
107 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
108 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
109 inline DefaultPushNotificationTemplate& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
110 inline DefaultPushNotificationTemplate& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
111 inline DefaultPushNotificationTemplate& WithTitle(const char* value) { SetTitle(value); return *this;}
113
115
120 inline const Aws::String& GetUrl() const{ return m_url; }
121 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
122 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
123 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
124 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
125 inline DefaultPushNotificationTemplate& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
126 inline DefaultPushNotificationTemplate& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
127 inline DefaultPushNotificationTemplate& WithUrl(const char* value) { SetUrl(value); return *this;}
129 private:
130
131 Action m_action;
132 bool m_actionHasBeenSet = false;
133
134 Aws::String m_body;
135 bool m_bodyHasBeenSet = false;
136
137 Aws::String m_sound;
138 bool m_soundHasBeenSet = false;
139
140 Aws::String m_title;
141 bool m_titleHasBeenSet = false;
142
143 Aws::String m_url;
144 bool m_urlHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Pinpoint
149} // namespace Aws
DefaultPushNotificationTemplate & WithUrl(const char *value)
DefaultPushNotificationTemplate & WithSound(const Aws::String &value)
DefaultPushNotificationTemplate & WithTitle(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultPushNotificationTemplate & WithUrl(Aws::String &&value)
DefaultPushNotificationTemplate & WithAction(const Action &value)
DefaultPushNotificationTemplate & WithAction(Action &&value)
DefaultPushNotificationTemplate & WithSound(Aws::String &&value)
DefaultPushNotificationTemplate & WithTitle(Aws::String &&value)
DefaultPushNotificationTemplate & WithBody(const char *value)
DefaultPushNotificationTemplate & WithSound(const char *value)
DefaultPushNotificationTemplate & WithTitle(const char *value)
DefaultPushNotificationTemplate & WithBody(Aws::String &&value)
DefaultPushNotificationTemplate & WithBody(const Aws::String &value)
AWS_PINPOINT_API DefaultPushNotificationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultPushNotificationTemplate & WithUrl(const Aws::String &value)
AWS_PINPOINT_API DefaultPushNotificationTemplate(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue