AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CampaignResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/Pinpoint_EXPORTS.h>
11#include <aws/pinpoint/model/CampaignHook.h>
12#include <aws/pinpoint/model/CampaignLimits.h>
13#include <aws/pinpoint/model/CampaignState.h>
14#include <aws/pinpoint/model/CustomDeliveryConfiguration.h>
15#include <aws/pinpoint/model/MessageConfiguration.h>
16#include <aws/pinpoint/model/Schedule.h>
17#include <aws/pinpoint/model/TemplateConfiguration.h>
18#include <aws/pinpoint/model/TreatmentResource.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Pinpoint {
30namespace Model {
31
39 public:
40 AWS_PINPOINT_API CampaignResponse() = default;
41 AWS_PINPOINT_API CampaignResponse(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline const Aws::Vector<TreatmentResource>& GetAdditionalTreatments() const { return m_additionalTreatments; }
51 inline bool AdditionalTreatmentsHasBeenSet() const { return m_additionalTreatmentsHasBeenSet; }
52 template <typename AdditionalTreatmentsT = Aws::Vector<TreatmentResource>>
53 void SetAdditionalTreatments(AdditionalTreatmentsT&& value) {
54 m_additionalTreatmentsHasBeenSet = true;
55 m_additionalTreatments = std::forward<AdditionalTreatmentsT>(value);
56 }
57 template <typename AdditionalTreatmentsT = Aws::Vector<TreatmentResource>>
58 CampaignResponse& WithAdditionalTreatments(AdditionalTreatmentsT&& value) {
59 SetAdditionalTreatments(std::forward<AdditionalTreatmentsT>(value));
60 return *this;
61 }
62 template <typename AdditionalTreatmentsT = TreatmentResource>
63 CampaignResponse& AddAdditionalTreatments(AdditionalTreatmentsT&& value) {
64 m_additionalTreatmentsHasBeenSet = true;
65 m_additionalTreatments.emplace_back(std::forward<AdditionalTreatmentsT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
75 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
76 template <typename ApplicationIdT = Aws::String>
77 void SetApplicationId(ApplicationIdT&& value) {
78 m_applicationIdHasBeenSet = true;
79 m_applicationId = std::forward<ApplicationIdT>(value);
80 }
81 template <typename ApplicationIdT = Aws::String>
82 CampaignResponse& WithApplicationId(ApplicationIdT&& value) {
83 SetApplicationId(std::forward<ApplicationIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetArn() const { return m_arn; }
93 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
94 template <typename ArnT = Aws::String>
95 void SetArn(ArnT&& value) {
96 m_arnHasBeenSet = true;
97 m_arn = std::forward<ArnT>(value);
98 }
99 template <typename ArnT = Aws::String>
100 CampaignResponse& WithArn(ArnT&& value) {
101 SetArn(std::forward<ArnT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
111 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
112 template <typename CreationDateT = Aws::String>
113 void SetCreationDate(CreationDateT&& value) {
114 m_creationDateHasBeenSet = true;
115 m_creationDate = std::forward<CreationDateT>(value);
116 }
117 template <typename CreationDateT = Aws::String>
118 CampaignResponse& WithCreationDate(CreationDateT&& value) {
119 SetCreationDate(std::forward<CreationDateT>(value));
120 return *this;
121 }
123
125
129 inline const CustomDeliveryConfiguration& GetCustomDeliveryConfiguration() const { return m_customDeliveryConfiguration; }
130 inline bool CustomDeliveryConfigurationHasBeenSet() const { return m_customDeliveryConfigurationHasBeenSet; }
131 template <typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
132 void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) {
133 m_customDeliveryConfigurationHasBeenSet = true;
134 m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value);
135 }
136 template <typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
137 CampaignResponse& WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) {
138 SetCustomDeliveryConfiguration(std::forward<CustomDeliveryConfigurationT>(value));
139 return *this;
140 }
142
144
148 inline const CampaignState& GetDefaultState() const { return m_defaultState; }
149 inline bool DefaultStateHasBeenSet() const { return m_defaultStateHasBeenSet; }
150 template <typename DefaultStateT = CampaignState>
151 void SetDefaultState(DefaultStateT&& value) {
152 m_defaultStateHasBeenSet = true;
153 m_defaultState = std::forward<DefaultStateT>(value);
154 }
155 template <typename DefaultStateT = CampaignState>
156 CampaignResponse& WithDefaultState(DefaultStateT&& value) {
157 SetDefaultState(std::forward<DefaultStateT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetDescription() const { return m_description; }
167 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
168 template <typename DescriptionT = Aws::String>
169 void SetDescription(DescriptionT&& value) {
170 m_descriptionHasBeenSet = true;
171 m_description = std::forward<DescriptionT>(value);
172 }
173 template <typename DescriptionT = Aws::String>
174 CampaignResponse& WithDescription(DescriptionT&& value) {
175 SetDescription(std::forward<DescriptionT>(value));
176 return *this;
177 }
179
181
185 inline int GetHoldoutPercent() const { return m_holdoutPercent; }
186 inline bool HoldoutPercentHasBeenSet() const { return m_holdoutPercentHasBeenSet; }
187 inline void SetHoldoutPercent(int value) {
188 m_holdoutPercentHasBeenSet = true;
189 m_holdoutPercent = value;
190 }
192 SetHoldoutPercent(value);
193 return *this;
194 }
196
198
203 inline const CampaignHook& GetHook() const { return m_hook; }
204 inline bool HookHasBeenSet() const { return m_hookHasBeenSet; }
205 template <typename HookT = CampaignHook>
206 void SetHook(HookT&& value) {
207 m_hookHasBeenSet = true;
208 m_hook = std::forward<HookT>(value);
209 }
210 template <typename HookT = CampaignHook>
211 CampaignResponse& WithHook(HookT&& value) {
212 SetHook(std::forward<HookT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetId() const { return m_id; }
222 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
223 template <typename IdT = Aws::String>
224 void SetId(IdT&& value) {
225 m_idHasBeenSet = true;
226 m_id = std::forward<IdT>(value);
227 }
228 template <typename IdT = Aws::String>
229 CampaignResponse& WithId(IdT&& value) {
230 SetId(std::forward<IdT>(value));
231 return *this;
232 }
234
236
240 inline bool GetIsPaused() const { return m_isPaused; }
241 inline bool IsPausedHasBeenSet() const { return m_isPausedHasBeenSet; }
242 inline void SetIsPaused(bool value) {
243 m_isPausedHasBeenSet = true;
244 m_isPaused = value;
245 }
246 inline CampaignResponse& WithIsPaused(bool value) {
247 SetIsPaused(value);
248 return *this;
249 }
251
253
256 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
257 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
258 template <typename LastModifiedDateT = Aws::String>
259 void SetLastModifiedDate(LastModifiedDateT&& value) {
260 m_lastModifiedDateHasBeenSet = true;
261 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
262 }
263 template <typename LastModifiedDateT = Aws::String>
264 CampaignResponse& WithLastModifiedDate(LastModifiedDateT&& value) {
265 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
266 return *this;
267 }
269
271
274 inline const CampaignLimits& GetLimits() const { return m_limits; }
275 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
276 template <typename LimitsT = CampaignLimits>
277 void SetLimits(LimitsT&& value) {
278 m_limitsHasBeenSet = true;
279 m_limits = std::forward<LimitsT>(value);
280 }
281 template <typename LimitsT = CampaignLimits>
282 CampaignResponse& WithLimits(LimitsT&& value) {
283 SetLimits(std::forward<LimitsT>(value));
284 return *this;
285 }
287
289
292 inline const MessageConfiguration& GetMessageConfiguration() const { return m_messageConfiguration; }
293 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
294 template <typename MessageConfigurationT = MessageConfiguration>
295 void SetMessageConfiguration(MessageConfigurationT&& value) {
296 m_messageConfigurationHasBeenSet = true;
297 m_messageConfiguration = std::forward<MessageConfigurationT>(value);
298 }
299 template <typename MessageConfigurationT = MessageConfiguration>
300 CampaignResponse& WithMessageConfiguration(MessageConfigurationT&& value) {
301 SetMessageConfiguration(std::forward<MessageConfigurationT>(value));
302 return *this;
303 }
305
307
310 inline const Aws::String& GetName() const { return m_name; }
311 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
312 template <typename NameT = Aws::String>
313 void SetName(NameT&& value) {
314 m_nameHasBeenSet = true;
315 m_name = std::forward<NameT>(value);
316 }
317 template <typename NameT = Aws::String>
318 CampaignResponse& WithName(NameT&& value) {
319 SetName(std::forward<NameT>(value));
320 return *this;
321 }
323
325
328 inline const Schedule& GetSchedule() const { return m_schedule; }
329 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
330 template <typename ScheduleT = Schedule>
331 void SetSchedule(ScheduleT&& value) {
332 m_scheduleHasBeenSet = true;
333 m_schedule = std::forward<ScheduleT>(value);
334 }
335 template <typename ScheduleT = Schedule>
336 CampaignResponse& WithSchedule(ScheduleT&& value) {
337 SetSchedule(std::forward<ScheduleT>(value));
338 return *this;
339 }
341
343
347 inline const Aws::String& GetSegmentId() const { return m_segmentId; }
348 inline bool SegmentIdHasBeenSet() const { return m_segmentIdHasBeenSet; }
349 template <typename SegmentIdT = Aws::String>
350 void SetSegmentId(SegmentIdT&& value) {
351 m_segmentIdHasBeenSet = true;
352 m_segmentId = std::forward<SegmentIdT>(value);
353 }
354 template <typename SegmentIdT = Aws::String>
355 CampaignResponse& WithSegmentId(SegmentIdT&& value) {
356 SetSegmentId(std::forward<SegmentIdT>(value));
357 return *this;
358 }
360
362
365 inline int GetSegmentVersion() const { return m_segmentVersion; }
366 inline bool SegmentVersionHasBeenSet() const { return m_segmentVersionHasBeenSet; }
367 inline void SetSegmentVersion(int value) {
368 m_segmentVersionHasBeenSet = true;
369 m_segmentVersion = value;
370 }
372 SetSegmentVersion(value);
373 return *this;
374 }
376
378
381 inline const CampaignState& GetState() const { return m_state; }
382 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
383 template <typename StateT = CampaignState>
384 void SetState(StateT&& value) {
385 m_stateHasBeenSet = true;
386 m_state = std::forward<StateT>(value);
387 }
388 template <typename StateT = CampaignState>
389 CampaignResponse& WithState(StateT&& value) {
390 SetState(std::forward<StateT>(value));
391 return *this;
392 }
394
396
401 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
402 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
403 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
404 void SetTags(TagsT&& value) {
405 m_tagsHasBeenSet = true;
406 m_tags = std::forward<TagsT>(value);
407 }
408 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
409 CampaignResponse& WithTags(TagsT&& value) {
410 SetTags(std::forward<TagsT>(value));
411 return *this;
412 }
413 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
414 CampaignResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
415 m_tagsHasBeenSet = true;
416 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
417 return *this;
418 }
420
422
425 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
426 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
427 template <typename TemplateConfigurationT = TemplateConfiguration>
428 void SetTemplateConfiguration(TemplateConfigurationT&& value) {
429 m_templateConfigurationHasBeenSet = true;
430 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
431 }
432 template <typename TemplateConfigurationT = TemplateConfiguration>
433 CampaignResponse& WithTemplateConfiguration(TemplateConfigurationT&& value) {
434 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
435 return *this;
436 }
438
440
443 inline const Aws::String& GetTreatmentDescription() const { return m_treatmentDescription; }
444 inline bool TreatmentDescriptionHasBeenSet() const { return m_treatmentDescriptionHasBeenSet; }
445 template <typename TreatmentDescriptionT = Aws::String>
446 void SetTreatmentDescription(TreatmentDescriptionT&& value) {
447 m_treatmentDescriptionHasBeenSet = true;
448 m_treatmentDescription = std::forward<TreatmentDescriptionT>(value);
449 }
450 template <typename TreatmentDescriptionT = Aws::String>
451 CampaignResponse& WithTreatmentDescription(TreatmentDescriptionT&& value) {
452 SetTreatmentDescription(std::forward<TreatmentDescriptionT>(value));
453 return *this;
454 }
456
458
463 inline const Aws::String& GetTreatmentName() const { return m_treatmentName; }
464 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
465 template <typename TreatmentNameT = Aws::String>
466 void SetTreatmentName(TreatmentNameT&& value) {
467 m_treatmentNameHasBeenSet = true;
468 m_treatmentName = std::forward<TreatmentNameT>(value);
469 }
470 template <typename TreatmentNameT = Aws::String>
471 CampaignResponse& WithTreatmentName(TreatmentNameT&& value) {
472 SetTreatmentName(std::forward<TreatmentNameT>(value));
473 return *this;
474 }
476
478
481 inline int GetVersion() const { return m_version; }
482 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
483 inline void SetVersion(int value) {
484 m_versionHasBeenSet = true;
485 m_version = value;
486 }
487 inline CampaignResponse& WithVersion(int value) {
488 SetVersion(value);
489 return *this;
490 }
492
494
499 inline int GetPriority() const { return m_priority; }
500 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
501 inline void SetPriority(int value) {
502 m_priorityHasBeenSet = true;
503 m_priority = value;
504 }
505 inline CampaignResponse& WithPriority(int value) {
506 SetPriority(value);
507 return *this;
508 }
510 private:
511 Aws::Vector<TreatmentResource> m_additionalTreatments;
512 bool m_additionalTreatmentsHasBeenSet = false;
513
514 Aws::String m_applicationId;
515 bool m_applicationIdHasBeenSet = false;
516
517 Aws::String m_arn;
518 bool m_arnHasBeenSet = false;
519
520 Aws::String m_creationDate;
521 bool m_creationDateHasBeenSet = false;
522
523 CustomDeliveryConfiguration m_customDeliveryConfiguration;
524 bool m_customDeliveryConfigurationHasBeenSet = false;
525
526 CampaignState m_defaultState;
527 bool m_defaultStateHasBeenSet = false;
528
529 Aws::String m_description;
530 bool m_descriptionHasBeenSet = false;
531
532 int m_holdoutPercent{0};
533 bool m_holdoutPercentHasBeenSet = false;
534
535 CampaignHook m_hook;
536 bool m_hookHasBeenSet = false;
537
538 Aws::String m_id;
539 bool m_idHasBeenSet = false;
540
541 bool m_isPaused{false};
542 bool m_isPausedHasBeenSet = false;
543
544 Aws::String m_lastModifiedDate;
545 bool m_lastModifiedDateHasBeenSet = false;
546
547 CampaignLimits m_limits;
548 bool m_limitsHasBeenSet = false;
549
550 MessageConfiguration m_messageConfiguration;
551 bool m_messageConfigurationHasBeenSet = false;
552
553 Aws::String m_name;
554 bool m_nameHasBeenSet = false;
555
556 Schedule m_schedule;
557 bool m_scheduleHasBeenSet = false;
558
559 Aws::String m_segmentId;
560 bool m_segmentIdHasBeenSet = false;
561
562 int m_segmentVersion{0};
563 bool m_segmentVersionHasBeenSet = false;
564
565 CampaignState m_state;
566 bool m_stateHasBeenSet = false;
567
569 bool m_tagsHasBeenSet = false;
570
571 TemplateConfiguration m_templateConfiguration;
572 bool m_templateConfigurationHasBeenSet = false;
573
574 Aws::String m_treatmentDescription;
575 bool m_treatmentDescriptionHasBeenSet = false;
576
577 Aws::String m_treatmentName;
578 bool m_treatmentNameHasBeenSet = false;
579
580 int m_version{0};
581 bool m_versionHasBeenSet = false;
582
583 int m_priority{0};
584 bool m_priorityHasBeenSet = false;
585};
586
587} // namespace Model
588} // namespace Pinpoint
589} // namespace Aws
CampaignResponse & WithId(IdT &&value)
const CampaignState & GetState() const
AWS_PINPOINT_API CampaignResponse()=default
CampaignResponse & WithDescription(DescriptionT &&value)
const Aws::String & GetTreatmentDescription() const
void SetDescription(DescriptionT &&value)
void SetAdditionalTreatments(AdditionalTreatmentsT &&value)
const Aws::Vector< TreatmentResource > & GetAdditionalTreatments() const
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
AWS_PINPOINT_API CampaignResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const MessageConfiguration & GetMessageConfiguration() const
void SetLastModifiedDate(LastModifiedDateT &&value)
const Aws::String & GetSegmentId() const
void SetMessageConfiguration(MessageConfigurationT &&value)
const Aws::String & GetLastModifiedDate() const
CampaignResponse & WithMessageConfiguration(MessageConfigurationT &&value)
CampaignResponse & WithTemplateConfiguration(TemplateConfigurationT &&value)
CampaignResponse & WithTreatmentDescription(TreatmentDescriptionT &&value)
void SetTreatmentDescription(TreatmentDescriptionT &&value)
CampaignResponse & WithSegmentVersion(int value)
CampaignResponse & WithPriority(int value)
CampaignResponse & WithTreatmentName(TreatmentNameT &&value)
CampaignResponse & WithLimits(LimitsT &&value)
const CampaignHook & GetHook() const
CampaignResponse & WithTags(TagsT &&value)
CampaignResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CampaignResponse & WithSegmentId(SegmentIdT &&value)
const Aws::String & GetApplicationId() const
void SetCreationDate(CreationDateT &&value)
const Aws::String & GetName() const
CampaignResponse & WithName(NameT &&value)
void SetDefaultState(DefaultStateT &&value)
CampaignResponse & WithState(StateT &&value)
CampaignResponse & WithVersion(int value)
const CampaignState & GetDefaultState() const
const Aws::String & GetArn() const
void SetApplicationId(ApplicationIdT &&value)
CampaignResponse & WithHoldoutPercent(int value)
CampaignResponse & WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
CampaignResponse & WithSchedule(ScheduleT &&value)
CampaignResponse & WithApplicationId(ApplicationIdT &&value)
CampaignResponse & WithAdditionalTreatments(AdditionalTreatmentsT &&value)
const Aws::String & GetDescription() const
void SetTemplateConfiguration(TemplateConfigurationT &&value)
CampaignResponse & WithDefaultState(DefaultStateT &&value)
CampaignResponse & WithArn(ArnT &&value)
CampaignResponse & WithCreationDate(CreationDateT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTreatmentName() const
const Aws::String & GetCreationDate() const
CampaignResponse & AddAdditionalTreatments(AdditionalTreatmentsT &&value)
const CampaignLimits & GetLimits() const
CampaignResponse & WithIsPaused(bool value)
CampaignResponse & WithHook(HookT &&value)
void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
void SetTreatmentName(TreatmentNameT &&value)
AWS_PINPOINT_API CampaignResponse(Aws::Utils::Json::JsonView jsonValue)
CampaignResponse & WithLastModifiedDate(LastModifiedDateT &&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