AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CampaignResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint/model/CustomDeliveryConfiguration.h>
11#include <aws/pinpoint/model/CampaignState.h>
12#include <aws/pinpoint/model/CampaignHook.h>
13#include <aws/pinpoint/model/CampaignLimits.h>
14#include <aws/pinpoint/model/MessageConfiguration.h>
15#include <aws/pinpoint/model/Schedule.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/pinpoint/model/TemplateConfiguration.h>
18#include <aws/pinpoint/model/TreatmentResource.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 CampaignResponse() = default;
46 AWS_PINPOINT_API CampaignResponse(Aws::Utils::Json::JsonView jsonValue);
48 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const Aws::Vector<TreatmentResource>& GetAdditionalTreatments() const { return m_additionalTreatments; }
57 inline bool AdditionalTreatmentsHasBeenSet() const { return m_additionalTreatmentsHasBeenSet; }
58 template<typename AdditionalTreatmentsT = Aws::Vector<TreatmentResource>>
59 void SetAdditionalTreatments(AdditionalTreatmentsT&& value) { m_additionalTreatmentsHasBeenSet = true; m_additionalTreatments = std::forward<AdditionalTreatmentsT>(value); }
60 template<typename AdditionalTreatmentsT = Aws::Vector<TreatmentResource>>
61 CampaignResponse& WithAdditionalTreatments(AdditionalTreatmentsT&& value) { SetAdditionalTreatments(std::forward<AdditionalTreatmentsT>(value)); return *this;}
62 template<typename AdditionalTreatmentsT = TreatmentResource>
63 CampaignResponse& AddAdditionalTreatments(AdditionalTreatmentsT&& value) { m_additionalTreatmentsHasBeenSet = true; m_additionalTreatments.emplace_back(std::forward<AdditionalTreatmentsT>(value)); return *this; }
65
67
70 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
71 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
72 template<typename ApplicationIdT = Aws::String>
73 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
74 template<typename ApplicationIdT = Aws::String>
75 CampaignResponse& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetArn() const { return m_arn; }
83 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
84 template<typename ArnT = Aws::String>
85 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
86 template<typename ArnT = Aws::String>
87 CampaignResponse& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
89
91
94 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
95 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
96 template<typename CreationDateT = Aws::String>
97 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
98 template<typename CreationDateT = Aws::String>
99 CampaignResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
101
103
107 inline const CustomDeliveryConfiguration& GetCustomDeliveryConfiguration() const { return m_customDeliveryConfiguration; }
108 inline bool CustomDeliveryConfigurationHasBeenSet() const { return m_customDeliveryConfigurationHasBeenSet; }
109 template<typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
110 void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) { m_customDeliveryConfigurationHasBeenSet = true; m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value); }
111 template<typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
112 CampaignResponse& WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) { SetCustomDeliveryConfiguration(std::forward<CustomDeliveryConfigurationT>(value)); return *this;}
114
116
120 inline const CampaignState& GetDefaultState() const { return m_defaultState; }
121 inline bool DefaultStateHasBeenSet() const { return m_defaultStateHasBeenSet; }
122 template<typename DefaultStateT = CampaignState>
123 void SetDefaultState(DefaultStateT&& value) { m_defaultStateHasBeenSet = true; m_defaultState = std::forward<DefaultStateT>(value); }
124 template<typename DefaultStateT = CampaignState>
125 CampaignResponse& WithDefaultState(DefaultStateT&& value) { SetDefaultState(std::forward<DefaultStateT>(value)); return *this;}
127
129
132 inline const Aws::String& GetDescription() const { return m_description; }
133 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 template<typename DescriptionT = Aws::String>
135 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
136 template<typename DescriptionT = Aws::String>
137 CampaignResponse& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
139
141
145 inline int GetHoldoutPercent() const { return m_holdoutPercent; }
146 inline bool HoldoutPercentHasBeenSet() const { return m_holdoutPercentHasBeenSet; }
147 inline void SetHoldoutPercent(int value) { m_holdoutPercentHasBeenSet = true; m_holdoutPercent = value; }
148 inline CampaignResponse& WithHoldoutPercent(int value) { SetHoldoutPercent(value); return *this;}
150
152
157 inline const CampaignHook& GetHook() const { return m_hook; }
158 inline bool HookHasBeenSet() const { return m_hookHasBeenSet; }
159 template<typename HookT = CampaignHook>
160 void SetHook(HookT&& value) { m_hookHasBeenSet = true; m_hook = std::forward<HookT>(value); }
161 template<typename HookT = CampaignHook>
162 CampaignResponse& WithHook(HookT&& value) { SetHook(std::forward<HookT>(value)); return *this;}
164
166
169 inline const Aws::String& GetId() const { return m_id; }
170 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
171 template<typename IdT = Aws::String>
172 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
173 template<typename IdT = Aws::String>
174 CampaignResponse& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
176
178
182 inline bool GetIsPaused() const { return m_isPaused; }
183 inline bool IsPausedHasBeenSet() const { return m_isPausedHasBeenSet; }
184 inline void SetIsPaused(bool value) { m_isPausedHasBeenSet = true; m_isPaused = value; }
185 inline CampaignResponse& WithIsPaused(bool value) { SetIsPaused(value); return *this;}
187
189
192 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
193 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
194 template<typename LastModifiedDateT = Aws::String>
195 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
196 template<typename LastModifiedDateT = Aws::String>
197 CampaignResponse& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
199
201
204 inline const CampaignLimits& GetLimits() const { return m_limits; }
205 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
206 template<typename LimitsT = CampaignLimits>
207 void SetLimits(LimitsT&& value) { m_limitsHasBeenSet = true; m_limits = std::forward<LimitsT>(value); }
208 template<typename LimitsT = CampaignLimits>
209 CampaignResponse& WithLimits(LimitsT&& value) { SetLimits(std::forward<LimitsT>(value)); return *this;}
211
213
216 inline const MessageConfiguration& GetMessageConfiguration() const { return m_messageConfiguration; }
217 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
218 template<typename MessageConfigurationT = MessageConfiguration>
219 void SetMessageConfiguration(MessageConfigurationT&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::forward<MessageConfigurationT>(value); }
220 template<typename MessageConfigurationT = MessageConfiguration>
221 CampaignResponse& WithMessageConfiguration(MessageConfigurationT&& value) { SetMessageConfiguration(std::forward<MessageConfigurationT>(value)); return *this;}
223
225
228 inline const Aws::String& GetName() const { return m_name; }
229 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
230 template<typename NameT = Aws::String>
231 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
232 template<typename NameT = Aws::String>
233 CampaignResponse& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
235
237
240 inline const Schedule& GetSchedule() const { return m_schedule; }
241 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
242 template<typename ScheduleT = Schedule>
243 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
244 template<typename ScheduleT = Schedule>
245 CampaignResponse& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
247
249
253 inline const Aws::String& GetSegmentId() const { return m_segmentId; }
254 inline bool SegmentIdHasBeenSet() const { return m_segmentIdHasBeenSet; }
255 template<typename SegmentIdT = Aws::String>
256 void SetSegmentId(SegmentIdT&& value) { m_segmentIdHasBeenSet = true; m_segmentId = std::forward<SegmentIdT>(value); }
257 template<typename SegmentIdT = Aws::String>
258 CampaignResponse& WithSegmentId(SegmentIdT&& value) { SetSegmentId(std::forward<SegmentIdT>(value)); return *this;}
260
262
265 inline int GetSegmentVersion() const { return m_segmentVersion; }
266 inline bool SegmentVersionHasBeenSet() const { return m_segmentVersionHasBeenSet; }
267 inline void SetSegmentVersion(int value) { m_segmentVersionHasBeenSet = true; m_segmentVersion = value; }
268 inline CampaignResponse& WithSegmentVersion(int value) { SetSegmentVersion(value); return *this;}
270
272
275 inline const CampaignState& GetState() const { return m_state; }
276 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
277 template<typename StateT = CampaignState>
278 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
279 template<typename StateT = CampaignState>
280 CampaignResponse& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
282
284
289 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
290 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
291 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
292 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
293 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
294 CampaignResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
295 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
296 CampaignResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
297 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
298 }
300
302
305 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
306 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
307 template<typename TemplateConfigurationT = TemplateConfiguration>
308 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
309 template<typename TemplateConfigurationT = TemplateConfiguration>
310 CampaignResponse& WithTemplateConfiguration(TemplateConfigurationT&& value) { SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value)); return *this;}
312
314
317 inline const Aws::String& GetTreatmentDescription() const { return m_treatmentDescription; }
318 inline bool TreatmentDescriptionHasBeenSet() const { return m_treatmentDescriptionHasBeenSet; }
319 template<typename TreatmentDescriptionT = Aws::String>
320 void SetTreatmentDescription(TreatmentDescriptionT&& value) { m_treatmentDescriptionHasBeenSet = true; m_treatmentDescription = std::forward<TreatmentDescriptionT>(value); }
321 template<typename TreatmentDescriptionT = Aws::String>
322 CampaignResponse& WithTreatmentDescription(TreatmentDescriptionT&& value) { SetTreatmentDescription(std::forward<TreatmentDescriptionT>(value)); return *this;}
324
326
331 inline const Aws::String& GetTreatmentName() const { return m_treatmentName; }
332 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
333 template<typename TreatmentNameT = Aws::String>
334 void SetTreatmentName(TreatmentNameT&& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = std::forward<TreatmentNameT>(value); }
335 template<typename TreatmentNameT = Aws::String>
336 CampaignResponse& WithTreatmentName(TreatmentNameT&& value) { SetTreatmentName(std::forward<TreatmentNameT>(value)); return *this;}
338
340
343 inline int GetVersion() const { return m_version; }
344 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
345 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
346 inline CampaignResponse& WithVersion(int value) { SetVersion(value); return *this;}
348
350
355 inline int GetPriority() const { return m_priority; }
356 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
357 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
358 inline CampaignResponse& WithPriority(int value) { SetPriority(value); return *this;}
360 private:
361
362 Aws::Vector<TreatmentResource> m_additionalTreatments;
363 bool m_additionalTreatmentsHasBeenSet = false;
364
365 Aws::String m_applicationId;
366 bool m_applicationIdHasBeenSet = false;
367
368 Aws::String m_arn;
369 bool m_arnHasBeenSet = false;
370
371 Aws::String m_creationDate;
372 bool m_creationDateHasBeenSet = false;
373
374 CustomDeliveryConfiguration m_customDeliveryConfiguration;
375 bool m_customDeliveryConfigurationHasBeenSet = false;
376
377 CampaignState m_defaultState;
378 bool m_defaultStateHasBeenSet = false;
379
380 Aws::String m_description;
381 bool m_descriptionHasBeenSet = false;
382
383 int m_holdoutPercent{0};
384 bool m_holdoutPercentHasBeenSet = false;
385
386 CampaignHook m_hook;
387 bool m_hookHasBeenSet = false;
388
389 Aws::String m_id;
390 bool m_idHasBeenSet = false;
391
392 bool m_isPaused{false};
393 bool m_isPausedHasBeenSet = false;
394
395 Aws::String m_lastModifiedDate;
396 bool m_lastModifiedDateHasBeenSet = false;
397
398 CampaignLimits m_limits;
399 bool m_limitsHasBeenSet = false;
400
401 MessageConfiguration m_messageConfiguration;
402 bool m_messageConfigurationHasBeenSet = false;
403
404 Aws::String m_name;
405 bool m_nameHasBeenSet = false;
406
407 Schedule m_schedule;
408 bool m_scheduleHasBeenSet = false;
409
410 Aws::String m_segmentId;
411 bool m_segmentIdHasBeenSet = false;
412
413 int m_segmentVersion{0};
414 bool m_segmentVersionHasBeenSet = false;
415
416 CampaignState m_state;
417 bool m_stateHasBeenSet = false;
418
420 bool m_tagsHasBeenSet = false;
421
422 TemplateConfiguration m_templateConfiguration;
423 bool m_templateConfigurationHasBeenSet = false;
424
425 Aws::String m_treatmentDescription;
426 bool m_treatmentDescriptionHasBeenSet = false;
427
428 Aws::String m_treatmentName;
429 bool m_treatmentNameHasBeenSet = false;
430
431 int m_version{0};
432 bool m_versionHasBeenSet = false;
433
434 int m_priority{0};
435 bool m_priorityHasBeenSet = false;
436 };
437
438} // namespace Model
439} // namespace Pinpoint
440} // 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