AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CampaignTemplateSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
11#include <aws/partnercentral-marketing/model/AssetLanguage.h>
12#include <aws/partnercentral-marketing/model/CampaignTemplateCollection.h>
13#include <aws/partnercentral-marketing/model/CustomerSegment.h>
14#include <aws/partnercentral-marketing/model/Industry.h>
15#include <aws/partnercentral-marketing/model/Theme.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace PartnerCentralMarketing {
26namespace Model {
27
35 public:
36 AWS_PARTNERCENTRALMARKETING_API CampaignTemplateSummary() = default;
37 AWS_PARTNERCENTRALMARKETING_API CampaignTemplateSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_PARTNERCENTRALMARKETING_API CampaignTemplateSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline Industry GetIndustry() const { return m_industry; }
82 inline bool IndustryHasBeenSet() const { return m_industryHasBeenSet; }
83 inline void SetIndustry(Industry value) {
84 m_industryHasBeenSet = true;
85 m_industry = value;
86 }
88 SetIndustry(value);
89 return *this;
90 }
92
94
97 inline const Aws::String& GetUseCase() const { return m_useCase; }
98 inline bool UseCaseHasBeenSet() const { return m_useCaseHasBeenSet; }
99 template <typename UseCaseT = Aws::String>
100 void SetUseCase(UseCaseT&& value) {
101 m_useCaseHasBeenSet = true;
102 m_useCase = std::forward<UseCaseT>(value);
103 }
104 template <typename UseCaseT = Aws::String>
106 SetUseCase(std::forward<UseCaseT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDescription() const { return m_description; }
116 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
117 template <typename DescriptionT = Aws::String>
118 void SetDescription(DescriptionT&& value) {
119 m_descriptionHasBeenSet = true;
120 m_description = std::forward<DescriptionT>(value);
121 }
122 template <typename DescriptionT = Aws::String>
124 SetDescription(std::forward<DescriptionT>(value));
125 return *this;
126 }
128
130
134 inline AssetLanguage GetLanguageCode() const { return m_languageCode; }
135 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
136 inline void SetLanguageCode(AssetLanguage value) {
137 m_languageCodeHasBeenSet = true;
138 m_languageCode = value;
139 }
141 SetLanguageCode(value);
142 return *this;
143 }
145
147
151 inline CampaignTemplateCollection GetCollection() const { return m_collection; }
152 inline bool CollectionHasBeenSet() const { return m_collectionHasBeenSet; }
154 m_collectionHasBeenSet = true;
155 m_collection = value;
156 }
158 SetCollection(value);
159 return *this;
160 }
162
164
167 inline const Aws::Vector<Aws::String>& GetAwsServices() const { return m_awsServices; }
168 inline bool AwsServicesHasBeenSet() const { return m_awsServicesHasBeenSet; }
169 template <typename AwsServicesT = Aws::Vector<Aws::String>>
170 void SetAwsServices(AwsServicesT&& value) {
171 m_awsServicesHasBeenSet = true;
172 m_awsServices = std::forward<AwsServicesT>(value);
173 }
174 template <typename AwsServicesT = Aws::Vector<Aws::String>>
176 SetAwsServices(std::forward<AwsServicesT>(value));
177 return *this;
178 }
179 template <typename AwsServicesT = Aws::String>
181 m_awsServicesHasBeenSet = true;
182 m_awsServices.emplace_back(std::forward<AwsServicesT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::Vector<CustomerSegment>& GetCustomerSegments() const { return m_customerSegments; }
193 inline bool CustomerSegmentsHasBeenSet() const { return m_customerSegmentsHasBeenSet; }
194 template <typename CustomerSegmentsT = Aws::Vector<CustomerSegment>>
195 void SetCustomerSegments(CustomerSegmentsT&& value) {
196 m_customerSegmentsHasBeenSet = true;
197 m_customerSegments = std::forward<CustomerSegmentsT>(value);
198 }
199 template <typename CustomerSegmentsT = Aws::Vector<CustomerSegment>>
200 CampaignTemplateSummary& WithCustomerSegments(CustomerSegmentsT&& value) {
201 SetCustomerSegments(std::forward<CustomerSegmentsT>(value));
202 return *this;
203 }
205 m_customerSegmentsHasBeenSet = true;
206 m_customerSegments.push_back(value);
207 return *this;
208 }
210
212
216 inline const Aws::Vector<Theme>& GetThemes() const { return m_themes; }
217 inline bool ThemesHasBeenSet() const { return m_themesHasBeenSet; }
218 template <typename ThemesT = Aws::Vector<Theme>>
219 void SetThemes(ThemesT&& value) {
220 m_themesHasBeenSet = true;
221 m_themes = std::forward<ThemesT>(value);
222 }
223 template <typename ThemesT = Aws::Vector<Theme>>
225 SetThemes(std::forward<ThemesT>(value));
226 return *this;
227 }
229 m_themesHasBeenSet = true;
230 m_themes.push_back(value);
231 return *this;
232 }
234
236
239 inline const Aws::String& GetThumbnailUrl() const { return m_thumbnailUrl; }
240 inline bool ThumbnailUrlHasBeenSet() const { return m_thumbnailUrlHasBeenSet; }
241 template <typename ThumbnailUrlT = Aws::String>
242 void SetThumbnailUrl(ThumbnailUrlT&& value) {
243 m_thumbnailUrlHasBeenSet = true;
244 m_thumbnailUrl = std::forward<ThumbnailUrlT>(value);
245 }
246 template <typename ThumbnailUrlT = Aws::String>
248 SetThumbnailUrl(std::forward<ThumbnailUrlT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_id;
254
255 Aws::String m_name;
256
257 Industry m_industry{Industry::NOT_SET};
258
259 Aws::String m_useCase;
260
261 Aws::String m_description;
262
264
266
267 Aws::Vector<Aws::String> m_awsServices;
268
269 Aws::Vector<CustomerSegment> m_customerSegments;
270
271 Aws::Vector<Theme> m_themes;
272
273 Aws::String m_thumbnailUrl;
274 bool m_idHasBeenSet = false;
275 bool m_nameHasBeenSet = false;
276 bool m_industryHasBeenSet = false;
277 bool m_useCaseHasBeenSet = false;
278 bool m_descriptionHasBeenSet = false;
279 bool m_languageCodeHasBeenSet = false;
280 bool m_collectionHasBeenSet = false;
281 bool m_awsServicesHasBeenSet = false;
282 bool m_customerSegmentsHasBeenSet = false;
283 bool m_themesHasBeenSet = false;
284 bool m_thumbnailUrlHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace PartnerCentralMarketing
289} // namespace Aws
CampaignTemplateSummary & AddAwsServices(AwsServicesT &&value)
AWS_PARTNERCENTRALMARKETING_API CampaignTemplateSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
CampaignTemplateSummary & WithAwsServices(AwsServicesT &&value)
CampaignTemplateSummary & WithThumbnailUrl(ThumbnailUrlT &&value)
AWS_PARTNERCENTRALMARKETING_API CampaignTemplateSummary()=default
CampaignTemplateSummary & WithLanguageCode(AssetLanguage value)
const Aws::Vector< CustomerSegment > & GetCustomerSegments() const
AWS_PARTNERCENTRALMARKETING_API CampaignTemplateSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
CampaignTemplateSummary & AddCustomerSegments(CustomerSegment value)
CampaignTemplateSummary & WithCustomerSegments(CustomerSegmentsT &&value)
CampaignTemplateSummary & WithCollection(CampaignTemplateCollection value)
CampaignTemplateSummary & WithDescription(DescriptionT &&value)
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector