AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CampaignTemplate.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/AssetLanguage.h>
13#include <aws/partnercentral-marketing/model/CampaignAssetTemplate.h>
14#include <aws/partnercentral-marketing/model/CampaignTemplateCollection.h>
15#include <aws/partnercentral-marketing/model/CustomerSegment.h>
16#include <aws/partnercentral-marketing/model/Industry.h>
17#include <aws/partnercentral-marketing/model/ReferenceMaterial.h>
18#include <aws/partnercentral-marketing/model/Theme.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 CampaignTemplate() = default;
40 AWS_PARTNERCENTRALMARKETING_API CampaignTemplate(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_PARTNERCENTRALMARKETING_API CampaignTemplate& 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>
56 CampaignTemplate& WithId(IdT&& value) {
57 SetId(std::forward<IdT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 CampaignTemplate& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
84 inline Industry GetIndustry() const { return m_industry; }
85 inline bool IndustryHasBeenSet() const { return m_industryHasBeenSet; }
86 inline void SetIndustry(Industry value) {
87 m_industryHasBeenSet = true;
88 m_industry = value;
89 }
91 SetIndustry(value);
92 return *this;
93 }
95
97
100 inline const Aws::String& GetUseCase() const { return m_useCase; }
101 inline bool UseCaseHasBeenSet() const { return m_useCaseHasBeenSet; }
102 template <typename UseCaseT = Aws::String>
103 void SetUseCase(UseCaseT&& value) {
104 m_useCaseHasBeenSet = true;
105 m_useCase = std::forward<UseCaseT>(value);
106 }
107 template <typename UseCaseT = Aws::String>
108 CampaignTemplate& WithUseCase(UseCaseT&& value) {
109 SetUseCase(std::forward<UseCaseT>(value));
110 return *this;
111 }
113
115
120 inline const Aws::String& GetDescription() const { return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
128 CampaignTemplate& WithDescription(DescriptionT&& value) {
129 SetDescription(std::forward<DescriptionT>(value));
130 return *this;
131 }
133
135
140 inline AssetLanguage GetLanguageCode() const { return m_languageCode; }
141 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
142 inline void SetLanguageCode(AssetLanguage value) {
143 m_languageCodeHasBeenSet = true;
144 m_languageCode = value;
145 }
147 SetLanguageCode(value);
148 return *this;
149 }
151
153
157 inline CampaignTemplateCollection GetCollection() const { return m_collection; }
158 inline bool CollectionHasBeenSet() const { return m_collectionHasBeenSet; }
160 m_collectionHasBeenSet = true;
161 m_collection = value;
162 }
164 SetCollection(value);
165 return *this;
166 }
168
170
173 inline const Aws::Vector<Aws::String>& GetAwsServices() const { return m_awsServices; }
174 inline bool AwsServicesHasBeenSet() const { return m_awsServicesHasBeenSet; }
175 template <typename AwsServicesT = Aws::Vector<Aws::String>>
176 void SetAwsServices(AwsServicesT&& value) {
177 m_awsServicesHasBeenSet = true;
178 m_awsServices = std::forward<AwsServicesT>(value);
179 }
180 template <typename AwsServicesT = Aws::Vector<Aws::String>>
181 CampaignTemplate& WithAwsServices(AwsServicesT&& value) {
182 SetAwsServices(std::forward<AwsServicesT>(value));
183 return *this;
184 }
185 template <typename AwsServicesT = Aws::String>
186 CampaignTemplate& AddAwsServices(AwsServicesT&& value) {
187 m_awsServicesHasBeenSet = true;
188 m_awsServices.emplace_back(std::forward<AwsServicesT>(value));
189 return *this;
190 }
192
194
199 inline const Aws::Vector<CustomerSegment>& GetCustomerSegments() const { return m_customerSegments; }
200 inline bool CustomerSegmentsHasBeenSet() const { return m_customerSegmentsHasBeenSet; }
201 template <typename CustomerSegmentsT = Aws::Vector<CustomerSegment>>
202 void SetCustomerSegments(CustomerSegmentsT&& value) {
203 m_customerSegmentsHasBeenSet = true;
204 m_customerSegments = std::forward<CustomerSegmentsT>(value);
205 }
206 template <typename CustomerSegmentsT = Aws::Vector<CustomerSegment>>
207 CampaignTemplate& WithCustomerSegments(CustomerSegmentsT&& value) {
208 SetCustomerSegments(std::forward<CustomerSegmentsT>(value));
209 return *this;
210 }
212 m_customerSegmentsHasBeenSet = true;
213 m_customerSegments.push_back(value);
214 return *this;
215 }
217
219
223 inline const Aws::Vector<Theme>& GetThemes() const { return m_themes; }
224 inline bool ThemesHasBeenSet() const { return m_themesHasBeenSet; }
225 template <typename ThemesT = Aws::Vector<Theme>>
226 void SetThemes(ThemesT&& value) {
227 m_themesHasBeenSet = true;
228 m_themes = std::forward<ThemesT>(value);
229 }
230 template <typename ThemesT = Aws::Vector<Theme>>
231 CampaignTemplate& WithThemes(ThemesT&& value) {
232 SetThemes(std::forward<ThemesT>(value));
233 return *this;
234 }
236 m_themesHasBeenSet = true;
237 m_themes.push_back(value);
238 return *this;
239 }
241
243
246 inline const Aws::String& GetSetupDuration() const { return m_setupDuration; }
247 inline bool SetupDurationHasBeenSet() const { return m_setupDurationHasBeenSet; }
248 template <typename SetupDurationT = Aws::String>
249 void SetSetupDuration(SetupDurationT&& value) {
250 m_setupDurationHasBeenSet = true;
251 m_setupDuration = std::forward<SetupDurationT>(value);
252 }
253 template <typename SetupDurationT = Aws::String>
254 CampaignTemplate& WithSetupDuration(SetupDurationT&& value) {
255 SetSetupDuration(std::forward<SetupDurationT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::String& GetThumbnailUrl() const { return m_thumbnailUrl; }
265 inline bool ThumbnailUrlHasBeenSet() const { return m_thumbnailUrlHasBeenSet; }
266 template <typename ThumbnailUrlT = Aws::String>
267 void SetThumbnailUrl(ThumbnailUrlT&& value) {
268 m_thumbnailUrlHasBeenSet = true;
269 m_thumbnailUrl = std::forward<ThumbnailUrlT>(value);
270 }
271 template <typename ThumbnailUrlT = Aws::String>
272 CampaignTemplate& WithThumbnailUrl(ThumbnailUrlT&& value) {
273 SetThumbnailUrl(std::forward<ThumbnailUrlT>(value));
274 return *this;
275 }
277
279
284 inline const Aws::Utils::DateTime& GetEffectiveDateBegin() const { return m_effectiveDateBegin; }
285 inline bool EffectiveDateBeginHasBeenSet() const { return m_effectiveDateBeginHasBeenSet; }
286 template <typename EffectiveDateBeginT = Aws::Utils::DateTime>
287 void SetEffectiveDateBegin(EffectiveDateBeginT&& value) {
288 m_effectiveDateBeginHasBeenSet = true;
289 m_effectiveDateBegin = std::forward<EffectiveDateBeginT>(value);
290 }
291 template <typename EffectiveDateBeginT = Aws::Utils::DateTime>
292 CampaignTemplate& WithEffectiveDateBegin(EffectiveDateBeginT&& value) {
293 SetEffectiveDateBegin(std::forward<EffectiveDateBeginT>(value));
294 return *this;
295 }
297
299
303 inline const Aws::Vector<CampaignAssetTemplate>& GetAssetTemplates() const { return m_assetTemplates; }
304 inline bool AssetTemplatesHasBeenSet() const { return m_assetTemplatesHasBeenSet; }
305 template <typename AssetTemplatesT = Aws::Vector<CampaignAssetTemplate>>
306 void SetAssetTemplates(AssetTemplatesT&& value) {
307 m_assetTemplatesHasBeenSet = true;
308 m_assetTemplates = std::forward<AssetTemplatesT>(value);
309 }
310 template <typename AssetTemplatesT = Aws::Vector<CampaignAssetTemplate>>
311 CampaignTemplate& WithAssetTemplates(AssetTemplatesT&& value) {
312 SetAssetTemplates(std::forward<AssetTemplatesT>(value));
313 return *this;
314 }
315 template <typename AssetTemplatesT = CampaignAssetTemplate>
316 CampaignTemplate& AddAssetTemplates(AssetTemplatesT&& value) {
317 m_assetTemplatesHasBeenSet = true;
318 m_assetTemplates.emplace_back(std::forward<AssetTemplatesT>(value));
319 return *this;
320 }
322
324
332 inline const Aws::Vector<ReferenceMaterial>& GetReferenceMaterials() const { return m_referenceMaterials; }
333 inline bool ReferenceMaterialsHasBeenSet() const { return m_referenceMaterialsHasBeenSet; }
334 template <typename ReferenceMaterialsT = Aws::Vector<ReferenceMaterial>>
335 void SetReferenceMaterials(ReferenceMaterialsT&& value) {
336 m_referenceMaterialsHasBeenSet = true;
337 m_referenceMaterials = std::forward<ReferenceMaterialsT>(value);
338 }
339 template <typename ReferenceMaterialsT = Aws::Vector<ReferenceMaterial>>
340 CampaignTemplate& WithReferenceMaterials(ReferenceMaterialsT&& value) {
341 SetReferenceMaterials(std::forward<ReferenceMaterialsT>(value));
342 return *this;
343 }
344 template <typename ReferenceMaterialsT = ReferenceMaterial>
345 CampaignTemplate& AddReferenceMaterials(ReferenceMaterialsT&& value) {
346 m_referenceMaterialsHasBeenSet = true;
347 m_referenceMaterials.emplace_back(std::forward<ReferenceMaterialsT>(value));
348 return *this;
349 }
351
353
356 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
357 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
358 template <typename CreatedAtT = Aws::Utils::DateTime>
359 void SetCreatedAt(CreatedAtT&& value) {
360 m_createdAtHasBeenSet = true;
361 m_createdAt = std::forward<CreatedAtT>(value);
362 }
363 template <typename CreatedAtT = Aws::Utils::DateTime>
364 CampaignTemplate& WithCreatedAt(CreatedAtT&& value) {
365 SetCreatedAt(std::forward<CreatedAtT>(value));
366 return *this;
367 }
369
371
374 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
375 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
376 template <typename UpdatedAtT = Aws::Utils::DateTime>
377 void SetUpdatedAt(UpdatedAtT&& value) {
378 m_updatedAtHasBeenSet = true;
379 m_updatedAt = std::forward<UpdatedAtT>(value);
380 }
381 template <typename UpdatedAtT = Aws::Utils::DateTime>
382 CampaignTemplate& WithUpdatedAt(UpdatedAtT&& value) {
383 SetUpdatedAt(std::forward<UpdatedAtT>(value));
384 return *this;
385 }
387 private:
388 Aws::String m_id;
389
390 Aws::String m_name;
391
392 Industry m_industry{Industry::NOT_SET};
393
394 Aws::String m_useCase;
395
396 Aws::String m_description;
397
399
401
402 Aws::Vector<Aws::String> m_awsServices;
403
404 Aws::Vector<CustomerSegment> m_customerSegments;
405
406 Aws::Vector<Theme> m_themes;
407
408 Aws::String m_setupDuration;
409
410 Aws::String m_thumbnailUrl;
411
412 Aws::Utils::DateTime m_effectiveDateBegin{};
413
414 Aws::Vector<CampaignAssetTemplate> m_assetTemplates;
415
416 Aws::Vector<ReferenceMaterial> m_referenceMaterials;
417
418 Aws::Utils::DateTime m_createdAt{};
419
420 Aws::Utils::DateTime m_updatedAt{};
421 bool m_idHasBeenSet = false;
422 bool m_nameHasBeenSet = false;
423 bool m_industryHasBeenSet = false;
424 bool m_useCaseHasBeenSet = false;
425 bool m_descriptionHasBeenSet = false;
426 bool m_languageCodeHasBeenSet = false;
427 bool m_collectionHasBeenSet = false;
428 bool m_awsServicesHasBeenSet = false;
429 bool m_customerSegmentsHasBeenSet = false;
430 bool m_themesHasBeenSet = false;
431 bool m_setupDurationHasBeenSet = false;
432 bool m_thumbnailUrlHasBeenSet = false;
433 bool m_effectiveDateBeginHasBeenSet = false;
434 bool m_assetTemplatesHasBeenSet = false;
435 bool m_referenceMaterialsHasBeenSet = false;
436 bool m_createdAtHasBeenSet = false;
437 bool m_updatedAtHasBeenSet = false;
438};
439
440} // namespace Model
441} // namespace PartnerCentralMarketing
442} // namespace Aws
CampaignTemplate & WithUpdatedAt(UpdatedAtT &&value)
CampaignTemplate & WithEffectiveDateBegin(EffectiveDateBeginT &&value)
void SetReferenceMaterials(ReferenceMaterialsT &&value)
CampaignTemplate & WithCreatedAt(CreatedAtT &&value)
AWS_PARTNERCENTRALMARKETING_API CampaignTemplate()=default
const Aws::Vector< Aws::String > & GetAwsServices() const
void SetEffectiveDateBegin(EffectiveDateBeginT &&value)
CampaignTemplate & AddAssetTemplates(AssetTemplatesT &&value)
const Aws::Vector< CustomerSegment > & GetCustomerSegments() const
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
CampaignTemplate & WithAssetTemplates(AssetTemplatesT &&value)
void SetCollection(CampaignTemplateCollection value)
const Aws::Vector< CampaignAssetTemplate > & GetAssetTemplates() const
CampaignTemplate & AddCustomerSegments(CustomerSegment value)
AWS_PARTNERCENTRALMARKETING_API CampaignTemplate(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::DateTime & GetUpdatedAt() const
CampaignTemplate & AddAwsServices(AwsServicesT &&value)
CampaignTemplate & WithLanguageCode(AssetLanguage value)
const Aws::Utils::DateTime & GetCreatedAt() const
CampaignTemplate & WithThumbnailUrl(ThumbnailUrlT &&value)
CampaignTemplate & AddReferenceMaterials(ReferenceMaterialsT &&value)
AWS_PARTNERCENTRALMARKETING_API CampaignTemplate & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
CampaignTemplate & WithDescription(DescriptionT &&value)
CampaignTemplate & WithCustomerSegments(CustomerSegmentsT &&value)
CampaignTemplate & WithSetupDuration(SetupDurationT &&value)
CampaignTemplate & WithAwsServices(AwsServicesT &&value)
CampaignTemplate & WithReferenceMaterials(ReferenceMaterialsT &&value)
CampaignTemplate & WithCollection(CampaignTemplateCollection value)
const Aws::Vector< ReferenceMaterial > & GetReferenceMaterials() const
const Aws::Utils::DateTime & GetEffectiveDateBegin() const
CampaignTemplate & WithUseCase(UseCaseT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector