AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CampaignAsset.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
12#include <aws/partnercentral-marketing/model/ActivationIssue.h>
13#include <aws/partnercentral-marketing/model/AttemptStatus.h>
14#include <aws/partnercentral-marketing/model/CampaignAssetCategory.h>
15#include <aws/partnercentral-marketing/model/CampaignAssetFieldValue.h>
16#include <aws/partnercentral-marketing/model/CampaignAssetLayout.h>
17#include <aws/partnercentral-marketing/model/CampaignAssetState.h>
18#include <aws/partnercentral-marketing/model/CampaignAssetStateReason.h>
19#include <aws/partnercentral-marketing/model/DeliveryStatus.h>
20#include <aws/partnercentral-marketing/model/FileFormat.h>
21#include <aws/partnercentral-marketing/model/LayoutPreview.h>
22#include <aws/partnercentral-marketing/model/Platform.h>
23#include <aws/partnercentral-marketing/model/SendMode.h>
24
25#include <utility>
26
27namespace Aws {
28namespace Utils {
29namespace Cbor {
30class CborValue;
31} // namespace Cbor
32} // namespace Utils
33namespace PartnerCentralMarketing {
34namespace Model {
35
42 public:
43 AWS_PARTNERCENTRALMARKETING_API CampaignAsset() = default;
44 AWS_PARTNERCENTRALMARKETING_API CampaignAsset(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
45 AWS_PARTNERCENTRALMARKETING_API CampaignAsset& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
46 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
47
49
52 inline const Aws::String& GetId() const { return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 template <typename IdT = Aws::String>
55 void SetId(IdT&& value) {
56 m_idHasBeenSet = true;
57 m_id = std::forward<IdT>(value);
58 }
59 template <typename IdT = Aws::String>
60 CampaignAsset& WithId(IdT&& value) {
61 SetId(std::forward<IdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetCampaignId() const { return m_campaignId; }
71 inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; }
72 template <typename CampaignIdT = Aws::String>
73 void SetCampaignId(CampaignIdT&& value) {
74 m_campaignIdHasBeenSet = true;
75 m_campaignId = std::forward<CampaignIdT>(value);
76 }
77 template <typename CampaignIdT = Aws::String>
78 CampaignAsset& WithCampaignId(CampaignIdT&& value) {
79 SetCampaignId(std::forward<CampaignIdT>(value));
80 return *this;
81 }
83
85
88 inline CampaignAssetCategory GetCategory() const { return m_category; }
89 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
91 m_categoryHasBeenSet = true;
92 m_category = value;
93 }
95 SetCategory(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetName() const { return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 template <typename NameT = Aws::String>
107 void SetName(NameT&& value) {
108 m_nameHasBeenSet = true;
109 m_name = std::forward<NameT>(value);
110 }
111 template <typename NameT = Aws::String>
112 CampaignAsset& WithName(NameT&& value) {
113 SetName(std::forward<NameT>(value));
114 return *this;
115 }
117
119
124 inline const Aws::String& GetLinkLabel() const { return m_linkLabel; }
125 inline bool LinkLabelHasBeenSet() const { return m_linkLabelHasBeenSet; }
126 template <typename LinkLabelT = Aws::String>
127 void SetLinkLabel(LinkLabelT&& value) {
128 m_linkLabelHasBeenSet = true;
129 m_linkLabel = std::forward<LinkLabelT>(value);
130 }
131 template <typename LinkLabelT = Aws::String>
132 CampaignAsset& WithLinkLabel(LinkLabelT&& value) {
133 SetLinkLabel(std::forward<LinkLabelT>(value));
134 return *this;
135 }
137
139
150 inline CampaignAssetState GetState() const { return m_state; }
151 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
152 inline void SetState(CampaignAssetState value) {
153 m_stateHasBeenSet = true;
154 m_state = value;
155 }
157 SetState(value);
158 return *this;
159 }
161
163
180 inline AttemptStatus GetLastActivationStatus() const { return m_lastActivationStatus; }
181 inline bool LastActivationStatusHasBeenSet() const { return m_lastActivationStatusHasBeenSet; }
183 m_lastActivationStatusHasBeenSet = true;
184 m_lastActivationStatus = value;
185 }
188 return *this;
189 }
191
193
198 inline DeliveryStatus GetDeliveryStatus() const { return m_deliveryStatus; }
199 inline bool DeliveryStatusHasBeenSet() const { return m_deliveryStatusHasBeenSet; }
201 m_deliveryStatusHasBeenSet = true;
202 m_deliveryStatus = value;
203 }
205 SetDeliveryStatus(value);
206 return *this;
207 }
209
211
224 inline CampaignAssetStateReason GetDeliveryStatusReason() const { return m_deliveryStatusReason; }
225 inline bool DeliveryStatusReasonHasBeenSet() const { return m_deliveryStatusReasonHasBeenSet; }
227 m_deliveryStatusReasonHasBeenSet = true;
228 m_deliveryStatusReason = value;
229 }
235
237
249 inline const Aws::String& GetSourceAssetTemplateId() const { return m_sourceAssetTemplateId; }
250 inline bool SourceAssetTemplateIdHasBeenSet() const { return m_sourceAssetTemplateIdHasBeenSet; }
251 template <typename SourceAssetTemplateIdT = Aws::String>
252 void SetSourceAssetTemplateId(SourceAssetTemplateIdT&& value) {
253 m_sourceAssetTemplateIdHasBeenSet = true;
254 m_sourceAssetTemplateId = std::forward<SourceAssetTemplateIdT>(value);
255 }
256 template <typename SourceAssetTemplateIdT = Aws::String>
257 CampaignAsset& WithSourceAssetTemplateId(SourceAssetTemplateIdT&& value) {
258 SetSourceAssetTemplateId(std::forward<SourceAssetTemplateIdT>(value));
259 return *this;
260 }
262
264
269 inline Platform GetSocialPlatform() const { return m_socialPlatform; }
270 inline bool SocialPlatformHasBeenSet() const { return m_socialPlatformHasBeenSet; }
271 inline void SetSocialPlatform(Platform value) {
272 m_socialPlatformHasBeenSet = true;
273 m_socialPlatform = value;
274 }
276 SetSocialPlatform(value);
277 return *this;
278 }
280
282
286 inline FileFormat GetFileFormat() const { return m_fileFormat; }
287 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
288 inline void SetFileFormat(FileFormat value) {
289 m_fileFormatHasBeenSet = true;
290 m_fileFormat = value;
291 }
293 SetFileFormat(value);
294 return *this;
295 }
297
299
305 inline SendMode GetSendMode() const { return m_sendMode; }
306 inline bool SendModeHasBeenSet() const { return m_sendModeHasBeenSet; }
307 inline void SetSendMode(SendMode value) {
308 m_sendModeHasBeenSet = true;
309 m_sendMode = value;
310 }
312 SetSendMode(value);
313 return *this;
314 }
316
318
324 inline const Aws::Utils::DateTime& GetScheduledSendAt() const { return m_scheduledSendAt; }
325 inline bool ScheduledSendAtHasBeenSet() const { return m_scheduledSendAtHasBeenSet; }
326 template <typename ScheduledSendAtT = Aws::Utils::DateTime>
327 void SetScheduledSendAt(ScheduledSendAtT&& value) {
328 m_scheduledSendAtHasBeenSet = true;
329 m_scheduledSendAt = std::forward<ScheduledSendAtT>(value);
330 }
331 template <typename ScheduledSendAtT = Aws::Utils::DateTime>
332 CampaignAsset& WithScheduledSendAt(ScheduledSendAtT&& value) {
333 SetScheduledSendAt(std::forward<ScheduledSendAtT>(value));
334 return *this;
335 }
337
339
346 inline const Aws::Vector<CampaignAssetFieldValue>& GetFieldValues() const { return m_fieldValues; }
347 inline bool FieldValuesHasBeenSet() const { return m_fieldValuesHasBeenSet; }
348 template <typename FieldValuesT = Aws::Vector<CampaignAssetFieldValue>>
349 void SetFieldValues(FieldValuesT&& value) {
350 m_fieldValuesHasBeenSet = true;
351 m_fieldValues = std::forward<FieldValuesT>(value);
352 }
353 template <typename FieldValuesT = Aws::Vector<CampaignAssetFieldValue>>
354 CampaignAsset& WithFieldValues(FieldValuesT&& value) {
355 SetFieldValues(std::forward<FieldValuesT>(value));
356 return *this;
357 }
358 template <typename FieldValuesT = CampaignAssetFieldValue>
359 CampaignAsset& AddFieldValues(FieldValuesT&& value) {
360 m_fieldValuesHasBeenSet = true;
361 m_fieldValues.emplace_back(std::forward<FieldValuesT>(value));
362 return *this;
363 }
365
367
380 inline const Aws::Vector<LayoutPreview>& GetLayoutPreviews() const { return m_layoutPreviews; }
381 inline bool LayoutPreviewsHasBeenSet() const { return m_layoutPreviewsHasBeenSet; }
382 template <typename LayoutPreviewsT = Aws::Vector<LayoutPreview>>
383 void SetLayoutPreviews(LayoutPreviewsT&& value) {
384 m_layoutPreviewsHasBeenSet = true;
385 m_layoutPreviews = std::forward<LayoutPreviewsT>(value);
386 }
387 template <typename LayoutPreviewsT = Aws::Vector<LayoutPreview>>
388 CampaignAsset& WithLayoutPreviews(LayoutPreviewsT&& value) {
389 SetLayoutPreviews(std::forward<LayoutPreviewsT>(value));
390 return *this;
391 }
392 template <typename LayoutPreviewsT = LayoutPreview>
393 CampaignAsset& AddLayoutPreviews(LayoutPreviewsT&& value) {
394 m_layoutPreviewsHasBeenSet = true;
395 m_layoutPreviews.emplace_back(std::forward<LayoutPreviewsT>(value));
396 return *this;
397 }
399
401
409 inline const CampaignAssetLayout& GetLayout() const { return m_layout; }
410 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
411 template <typename LayoutT = CampaignAssetLayout>
412 void SetLayout(LayoutT&& value) {
413 m_layoutHasBeenSet = true;
414 m_layout = std::forward<LayoutT>(value);
415 }
416 template <typename LayoutT = CampaignAssetLayout>
417 CampaignAsset& WithLayout(LayoutT&& value) {
418 SetLayout(std::forward<LayoutT>(value));
419 return *this;
420 }
422
424
441 inline const Aws::Vector<ActivationIssue>& GetActivationIssues() const { return m_activationIssues; }
442 inline bool ActivationIssuesHasBeenSet() const { return m_activationIssuesHasBeenSet; }
443 template <typename ActivationIssuesT = Aws::Vector<ActivationIssue>>
444 void SetActivationIssues(ActivationIssuesT&& value) {
445 m_activationIssuesHasBeenSet = true;
446 m_activationIssues = std::forward<ActivationIssuesT>(value);
447 }
448 template <typename ActivationIssuesT = Aws::Vector<ActivationIssue>>
449 CampaignAsset& WithActivationIssues(ActivationIssuesT&& value) {
450 SetActivationIssues(std::forward<ActivationIssuesT>(value));
451 return *this;
452 }
453 template <typename ActivationIssuesT = ActivationIssue>
454 CampaignAsset& AddActivationIssues(ActivationIssuesT&& value) {
455 m_activationIssuesHasBeenSet = true;
456 m_activationIssues.emplace_back(std::forward<ActivationIssuesT>(value));
457 return *this;
458 }
460
462
473 inline const Aws::String& GetPublicUrl() const { return m_publicUrl; }
474 inline bool PublicUrlHasBeenSet() const { return m_publicUrlHasBeenSet; }
475 template <typename PublicUrlT = Aws::String>
476 void SetPublicUrl(PublicUrlT&& value) {
477 m_publicUrlHasBeenSet = true;
478 m_publicUrl = std::forward<PublicUrlT>(value);
479 }
480 template <typename PublicUrlT = Aws::String>
481 CampaignAsset& WithPublicUrl(PublicUrlT&& value) {
482 SetPublicUrl(std::forward<PublicUrlT>(value));
483 return *this;
484 }
486
488
491 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
492 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
493 template <typename CreatedAtT = Aws::Utils::DateTime>
494 void SetCreatedAt(CreatedAtT&& value) {
495 m_createdAtHasBeenSet = true;
496 m_createdAt = std::forward<CreatedAtT>(value);
497 }
498 template <typename CreatedAtT = Aws::Utils::DateTime>
499 CampaignAsset& WithCreatedAt(CreatedAtT&& value) {
500 SetCreatedAt(std::forward<CreatedAtT>(value));
501 return *this;
502 }
504
506
509 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
510 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
511 template <typename UpdatedAtT = Aws::Utils::DateTime>
512 void SetUpdatedAt(UpdatedAtT&& value) {
513 m_updatedAtHasBeenSet = true;
514 m_updatedAt = std::forward<UpdatedAtT>(value);
515 }
516 template <typename UpdatedAtT = Aws::Utils::DateTime>
517 CampaignAsset& WithUpdatedAt(UpdatedAtT&& value) {
518 SetUpdatedAt(std::forward<UpdatedAtT>(value));
519 return *this;
520 }
522 private:
523 Aws::String m_id;
524
525 Aws::String m_campaignId;
526
528
529 Aws::String m_name;
530
531 Aws::String m_linkLabel;
532
534
535 AttemptStatus m_lastActivationStatus{AttemptStatus::NOT_SET};
536
537 DeliveryStatus m_deliveryStatus{DeliveryStatus::NOT_SET};
538
540
541 Aws::String m_sourceAssetTemplateId;
542
543 Platform m_socialPlatform{Platform::NOT_SET};
544
545 FileFormat m_fileFormat{FileFormat::NOT_SET};
546
547 SendMode m_sendMode{SendMode::NOT_SET};
548
549 Aws::Utils::DateTime m_scheduledSendAt{};
550
552
553 Aws::Vector<LayoutPreview> m_layoutPreviews;
554
555 CampaignAssetLayout m_layout;
556
557 Aws::Vector<ActivationIssue> m_activationIssues;
558
559 Aws::String m_publicUrl;
560
561 Aws::Utils::DateTime m_createdAt{};
562
563 Aws::Utils::DateTime m_updatedAt{};
564 bool m_idHasBeenSet = false;
565 bool m_campaignIdHasBeenSet = false;
566 bool m_categoryHasBeenSet = false;
567 bool m_nameHasBeenSet = false;
568 bool m_linkLabelHasBeenSet = false;
569 bool m_stateHasBeenSet = false;
570 bool m_lastActivationStatusHasBeenSet = false;
571 bool m_deliveryStatusHasBeenSet = false;
572 bool m_deliveryStatusReasonHasBeenSet = false;
573 bool m_sourceAssetTemplateIdHasBeenSet = false;
574 bool m_socialPlatformHasBeenSet = false;
575 bool m_fileFormatHasBeenSet = false;
576 bool m_sendModeHasBeenSet = false;
577 bool m_scheduledSendAtHasBeenSet = false;
578 bool m_fieldValuesHasBeenSet = false;
579 bool m_layoutPreviewsHasBeenSet = false;
580 bool m_layoutHasBeenSet = false;
581 bool m_activationIssuesHasBeenSet = false;
582 bool m_publicUrlHasBeenSet = false;
583 bool m_createdAtHasBeenSet = false;
584 bool m_updatedAtHasBeenSet = false;
585};
586
587} // namespace Model
588} // namespace PartnerCentralMarketing
589} // namespace Aws
const Aws::Vector< ActivationIssue > & GetActivationIssues() const
CampaignAsset & WithSocialPlatform(Platform value)
CampaignAsset & WithScheduledSendAt(ScheduledSendAtT &&value)
const Aws::Vector< LayoutPreview > & GetLayoutPreviews() const
CampaignAsset & WithPublicUrl(PublicUrlT &&value)
const Aws::Utils::DateTime & GetScheduledSendAt() const
CampaignAsset & WithUpdatedAt(UpdatedAtT &&value)
void SetDeliveryStatusReason(CampaignAssetStateReason value)
AWS_PARTNERCENTRALMARKETING_API CampaignAsset(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
CampaignAsset & WithCreatedAt(CreatedAtT &&value)
CampaignAsset & WithLinkLabel(LinkLabelT &&value)
const CampaignAssetLayout & GetLayout() const
CampaignAsset & WithDeliveryStatusReason(CampaignAssetStateReason value)
CampaignAsset & AddLayoutPreviews(LayoutPreviewsT &&value)
void SetCategory(CampaignAssetCategory value)
CampaignAsset & WithLastActivationStatus(AttemptStatus value)
void SetScheduledSendAt(ScheduledSendAtT &&value)
CampaignAsset & WithFileFormat(FileFormat value)
CampaignAsset & WithSourceAssetTemplateId(SourceAssetTemplateIdT &&value)
CampaignAsset & WithActivationIssues(ActivationIssuesT &&value)
AWS_PARTNERCENTRALMARKETING_API CampaignAsset()=default
CampaignAsset & WithFieldValues(FieldValuesT &&value)
CampaignAsset & WithCategory(CampaignAssetCategory value)
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
CampaignAssetStateReason GetDeliveryStatusReason() const
CampaignAsset & WithState(CampaignAssetState value)
CampaignAsset & WithLayoutPreviews(LayoutPreviewsT &&value)
CampaignAsset & AddFieldValues(FieldValuesT &&value)
void SetActivationIssues(ActivationIssuesT &&value)
const Aws::Vector< CampaignAssetFieldValue > & GetFieldValues() const
const Aws::Utils::DateTime & GetCreatedAt() const
CampaignAsset & AddActivationIssues(ActivationIssuesT &&value)
CampaignAsset & WithCampaignId(CampaignIdT &&value)
CampaignAsset & WithDeliveryStatus(DeliveryStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_PARTNERCENTRALMARKETING_API CampaignAsset & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
CampaignAsset & WithLayout(LayoutT &&value)
void SetSourceAssetTemplateId(SourceAssetTemplateIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector