AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WriteCampaignRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/model/CustomDeliveryConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/pinpoint/model/CampaignHook.h>
12#include <aws/pinpoint/model/CampaignLimits.h>
13#include <aws/pinpoint/model/MessageConfiguration.h>
14#include <aws/pinpoint/model/Schedule.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/pinpoint/model/TemplateConfiguration.h>
17#include <aws/pinpoint/model/WriteTreatmentResource.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Pinpoint
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_PINPOINT_API WriteCampaignRequest();
47 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::Vector<WriteTreatmentResource>& GetAdditionalTreatments() const{ return m_additionalTreatments; }
56 inline bool AdditionalTreatmentsHasBeenSet() const { return m_additionalTreatmentsHasBeenSet; }
57 inline void SetAdditionalTreatments(const Aws::Vector<WriteTreatmentResource>& value) { m_additionalTreatmentsHasBeenSet = true; m_additionalTreatments = value; }
58 inline void SetAdditionalTreatments(Aws::Vector<WriteTreatmentResource>&& value) { m_additionalTreatmentsHasBeenSet = true; m_additionalTreatments = std::move(value); }
61 inline WriteCampaignRequest& AddAdditionalTreatments(const WriteTreatmentResource& value) { m_additionalTreatmentsHasBeenSet = true; m_additionalTreatments.push_back(value); return *this; }
62 inline WriteCampaignRequest& AddAdditionalTreatments(WriteTreatmentResource&& value) { m_additionalTreatmentsHasBeenSet = true; m_additionalTreatments.push_back(std::move(value)); return *this; }
64
66
71 inline const CustomDeliveryConfiguration& GetCustomDeliveryConfiguration() const{ return m_customDeliveryConfiguration; }
72 inline bool CustomDeliveryConfigurationHasBeenSet() const { return m_customDeliveryConfigurationHasBeenSet; }
73 inline void SetCustomDeliveryConfiguration(const CustomDeliveryConfiguration& value) { m_customDeliveryConfigurationHasBeenSet = true; m_customDeliveryConfiguration = value; }
74 inline void SetCustomDeliveryConfiguration(CustomDeliveryConfiguration&& value) { m_customDeliveryConfigurationHasBeenSet = true; m_customDeliveryConfiguration = std::move(value); }
78
80
83 inline const Aws::String& GetDescription() const{ return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
86 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
87 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
88 inline WriteCampaignRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
89 inline WriteCampaignRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
90 inline WriteCampaignRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
92
94
98 inline int GetHoldoutPercent() const{ return m_holdoutPercent; }
99 inline bool HoldoutPercentHasBeenSet() const { return m_holdoutPercentHasBeenSet; }
100 inline void SetHoldoutPercent(int value) { m_holdoutPercentHasBeenSet = true; m_holdoutPercent = value; }
101 inline WriteCampaignRequest& WithHoldoutPercent(int value) { SetHoldoutPercent(value); return *this;}
103
105
110 inline const CampaignHook& GetHook() const{ return m_hook; }
111 inline bool HookHasBeenSet() const { return m_hookHasBeenSet; }
112 inline void SetHook(const CampaignHook& value) { m_hookHasBeenSet = true; m_hook = value; }
113 inline void SetHook(CampaignHook&& value) { m_hookHasBeenSet = true; m_hook = std::move(value); }
114 inline WriteCampaignRequest& WithHook(const CampaignHook& value) { SetHook(value); return *this;}
115 inline WriteCampaignRequest& WithHook(CampaignHook&& value) { SetHook(std::move(value)); return *this;}
117
119
123 inline bool GetIsPaused() const{ return m_isPaused; }
124 inline bool IsPausedHasBeenSet() const { return m_isPausedHasBeenSet; }
125 inline void SetIsPaused(bool value) { m_isPausedHasBeenSet = true; m_isPaused = value; }
126 inline WriteCampaignRequest& WithIsPaused(bool value) { SetIsPaused(value); return *this;}
128
130
133 inline const CampaignLimits& GetLimits() const{ return m_limits; }
134 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
135 inline void SetLimits(const CampaignLimits& value) { m_limitsHasBeenSet = true; m_limits = value; }
136 inline void SetLimits(CampaignLimits&& value) { m_limitsHasBeenSet = true; m_limits = std::move(value); }
137 inline WriteCampaignRequest& WithLimits(const CampaignLimits& value) { SetLimits(value); return *this;}
138 inline WriteCampaignRequest& WithLimits(CampaignLimits&& value) { SetLimits(std::move(value)); return *this;}
140
142
145 inline const MessageConfiguration& GetMessageConfiguration() const{ return m_messageConfiguration; }
146 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
147 inline void SetMessageConfiguration(const MessageConfiguration& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = value; }
148 inline void SetMessageConfiguration(MessageConfiguration&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::move(value); }
152
154
157 inline const Aws::String& GetName() const{ return m_name; }
158 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
159 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
160 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
161 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
162 inline WriteCampaignRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
163 inline WriteCampaignRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
164 inline WriteCampaignRequest& WithName(const char* value) { SetName(value); return *this;}
166
168
171 inline const Schedule& GetSchedule() const{ return m_schedule; }
172 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
173 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
174 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
175 inline WriteCampaignRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
176 inline WriteCampaignRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
178
180
183 inline const Aws::String& GetSegmentId() const{ return m_segmentId; }
184 inline bool SegmentIdHasBeenSet() const { return m_segmentIdHasBeenSet; }
185 inline void SetSegmentId(const Aws::String& value) { m_segmentIdHasBeenSet = true; m_segmentId = value; }
186 inline void SetSegmentId(Aws::String&& value) { m_segmentIdHasBeenSet = true; m_segmentId = std::move(value); }
187 inline void SetSegmentId(const char* value) { m_segmentIdHasBeenSet = true; m_segmentId.assign(value); }
188 inline WriteCampaignRequest& WithSegmentId(const Aws::String& value) { SetSegmentId(value); return *this;}
189 inline WriteCampaignRequest& WithSegmentId(Aws::String&& value) { SetSegmentId(std::move(value)); return *this;}
190 inline WriteCampaignRequest& WithSegmentId(const char* value) { SetSegmentId(value); return *this;}
192
194
197 inline int GetSegmentVersion() const{ return m_segmentVersion; }
198 inline bool SegmentVersionHasBeenSet() const { return m_segmentVersionHasBeenSet; }
199 inline void SetSegmentVersion(int value) { m_segmentVersionHasBeenSet = true; m_segmentVersion = value; }
200 inline WriteCampaignRequest& WithSegmentVersion(int value) { SetSegmentVersion(value); return *this;}
202
204
217 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
220 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
221 inline WriteCampaignRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
222 inline WriteCampaignRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
223 inline WriteCampaignRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
224 inline WriteCampaignRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
225 inline WriteCampaignRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
226 inline WriteCampaignRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
227 inline WriteCampaignRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
228 inline WriteCampaignRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
229 inline WriteCampaignRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
231
233
236 inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }
237 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
238 inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
239 inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
243
245
248 inline const Aws::String& GetTreatmentDescription() const{ return m_treatmentDescription; }
249 inline bool TreatmentDescriptionHasBeenSet() const { return m_treatmentDescriptionHasBeenSet; }
250 inline void SetTreatmentDescription(const Aws::String& value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription = value; }
251 inline void SetTreatmentDescription(Aws::String&& value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription = std::move(value); }
252 inline void SetTreatmentDescription(const char* value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription.assign(value); }
254 inline WriteCampaignRequest& WithTreatmentDescription(Aws::String&& value) { SetTreatmentDescription(std::move(value)); return *this;}
255 inline WriteCampaignRequest& WithTreatmentDescription(const char* value) { SetTreatmentDescription(value); return *this;}
257
259
264 inline const Aws::String& GetTreatmentName() const{ return m_treatmentName; }
265 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
266 inline void SetTreatmentName(const Aws::String& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = value; }
267 inline void SetTreatmentName(Aws::String&& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = std::move(value); }
268 inline void SetTreatmentName(const char* value) { m_treatmentNameHasBeenSet = true; m_treatmentName.assign(value); }
269 inline WriteCampaignRequest& WithTreatmentName(const Aws::String& value) { SetTreatmentName(value); return *this;}
270 inline WriteCampaignRequest& WithTreatmentName(Aws::String&& value) { SetTreatmentName(std::move(value)); return *this;}
271 inline WriteCampaignRequest& WithTreatmentName(const char* value) { SetTreatmentName(value); return *this;}
273
275
280 inline int GetPriority() const{ return m_priority; }
281 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
282 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
283 inline WriteCampaignRequest& WithPriority(int value) { SetPriority(value); return *this;}
285 private:
286
287 Aws::Vector<WriteTreatmentResource> m_additionalTreatments;
288 bool m_additionalTreatmentsHasBeenSet = false;
289
290 CustomDeliveryConfiguration m_customDeliveryConfiguration;
291 bool m_customDeliveryConfigurationHasBeenSet = false;
292
293 Aws::String m_description;
294 bool m_descriptionHasBeenSet = false;
295
296 int m_holdoutPercent;
297 bool m_holdoutPercentHasBeenSet = false;
298
299 CampaignHook m_hook;
300 bool m_hookHasBeenSet = false;
301
302 bool m_isPaused;
303 bool m_isPausedHasBeenSet = false;
304
305 CampaignLimits m_limits;
306 bool m_limitsHasBeenSet = false;
307
308 MessageConfiguration m_messageConfiguration;
309 bool m_messageConfigurationHasBeenSet = false;
310
311 Aws::String m_name;
312 bool m_nameHasBeenSet = false;
313
314 Schedule m_schedule;
315 bool m_scheduleHasBeenSet = false;
316
317 Aws::String m_segmentId;
318 bool m_segmentIdHasBeenSet = false;
319
320 int m_segmentVersion;
321 bool m_segmentVersionHasBeenSet = false;
322
324 bool m_tagsHasBeenSet = false;
325
326 TemplateConfiguration m_templateConfiguration;
327 bool m_templateConfigurationHasBeenSet = false;
328
329 Aws::String m_treatmentDescription;
330 bool m_treatmentDescriptionHasBeenSet = false;
331
332 Aws::String m_treatmentName;
333 bool m_treatmentNameHasBeenSet = false;
334
335 int m_priority;
336 bool m_priorityHasBeenSet = false;
337 };
338
339} // namespace Model
340} // namespace Pinpoint
341} // namespace Aws
void SetMessageConfiguration(const MessageConfiguration &value)
void SetTreatmentName(const Aws::String &value)
void SetTemplateConfiguration(TemplateConfiguration &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
WriteCampaignRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
WriteCampaignRequest & WithSegmentId(const Aws::String &value)
WriteCampaignRequest & WithSegmentId(Aws::String &&value)
WriteCampaignRequest & WithTemplateConfiguration(TemplateConfiguration &&value)
void SetCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
WriteCampaignRequest & WithHook(CampaignHook &&value)
void SetMessageConfiguration(MessageConfiguration &&value)
WriteCampaignRequest & AddTags(Aws::String &&key, const char *value)
void SetCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
WriteCampaignRequest & WithSegmentId(const char *value)
WriteCampaignRequest & WithTreatmentDescription(Aws::String &&value)
WriteCampaignRequest & WithTemplateConfiguration(const TemplateConfiguration &value)
WriteCampaignRequest & AddAdditionalTreatments(const WriteTreatmentResource &value)
WriteCampaignRequest & AddTags(const Aws::String &key, Aws::String &&value)
WriteCampaignRequest & WithName(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
WriteCampaignRequest & WithHoldoutPercent(int value)
WriteCampaignRequest & AddTags(Aws::String &&key, Aws::String &&value)
WriteCampaignRequest & WithLimits(CampaignLimits &&value)
WriteCampaignRequest & WithDescription(const char *value)
const MessageConfiguration & GetMessageConfiguration() const
WriteCampaignRequest & AddTags(const char *key, Aws::String &&value)
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
void SetLimits(const CampaignLimits &value)
WriteCampaignRequest & WithMessageConfiguration(MessageConfiguration &&value)
WriteCampaignRequest & WithTreatmentName(Aws::String &&value)
AWS_PINPOINT_API WriteCampaignRequest(Aws::Utils::Json::JsonView jsonValue)
WriteCampaignRequest & WithAdditionalTreatments(Aws::Vector< WriteTreatmentResource > &&value)
AWS_PINPOINT_API WriteCampaignRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
WriteCampaignRequest & WithSchedule(const Schedule &value)
void SetAdditionalTreatments(Aws::Vector< WriteTreatmentResource > &&value)
WriteCampaignRequest & WithHook(const CampaignHook &value)
WriteCampaignRequest & WithSegmentVersion(int value)
WriteCampaignRequest & WithTreatmentName(const char *value)
WriteCampaignRequest & WithCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
void SetAdditionalTreatments(const Aws::Vector< WriteTreatmentResource > &value)
void SetDescription(const Aws::String &value)
const Aws::Vector< WriteTreatmentResource > & GetAdditionalTreatments() const
WriteCampaignRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
WriteCampaignRequest & WithIsPaused(bool value)
WriteCampaignRequest & WithLimits(const CampaignLimits &value)
WriteCampaignRequest & WithPriority(int value)
WriteCampaignRequest & WithName(const char *value)
WriteCampaignRequest & AddAdditionalTreatments(WriteTreatmentResource &&value)
WriteCampaignRequest & WithMessageConfiguration(const MessageConfiguration &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTreatmentDescription(const Aws::String &value)
void SetTemplateConfiguration(const TemplateConfiguration &value)
WriteCampaignRequest & WithName(Aws::String &&value)
WriteCampaignRequest & WithCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
WriteCampaignRequest & WithAdditionalTreatments(const Aws::Vector< WriteTreatmentResource > &value)
WriteCampaignRequest & WithDescription(Aws::String &&value)
WriteCampaignRequest & WithTreatmentDescription(const Aws::String &value)
const Aws::String & GetTreatmentDescription() const
WriteCampaignRequest & AddTags(const Aws::String &key, const Aws::String &value)
WriteCampaignRequest & WithTreatmentName(const Aws::String &value)
WriteCampaignRequest & WithDescription(const Aws::String &value)
WriteCampaignRequest & WithSchedule(Schedule &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
WriteCampaignRequest & AddTags(const char *key, const char *value)
WriteCampaignRequest & WithTreatmentDescription(const char *value)
WriteCampaignRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue