AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DirectMessageConfiguration.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/ADMMessage.h>
9#include <aws/pinpoint/model/APNSMessage.h>
10#include <aws/pinpoint/model/BaiduMessage.h>
11#include <aws/pinpoint/model/DefaultMessage.h>
12#include <aws/pinpoint/model/DefaultPushNotificationMessage.h>
13#include <aws/pinpoint/model/EmailMessage.h>
14#include <aws/pinpoint/model/GCMMessage.h>
15#include <aws/pinpoint/model/SMSMessage.h>
16#include <aws/pinpoint/model/VoiceMessage.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Pinpoint
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_PINPOINT_API DirectMessageConfiguration();
46 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
55 inline const ADMMessage& GetADMMessage() const{ return m_aDMMessage; }
56 inline bool ADMMessageHasBeenSet() const { return m_aDMMessageHasBeenSet; }
57 inline void SetADMMessage(const ADMMessage& value) { m_aDMMessageHasBeenSet = true; m_aDMMessage = value; }
58 inline void SetADMMessage(ADMMessage&& value) { m_aDMMessageHasBeenSet = true; m_aDMMessage = std::move(value); }
59 inline DirectMessageConfiguration& WithADMMessage(const ADMMessage& value) { SetADMMessage(value); return *this;}
60 inline DirectMessageConfiguration& WithADMMessage(ADMMessage&& value) { SetADMMessage(std::move(value)); return *this;}
62
64
69 inline const APNSMessage& GetAPNSMessage() const{ return m_aPNSMessage; }
70 inline bool APNSMessageHasBeenSet() const { return m_aPNSMessageHasBeenSet; }
71 inline void SetAPNSMessage(const APNSMessage& value) { m_aPNSMessageHasBeenSet = true; m_aPNSMessage = value; }
72 inline void SetAPNSMessage(APNSMessage&& value) { m_aPNSMessageHasBeenSet = true; m_aPNSMessage = std::move(value); }
73 inline DirectMessageConfiguration& WithAPNSMessage(const APNSMessage& value) { SetAPNSMessage(value); return *this;}
74 inline DirectMessageConfiguration& WithAPNSMessage(APNSMessage&& value) { SetAPNSMessage(std::move(value)); return *this;}
76
78
83 inline const BaiduMessage& GetBaiduMessage() const{ return m_baiduMessage; }
84 inline bool BaiduMessageHasBeenSet() const { return m_baiduMessageHasBeenSet; }
85 inline void SetBaiduMessage(const BaiduMessage& value) { m_baiduMessageHasBeenSet = true; m_baiduMessage = value; }
86 inline void SetBaiduMessage(BaiduMessage&& value) { m_baiduMessageHasBeenSet = true; m_baiduMessage = std::move(value); }
87 inline DirectMessageConfiguration& WithBaiduMessage(const BaiduMessage& value) { SetBaiduMessage(value); return *this;}
88 inline DirectMessageConfiguration& WithBaiduMessage(BaiduMessage&& value) { SetBaiduMessage(std::move(value)); return *this;}
90
92
95 inline const DefaultMessage& GetDefaultMessage() const{ return m_defaultMessage; }
96 inline bool DefaultMessageHasBeenSet() const { return m_defaultMessageHasBeenSet; }
97 inline void SetDefaultMessage(const DefaultMessage& value) { m_defaultMessageHasBeenSet = true; m_defaultMessage = value; }
98 inline void SetDefaultMessage(DefaultMessage&& value) { m_defaultMessageHasBeenSet = true; m_defaultMessage = std::move(value); }
100 inline DirectMessageConfiguration& WithDefaultMessage(DefaultMessage&& value) { SetDefaultMessage(std::move(value)); return *this;}
102
104
107 inline const DefaultPushNotificationMessage& GetDefaultPushNotificationMessage() const{ return m_defaultPushNotificationMessage; }
108 inline bool DefaultPushNotificationMessageHasBeenSet() const { return m_defaultPushNotificationMessageHasBeenSet; }
109 inline void SetDefaultPushNotificationMessage(const DefaultPushNotificationMessage& value) { m_defaultPushNotificationMessageHasBeenSet = true; m_defaultPushNotificationMessage = value; }
110 inline void SetDefaultPushNotificationMessage(DefaultPushNotificationMessage&& value) { m_defaultPushNotificationMessageHasBeenSet = true; m_defaultPushNotificationMessage = std::move(value); }
114
116
120 inline const EmailMessage& GetEmailMessage() const{ return m_emailMessage; }
121 inline bool EmailMessageHasBeenSet() const { return m_emailMessageHasBeenSet; }
122 inline void SetEmailMessage(const EmailMessage& value) { m_emailMessageHasBeenSet = true; m_emailMessage = value; }
123 inline void SetEmailMessage(EmailMessage&& value) { m_emailMessageHasBeenSet = true; m_emailMessage = std::move(value); }
124 inline DirectMessageConfiguration& WithEmailMessage(const EmailMessage& value) { SetEmailMessage(value); return *this;}
125 inline DirectMessageConfiguration& WithEmailMessage(EmailMessage&& value) { SetEmailMessage(std::move(value)); return *this;}
127
129
135 inline const GCMMessage& GetGCMMessage() const{ return m_gCMMessage; }
136 inline bool GCMMessageHasBeenSet() const { return m_gCMMessageHasBeenSet; }
137 inline void SetGCMMessage(const GCMMessage& value) { m_gCMMessageHasBeenSet = true; m_gCMMessage = value; }
138 inline void SetGCMMessage(GCMMessage&& value) { m_gCMMessageHasBeenSet = true; m_gCMMessage = std::move(value); }
139 inline DirectMessageConfiguration& WithGCMMessage(const GCMMessage& value) { SetGCMMessage(value); return *this;}
140 inline DirectMessageConfiguration& WithGCMMessage(GCMMessage&& value) { SetGCMMessage(std::move(value)); return *this;}
142
144
148 inline const SMSMessage& GetSMSMessage() const{ return m_sMSMessage; }
149 inline bool SMSMessageHasBeenSet() const { return m_sMSMessageHasBeenSet; }
150 inline void SetSMSMessage(const SMSMessage& value) { m_sMSMessageHasBeenSet = true; m_sMSMessage = value; }
151 inline void SetSMSMessage(SMSMessage&& value) { m_sMSMessageHasBeenSet = true; m_sMSMessage = std::move(value); }
152 inline DirectMessageConfiguration& WithSMSMessage(const SMSMessage& value) { SetSMSMessage(value); return *this;}
153 inline DirectMessageConfiguration& WithSMSMessage(SMSMessage&& value) { SetSMSMessage(std::move(value)); return *this;}
155
157
161 inline const VoiceMessage& GetVoiceMessage() const{ return m_voiceMessage; }
162 inline bool VoiceMessageHasBeenSet() const { return m_voiceMessageHasBeenSet; }
163 inline void SetVoiceMessage(const VoiceMessage& value) { m_voiceMessageHasBeenSet = true; m_voiceMessage = value; }
164 inline void SetVoiceMessage(VoiceMessage&& value) { m_voiceMessageHasBeenSet = true; m_voiceMessage = std::move(value); }
165 inline DirectMessageConfiguration& WithVoiceMessage(const VoiceMessage& value) { SetVoiceMessage(value); return *this;}
166 inline DirectMessageConfiguration& WithVoiceMessage(VoiceMessage&& value) { SetVoiceMessage(std::move(value)); return *this;}
168 private:
169
170 ADMMessage m_aDMMessage;
171 bool m_aDMMessageHasBeenSet = false;
172
173 APNSMessage m_aPNSMessage;
174 bool m_aPNSMessageHasBeenSet = false;
175
176 BaiduMessage m_baiduMessage;
177 bool m_baiduMessageHasBeenSet = false;
178
179 DefaultMessage m_defaultMessage;
180 bool m_defaultMessageHasBeenSet = false;
181
182 DefaultPushNotificationMessage m_defaultPushNotificationMessage;
183 bool m_defaultPushNotificationMessageHasBeenSet = false;
184
185 EmailMessage m_emailMessage;
186 bool m_emailMessageHasBeenSet = false;
187
188 GCMMessage m_gCMMessage;
189 bool m_gCMMessageHasBeenSet = false;
190
191 SMSMessage m_sMSMessage;
192 bool m_sMSMessageHasBeenSet = false;
193
194 VoiceMessage m_voiceMessage;
195 bool m_voiceMessageHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace Pinpoint
200} // namespace Aws
DirectMessageConfiguration & WithAPNSMessage(const APNSMessage &value)
DirectMessageConfiguration & WithEmailMessage(EmailMessage &&value)
DirectMessageConfiguration & WithADMMessage(ADMMessage &&value)
DirectMessageConfiguration & WithBaiduMessage(const BaiduMessage &value)
DirectMessageConfiguration & WithGCMMessage(GCMMessage &&value)
void SetDefaultPushNotificationMessage(DefaultPushNotificationMessage &&value)
DirectMessageConfiguration & WithEmailMessage(const EmailMessage &value)
const DefaultPushNotificationMessage & GetDefaultPushNotificationMessage() const
DirectMessageConfiguration & WithDefaultMessage(const DefaultMessage &value)
DirectMessageConfiguration & WithVoiceMessage(const VoiceMessage &value)
void SetDefaultPushNotificationMessage(const DefaultPushNotificationMessage &value)
DirectMessageConfiguration & WithSMSMessage(SMSMessage &&value)
DirectMessageConfiguration & WithVoiceMessage(VoiceMessage &&value)
DirectMessageConfiguration & WithGCMMessage(const GCMMessage &value)
AWS_PINPOINT_API DirectMessageConfiguration(Aws::Utils::Json::JsonView jsonValue)
DirectMessageConfiguration & WithDefaultMessage(DefaultMessage &&value)
AWS_PINPOINT_API DirectMessageConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
DirectMessageConfiguration & WithDefaultPushNotificationMessage(DefaultPushNotificationMessage &&value)
DirectMessageConfiguration & WithDefaultPushNotificationMessage(const DefaultPushNotificationMessage &value)
DirectMessageConfiguration & WithADMMessage(const ADMMessage &value)
DirectMessageConfiguration & WithAPNSMessage(APNSMessage &&value)
DirectMessageConfiguration & WithSMSMessage(const SMSMessage &value)
DirectMessageConfiguration & WithBaiduMessage(BaiduMessage &&value)
Aws::Utils::Json::JsonValue JsonValue