AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MessageConfiguration.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/Message.h>
9#include <aws/pinpoint/model/CampaignCustomMessage.h>
10#include <aws/pinpoint/model/CampaignEmailMessage.h>
11#include <aws/pinpoint/model/CampaignSmsMessage.h>
12#include <aws/pinpoint/model/CampaignInAppMessage.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pinpoint
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_PINPOINT_API MessageConfiguration();
42 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Message& GetADMMessage() const{ return m_aDMMessage; }
51 inline bool ADMMessageHasBeenSet() const { return m_aDMMessageHasBeenSet; }
52 inline void SetADMMessage(const Message& value) { m_aDMMessageHasBeenSet = true; m_aDMMessage = value; }
53 inline void SetADMMessage(Message&& value) { m_aDMMessageHasBeenSet = true; m_aDMMessage = std::move(value); }
54 inline MessageConfiguration& WithADMMessage(const Message& value) { SetADMMessage(value); return *this;}
55 inline MessageConfiguration& WithADMMessage(Message&& value) { SetADMMessage(std::move(value)); return *this;}
57
59
63 inline const Message& GetAPNSMessage() const{ return m_aPNSMessage; }
64 inline bool APNSMessageHasBeenSet() const { return m_aPNSMessageHasBeenSet; }
65 inline void SetAPNSMessage(const Message& value) { m_aPNSMessageHasBeenSet = true; m_aPNSMessage = value; }
66 inline void SetAPNSMessage(Message&& value) { m_aPNSMessageHasBeenSet = true; m_aPNSMessage = std::move(value); }
67 inline MessageConfiguration& WithAPNSMessage(const Message& value) { SetAPNSMessage(value); return *this;}
68 inline MessageConfiguration& WithAPNSMessage(Message&& value) { SetAPNSMessage(std::move(value)); return *this;}
70
72
76 inline const Message& GetBaiduMessage() const{ return m_baiduMessage; }
77 inline bool BaiduMessageHasBeenSet() const { return m_baiduMessageHasBeenSet; }
78 inline void SetBaiduMessage(const Message& value) { m_baiduMessageHasBeenSet = true; m_baiduMessage = value; }
79 inline void SetBaiduMessage(Message&& value) { m_baiduMessageHasBeenSet = true; m_baiduMessage = std::move(value); }
80 inline MessageConfiguration& WithBaiduMessage(const Message& value) { SetBaiduMessage(value); return *this;}
81 inline MessageConfiguration& WithBaiduMessage(Message&& value) { SetBaiduMessage(std::move(value)); return *this;}
83
85
90 inline const CampaignCustomMessage& GetCustomMessage() const{ return m_customMessage; }
91 inline bool CustomMessageHasBeenSet() const { return m_customMessageHasBeenSet; }
92 inline void SetCustomMessage(const CampaignCustomMessage& value) { m_customMessageHasBeenSet = true; m_customMessage = value; }
93 inline void SetCustomMessage(CampaignCustomMessage&& value) { m_customMessageHasBeenSet = true; m_customMessage = std::move(value); }
95 inline MessageConfiguration& WithCustomMessage(CampaignCustomMessage&& value) { SetCustomMessage(std::move(value)); return *this;}
97
99
103 inline const Message& GetDefaultMessage() const{ return m_defaultMessage; }
104 inline bool DefaultMessageHasBeenSet() const { return m_defaultMessageHasBeenSet; }
105 inline void SetDefaultMessage(const Message& value) { m_defaultMessageHasBeenSet = true; m_defaultMessage = value; }
106 inline void SetDefaultMessage(Message&& value) { m_defaultMessageHasBeenSet = true; m_defaultMessage = std::move(value); }
107 inline MessageConfiguration& WithDefaultMessage(const Message& value) { SetDefaultMessage(value); return *this;}
108 inline MessageConfiguration& WithDefaultMessage(Message&& value) { SetDefaultMessage(std::move(value)); return *this;}
110
112
116 inline const CampaignEmailMessage& GetEmailMessage() const{ return m_emailMessage; }
117 inline bool EmailMessageHasBeenSet() const { return m_emailMessageHasBeenSet; }
118 inline void SetEmailMessage(const CampaignEmailMessage& value) { m_emailMessageHasBeenSet = true; m_emailMessage = value; }
119 inline void SetEmailMessage(CampaignEmailMessage&& value) { m_emailMessageHasBeenSet = true; m_emailMessage = std::move(value); }
120 inline MessageConfiguration& WithEmailMessage(const CampaignEmailMessage& value) { SetEmailMessage(value); return *this;}
121 inline MessageConfiguration& WithEmailMessage(CampaignEmailMessage&& value) { SetEmailMessage(std::move(value)); return *this;}
123
125
131 inline const Message& GetGCMMessage() const{ return m_gCMMessage; }
132 inline bool GCMMessageHasBeenSet() const { return m_gCMMessageHasBeenSet; }
133 inline void SetGCMMessage(const Message& value) { m_gCMMessageHasBeenSet = true; m_gCMMessage = value; }
134 inline void SetGCMMessage(Message&& value) { m_gCMMessageHasBeenSet = true; m_gCMMessage = std::move(value); }
135 inline MessageConfiguration& WithGCMMessage(const Message& value) { SetGCMMessage(value); return *this;}
136 inline MessageConfiguration& WithGCMMessage(Message&& value) { SetGCMMessage(std::move(value)); return *this;}
138
140
144 inline const CampaignSmsMessage& GetSMSMessage() const{ return m_sMSMessage; }
145 inline bool SMSMessageHasBeenSet() const { return m_sMSMessageHasBeenSet; }
146 inline void SetSMSMessage(const CampaignSmsMessage& value) { m_sMSMessageHasBeenSet = true; m_sMSMessage = value; }
147 inline void SetSMSMessage(CampaignSmsMessage&& value) { m_sMSMessageHasBeenSet = true; m_sMSMessage = std::move(value); }
148 inline MessageConfiguration& WithSMSMessage(const CampaignSmsMessage& value) { SetSMSMessage(value); return *this;}
149 inline MessageConfiguration& WithSMSMessage(CampaignSmsMessage&& value) { SetSMSMessage(std::move(value)); return *this;}
151
153
156 inline const CampaignInAppMessage& GetInAppMessage() const{ return m_inAppMessage; }
157 inline bool InAppMessageHasBeenSet() const { return m_inAppMessageHasBeenSet; }
158 inline void SetInAppMessage(const CampaignInAppMessage& value) { m_inAppMessageHasBeenSet = true; m_inAppMessage = value; }
159 inline void SetInAppMessage(CampaignInAppMessage&& value) { m_inAppMessageHasBeenSet = true; m_inAppMessage = std::move(value); }
160 inline MessageConfiguration& WithInAppMessage(const CampaignInAppMessage& value) { SetInAppMessage(value); return *this;}
161 inline MessageConfiguration& WithInAppMessage(CampaignInAppMessage&& value) { SetInAppMessage(std::move(value)); return *this;}
163 private:
164
165 Message m_aDMMessage;
166 bool m_aDMMessageHasBeenSet = false;
167
168 Message m_aPNSMessage;
169 bool m_aPNSMessageHasBeenSet = false;
170
171 Message m_baiduMessage;
172 bool m_baiduMessageHasBeenSet = false;
173
174 CampaignCustomMessage m_customMessage;
175 bool m_customMessageHasBeenSet = false;
176
177 Message m_defaultMessage;
178 bool m_defaultMessageHasBeenSet = false;
179
180 CampaignEmailMessage m_emailMessage;
181 bool m_emailMessageHasBeenSet = false;
182
183 Message m_gCMMessage;
184 bool m_gCMMessageHasBeenSet = false;
185
186 CampaignSmsMessage m_sMSMessage;
187 bool m_sMSMessageHasBeenSet = false;
188
189 CampaignInAppMessage m_inAppMessage;
190 bool m_inAppMessageHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace Pinpoint
195} // namespace Aws
MessageConfiguration & WithAPNSMessage(Message &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API MessageConfiguration(Aws::Utils::Json::JsonView jsonValue)
const CampaignSmsMessage & GetSMSMessage() const
MessageConfiguration & WithSMSMessage(CampaignSmsMessage &&value)
MessageConfiguration & WithSMSMessage(const CampaignSmsMessage &value)
void SetCustomMessage(const CampaignCustomMessage &value)
MessageConfiguration & WithCustomMessage(CampaignCustomMessage &&value)
MessageConfiguration & WithBaiduMessage(Message &&value)
const CampaignInAppMessage & GetInAppMessage() const
MessageConfiguration & WithAPNSMessage(const Message &value)
MessageConfiguration & WithEmailMessage(const CampaignEmailMessage &value)
MessageConfiguration & WithDefaultMessage(Message &&value)
MessageConfiguration & WithCustomMessage(const CampaignCustomMessage &value)
MessageConfiguration & WithGCMMessage(Message &&value)
void SetEmailMessage(CampaignEmailMessage &&value)
MessageConfiguration & WithGCMMessage(const Message &value)
void SetSMSMessage(const CampaignSmsMessage &value)
void SetEmailMessage(const CampaignEmailMessage &value)
void SetCustomMessage(CampaignCustomMessage &&value)
const CampaignEmailMessage & GetEmailMessage() const
MessageConfiguration & WithBaiduMessage(const Message &value)
MessageConfiguration & WithInAppMessage(CampaignInAppMessage &&value)
MessageConfiguration & WithDefaultMessage(const Message &value)
MessageConfiguration & WithInAppMessage(const CampaignInAppMessage &value)
void SetSMSMessage(CampaignSmsMessage &&value)
void SetInAppMessage(CampaignInAppMessage &&value)
MessageConfiguration & WithADMMessage(const Message &value)
const CampaignCustomMessage & GetCustomMessage() const
MessageConfiguration & WithEmailMessage(CampaignEmailMessage &&value)
MessageConfiguration & WithADMMessage(Message &&value)
AWS_PINPOINT_API MessageConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInAppMessage(const CampaignInAppMessage &value)
Aws::Utils::Json::JsonValue JsonValue