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>
33namespace PartnerCentralMarketing {
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;
54 template <
typename IdT = Aws::String>
56 m_idHasBeenSet =
true;
57 m_id = std::forward<IdT>(value);
59 template <
typename IdT = Aws::String>
61 SetId(std::forward<IdT>(value));
72 template <
typename CampaignIdT = Aws::String>
74 m_campaignIdHasBeenSet =
true;
75 m_campaignId = std::forward<CampaignIdT>(value);
77 template <
typename CampaignIdT = Aws::String>
91 m_categoryHasBeenSet =
true;
106 template <
typename NameT = Aws::String>
108 m_nameHasBeenSet =
true;
109 m_name = std::forward<NameT>(value);
111 template <
typename NameT = Aws::String>
113 SetName(std::forward<NameT>(value));
126 template <
typename LinkLabelT = Aws::String>
128 m_linkLabelHasBeenSet =
true;
129 m_linkLabel = std::forward<LinkLabelT>(value);
131 template <
typename LinkLabelT = Aws::String>
153 m_stateHasBeenSet =
true;
183 m_lastActivationStatusHasBeenSet =
true;
184 m_lastActivationStatus = value;
201 m_deliveryStatusHasBeenSet =
true;
202 m_deliveryStatus = value;
227 m_deliveryStatusReasonHasBeenSet =
true;
228 m_deliveryStatusReason = value;
251 template <
typename SourceAssetTemplateIdT = Aws::String>
253 m_sourceAssetTemplateIdHasBeenSet =
true;
254 m_sourceAssetTemplateId = std::forward<SourceAssetTemplateIdT>(value);
256 template <
typename SourceAssetTemplateIdT = Aws::String>
272 m_socialPlatformHasBeenSet =
true;
273 m_socialPlatform = value;
289 m_fileFormatHasBeenSet =
true;
290 m_fileFormat = value;
308 m_sendModeHasBeenSet =
true;
326 template <
typename ScheduledSendAtT = Aws::Utils::DateTime>
328 m_scheduledSendAtHasBeenSet =
true;
329 m_scheduledSendAt = std::forward<ScheduledSendAtT>(value);
331 template <
typename ScheduledSendAtT = Aws::Utils::DateTime>
348 template <
typename FieldValuesT = Aws::Vector<CampaignAssetFieldValue>>
350 m_fieldValuesHasBeenSet =
true;
351 m_fieldValues = std::forward<FieldValuesT>(value);
353 template <
typename FieldValuesT = Aws::Vector<CampaignAssetFieldValue>>
358 template <
typename FieldValuesT = CampaignAssetFieldValue>
360 m_fieldValuesHasBeenSet =
true;
361 m_fieldValues.emplace_back(std::forward<FieldValuesT>(value));
382 template <
typename LayoutPreviewsT = Aws::Vector<LayoutPreview>>
384 m_layoutPreviewsHasBeenSet =
true;
385 m_layoutPreviews = std::forward<LayoutPreviewsT>(value);
387 template <
typename LayoutPreviewsT = Aws::Vector<LayoutPreview>>
392 template <
typename LayoutPreviewsT = LayoutPreview>
394 m_layoutPreviewsHasBeenSet =
true;
395 m_layoutPreviews.emplace_back(std::forward<LayoutPreviewsT>(value));
411 template <
typename LayoutT = CampaignAssetLayout>
413 m_layoutHasBeenSet =
true;
414 m_layout = std::forward<LayoutT>(value);
416 template <
typename LayoutT = CampaignAssetLayout>
443 template <
typename ActivationIssuesT = Aws::Vector<ActivationIssue>>
445 m_activationIssuesHasBeenSet =
true;
446 m_activationIssues = std::forward<ActivationIssuesT>(value);
448 template <
typename ActivationIssuesT = Aws::Vector<ActivationIssue>>
453 template <
typename ActivationIssuesT = ActivationIssue>
455 m_activationIssuesHasBeenSet =
true;
456 m_activationIssues.emplace_back(std::forward<ActivationIssuesT>(value));
475 template <
typename PublicUrlT = Aws::String>
477 m_publicUrlHasBeenSet =
true;
478 m_publicUrl = std::forward<PublicUrlT>(value);
480 template <
typename PublicUrlT = Aws::String>
493 template <
typename CreatedAtT = Aws::Utils::DateTime>
495 m_createdAtHasBeenSet =
true;
496 m_createdAt = std::forward<CreatedAtT>(value);
498 template <
typename CreatedAtT = Aws::Utils::DateTime>
511 template <
typename UpdatedAtT = Aws::Utils::DateTime>
513 m_updatedAtHasBeenSet =
true;
514 m_updatedAt = std::forward<UpdatedAtT>(value);
516 template <
typename UpdatedAtT = Aws::Utils::DateTime>
555 CampaignAssetLayout m_layout;
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;
const Aws::Vector< ActivationIssue > & GetActivationIssues() const
CampaignAsset & WithSocialPlatform(Platform value)
CampaignAsset & WithId(IdT &&value)
void SetLinkLabel(LinkLabelT &&value)
CampaignAsset & WithScheduledSendAt(ScheduledSendAtT &&value)
const Aws::Vector< LayoutPreview > & GetLayoutPreviews() const
const Aws::String & GetCampaignId() const
bool FileFormatHasBeenSet() const
CampaignAsset & WithPublicUrl(PublicUrlT &&value)
bool ActivationIssuesHasBeenSet() const
void SetCampaignId(CampaignIdT &&value)
const Aws::Utils::DateTime & GetScheduledSendAt() const
void SetPublicUrl(PublicUrlT &&value)
void SetName(NameT &&value)
void SetLayout(LayoutT &&value)
CampaignAsset & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetPublicUrl() const
CampaignAsset & WithName(NameT &&value)
void SetDeliveryStatusReason(CampaignAssetStateReason value)
bool SocialPlatformHasBeenSet() const
AWS_PARTNERCENTRALMARKETING_API CampaignAsset(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetLastActivationStatus(AttemptStatus value)
CampaignAssetState GetState() const
CampaignAsset & WithCreatedAt(CreatedAtT &&value)
bool SourceAssetTemplateIdHasBeenSet() const
CampaignAsset & WithLinkLabel(LinkLabelT &&value)
const Aws::String & GetLinkLabel() const
const Aws::String & GetName() const
const CampaignAssetLayout & GetLayout() const
CampaignAsset & WithDeliveryStatusReason(CampaignAssetStateReason value)
bool CreatedAtHasBeenSet() const
FileFormat GetFileFormat() const
void SetCreatedAt(CreatedAtT &&value)
void SetSocialPlatform(Platform value)
CampaignAsset & AddLayoutPreviews(LayoutPreviewsT &&value)
DeliveryStatus GetDeliveryStatus() const
void SetCategory(CampaignAssetCategory value)
CampaignAssetCategory GetCategory() const
void SetFileFormat(FileFormat value)
CampaignAsset & WithLastActivationStatus(AttemptStatus value)
void SetScheduledSendAt(ScheduledSendAtT &&value)
CampaignAsset & WithFileFormat(FileFormat value)
CampaignAsset & WithSendMode(SendMode value)
const Aws::String & GetSourceAssetTemplateId() const
bool LastActivationStatusHasBeenSet() const
CampaignAsset & WithSourceAssetTemplateId(SourceAssetTemplateIdT &&value)
bool LinkLabelHasBeenSet() const
CampaignAsset & WithActivationIssues(ActivationIssuesT &&value)
void SetLayoutPreviews(LayoutPreviewsT &&value)
SendMode GetSendMode() const
AWS_PARTNERCENTRALMARKETING_API CampaignAsset()=default
CampaignAsset & WithFieldValues(FieldValuesT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
CampaignAsset & WithCategory(CampaignAssetCategory value)
bool LayoutPreviewsHasBeenSet() const
bool NameHasBeenSet() const
bool StateHasBeenSet() const
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetSendMode(SendMode value)
CampaignAssetStateReason GetDeliveryStatusReason() const
bool SendModeHasBeenSet() const
CampaignAsset & WithState(CampaignAssetState value)
bool ScheduledSendAtHasBeenSet() const
CampaignAsset & WithLayoutPreviews(LayoutPreviewsT &&value)
CampaignAsset & AddFieldValues(FieldValuesT &&value)
bool CampaignIdHasBeenSet() const
void SetActivationIssues(ActivationIssuesT &&value)
bool PublicUrlHasBeenSet() const
Platform GetSocialPlatform() const
const Aws::Vector< CampaignAssetFieldValue > & GetFieldValues() const
bool IdHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetId() const
void SetFieldValues(FieldValuesT &&value)
bool CategoryHasBeenSet() const
void SetState(CampaignAssetState value)
CampaignAsset & AddActivationIssues(ActivationIssuesT &&value)
AttemptStatus GetLastActivationStatus() const
CampaignAsset & WithCampaignId(CampaignIdT &&value)
CampaignAsset & WithDeliveryStatus(DeliveryStatus value)
bool UpdatedAtHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_PARTNERCENTRALMARKETING_API CampaignAsset & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool DeliveryStatusHasBeenSet() const
bool LayoutHasBeenSet() const
bool FieldValuesHasBeenSet() const
void SetDeliveryStatus(DeliveryStatus value)
bool DeliveryStatusReasonHasBeenSet() const
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