AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Patch.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
33 class Patch
34 {
35 public:
36 AWS_SSM_API Patch() = default;
37 AWS_SSM_API Patch(Aws::Utils::Json::JsonView jsonValue);
40
41
43
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 Patch& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_releaseDateHasBeenSet = true; m_releaseDate = std::forward<ReleaseDateT>(value); }
63 template<typename ReleaseDateT = Aws::Utils::DateTime>
64 Patch& WithReleaseDate(ReleaseDateT&& value) { SetReleaseDate(std::forward<ReleaseDateT>(value)); return *this;}
66
68
71 inline const Aws::String& GetTitle() const { return m_title; }
72 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
73 template<typename TitleT = Aws::String>
74 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
75 template<typename TitleT = Aws::String>
76 Patch& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 Patch& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
95 inline const Aws::String& GetContentUrl() const { return m_contentUrl; }
96 inline bool ContentUrlHasBeenSet() const { return m_contentUrlHasBeenSet; }
97 template<typename ContentUrlT = Aws::String>
98 void SetContentUrl(ContentUrlT&& value) { m_contentUrlHasBeenSet = true; m_contentUrl = std::forward<ContentUrlT>(value); }
99 template<typename ContentUrlT = Aws::String>
100 Patch& WithContentUrl(ContentUrlT&& value) { SetContentUrl(std::forward<ContentUrlT>(value)); return *this;}
102
104
107 inline const Aws::String& GetVendor() const { return m_vendor; }
108 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
109 template<typename VendorT = Aws::String>
110 void SetVendor(VendorT&& value) { m_vendorHasBeenSet = true; m_vendor = std::forward<VendorT>(value); }
111 template<typename VendorT = Aws::String>
112 Patch& WithVendor(VendorT&& value) { SetVendor(std::forward<VendorT>(value)); return *this;}
114
116
120 inline const Aws::String& GetProductFamily() const { return m_productFamily; }
121 inline bool ProductFamilyHasBeenSet() const { return m_productFamilyHasBeenSet; }
122 template<typename ProductFamilyT = Aws::String>
123 void SetProductFamily(ProductFamilyT&& value) { m_productFamilyHasBeenSet = true; m_productFamily = std::forward<ProductFamilyT>(value); }
124 template<typename ProductFamilyT = Aws::String>
125 Patch& WithProductFamily(ProductFamilyT&& value) { SetProductFamily(std::forward<ProductFamilyT>(value)); return *this;}
127
129
133 inline const Aws::String& GetProduct() const { return m_product; }
134 inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
135 template<typename ProductT = Aws::String>
136 void SetProduct(ProductT&& value) { m_productHasBeenSet = true; m_product = std::forward<ProductT>(value); }
137 template<typename ProductT = Aws::String>
138 Patch& WithProduct(ProductT&& value) { SetProduct(std::forward<ProductT>(value)); return *this;}
140
142
146 inline const Aws::String& GetClassification() const { return m_classification; }
147 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
148 template<typename ClassificationT = Aws::String>
149 void SetClassification(ClassificationT&& value) { m_classificationHasBeenSet = true; m_classification = std::forward<ClassificationT>(value); }
150 template<typename ClassificationT = Aws::String>
151 Patch& WithClassification(ClassificationT&& value) { SetClassification(std::forward<ClassificationT>(value)); return *this;}
153
155
160 inline const Aws::String& GetMsrcSeverity() const { return m_msrcSeverity; }
161 inline bool MsrcSeverityHasBeenSet() const { return m_msrcSeverityHasBeenSet; }
162 template<typename MsrcSeverityT = Aws::String>
163 void SetMsrcSeverity(MsrcSeverityT&& value) { m_msrcSeverityHasBeenSet = true; m_msrcSeverity = std::forward<MsrcSeverityT>(value); }
164 template<typename MsrcSeverityT = Aws::String>
165 Patch& WithMsrcSeverity(MsrcSeverityT&& value) { SetMsrcSeverity(std::forward<MsrcSeverityT>(value)); return *this;}
167
169
173 inline const Aws::String& GetKbNumber() const { return m_kbNumber; }
174 inline bool KbNumberHasBeenSet() const { return m_kbNumberHasBeenSet; }
175 template<typename KbNumberT = Aws::String>
176 void SetKbNumber(KbNumberT&& value) { m_kbNumberHasBeenSet = true; m_kbNumber = std::forward<KbNumberT>(value); }
177 template<typename KbNumberT = Aws::String>
178 Patch& WithKbNumber(KbNumberT&& value) { SetKbNumber(std::forward<KbNumberT>(value)); return *this;}
180
182
187 inline const Aws::String& GetMsrcNumber() const { return m_msrcNumber; }
188 inline bool MsrcNumberHasBeenSet() const { return m_msrcNumberHasBeenSet; }
189 template<typename MsrcNumberT = Aws::String>
190 void SetMsrcNumber(MsrcNumberT&& value) { m_msrcNumberHasBeenSet = true; m_msrcNumber = std::forward<MsrcNumberT>(value); }
191 template<typename MsrcNumberT = Aws::String>
192 Patch& WithMsrcNumber(MsrcNumberT&& value) { SetMsrcNumber(std::forward<MsrcNumberT>(value)); return *this;}
194
196
199 inline const Aws::String& GetLanguage() const { return m_language; }
200 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
201 template<typename LanguageT = Aws::String>
202 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
203 template<typename LanguageT = Aws::String>
204 Patch& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
206
208
212 inline const Aws::Vector<Aws::String>& GetAdvisoryIds() const { return m_advisoryIds; }
213 inline bool AdvisoryIdsHasBeenSet() const { return m_advisoryIdsHasBeenSet; }
214 template<typename AdvisoryIdsT = Aws::Vector<Aws::String>>
215 void SetAdvisoryIds(AdvisoryIdsT&& value) { m_advisoryIdsHasBeenSet = true; m_advisoryIds = std::forward<AdvisoryIdsT>(value); }
216 template<typename AdvisoryIdsT = Aws::Vector<Aws::String>>
217 Patch& WithAdvisoryIds(AdvisoryIdsT&& value) { SetAdvisoryIds(std::forward<AdvisoryIdsT>(value)); return *this;}
218 template<typename AdvisoryIdsT = Aws::String>
219 Patch& AddAdvisoryIds(AdvisoryIdsT&& value) { m_advisoryIdsHasBeenSet = true; m_advisoryIds.emplace_back(std::forward<AdvisoryIdsT>(value)); return *this; }
221
223
227 inline const Aws::Vector<Aws::String>& GetBugzillaIds() const { return m_bugzillaIds; }
228 inline bool BugzillaIdsHasBeenSet() const { return m_bugzillaIdsHasBeenSet; }
229 template<typename BugzillaIdsT = Aws::Vector<Aws::String>>
230 void SetBugzillaIds(BugzillaIdsT&& value) { m_bugzillaIdsHasBeenSet = true; m_bugzillaIds = std::forward<BugzillaIdsT>(value); }
231 template<typename BugzillaIdsT = Aws::Vector<Aws::String>>
232 Patch& WithBugzillaIds(BugzillaIdsT&& value) { SetBugzillaIds(std::forward<BugzillaIdsT>(value)); return *this;}
233 template<typename BugzillaIdsT = Aws::String>
234 Patch& AddBugzillaIds(BugzillaIdsT&& value) { m_bugzillaIdsHasBeenSet = true; m_bugzillaIds.emplace_back(std::forward<BugzillaIdsT>(value)); return *this; }
236
238
242 inline const Aws::Vector<Aws::String>& GetCVEIds() const { return m_cVEIds; }
243 inline bool CVEIdsHasBeenSet() const { return m_cVEIdsHasBeenSet; }
244 template<typename CVEIdsT = Aws::Vector<Aws::String>>
245 void SetCVEIds(CVEIdsT&& value) { m_cVEIdsHasBeenSet = true; m_cVEIds = std::forward<CVEIdsT>(value); }
246 template<typename CVEIdsT = Aws::Vector<Aws::String>>
247 Patch& WithCVEIds(CVEIdsT&& value) { SetCVEIds(std::forward<CVEIdsT>(value)); return *this;}
248 template<typename CVEIdsT = Aws::String>
249 Patch& AddCVEIds(CVEIdsT&& value) { m_cVEIdsHasBeenSet = true; m_cVEIds.emplace_back(std::forward<CVEIdsT>(value)); return *this; }
251
253
256 inline const Aws::String& GetName() const { return m_name; }
257 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
258 template<typename NameT = Aws::String>
259 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
260 template<typename NameT = Aws::String>
261 Patch& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
263
265
270 inline int GetEpoch() const { return m_epoch; }
271 inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; }
272 inline void SetEpoch(int value) { m_epochHasBeenSet = true; m_epoch = value; }
273 inline Patch& WithEpoch(int value) { SetEpoch(value); return *this;}
275
277
282 inline const Aws::String& GetVersion() const { return m_version; }
283 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
284 template<typename VersionT = Aws::String>
285 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
286 template<typename VersionT = Aws::String>
287 Patch& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
289
291
296 inline const Aws::String& GetRelease() const { return m_release; }
297 inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; }
298 template<typename ReleaseT = Aws::String>
299 void SetRelease(ReleaseT&& value) { m_releaseHasBeenSet = true; m_release = std::forward<ReleaseT>(value); }
300 template<typename ReleaseT = Aws::String>
301 Patch& WithRelease(ReleaseT&& value) { SetRelease(std::forward<ReleaseT>(value)); return *this;}
303
305
310 inline const Aws::String& GetArch() const { return m_arch; }
311 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
312 template<typename ArchT = Aws::String>
313 void SetArch(ArchT&& value) { m_archHasBeenSet = true; m_arch = std::forward<ArchT>(value); }
314 template<typename ArchT = Aws::String>
315 Patch& WithArch(ArchT&& value) { SetArch(std::forward<ArchT>(value)); return *this;}
317
319
323 inline const Aws::String& GetSeverity() const { return m_severity; }
324 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
325 template<typename SeverityT = Aws::String>
326 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
327 template<typename SeverityT = Aws::String>
328 Patch& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
330
332
338 inline const Aws::String& GetRepository() const { return m_repository; }
339 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
340 template<typename RepositoryT = Aws::String>
341 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
342 template<typename RepositoryT = Aws::String>
343 Patch& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
345 private:
346
347 Aws::String m_id;
348 bool m_idHasBeenSet = false;
349
350 Aws::Utils::DateTime m_releaseDate{};
351 bool m_releaseDateHasBeenSet = false;
352
353 Aws::String m_title;
354 bool m_titleHasBeenSet = false;
355
356 Aws::String m_description;
357 bool m_descriptionHasBeenSet = false;
358
359 Aws::String m_contentUrl;
360 bool m_contentUrlHasBeenSet = false;
361
362 Aws::String m_vendor;
363 bool m_vendorHasBeenSet = false;
364
365 Aws::String m_productFamily;
366 bool m_productFamilyHasBeenSet = false;
367
368 Aws::String m_product;
369 bool m_productHasBeenSet = false;
370
371 Aws::String m_classification;
372 bool m_classificationHasBeenSet = false;
373
374 Aws::String m_msrcSeverity;
375 bool m_msrcSeverityHasBeenSet = false;
376
377 Aws::String m_kbNumber;
378 bool m_kbNumberHasBeenSet = false;
379
380 Aws::String m_msrcNumber;
381 bool m_msrcNumberHasBeenSet = false;
382
383 Aws::String m_language;
384 bool m_languageHasBeenSet = false;
385
386 Aws::Vector<Aws::String> m_advisoryIds;
387 bool m_advisoryIdsHasBeenSet = false;
388
389 Aws::Vector<Aws::String> m_bugzillaIds;
390 bool m_bugzillaIdsHasBeenSet = false;
391
393 bool m_cVEIdsHasBeenSet = false;
394
395 Aws::String m_name;
396 bool m_nameHasBeenSet = false;
397
398 int m_epoch{0};
399 bool m_epochHasBeenSet = false;
400
401 Aws::String m_version;
402 bool m_versionHasBeenSet = false;
403
404 Aws::String m_release;
405 bool m_releaseHasBeenSet = false;
406
407 Aws::String m_arch;
408 bool m_archHasBeenSet = false;
409
410 Aws::String m_severity;
411 bool m_severityHasBeenSet = false;
412
413 Aws::String m_repository;
414 bool m_repositoryHasBeenSet = false;
415 };
416
417} // namespace Model
418} // namespace SSM
419} // namespace Aws
Patch & WithClassification(ClassificationT &&value)
Definition Patch.h:151
const Aws::String & GetArch() const
Definition Patch.h:310
Patch & WithProduct(ProductT &&value)
Definition Patch.h:138
const Aws::String & GetContentUrl() const
Definition Patch.h:95
const Aws::String & GetName() const
Definition Patch.h:256
void SetId(IdT &&value)
Definition Patch.h:50
Patch & WithMsrcNumber(MsrcNumberT &&value)
Definition Patch.h:192
Patch & WithDescription(DescriptionT &&value)
Definition Patch.h:88
bool ReleaseHasBeenSet() const
Definition Patch.h:297
const Aws::Utils::DateTime & GetReleaseDate() const
Definition Patch.h:59
bool NameHasBeenSet() const
Definition Patch.h:257
void SetName(NameT &&value)
Definition Patch.h:259
const Aws::String & GetProductFamily() const
Definition Patch.h:120
const Aws::String & GetMsrcNumber() const
Definition Patch.h:187
Patch & WithVersion(VersionT &&value)
Definition Patch.h:287
bool EpochHasBeenSet() const
Definition Patch.h:271
bool ContentUrlHasBeenSet() const
Definition Patch.h:96
bool IdHasBeenSet() const
Definition Patch.h:48
void SetProductFamily(ProductFamilyT &&value)
Definition Patch.h:123
bool VersionHasBeenSet() const
Definition Patch.h:283
Patch & WithCVEIds(CVEIdsT &&value)
Definition Patch.h:247
bool LanguageHasBeenSet() const
Definition Patch.h:200
bool RepositoryHasBeenSet() const
Definition Patch.h:339
void SetDescription(DescriptionT &&value)
Definition Patch.h:86
Patch & AddCVEIds(CVEIdsT &&value)
Definition Patch.h:249
Patch & WithId(IdT &&value)
Definition Patch.h:52
Patch & WithSeverity(SeverityT &&value)
Definition Patch.h:328
bool ArchHasBeenSet() const
Definition Patch.h:311
void SetReleaseDate(ReleaseDateT &&value)
Definition Patch.h:62
int GetEpoch() const
Definition Patch.h:270
const Aws::String & GetRepository() const
Definition Patch.h:338
void SetArch(ArchT &&value)
Definition Patch.h:313
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
bool ReleaseDateHasBeenSet() const
Definition Patch.h:60
const Aws::String & GetRelease() const
Definition Patch.h:296
const Aws::String & GetTitle() const
Definition Patch.h:71
void SetClassification(ClassificationT &&value)
Definition Patch.h:149
Patch & WithMsrcSeverity(MsrcSeverityT &&value)
Definition Patch.h:165
void SetSeverity(SeverityT &&value)
Definition Patch.h:326
Patch & WithProductFamily(ProductFamilyT &&value)
Definition Patch.h:125
void SetContentUrl(ContentUrlT &&value)
Definition Patch.h:98
const Aws::String & GetClassification() const
Definition Patch.h:146
void SetProduct(ProductT &&value)
Definition Patch.h:136
const Aws::String & GetSeverity() const
Definition Patch.h:323
Patch & WithVendor(VendorT &&value)
Definition Patch.h:112
void SetVersion(VersionT &&value)
Definition Patch.h:285
void SetAdvisoryIds(AdvisoryIdsT &&value)
Definition Patch.h:215
bool ProductFamilyHasBeenSet() const
Definition Patch.h:121
void SetLanguage(LanguageT &&value)
Definition Patch.h:202
const Aws::String & GetKbNumber() const
Definition Patch.h:173
AWS_SSM_API Patch()=default
const Aws::String & GetVendor() const
Definition Patch.h:107
void SetCVEIds(CVEIdsT &&value)
Definition Patch.h:245
bool TitleHasBeenSet() const
Definition Patch.h:72
Patch & WithName(NameT &&value)
Definition Patch.h:261
Patch & WithRepository(RepositoryT &&value)
Definition Patch.h:343
const Aws::String & GetProduct() const
Definition Patch.h:133
const Aws::Vector< Aws::String > & GetCVEIds() const
Definition Patch.h:242
bool MsrcSeverityHasBeenSet() const
Definition Patch.h:161
Patch & WithKbNumber(KbNumberT &&value)
Definition Patch.h:178
void SetTitle(TitleT &&value)
Definition Patch.h:74
Patch & AddAdvisoryIds(AdvisoryIdsT &&value)
Definition Patch.h:219
Patch & WithAdvisoryIds(AdvisoryIdsT &&value)
Definition Patch.h:217
const Aws::String & GetDescription() const
Definition Patch.h:83
void SetBugzillaIds(BugzillaIdsT &&value)
Definition Patch.h:230
const Aws::String & GetMsrcSeverity() const
Definition Patch.h:160
bool ClassificationHasBeenSet() const
Definition Patch.h:147
void SetRepository(RepositoryT &&value)
Definition Patch.h:341
void SetEpoch(int value)
Definition Patch.h:272
const Aws::String & GetId() const
Definition Patch.h:47
Patch & WithArch(ArchT &&value)
Definition Patch.h:315
Patch & WithReleaseDate(ReleaseDateT &&value)
Definition Patch.h:64
bool KbNumberHasBeenSet() const
Definition Patch.h:174
bool MsrcNumberHasBeenSet() const
Definition Patch.h:188
AWS_SSM_API Patch(Aws::Utils::Json::JsonView jsonValue)
Patch & WithContentUrl(ContentUrlT &&value)
Definition Patch.h:100
void SetVendor(VendorT &&value)
Definition Patch.h:110
const Aws::String & GetLanguage() const
Definition Patch.h:199
AWS_SSM_API Patch & operator=(Aws::Utils::Json::JsonView jsonValue)
Patch & WithRelease(ReleaseT &&value)
Definition Patch.h:301
bool AdvisoryIdsHasBeenSet() const
Definition Patch.h:213
Patch & WithLanguage(LanguageT &&value)
Definition Patch.h:204
bool ProductHasBeenSet() const
Definition Patch.h:134
const Aws::Vector< Aws::String > & GetBugzillaIds() const
Definition Patch.h:227
const Aws::Vector< Aws::String > & GetAdvisoryIds() const
Definition Patch.h:212
bool VendorHasBeenSet() const
Definition Patch.h:108
Patch & WithEpoch(int value)
Definition Patch.h:273
Patch & WithBugzillaIds(BugzillaIdsT &&value)
Definition Patch.h:232
void SetMsrcNumber(MsrcNumberT &&value)
Definition Patch.h:190
void SetKbNumber(KbNumberT &&value)
Definition Patch.h:176
bool BugzillaIdsHasBeenSet() const
Definition Patch.h:228
const Aws::String & GetVersion() const
Definition Patch.h:282
Patch & WithTitle(TitleT &&value)
Definition Patch.h:76
bool DescriptionHasBeenSet() const
Definition Patch.h:84
void SetMsrcSeverity(MsrcSeverityT &&value)
Definition Patch.h:163
bool CVEIdsHasBeenSet() const
Definition Patch.h:243
bool SeverityHasBeenSet() const
Definition Patch.h:324
Patch & AddBugzillaIds(BugzillaIdsT &&value)
Definition Patch.h:234
void SetRelease(ReleaseT &&value)
Definition Patch.h:299
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue