AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CatalogItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles {
22namespace Model {
23
31 public:
32 AWS_CUSTOMERPROFILES_API CatalogItem() = default;
33 AWS_CUSTOMERPROFILES_API CatalogItem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API CatalogItem& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 CatalogItem& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 CatalogItem& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetCode() const { return m_code; }
78 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
79 template <typename CodeT = Aws::String>
80 void SetCode(CodeT&& value) {
81 m_codeHasBeenSet = true;
82 m_code = std::forward<CodeT>(value);
83 }
84 template <typename CodeT = Aws::String>
85 CatalogItem& WithCode(CodeT&& value) {
86 SetCode(std::forward<CodeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 template <typename TypeT = Aws::String>
98 void SetType(TypeT&& value) {
99 m_typeHasBeenSet = true;
100 m_type = std::forward<TypeT>(value);
101 }
102 template <typename TypeT = Aws::String>
103 CatalogItem& WithType(TypeT&& value) {
104 SetType(std::forward<TypeT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetCategory() const { return m_category; }
114 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
115 template <typename CategoryT = Aws::String>
116 void SetCategory(CategoryT&& value) {
117 m_categoryHasBeenSet = true;
118 m_category = std::forward<CategoryT>(value);
119 }
120 template <typename CategoryT = Aws::String>
121 CatalogItem& WithCategory(CategoryT&& value) {
122 SetCategory(std::forward<CategoryT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
139 CatalogItem& WithDescription(DescriptionT&& value) {
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::String& GetAdditionalInformation() const { return m_additionalInformation; }
151 inline bool AdditionalInformationHasBeenSet() const { return m_additionalInformationHasBeenSet; }
152 template <typename AdditionalInformationT = Aws::String>
153 void SetAdditionalInformation(AdditionalInformationT&& value) {
154 m_additionalInformationHasBeenSet = true;
155 m_additionalInformation = std::forward<AdditionalInformationT>(value);
156 }
157 template <typename AdditionalInformationT = Aws::String>
158 CatalogItem& WithAdditionalInformation(AdditionalInformationT&& value) {
159 SetAdditionalInformation(std::forward<AdditionalInformationT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetImageLink() const { return m_imageLink; }
169 inline bool ImageLinkHasBeenSet() const { return m_imageLinkHasBeenSet; }
170 template <typename ImageLinkT = Aws::String>
171 void SetImageLink(ImageLinkT&& value) {
172 m_imageLinkHasBeenSet = true;
173 m_imageLink = std::forward<ImageLinkT>(value);
174 }
175 template <typename ImageLinkT = Aws::String>
176 CatalogItem& WithImageLink(ImageLinkT&& value) {
177 SetImageLink(std::forward<ImageLinkT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetLink() const { return m_link; }
187 inline bool LinkHasBeenSet() const { return m_linkHasBeenSet; }
188 template <typename LinkT = Aws::String>
189 void SetLink(LinkT&& value) {
190 m_linkHasBeenSet = true;
191 m_link = std::forward<LinkT>(value);
192 }
193 template <typename LinkT = Aws::String>
194 CatalogItem& WithLink(LinkT&& value) {
195 SetLink(std::forward<LinkT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
205 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
206 template <typename CreatedAtT = Aws::Utils::DateTime>
207 void SetCreatedAt(CreatedAtT&& value) {
208 m_createdAtHasBeenSet = true;
209 m_createdAt = std::forward<CreatedAtT>(value);
210 }
211 template <typename CreatedAtT = Aws::Utils::DateTime>
212 CatalogItem& WithCreatedAt(CreatedAtT&& value) {
213 SetCreatedAt(std::forward<CreatedAtT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
223 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
224 template <typename UpdatedAtT = Aws::Utils::DateTime>
225 void SetUpdatedAt(UpdatedAtT&& value) {
226 m_updatedAtHasBeenSet = true;
227 m_updatedAt = std::forward<UpdatedAtT>(value);
228 }
229 template <typename UpdatedAtT = Aws::Utils::DateTime>
230 CatalogItem& WithUpdatedAt(UpdatedAtT&& value) {
231 SetUpdatedAt(std::forward<UpdatedAtT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::String& GetPrice() const { return m_price; }
241 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
242 template <typename PriceT = Aws::String>
243 void SetPrice(PriceT&& value) {
244 m_priceHasBeenSet = true;
245 m_price = std::forward<PriceT>(value);
246 }
247 template <typename PriceT = Aws::String>
248 CatalogItem& WithPrice(PriceT&& value) {
249 SetPrice(std::forward<PriceT>(value));
250 return *this;
251 }
253
255
259 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
260 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
261 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
262 void SetAttributes(AttributesT&& value) {
263 m_attributesHasBeenSet = true;
264 m_attributes = std::forward<AttributesT>(value);
265 }
266 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
267 CatalogItem& WithAttributes(AttributesT&& value) {
268 SetAttributes(std::forward<AttributesT>(value));
269 return *this;
270 }
271 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
272 CatalogItem& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
273 m_attributesHasBeenSet = true;
274 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
275 return *this;
276 }
278 private:
279 Aws::String m_id;
280
281 Aws::String m_name;
282
283 Aws::String m_code;
284
285 Aws::String m_type;
286
287 Aws::String m_category;
288
289 Aws::String m_description;
290
291 Aws::String m_additionalInformation;
292
293 Aws::String m_imageLink;
294
295 Aws::String m_link;
296
297 Aws::Utils::DateTime m_createdAt{};
298
299 Aws::Utils::DateTime m_updatedAt{};
300
301 Aws::String m_price;
302
304 bool m_idHasBeenSet = false;
305 bool m_nameHasBeenSet = false;
306 bool m_codeHasBeenSet = false;
307 bool m_typeHasBeenSet = false;
308 bool m_categoryHasBeenSet = false;
309 bool m_descriptionHasBeenSet = false;
310 bool m_additionalInformationHasBeenSet = false;
311 bool m_imageLinkHasBeenSet = false;
312 bool m_linkHasBeenSet = false;
313 bool m_createdAtHasBeenSet = false;
314 bool m_updatedAtHasBeenSet = false;
315 bool m_priceHasBeenSet = false;
316 bool m_attributesHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace CustomerProfiles
321} // namespace Aws
const Aws::String & GetAdditionalInformation() const
void SetDescription(DescriptionT &&value)
CatalogItem & WithAttributes(AttributesT &&value)
AWS_CUSTOMERPROFILES_API CatalogItem(Aws::Utils::Json::JsonView jsonValue)
CatalogItem & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
CatalogItem & WithCode(CodeT &&value)
Definition CatalogItem.h:85
const Aws::String & GetName() const
Definition CatalogItem.h:59
CatalogItem & WithId(IdT &&value)
Definition CatalogItem.h:49
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetImageLink() const
const Aws::String & GetDescription() const
CatalogItem & WithAdditionalInformation(AdditionalInformationT &&value)
AWS_CUSTOMERPROFILES_API CatalogItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CatalogItem & WithCategory(CategoryT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetId() const
Definition CatalogItem.h:41
const Aws::String & GetLink() const
void SetAttributes(AttributesT &&value)
const Aws::String & GetType() const
Definition CatalogItem.h:95
CatalogItem & WithUpdatedAt(UpdatedAtT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
CatalogItem & WithDescription(DescriptionT &&value)
CatalogItem & WithCreatedAt(CreatedAtT &&value)
CatalogItem & WithType(TypeT &&value)
void SetAdditionalInformation(AdditionalInformationT &&value)
CatalogItem & WithImageLink(ImageLinkT &&value)
void SetImageLink(ImageLinkT &&value)
const Aws::String & GetCategory() const
CatalogItem & WithLink(LinkT &&value)
AWS_CUSTOMERPROFILES_API CatalogItem()=default
CatalogItem & WithPrice(PriceT &&value)
CatalogItem & WithName(NameT &&value)
Definition CatalogItem.h:67
const Aws::String & GetCode() const
Definition CatalogItem.h:77
const Aws::String & GetPrice() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue