AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CampaignAssetSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
11#include <aws/partnercentral-marketing/model/AttemptStatus.h>
12#include <aws/partnercentral-marketing/model/CampaignAssetCategory.h>
13#include <aws/partnercentral-marketing/model/CampaignAssetState.h>
14#include <aws/partnercentral-marketing/model/CampaignAssetStateReason.h>
15#include <aws/partnercentral-marketing/model/DeliveryStatus.h>
16#include <aws/partnercentral-marketing/model/FileFormat.h>
17#include <aws/partnercentral-marketing/model/Platform.h>
18#include <aws/partnercentral-marketing/model/SendMode.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Cbor {
25class CborValue;
26} // namespace Cbor
27} // namespace Utils
28namespace PartnerCentralMarketing {
29namespace Model {
30
38 public:
39 AWS_PARTNERCENTRALMARKETING_API CampaignAssetSummary() = default;
40 AWS_PARTNERCENTRALMARKETING_API CampaignAssetSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_PARTNERCENTRALMARKETING_API CampaignAssetSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template <typename IdT = Aws::String>
51 void SetId(IdT&& value) {
52 m_idHasBeenSet = true;
53 m_id = std::forward<IdT>(value);
54 }
55 template <typename IdT = Aws::String>
57 SetId(std::forward<IdT>(value));
58 return *this;
59 }
61
63
66 inline CampaignAssetCategory GetCategory() const { return m_category; }
67 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
69 m_categoryHasBeenSet = true;
70 m_category = value;
71 }
73 SetCategory(value);
74 return *this;
75 }
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template <typename NameT = Aws::String>
85 void SetName(NameT&& value) {
86 m_nameHasBeenSet = true;
87 m_name = std::forward<NameT>(value);
88 }
89 template <typename NameT = Aws::String>
91 SetName(std::forward<NameT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetLinkLabel() const { return m_linkLabel; }
103 inline bool LinkLabelHasBeenSet() const { return m_linkLabelHasBeenSet; }
104 template <typename LinkLabelT = Aws::String>
105 void SetLinkLabel(LinkLabelT&& value) {
106 m_linkLabelHasBeenSet = true;
107 m_linkLabel = std::forward<LinkLabelT>(value);
108 }
109 template <typename LinkLabelT = Aws::String>
110 CampaignAssetSummary& WithLinkLabel(LinkLabelT&& value) {
111 SetLinkLabel(std::forward<LinkLabelT>(value));
112 return *this;
113 }
115
117
120 inline CampaignAssetState GetState() const { return m_state; }
121 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
122 inline void SetState(CampaignAssetState value) {
123 m_stateHasBeenSet = true;
124 m_state = value;
125 }
127 SetState(value);
128 return *this;
129 }
131
133
137 inline AttemptStatus GetLastActivationStatus() const { return m_lastActivationStatus; }
138 inline bool LastActivationStatusHasBeenSet() const { return m_lastActivationStatusHasBeenSet; }
140 m_lastActivationStatusHasBeenSet = true;
141 m_lastActivationStatus = value;
142 }
145 return *this;
146 }
148
150
153 inline DeliveryStatus GetDeliveryStatus() const { return m_deliveryStatus; }
154 inline bool DeliveryStatusHasBeenSet() const { return m_deliveryStatusHasBeenSet; }
156 m_deliveryStatusHasBeenSet = true;
157 m_deliveryStatus = value;
158 }
160 SetDeliveryStatus(value);
161 return *this;
162 }
164
166
179 inline CampaignAssetStateReason GetDeliveryStatusReason() const { return m_deliveryStatusReason; }
180 inline bool DeliveryStatusReasonHasBeenSet() const { return m_deliveryStatusReasonHasBeenSet; }
182 m_deliveryStatusReasonHasBeenSet = true;
183 m_deliveryStatusReason = value;
184 }
190
192
197 inline const Aws::String& GetSourceAssetTemplateId() const { return m_sourceAssetTemplateId; }
198 inline bool SourceAssetTemplateIdHasBeenSet() const { return m_sourceAssetTemplateIdHasBeenSet; }
199 template <typename SourceAssetTemplateIdT = Aws::String>
200 void SetSourceAssetTemplateId(SourceAssetTemplateIdT&& value) {
201 m_sourceAssetTemplateIdHasBeenSet = true;
202 m_sourceAssetTemplateId = std::forward<SourceAssetTemplateIdT>(value);
203 }
204 template <typename SourceAssetTemplateIdT = Aws::String>
205 CampaignAssetSummary& WithSourceAssetTemplateId(SourceAssetTemplateIdT&& value) {
206 SetSourceAssetTemplateId(std::forward<SourceAssetTemplateIdT>(value));
207 return *this;
208 }
210
212
218 inline Platform GetSocialPlatform() const { return m_socialPlatform; }
219 inline bool SocialPlatformHasBeenSet() const { return m_socialPlatformHasBeenSet; }
220 inline void SetSocialPlatform(Platform value) {
221 m_socialPlatformHasBeenSet = true;
222 m_socialPlatform = value;
223 }
225 SetSocialPlatform(value);
226 return *this;
227 }
229
231
234 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
235 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
236 template <typename StartedAtT = Aws::Utils::DateTime>
237 void SetStartedAt(StartedAtT&& value) {
238 m_startedAtHasBeenSet = true;
239 m_startedAt = std::forward<StartedAtT>(value);
240 }
241 template <typename StartedAtT = Aws::Utils::DateTime>
242 CampaignAssetSummary& WithStartedAt(StartedAtT&& value) {
243 SetStartedAt(std::forward<StartedAtT>(value));
244 return *this;
245 }
247
249
252 inline FileFormat GetFileFormat() const { return m_fileFormat; }
253 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
254 inline void SetFileFormat(FileFormat value) {
255 m_fileFormatHasBeenSet = true;
256 m_fileFormat = value;
257 }
259 SetFileFormat(value);
260 return *this;
261 }
263
265
271 inline SendMode GetSendMode() const { return m_sendMode; }
272 inline bool SendModeHasBeenSet() const { return m_sendModeHasBeenSet; }
273 inline void SetSendMode(SendMode value) {
274 m_sendModeHasBeenSet = true;
275 m_sendMode = value;
276 }
278 SetSendMode(value);
279 return *this;
280 }
282
284
290 inline const Aws::Utils::DateTime& GetScheduledSendAt() const { return m_scheduledSendAt; }
291 inline bool ScheduledSendAtHasBeenSet() const { return m_scheduledSendAtHasBeenSet; }
292 template <typename ScheduledSendAtT = Aws::Utils::DateTime>
293 void SetScheduledSendAt(ScheduledSendAtT&& value) {
294 m_scheduledSendAtHasBeenSet = true;
295 m_scheduledSendAt = std::forward<ScheduledSendAtT>(value);
296 }
297 template <typename ScheduledSendAtT = Aws::Utils::DateTime>
298 CampaignAssetSummary& WithScheduledSendAt(ScheduledSendAtT&& value) {
299 SetScheduledSendAt(std::forward<ScheduledSendAtT>(value));
300 return *this;
301 }
303 private:
304 Aws::String m_id;
305
307
308 Aws::String m_name;
309
310 Aws::String m_linkLabel;
311
313
314 AttemptStatus m_lastActivationStatus{AttemptStatus::NOT_SET};
315
316 DeliveryStatus m_deliveryStatus{DeliveryStatus::NOT_SET};
317
319
320 Aws::String m_sourceAssetTemplateId;
321
322 Platform m_socialPlatform{Platform::NOT_SET};
323
324 Aws::Utils::DateTime m_startedAt{};
325
326 FileFormat m_fileFormat{FileFormat::NOT_SET};
327
328 SendMode m_sendMode{SendMode::NOT_SET};
329
330 Aws::Utils::DateTime m_scheduledSendAt{};
331 bool m_idHasBeenSet = false;
332 bool m_categoryHasBeenSet = false;
333 bool m_nameHasBeenSet = false;
334 bool m_linkLabelHasBeenSet = false;
335 bool m_stateHasBeenSet = false;
336 bool m_lastActivationStatusHasBeenSet = false;
337 bool m_deliveryStatusHasBeenSet = false;
338 bool m_deliveryStatusReasonHasBeenSet = false;
339 bool m_sourceAssetTemplateIdHasBeenSet = false;
340 bool m_socialPlatformHasBeenSet = false;
341 bool m_startedAtHasBeenSet = false;
342 bool m_fileFormatHasBeenSet = false;
343 bool m_sendModeHasBeenSet = false;
344 bool m_scheduledSendAtHasBeenSet = false;
345};
346
347} // namespace Model
348} // namespace PartnerCentralMarketing
349} // namespace Aws
CampaignAssetSummary & WithStartedAt(StartedAtT &&value)
CampaignAssetSummary & WithSourceAssetTemplateId(SourceAssetTemplateIdT &&value)
CampaignAssetSummary & WithState(CampaignAssetState value)
CampaignAssetSummary & WithScheduledSendAt(ScheduledSendAtT &&value)
AWS_PARTNERCENTRALMARKETING_API CampaignAssetSummary()=default
AWS_PARTNERCENTRALMARKETING_API CampaignAssetSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_PARTNERCENTRALMARKETING_API CampaignAssetSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
CampaignAssetSummary & WithCategory(CampaignAssetCategory value)
CampaignAssetSummary & WithFileFormat(FileFormat value)
CampaignAssetSummary & WithLastActivationStatus(AttemptStatus value)
CampaignAssetSummary & WithDeliveryStatus(DeliveryStatus value)
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
CampaignAssetSummary & WithLinkLabel(LinkLabelT &&value)
CampaignAssetSummary & WithDeliveryStatusReason(CampaignAssetStateReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String