AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Patch.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/ssm/SSM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
29class Patch {
30 public:
31 AWS_SSM_API Patch() = default;
32 AWS_SSM_API Patch(Aws::Utils::Json::JsonView jsonValue);
35
37
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 Patch& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetReleaseDate() const { return m_releaseDate; }
60 inline bool ReleaseDateHasBeenSet() const { return m_releaseDateHasBeenSet; }
61 template <typename ReleaseDateT = Aws::Utils::DateTime>
62 void SetReleaseDate(ReleaseDateT&& value) {
63 m_releaseDateHasBeenSet = true;
64 m_releaseDate = std::forward<ReleaseDateT>(value);
65 }
66 template <typename ReleaseDateT = Aws::Utils::DateTime>
67 Patch& WithReleaseDate(ReleaseDateT&& value) {
68 SetReleaseDate(std::forward<ReleaseDateT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTitle() const { return m_title; }
78 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
79 template <typename TitleT = Aws::String>
80 void SetTitle(TitleT&& value) {
81 m_titleHasBeenSet = true;
82 m_title = std::forward<TitleT>(value);
83 }
84 template <typename TitleT = Aws::String>
85 Patch& WithTitle(TitleT&& value) {
86 SetTitle(std::forward<TitleT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
103 Patch& WithDescription(DescriptionT&& value) {
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetContentUrl() const { return m_contentUrl; }
114 inline bool ContentUrlHasBeenSet() const { return m_contentUrlHasBeenSet; }
115 template <typename ContentUrlT = Aws::String>
116 void SetContentUrl(ContentUrlT&& value) {
117 m_contentUrlHasBeenSet = true;
118 m_contentUrl = std::forward<ContentUrlT>(value);
119 }
120 template <typename ContentUrlT = Aws::String>
121 Patch& WithContentUrl(ContentUrlT&& value) {
122 SetContentUrl(std::forward<ContentUrlT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetVendor() const { return m_vendor; }
132 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
133 template <typename VendorT = Aws::String>
134 void SetVendor(VendorT&& value) {
135 m_vendorHasBeenSet = true;
136 m_vendor = std::forward<VendorT>(value);
137 }
138 template <typename VendorT = Aws::String>
139 Patch& WithVendor(VendorT&& value) {
140 SetVendor(std::forward<VendorT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::String& GetProductFamily() const { return m_productFamily; }
151 inline bool ProductFamilyHasBeenSet() const { return m_productFamilyHasBeenSet; }
152 template <typename ProductFamilyT = Aws::String>
153 void SetProductFamily(ProductFamilyT&& value) {
154 m_productFamilyHasBeenSet = true;
155 m_productFamily = std::forward<ProductFamilyT>(value);
156 }
157 template <typename ProductFamilyT = Aws::String>
158 Patch& WithProductFamily(ProductFamilyT&& value) {
159 SetProductFamily(std::forward<ProductFamilyT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetProduct() const { return m_product; }
170 inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
171 template <typename ProductT = Aws::String>
172 void SetProduct(ProductT&& value) {
173 m_productHasBeenSet = true;
174 m_product = std::forward<ProductT>(value);
175 }
176 template <typename ProductT = Aws::String>
177 Patch& WithProduct(ProductT&& value) {
178 SetProduct(std::forward<ProductT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetClassification() const { return m_classification; }
189 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
190 template <typename ClassificationT = Aws::String>
191 void SetClassification(ClassificationT&& value) {
192 m_classificationHasBeenSet = true;
193 m_classification = std::forward<ClassificationT>(value);
194 }
195 template <typename ClassificationT = Aws::String>
196 Patch& WithClassification(ClassificationT&& value) {
197 SetClassification(std::forward<ClassificationT>(value));
198 return *this;
199 }
201
203
208 inline const Aws::String& GetMsrcSeverity() const { return m_msrcSeverity; }
209 inline bool MsrcSeverityHasBeenSet() const { return m_msrcSeverityHasBeenSet; }
210 template <typename MsrcSeverityT = Aws::String>
211 void SetMsrcSeverity(MsrcSeverityT&& value) {
212 m_msrcSeverityHasBeenSet = true;
213 m_msrcSeverity = std::forward<MsrcSeverityT>(value);
214 }
215 template <typename MsrcSeverityT = Aws::String>
216 Patch& WithMsrcSeverity(MsrcSeverityT&& value) {
217 SetMsrcSeverity(std::forward<MsrcSeverityT>(value));
218 return *this;
219 }
221
223
227 inline const Aws::String& GetKbNumber() const { return m_kbNumber; }
228 inline bool KbNumberHasBeenSet() const { return m_kbNumberHasBeenSet; }
229 template <typename KbNumberT = Aws::String>
230 void SetKbNumber(KbNumberT&& value) {
231 m_kbNumberHasBeenSet = true;
232 m_kbNumber = std::forward<KbNumberT>(value);
233 }
234 template <typename KbNumberT = Aws::String>
235 Patch& WithKbNumber(KbNumberT&& value) {
236 SetKbNumber(std::forward<KbNumberT>(value));
237 return *this;
238 }
240
242
247 inline const Aws::String& GetMsrcNumber() const { return m_msrcNumber; }
248 inline bool MsrcNumberHasBeenSet() const { return m_msrcNumberHasBeenSet; }
249 template <typename MsrcNumberT = Aws::String>
250 void SetMsrcNumber(MsrcNumberT&& value) {
251 m_msrcNumberHasBeenSet = true;
252 m_msrcNumber = std::forward<MsrcNumberT>(value);
253 }
254 template <typename MsrcNumberT = Aws::String>
255 Patch& WithMsrcNumber(MsrcNumberT&& value) {
256 SetMsrcNumber(std::forward<MsrcNumberT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::String& GetLanguage() const { return m_language; }
266 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
267 template <typename LanguageT = Aws::String>
268 void SetLanguage(LanguageT&& value) {
269 m_languageHasBeenSet = true;
270 m_language = std::forward<LanguageT>(value);
271 }
272 template <typename LanguageT = Aws::String>
273 Patch& WithLanguage(LanguageT&& value) {
274 SetLanguage(std::forward<LanguageT>(value));
275 return *this;
276 }
278
280
284 inline const Aws::Vector<Aws::String>& GetAdvisoryIds() const { return m_advisoryIds; }
285 inline bool AdvisoryIdsHasBeenSet() const { return m_advisoryIdsHasBeenSet; }
286 template <typename AdvisoryIdsT = Aws::Vector<Aws::String>>
287 void SetAdvisoryIds(AdvisoryIdsT&& value) {
288 m_advisoryIdsHasBeenSet = true;
289 m_advisoryIds = std::forward<AdvisoryIdsT>(value);
290 }
291 template <typename AdvisoryIdsT = Aws::Vector<Aws::String>>
292 Patch& WithAdvisoryIds(AdvisoryIdsT&& value) {
293 SetAdvisoryIds(std::forward<AdvisoryIdsT>(value));
294 return *this;
295 }
296 template <typename AdvisoryIdsT = Aws::String>
297 Patch& AddAdvisoryIds(AdvisoryIdsT&& value) {
298 m_advisoryIdsHasBeenSet = true;
299 m_advisoryIds.emplace_back(std::forward<AdvisoryIdsT>(value));
300 return *this;
301 }
303
305
309 inline const Aws::Vector<Aws::String>& GetBugzillaIds() const { return m_bugzillaIds; }
310 inline bool BugzillaIdsHasBeenSet() const { return m_bugzillaIdsHasBeenSet; }
311 template <typename BugzillaIdsT = Aws::Vector<Aws::String>>
312 void SetBugzillaIds(BugzillaIdsT&& value) {
313 m_bugzillaIdsHasBeenSet = true;
314 m_bugzillaIds = std::forward<BugzillaIdsT>(value);
315 }
316 template <typename BugzillaIdsT = Aws::Vector<Aws::String>>
317 Patch& WithBugzillaIds(BugzillaIdsT&& value) {
318 SetBugzillaIds(std::forward<BugzillaIdsT>(value));
319 return *this;
320 }
321 template <typename BugzillaIdsT = Aws::String>
322 Patch& AddBugzillaIds(BugzillaIdsT&& value) {
323 m_bugzillaIdsHasBeenSet = true;
324 m_bugzillaIds.emplace_back(std::forward<BugzillaIdsT>(value));
325 return *this;
326 }
328
330
334 inline const Aws::Vector<Aws::String>& GetCVEIds() const { return m_cVEIds; }
335 inline bool CVEIdsHasBeenSet() const { return m_cVEIdsHasBeenSet; }
336 template <typename CVEIdsT = Aws::Vector<Aws::String>>
337 void SetCVEIds(CVEIdsT&& value) {
338 m_cVEIdsHasBeenSet = true;
339 m_cVEIds = std::forward<CVEIdsT>(value);
340 }
341 template <typename CVEIdsT = Aws::Vector<Aws::String>>
342 Patch& WithCVEIds(CVEIdsT&& value) {
343 SetCVEIds(std::forward<CVEIdsT>(value));
344 return *this;
345 }
346 template <typename CVEIdsT = Aws::String>
347 Patch& AddCVEIds(CVEIdsT&& value) {
348 m_cVEIdsHasBeenSet = true;
349 m_cVEIds.emplace_back(std::forward<CVEIdsT>(value));
350 return *this;
351 }
353
355
358 inline const Aws::String& GetName() const { return m_name; }
359 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
360 template <typename NameT = Aws::String>
361 void SetName(NameT&& value) {
362 m_nameHasBeenSet = true;
363 m_name = std::forward<NameT>(value);
364 }
365 template <typename NameT = Aws::String>
366 Patch& WithName(NameT&& value) {
367 SetName(std::forward<NameT>(value));
368 return *this;
369 }
371
373
378 inline int GetEpoch() const { return m_epoch; }
379 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
380 inline void SetEpoch(int value) {
381 m_epochHasBeenSet = true;
382 m_epoch = value;
383 }
384 inline Patch& WithEpoch(int value) {
385 SetEpoch(value);
386 return *this;
387 }
389
391
396 inline const Aws::String& GetVersion() const { return m_version; }
397 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
398 template <typename VersionT = Aws::String>
399 void SetVersion(VersionT&& value) {
400 m_versionHasBeenSet = true;
401 m_version = std::forward<VersionT>(value);
402 }
403 template <typename VersionT = Aws::String>
404 Patch& WithVersion(VersionT&& value) {
405 SetVersion(std::forward<VersionT>(value));
406 return *this;
407 }
409
411
416 inline const Aws::String& GetRelease() const { return m_release; }
417 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
418 template <typename ReleaseT = Aws::String>
419 void SetRelease(ReleaseT&& value) {
420 m_releaseHasBeenSet = true;
421 m_release = std::forward<ReleaseT>(value);
422 }
423 template <typename ReleaseT = Aws::String>
424 Patch& WithRelease(ReleaseT&& value) {
425 SetRelease(std::forward<ReleaseT>(value));
426 return *this;
427 }
429
431
436 inline const Aws::String& GetArch() const { return m_arch; }
437 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
438 template <typename ArchT = Aws::String>
439 void SetArch(ArchT&& value) {
440 m_archHasBeenSet = true;
441 m_arch = std::forward<ArchT>(value);
442 }
443 template <typename ArchT = Aws::String>
444 Patch& WithArch(ArchT&& value) {
445 SetArch(std::forward<ArchT>(value));
446 return *this;
447 }
449
451
455 inline const Aws::String& GetSeverity() const { return m_severity; }
456 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
457 template <typename SeverityT = Aws::String>
458 void SetSeverity(SeverityT&& value) {
459 m_severityHasBeenSet = true;
460 m_severity = std::forward<SeverityT>(value);
461 }
462 template <typename SeverityT = Aws::String>
463 Patch& WithSeverity(SeverityT&& value) {
464 SetSeverity(std::forward<SeverityT>(value));
465 return *this;
466 }
468
470
476 inline const Aws::String& GetRepository() const { return m_repository; }
477 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
478 template <typename RepositoryT = Aws::String>
479 void SetRepository(RepositoryT&& value) {
480 m_repositoryHasBeenSet = true;
481 m_repository = std::forward<RepositoryT>(value);
482 }
483 template <typename RepositoryT = Aws::String>
484 Patch& WithRepository(RepositoryT&& value) {
485 SetRepository(std::forward<RepositoryT>(value));
486 return *this;
487 }
489 private:
490 Aws::String m_id;
491
492 Aws::Utils::DateTime m_releaseDate{};
493
494 Aws::String m_title;
495
496 Aws::String m_description;
497
498 Aws::String m_contentUrl;
499
500 Aws::String m_vendor;
501
502 Aws::String m_productFamily;
503
504 Aws::String m_product;
505
506 Aws::String m_classification;
507
508 Aws::String m_msrcSeverity;
509
510 Aws::String m_kbNumber;
511
512 Aws::String m_msrcNumber;
513
514 Aws::String m_language;
515
516 Aws::Vector<Aws::String> m_advisoryIds;
517
518 Aws::Vector<Aws::String> m_bugzillaIds;
519
521
522 Aws::String m_name;
523
524 int m_epoch{0};
525
526 Aws::String m_version;
527
528 Aws::String m_release;
529
530 Aws::String m_arch;
531
532 Aws::String m_severity;
533
534 Aws::String m_repository;
535 bool m_idHasBeenSet = false;
536 bool m_releaseDateHasBeenSet = false;
537 bool m_titleHasBeenSet = false;
538 bool m_descriptionHasBeenSet = false;
539 bool m_contentUrlHasBeenSet = false;
540 bool m_vendorHasBeenSet = false;
541 bool m_productFamilyHasBeenSet = false;
542 bool m_productHasBeenSet = false;
543 bool m_classificationHasBeenSet = false;
544 bool m_msrcSeverityHasBeenSet = false;
545 bool m_kbNumberHasBeenSet = false;
546 bool m_msrcNumberHasBeenSet = false;
547 bool m_languageHasBeenSet = false;
548 bool m_advisoryIdsHasBeenSet = false;
549 bool m_bugzillaIdsHasBeenSet = false;
550 bool m_cVEIdsHasBeenSet = false;
551 bool m_nameHasBeenSet = false;
552 bool m_epochHasBeenSet = false;
553 bool m_versionHasBeenSet = false;
554 bool m_releaseHasBeenSet = false;
555 bool m_archHasBeenSet = false;
556 bool m_severityHasBeenSet = false;
557 bool m_repositoryHasBeenSet = false;
558};
559
560} // namespace Model
561} // namespace SSM
562} // namespace Aws
Patch & WithClassification(ClassificationT &&value)
Definition Patch.h:196
const Aws::String & GetArch() const
Definition Patch.h:436
Patch & WithProduct(ProductT &&value)
Definition Patch.h:177
const Aws::String & GetContentUrl() const
Definition Patch.h:113
const Aws::String & GetName() const
Definition Patch.h:358
void SetId(IdT &&value)
Definition Patch.h:44
Patch & WithMsrcNumber(MsrcNumberT &&value)
Definition Patch.h:255
Patch & WithDescription(DescriptionT &&value)
Definition Patch.h:103
bool ReleaseHasBeenSet() const
Definition Patch.h:417
const Aws::Utils::DateTime & GetReleaseDate() const
Definition Patch.h:59
bool NameHasBeenSet() const
Definition Patch.h:359
void SetName(NameT &&value)
Definition Patch.h:361
const Aws::String & GetProductFamily() const
Definition Patch.h:150
const Aws::String & GetMsrcNumber() const
Definition Patch.h:247
Patch & WithVersion(VersionT &&value)
Definition Patch.h:404
bool EpochHasBeenSet() const
Definition Patch.h:379
bool ContentUrlHasBeenSet() const
Definition Patch.h:114
bool IdHasBeenSet() const
Definition Patch.h:42
void SetProductFamily(ProductFamilyT &&value)
Definition Patch.h:153
bool VersionHasBeenSet() const
Definition Patch.h:397
Patch & WithCVEIds(CVEIdsT &&value)
Definition Patch.h:342
bool LanguageHasBeenSet() const
Definition Patch.h:266
bool RepositoryHasBeenSet() const
Definition Patch.h:477
void SetDescription(DescriptionT &&value)
Definition Patch.h:98
Patch & AddCVEIds(CVEIdsT &&value)
Definition Patch.h:347
Patch & WithId(IdT &&value)
Definition Patch.h:49
Patch & WithSeverity(SeverityT &&value)
Definition Patch.h:463
bool ArchHasBeenSet() const
Definition Patch.h:437
void SetReleaseDate(ReleaseDateT &&value)
Definition Patch.h:62
int GetEpoch() const
Definition Patch.h:378
const Aws::String & GetRepository() const
Definition Patch.h:476
void SetArch(ArchT &&value)
Definition Patch.h:439
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
bool ReleaseDateHasBeenSet() const
Definition Patch.h:60
const Aws::String & GetRelease() const
Definition Patch.h:416
const Aws::String & GetTitle() const
Definition Patch.h:77
void SetClassification(ClassificationT &&value)
Definition Patch.h:191
Patch & WithMsrcSeverity(MsrcSeverityT &&value)
Definition Patch.h:216
void SetSeverity(SeverityT &&value)
Definition Patch.h:458
Patch & WithProductFamily(ProductFamilyT &&value)
Definition Patch.h:158
void SetContentUrl(ContentUrlT &&value)
Definition Patch.h:116
const Aws::String & GetClassification() const
Definition Patch.h:188
void SetProduct(ProductT &&value)
Definition Patch.h:172
const Aws::String & GetSeverity() const
Definition Patch.h:455
Patch & WithVendor(VendorT &&value)
Definition Patch.h:139
void SetVersion(VersionT &&value)
Definition Patch.h:399
void SetAdvisoryIds(AdvisoryIdsT &&value)
Definition Patch.h:287
bool ProductFamilyHasBeenSet() const
Definition Patch.h:151
void SetLanguage(LanguageT &&value)
Definition Patch.h:268
const Aws::String & GetKbNumber() const
Definition Patch.h:227
AWS_SSM_API Patch()=default
const Aws::String & GetVendor() const
Definition Patch.h:131
void SetCVEIds(CVEIdsT &&value)
Definition Patch.h:337
bool TitleHasBeenSet() const
Definition Patch.h:78
Patch & WithName(NameT &&value)
Definition Patch.h:366
Patch & WithRepository(RepositoryT &&value)
Definition Patch.h:484
const Aws::String & GetProduct() const
Definition Patch.h:169
const Aws::Vector< Aws::String > & GetCVEIds() const
Definition Patch.h:334
bool MsrcSeverityHasBeenSet() const
Definition Patch.h:209
Patch & WithKbNumber(KbNumberT &&value)
Definition Patch.h:235
void SetTitle(TitleT &&value)
Definition Patch.h:80
Patch & AddAdvisoryIds(AdvisoryIdsT &&value)
Definition Patch.h:297
Patch & WithAdvisoryIds(AdvisoryIdsT &&value)
Definition Patch.h:292
const Aws::String & GetDescription() const
Definition Patch.h:95
void SetBugzillaIds(BugzillaIdsT &&value)
Definition Patch.h:312
const Aws::String & GetMsrcSeverity() const
Definition Patch.h:208
bool ClassificationHasBeenSet() const
Definition Patch.h:189
void SetRepository(RepositoryT &&value)
Definition Patch.h:479
void SetEpoch(int value)
Definition Patch.h:380
const Aws::String & GetId() const
Definition Patch.h:41
Patch & WithArch(ArchT &&value)
Definition Patch.h:444
Patch & WithReleaseDate(ReleaseDateT &&value)
Definition Patch.h:67
bool KbNumberHasBeenSet() const
Definition Patch.h:228
bool MsrcNumberHasBeenSet() const
Definition Patch.h:248
AWS_SSM_API Patch(Aws::Utils::Json::JsonView jsonValue)
Patch & WithContentUrl(ContentUrlT &&value)
Definition Patch.h:121
void SetVendor(VendorT &&value)
Definition Patch.h:134
const Aws::String & GetLanguage() const
Definition Patch.h:265
AWS_SSM_API Patch & operator=(Aws::Utils::Json::JsonView jsonValue)
Patch & WithRelease(ReleaseT &&value)
Definition Patch.h:424
bool AdvisoryIdsHasBeenSet() const
Definition Patch.h:285
Patch & WithLanguage(LanguageT &&value)
Definition Patch.h:273
bool ProductHasBeenSet() const
Definition Patch.h:170
const Aws::Vector< Aws::String > & GetBugzillaIds() const
Definition Patch.h:309
const Aws::Vector< Aws::String > & GetAdvisoryIds() const
Definition Patch.h:284
bool VendorHasBeenSet() const
Definition Patch.h:132
Patch & WithEpoch(int value)
Definition Patch.h:384
Patch & WithBugzillaIds(BugzillaIdsT &&value)
Definition Patch.h:317
void SetMsrcNumber(MsrcNumberT &&value)
Definition Patch.h:250
void SetKbNumber(KbNumberT &&value)
Definition Patch.h:230
bool BugzillaIdsHasBeenSet() const
Definition Patch.h:310
const Aws::String & GetVersion() const
Definition Patch.h:396
Patch & WithTitle(TitleT &&value)
Definition Patch.h:85
bool DescriptionHasBeenSet() const
Definition Patch.h:96
void SetMsrcSeverity(MsrcSeverityT &&value)
Definition Patch.h:211
bool CVEIdsHasBeenSet() const
Definition Patch.h:335
bool SeverityHasBeenSet() const
Definition Patch.h:456
Patch & AddBugzillaIds(BugzillaIdsT &&value)
Definition Patch.h:322
void SetRelease(ReleaseT &&value)
Definition Patch.h:419
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue