AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Activity.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/CustomMessageActivity.h>
9#include <aws/pinpoint/model/ConditionalSplitActivity.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/pinpoint/model/EmailMessageActivity.h>
12#include <aws/pinpoint/model/HoldoutActivity.h>
13#include <aws/pinpoint/model/MultiConditionalSplitActivity.h>
14#include <aws/pinpoint/model/PushMessageActivity.h>
15#include <aws/pinpoint/model/RandomSplitActivity.h>
16#include <aws/pinpoint/model/SMSMessageActivity.h>
17#include <aws/pinpoint/model/WaitActivity.h>
18#include <aws/pinpoint/model/ContactCenterActivity.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace Pinpoint
32{
33namespace Model
34{
35
43 {
44 public:
45 AWS_PINPOINT_API Activity();
46 AWS_PINPOINT_API Activity(Aws::Utils::Json::JsonView jsonValue);
47 AWS_PINPOINT_API Activity& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const CustomMessageActivity& GetCUSTOM() const{ return m_cUSTOM; }
57 inline bool CUSTOMHasBeenSet() const { return m_cUSTOMHasBeenSet; }
58 inline void SetCUSTOM(const CustomMessageActivity& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM = value; }
59 inline void SetCUSTOM(CustomMessageActivity&& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM = std::move(value); }
60 inline Activity& WithCUSTOM(const CustomMessageActivity& value) { SetCUSTOM(value); return *this;}
61 inline Activity& WithCUSTOM(CustomMessageActivity&& value) { SetCUSTOM(std::move(value)); return *this;}
63
65
70 inline const ConditionalSplitActivity& GetConditionalSplit() const{ return m_conditionalSplit; }
71 inline bool ConditionalSplitHasBeenSet() const { return m_conditionalSplitHasBeenSet; }
72 inline void SetConditionalSplit(const ConditionalSplitActivity& value) { m_conditionalSplitHasBeenSet = true; m_conditionalSplit = value; }
73 inline void SetConditionalSplit(ConditionalSplitActivity&& value) { m_conditionalSplitHasBeenSet = true; m_conditionalSplit = std::move(value); }
74 inline Activity& WithConditionalSplit(const ConditionalSplitActivity& value) { SetConditionalSplit(value); return *this;}
75 inline Activity& WithConditionalSplit(ConditionalSplitActivity&& value) { SetConditionalSplit(std::move(value)); return *this;}
77
79
82 inline const Aws::String& GetDescription() const{ return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
85 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
86 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
87 inline Activity& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
88 inline Activity& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
89 inline Activity& WithDescription(const char* value) { SetDescription(value); return *this;}
91
93
97 inline const EmailMessageActivity& GetEMAIL() const{ return m_eMAIL; }
98 inline bool EMAILHasBeenSet() const { return m_eMAILHasBeenSet; }
99 inline void SetEMAIL(const EmailMessageActivity& value) { m_eMAILHasBeenSet = true; m_eMAIL = value; }
100 inline void SetEMAIL(EmailMessageActivity&& value) { m_eMAILHasBeenSet = true; m_eMAIL = std::move(value); }
101 inline Activity& WithEMAIL(const EmailMessageActivity& value) { SetEMAIL(value); return *this;}
102 inline Activity& WithEMAIL(EmailMessageActivity&& value) { SetEMAIL(std::move(value)); return *this;}
104
106
110 inline const HoldoutActivity& GetHoldout() const{ return m_holdout; }
111 inline bool HoldoutHasBeenSet() const { return m_holdoutHasBeenSet; }
112 inline void SetHoldout(const HoldoutActivity& value) { m_holdoutHasBeenSet = true; m_holdout = value; }
113 inline void SetHoldout(HoldoutActivity&& value) { m_holdoutHasBeenSet = true; m_holdout = std::move(value); }
114 inline Activity& WithHoldout(const HoldoutActivity& value) { SetHoldout(value); return *this;}
115 inline Activity& WithHoldout(HoldoutActivity&& value) { SetHoldout(std::move(value)); return *this;}
117
119
124 inline const MultiConditionalSplitActivity& GetMultiCondition() const{ return m_multiCondition; }
125 inline bool MultiConditionHasBeenSet() const { return m_multiConditionHasBeenSet; }
126 inline void SetMultiCondition(const MultiConditionalSplitActivity& value) { m_multiConditionHasBeenSet = true; m_multiCondition = value; }
127 inline void SetMultiCondition(MultiConditionalSplitActivity&& value) { m_multiConditionHasBeenSet = true; m_multiCondition = std::move(value); }
128 inline Activity& WithMultiCondition(const MultiConditionalSplitActivity& value) { SetMultiCondition(value); return *this;}
129 inline Activity& WithMultiCondition(MultiConditionalSplitActivity&& value) { SetMultiCondition(std::move(value)); return *this;}
131
133
137 inline const PushMessageActivity& GetPUSH() const{ return m_pUSH; }
138 inline bool PUSHHasBeenSet() const { return m_pUSHHasBeenSet; }
139 inline void SetPUSH(const PushMessageActivity& value) { m_pUSHHasBeenSet = true; m_pUSH = value; }
140 inline void SetPUSH(PushMessageActivity&& value) { m_pUSHHasBeenSet = true; m_pUSH = std::move(value); }
141 inline Activity& WithPUSH(const PushMessageActivity& value) { SetPUSH(value); return *this;}
142 inline Activity& WithPUSH(PushMessageActivity&& value) { SetPUSH(std::move(value)); return *this;}
144
146
151 inline const RandomSplitActivity& GetRandomSplit() const{ return m_randomSplit; }
152 inline bool RandomSplitHasBeenSet() const { return m_randomSplitHasBeenSet; }
153 inline void SetRandomSplit(const RandomSplitActivity& value) { m_randomSplitHasBeenSet = true; m_randomSplit = value; }
154 inline void SetRandomSplit(RandomSplitActivity&& value) { m_randomSplitHasBeenSet = true; m_randomSplit = std::move(value); }
155 inline Activity& WithRandomSplit(const RandomSplitActivity& value) { SetRandomSplit(value); return *this;}
156 inline Activity& WithRandomSplit(RandomSplitActivity&& value) { SetRandomSplit(std::move(value)); return *this;}
158
160
164 inline const SMSMessageActivity& GetSMS() const{ return m_sMS; }
165 inline bool SMSHasBeenSet() const { return m_sMSHasBeenSet; }
166 inline void SetSMS(const SMSMessageActivity& value) { m_sMSHasBeenSet = true; m_sMS = value; }
167 inline void SetSMS(SMSMessageActivity&& value) { m_sMSHasBeenSet = true; m_sMS = std::move(value); }
168 inline Activity& WithSMS(const SMSMessageActivity& value) { SetSMS(value); return *this;}
169 inline Activity& WithSMS(SMSMessageActivity&& value) { SetSMS(std::move(value)); return *this;}
171
173
178 inline const WaitActivity& GetWait() const{ return m_wait; }
179 inline bool WaitHasBeenSet() const { return m_waitHasBeenSet; }
180 inline void SetWait(const WaitActivity& value) { m_waitHasBeenSet = true; m_wait = value; }
181 inline void SetWait(WaitActivity&& value) { m_waitHasBeenSet = true; m_wait = std::move(value); }
182 inline Activity& WithWait(const WaitActivity& value) { SetWait(value); return *this;}
183 inline Activity& WithWait(WaitActivity&& value) { SetWait(std::move(value)); return *this;}
185
187
191 inline const ContactCenterActivity& GetContactCenter() const{ return m_contactCenter; }
192 inline bool ContactCenterHasBeenSet() const { return m_contactCenterHasBeenSet; }
193 inline void SetContactCenter(const ContactCenterActivity& value) { m_contactCenterHasBeenSet = true; m_contactCenter = value; }
194 inline void SetContactCenter(ContactCenterActivity&& value) { m_contactCenterHasBeenSet = true; m_contactCenter = std::move(value); }
195 inline Activity& WithContactCenter(const ContactCenterActivity& value) { SetContactCenter(value); return *this;}
196 inline Activity& WithContactCenter(ContactCenterActivity&& value) { SetContactCenter(std::move(value)); return *this;}
198 private:
199
200 CustomMessageActivity m_cUSTOM;
201 bool m_cUSTOMHasBeenSet = false;
202
203 ConditionalSplitActivity m_conditionalSplit;
204 bool m_conditionalSplitHasBeenSet = false;
205
206 Aws::String m_description;
207 bool m_descriptionHasBeenSet = false;
208
209 EmailMessageActivity m_eMAIL;
210 bool m_eMAILHasBeenSet = false;
211
212 HoldoutActivity m_holdout;
213 bool m_holdoutHasBeenSet = false;
214
215 MultiConditionalSplitActivity m_multiCondition;
216 bool m_multiConditionHasBeenSet = false;
217
218 PushMessageActivity m_pUSH;
219 bool m_pUSHHasBeenSet = false;
220
221 RandomSplitActivity m_randomSplit;
222 bool m_randomSplitHasBeenSet = false;
223
224 SMSMessageActivity m_sMS;
225 bool m_sMSHasBeenSet = false;
226
227 WaitActivity m_wait;
228 bool m_waitHasBeenSet = false;
229
230 ContactCenterActivity m_contactCenter;
231 bool m_contactCenterHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace Pinpoint
236} // namespace Aws
AWS_PINPOINT_API Activity()
const RandomSplitActivity & GetRandomSplit() const
Definition Activity.h:151
void SetPUSH(PushMessageActivity &&value)
Definition Activity.h:140
void SetDescription(const Aws::String &value)
Definition Activity.h:84
Activity & WithRandomSplit(const RandomSplitActivity &value)
Definition Activity.h:155
bool RandomSplitHasBeenSet() const
Definition Activity.h:152
Activity & WithCUSTOM(const CustomMessageActivity &value)
Definition Activity.h:60
Activity & WithCUSTOM(CustomMessageActivity &&value)
Definition Activity.h:61
void SetCUSTOM(const CustomMessageActivity &value)
Definition Activity.h:58
Activity & WithContactCenter(const ContactCenterActivity &value)
Definition Activity.h:195
void SetCUSTOM(CustomMessageActivity &&value)
Definition Activity.h:59
void SetDescription(Aws::String &&value)
Definition Activity.h:85
Activity & WithEMAIL(const EmailMessageActivity &value)
Definition Activity.h:101
Activity & WithMultiCondition(MultiConditionalSplitActivity &&value)
Definition Activity.h:129
Activity & WithConditionalSplit(ConditionalSplitActivity &&value)
Definition Activity.h:75
void SetContactCenter(ContactCenterActivity &&value)
Definition Activity.h:194
bool DescriptionHasBeenSet() const
Definition Activity.h:83
const CustomMessageActivity & GetCUSTOM() const
Definition Activity.h:56
void SetMultiCondition(MultiConditionalSplitActivity &&value)
Definition Activity.h:127
void SetEMAIL(EmailMessageActivity &&value)
Definition Activity.h:100
Activity & WithRandomSplit(RandomSplitActivity &&value)
Definition Activity.h:156
Activity & WithDescription(const Aws::String &value)
Definition Activity.h:87
const Aws::String & GetDescription() const
Definition Activity.h:82
void SetHoldout(const HoldoutActivity &value)
Definition Activity.h:112
Activity & WithConditionalSplit(const ConditionalSplitActivity &value)
Definition Activity.h:74
Activity & WithWait(const WaitActivity &value)
Definition Activity.h:182
bool MultiConditionHasBeenSet() const
Definition Activity.h:125
const SMSMessageActivity & GetSMS() const
Definition Activity.h:164
Activity & WithMultiCondition(const MultiConditionalSplitActivity &value)
Definition Activity.h:128
Activity & WithContactCenter(ContactCenterActivity &&value)
Definition Activity.h:196
const HoldoutActivity & GetHoldout() const
Definition Activity.h:110
Activity & WithHoldout(HoldoutActivity &&value)
Definition Activity.h:115
Activity & WithDescription(Aws::String &&value)
Definition Activity.h:88
void SetWait(WaitActivity &&value)
Definition Activity.h:181
const MultiConditionalSplitActivity & GetMultiCondition() const
Definition Activity.h:124
void SetSMS(const SMSMessageActivity &value)
Definition Activity.h:166
void SetDescription(const char *value)
Definition Activity.h:86
Activity & WithPUSH(PushMessageActivity &&value)
Definition Activity.h:142
const ConditionalSplitActivity & GetConditionalSplit() const
Definition Activity.h:70
void SetConditionalSplit(const ConditionalSplitActivity &value)
Definition Activity.h:72
const WaitActivity & GetWait() const
Definition Activity.h:178
Activity & WithPUSH(const PushMessageActivity &value)
Definition Activity.h:141
Activity & WithHoldout(const HoldoutActivity &value)
Definition Activity.h:114
AWS_PINPOINT_API Activity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConditionalSplit(ConditionalSplitActivity &&value)
Definition Activity.h:73
Activity & WithSMS(const SMSMessageActivity &value)
Definition Activity.h:168
void SetEMAIL(const EmailMessageActivity &value)
Definition Activity.h:99
void SetSMS(SMSMessageActivity &&value)
Definition Activity.h:167
void SetWait(const WaitActivity &value)
Definition Activity.h:180
const ContactCenterActivity & GetContactCenter() const
Definition Activity.h:191
void SetPUSH(const PushMessageActivity &value)
Definition Activity.h:139
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
Activity & WithWait(WaitActivity &&value)
Definition Activity.h:183
void SetRandomSplit(RandomSplitActivity &&value)
Definition Activity.h:154
const PushMessageActivity & GetPUSH() const
Definition Activity.h:137
const EmailMessageActivity & GetEMAIL() const
Definition Activity.h:97
void SetContactCenter(const ContactCenterActivity &value)
Definition Activity.h:193
Activity & WithSMS(SMSMessageActivity &&value)
Definition Activity.h:169
AWS_PINPOINT_API Activity(Aws::Utils::Json::JsonView jsonValue)
void SetHoldout(HoldoutActivity &&value)
Definition Activity.h:113
void SetMultiCondition(const MultiConditionalSplitActivity &value)
Definition Activity.h:126
Activity & WithEMAIL(EmailMessageActivity &&value)
Definition Activity.h:102
void SetRandomSplit(const RandomSplitActivity &value)
Definition Activity.h:153
Activity & WithDescription(const char *value)
Definition Activity.h:89
bool ContactCenterHasBeenSet() const
Definition Activity.h:192
bool ConditionalSplitHasBeenSet() const
Definition Activity.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue