AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
GetCodeFindingResult.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/AffectedPackage.h>
9#include <aws/continuum/model/FindingDiscardReason.h>
10#include <aws/continuum/model/FindingOcsfClass.h>
11#include <aws/continuum/model/FindingPosture.h>
12#include <aws/continuum/model/FindingResource.h>
13#include <aws/continuum/model/FindingSeverityId.h>
14#include <aws/continuum/model/FindingStatus.h>
15#include <aws/continuum/model/FindingType.h>
16#include <aws/continuum/model/FindingValidation.h>
17#include <aws/continuum/model/FindingVulnerability.h>
18#include <aws/core/http/HttpResponse.h>
19#include <aws/core/utils/DateTime.h>
20#include <aws/core/utils/memory/stl/AWSString.h>
21#include <aws/core/utils/memory/stl/AWSVector.h>
22
23#include <utility>
24
25namespace Aws {
26template <typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils {
30namespace Json {
31class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace Continuum {
35namespace Model {
44 public:
45 AWS_CONTINUUM_API GetCodeFindingResult() = default;
48
50
54 inline FindingType GetType() const { return m_type; }
55 inline void SetType(FindingType value) {
56 m_typeHasBeenSet = true;
57 m_type = value;
58 }
60 SetType(value);
61 return *this;
62 }
64
66
69 inline const Aws::String& GetTitle() const { return m_title; }
70 template <typename TitleT = Aws::String>
71 void SetTitle(TitleT&& value) {
72 m_titleHasBeenSet = true;
73 m_title = std::forward<TitleT>(value);
74 }
75 template <typename TitleT = Aws::String>
77 SetTitle(std::forward<TitleT>(value));
78 return *this;
79 }
81
83
86 inline FindingSeverityId GetSeverity() const { return m_severity; }
87 inline void SetSeverity(FindingSeverityId value) {
88 m_severityHasBeenSet = true;
89 m_severity = value;
90 }
92 SetSeverity(value);
93 return *this;
94 }
96
98
101 inline const Aws::String& GetSummary() const { return m_summary; }
102 template <typename SummaryT = Aws::String>
103 void SetSummary(SummaryT&& value) {
104 m_summaryHasBeenSet = true;
105 m_summary = std::forward<SummaryT>(value);
106 }
107 template <typename SummaryT = Aws::String>
109 SetSummary(std::forward<SummaryT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetDetailedDescription() const { return m_detailedDescription; }
119 template <typename DetailedDescriptionT = Aws::String>
120 void SetDetailedDescription(DetailedDescriptionT&& value) {
121 m_detailedDescriptionHasBeenSet = true;
122 m_detailedDescription = std::forward<DetailedDescriptionT>(value);
123 }
124 template <typename DetailedDescriptionT = Aws::String>
125 GetCodeFindingResult& WithDetailedDescription(DetailedDescriptionT&& value) {
126 SetDetailedDescription(std::forward<DetailedDescriptionT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetCategory() const { return m_category; }
137 template <typename CategoryT = Aws::String>
138 void SetCategory(CategoryT&& value) {
139 m_categoryHasBeenSet = true;
140 m_category = std::forward<CategoryT>(value);
141 }
142 template <typename CategoryT = Aws::String>
143 GetCodeFindingResult& WithCategory(CategoryT&& value) {
144 SetCategory(std::forward<CategoryT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetSubCategory() const { return m_subCategory; }
154 template <typename SubCategoryT = Aws::String>
155 void SetSubCategory(SubCategoryT&& value) {
156 m_subCategoryHasBeenSet = true;
157 m_subCategory = std::forward<SubCategoryT>(value);
158 }
159 template <typename SubCategoryT = Aws::String>
160 GetCodeFindingResult& WithSubCategory(SubCategoryT&& value) {
161 SetSubCategory(std::forward<SubCategoryT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Vector<Aws::String>& GetCweIds() const { return m_cweIds; }
171 template <typename CweIdsT = Aws::Vector<Aws::String>>
172 void SetCweIds(CweIdsT&& value) {
173 m_cweIdsHasBeenSet = true;
174 m_cweIds = std::forward<CweIdsT>(value);
175 }
176 template <typename CweIdsT = Aws::Vector<Aws::String>>
178 SetCweIds(std::forward<CweIdsT>(value));
179 return *this;
180 }
181 template <typename CweIdsT = Aws::String>
182 GetCodeFindingResult& AddCweIds(CweIdsT&& value) {
183 m_cweIdsHasBeenSet = true;
184 m_cweIds.emplace_back(std::forward<CweIdsT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetOwaspCategory() const { return m_owaspCategory; }
194 template <typename OwaspCategoryT = Aws::String>
195 void SetOwaspCategory(OwaspCategoryT&& value) {
196 m_owaspCategoryHasBeenSet = true;
197 m_owaspCategory = std::forward<OwaspCategoryT>(value);
198 }
199 template <typename OwaspCategoryT = Aws::String>
200 GetCodeFindingResult& WithOwaspCategory(OwaspCategoryT&& value) {
201 SetOwaspCategory(std::forward<OwaspCategoryT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::String& GetMitigation() const { return m_mitigation; }
211 template <typename MitigationT = Aws::String>
212 void SetMitigation(MitigationT&& value) {
213 m_mitigationHasBeenSet = true;
214 m_mitigation = std::forward<MitigationT>(value);
215 }
216 template <typename MitigationT = Aws::String>
217 GetCodeFindingResult& WithMitigation(MitigationT&& value) {
218 SetMitigation(std::forward<MitigationT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetFilePath() const { return m_filePath; }
228 template <typename FilePathT = Aws::String>
229 void SetFilePath(FilePathT&& value) {
230 m_filePathHasBeenSet = true;
231 m_filePath = std::forward<FilePathT>(value);
232 }
233 template <typename FilePathT = Aws::String>
234 GetCodeFindingResult& WithFilePath(FilePathT&& value) {
235 SetFilePath(std::forward<FilePathT>(value));
236 return *this;
237 }
239
241
247 inline int GetLineNumber() const { return m_lineNumber; }
248 inline void SetLineNumber(int value) {
249 m_lineNumberHasBeenSet = true;
250 m_lineNumber = value;
251 }
253 SetLineNumber(value);
254 return *this;
255 }
257
259
265 inline const Aws::String& GetCveId() const { return m_cveId; }
266 template <typename CveIdT = Aws::String>
267 void SetCveId(CveIdT&& value) {
268 m_cveIdHasBeenSet = true;
269 m_cveId = std::forward<CveIdT>(value);
270 }
271 template <typename CveIdT = Aws::String>
273 SetCveId(std::forward<CveIdT>(value));
274 return *this;
275 }
277
279
285 inline double GetCvssBaseScore() const { return m_cvssBaseScore; }
286 inline void SetCvssBaseScore(double value) {
287 m_cvssBaseScoreHasBeenSet = true;
288 m_cvssBaseScore = value;
289 }
291 SetCvssBaseScore(value);
292 return *this;
293 }
295
297
300 inline const Aws::Vector<AffectedPackage>& GetAffectedPackages() const { return m_affectedPackages; }
301 template <typename AffectedPackagesT = Aws::Vector<AffectedPackage>>
302 void SetAffectedPackages(AffectedPackagesT&& value) {
303 m_affectedPackagesHasBeenSet = true;
304 m_affectedPackages = std::forward<AffectedPackagesT>(value);
305 }
306 template <typename AffectedPackagesT = Aws::Vector<AffectedPackage>>
307 GetCodeFindingResult& WithAffectedPackages(AffectedPackagesT&& value) {
308 SetAffectedPackages(std::forward<AffectedPackagesT>(value));
309 return *this;
310 }
311 template <typename AffectedPackagesT = AffectedPackage>
312 GetCodeFindingResult& AddAffectedPackages(AffectedPackagesT&& value) {
313 m_affectedPackagesHasBeenSet = true;
314 m_affectedPackages.emplace_back(std::forward<AffectedPackagesT>(value));
315 return *this;
316 }
318
320
323 inline const Aws::String& GetVulnerableCode() const { return m_vulnerableCode; }
324 template <typename VulnerableCodeT = Aws::String>
325 void SetVulnerableCode(VulnerableCodeT&& value) {
326 m_vulnerableCodeHasBeenSet = true;
327 m_vulnerableCode = std::forward<VulnerableCodeT>(value);
328 }
329 template <typename VulnerableCodeT = Aws::String>
330 GetCodeFindingResult& WithVulnerableCode(VulnerableCodeT&& value) {
331 SetVulnerableCode(std::forward<VulnerableCodeT>(value));
332 return *this;
333 }
335
337
340 inline const Aws::Vector<Aws::String>& GetRelevantInputs() const { return m_relevantInputs; }
341 template <typename RelevantInputsT = Aws::Vector<Aws::String>>
342 void SetRelevantInputs(RelevantInputsT&& value) {
343 m_relevantInputsHasBeenSet = true;
344 m_relevantInputs = std::forward<RelevantInputsT>(value);
345 }
346 template <typename RelevantInputsT = Aws::Vector<Aws::String>>
347 GetCodeFindingResult& WithRelevantInputs(RelevantInputsT&& value) {
348 SetRelevantInputs(std::forward<RelevantInputsT>(value));
349 return *this;
350 }
351 template <typename RelevantInputsT = Aws::String>
352 GetCodeFindingResult& AddRelevantInputs(RelevantInputsT&& value) {
353 m_relevantInputsHasBeenSet = true;
354 m_relevantInputs.emplace_back(std::forward<RelevantInputsT>(value));
355 return *this;
356 }
358
360
363 inline const Aws::Vector<Aws::String>& GetStepsToReproduce() const { return m_stepsToReproduce; }
364 template <typename StepsToReproduceT = Aws::Vector<Aws::String>>
365 void SetStepsToReproduce(StepsToReproduceT&& value) {
366 m_stepsToReproduceHasBeenSet = true;
367 m_stepsToReproduce = std::forward<StepsToReproduceT>(value);
368 }
369 template <typename StepsToReproduceT = Aws::Vector<Aws::String>>
370 GetCodeFindingResult& WithStepsToReproduce(StepsToReproduceT&& value) {
371 SetStepsToReproduce(std::forward<StepsToReproduceT>(value));
372 return *this;
373 }
374 template <typename StepsToReproduceT = Aws::String>
375 GetCodeFindingResult& AddStepsToReproduce(StepsToReproduceT&& value) {
376 m_stepsToReproduceHasBeenSet = true;
377 m_stepsToReproduce.emplace_back(std::forward<StepsToReproduceT>(value));
378 return *this;
379 }
381
383
386 inline const FindingValidation& GetValidation() const { return m_validation; }
387 template <typename ValidationT = FindingValidation>
388 void SetValidation(ValidationT&& value) {
389 m_validationHasBeenSet = true;
390 m_validation = std::forward<ValidationT>(value);
391 }
392 template <typename ValidationT = FindingValidation>
393 GetCodeFindingResult& WithValidation(ValidationT&& value) {
394 SetValidation(std::forward<ValidationT>(value));
395 return *this;
396 }
398
400
404 inline int GetEndLine() const { return m_endLine; }
405 inline void SetEndLine(int value) {
406 m_endLineHasBeenSet = true;
407 m_endLine = value;
408 }
410 SetEndLine(value);
411 return *this;
412 }
414
416
420 inline const Aws::Vector<Aws::String>& GetMitreTechniques() const { return m_mitreTechniques; }
421 template <typename MitreTechniquesT = Aws::Vector<Aws::String>>
422 void SetMitreTechniques(MitreTechniquesT&& value) {
423 m_mitreTechniquesHasBeenSet = true;
424 m_mitreTechniques = std::forward<MitreTechniquesT>(value);
425 }
426 template <typename MitreTechniquesT = Aws::Vector<Aws::String>>
427 GetCodeFindingResult& WithMitreTechniques(MitreTechniquesT&& value) {
428 SetMitreTechniques(std::forward<MitreTechniquesT>(value));
429 return *this;
430 }
431 template <typename MitreTechniquesT = Aws::String>
432 GetCodeFindingResult& AddMitreTechniques(MitreTechniquesT&& value) {
433 m_mitreTechniquesHasBeenSet = true;
434 m_mitreTechniques.emplace_back(std::forward<MitreTechniquesT>(value));
435 return *this;
436 }
438
440
444 inline const Aws::Vector<Aws::String>& GetRemediationReferences() const { return m_remediationReferences; }
445 template <typename RemediationReferencesT = Aws::Vector<Aws::String>>
446 void SetRemediationReferences(RemediationReferencesT&& value) {
447 m_remediationReferencesHasBeenSet = true;
448 m_remediationReferences = std::forward<RemediationReferencesT>(value);
449 }
450 template <typename RemediationReferencesT = Aws::Vector<Aws::String>>
451 GetCodeFindingResult& WithRemediationReferences(RemediationReferencesT&& value) {
452 SetRemediationReferences(std::forward<RemediationReferencesT>(value));
453 return *this;
454 }
455 template <typename RemediationReferencesT = Aws::String>
456 GetCodeFindingResult& AddRemediationReferences(RemediationReferencesT&& value) {
457 m_remediationReferencesHasBeenSet = true;
458 m_remediationReferences.emplace_back(std::forward<RemediationReferencesT>(value));
459 return *this;
460 }
462
464
468 inline FindingOcsfClass GetOcsfClass() const { return m_ocsfClass; }
469 inline void SetOcsfClass(FindingOcsfClass value) {
470 m_ocsfClassHasBeenSet = true;
471 m_ocsfClass = value;
472 }
474 SetOcsfClass(value);
475 return *this;
476 }
478
480
483 inline const Aws::String& GetOcsfSchemaVersion() const { return m_ocsfSchemaVersion; }
484 template <typename OcsfSchemaVersionT = Aws::String>
485 void SetOcsfSchemaVersion(OcsfSchemaVersionT&& value) {
486 m_ocsfSchemaVersionHasBeenSet = true;
487 m_ocsfSchemaVersion = std::forward<OcsfSchemaVersionT>(value);
488 }
489 template <typename OcsfSchemaVersionT = Aws::String>
490 GetCodeFindingResult& WithOcsfSchemaVersion(OcsfSchemaVersionT&& value) {
491 SetOcsfSchemaVersion(std::forward<OcsfSchemaVersionT>(value));
492 return *this;
493 }
495
497
500 inline const Aws::String& GetProductName() const { return m_productName; }
501 template <typename ProductNameT = Aws::String>
502 void SetProductName(ProductNameT&& value) {
503 m_productNameHasBeenSet = true;
504 m_productName = std::forward<ProductNameT>(value);
505 }
506 template <typename ProductNameT = Aws::String>
507 GetCodeFindingResult& WithProductName(ProductNameT&& value) {
508 SetProductName(std::forward<ProductNameT>(value));
509 return *this;
510 }
512
514
515 inline const Aws::String& GetProductVendorName() const { return m_productVendorName; }
516 template <typename ProductVendorNameT = Aws::String>
517 void SetProductVendorName(ProductVendorNameT&& value) {
518 m_productVendorNameHasBeenSet = true;
519 m_productVendorName = std::forward<ProductVendorNameT>(value);
520 }
521 template <typename ProductVendorNameT = Aws::String>
522 GetCodeFindingResult& WithProductVendorName(ProductVendorNameT&& value) {
523 SetProductVendorName(std::forward<ProductVendorNameT>(value));
524 return *this;
525 }
527
529
530 inline const Aws::String& GetProductVersion() const { return m_productVersion; }
531 template <typename ProductVersionT = Aws::String>
532 void SetProductVersion(ProductVersionT&& value) {
533 m_productVersionHasBeenSet = true;
534 m_productVersion = std::forward<ProductVersionT>(value);
535 }
536 template <typename ProductVersionT = Aws::String>
537 GetCodeFindingResult& WithProductVersion(ProductVersionT&& value) {
538 SetProductVersion(std::forward<ProductVersionT>(value));
539 return *this;
540 }
542
544
550 inline const Aws::String& GetSourceStatus() const { return m_sourceStatus; }
551 template <typename SourceStatusT = Aws::String>
552 void SetSourceStatus(SourceStatusT&& value) {
553 m_sourceStatusHasBeenSet = true;
554 m_sourceStatus = std::forward<SourceStatusT>(value);
555 }
556 template <typename SourceStatusT = Aws::String>
557 GetCodeFindingResult& WithSourceStatus(SourceStatusT&& value) {
558 SetSourceStatus(std::forward<SourceStatusT>(value));
559 return *this;
560 }
562
564
567 inline int GetSourceStatusId() const { return m_sourceStatusId; }
568 inline void SetSourceStatusId(int value) {
569 m_sourceStatusIdHasBeenSet = true;
570 m_sourceStatusId = value;
571 }
573 SetSourceStatusId(value);
574 return *this;
575 }
577
579
583 inline const Aws::Utils::DateTime& GetFirstSeenAt() const { return m_firstSeenAt; }
584 template <typename FirstSeenAtT = Aws::Utils::DateTime>
585 void SetFirstSeenAt(FirstSeenAtT&& value) {
586 m_firstSeenAtHasBeenSet = true;
587 m_firstSeenAt = std::forward<FirstSeenAtT>(value);
588 }
589 template <typename FirstSeenAtT = Aws::Utils::DateTime>
590 GetCodeFindingResult& WithFirstSeenAt(FirstSeenAtT&& value) {
591 SetFirstSeenAt(std::forward<FirstSeenAtT>(value));
592 return *this;
593 }
595
597
600 inline const Aws::Vector<Aws::String>& GetFindingTypes() const { return m_findingTypes; }
601 template <typename FindingTypesT = Aws::Vector<Aws::String>>
602 void SetFindingTypes(FindingTypesT&& value) {
603 m_findingTypesHasBeenSet = true;
604 m_findingTypes = std::forward<FindingTypesT>(value);
605 }
606 template <typename FindingTypesT = Aws::Vector<Aws::String>>
607 GetCodeFindingResult& WithFindingTypes(FindingTypesT&& value) {
608 SetFindingTypes(std::forward<FindingTypesT>(value));
609 return *this;
610 }
611 template <typename FindingTypesT = Aws::String>
612 GetCodeFindingResult& AddFindingTypes(FindingTypesT&& value) {
613 m_findingTypesHasBeenSet = true;
614 m_findingTypes.emplace_back(std::forward<FindingTypesT>(value));
615 return *this;
616 }
618
620
627 inline const Aws::Vector<FindingVulnerability>& GetVulnerabilities() const { return m_vulnerabilities; }
628 template <typename VulnerabilitiesT = Aws::Vector<FindingVulnerability>>
629 void SetVulnerabilities(VulnerabilitiesT&& value) {
630 m_vulnerabilitiesHasBeenSet = true;
631 m_vulnerabilities = std::forward<VulnerabilitiesT>(value);
632 }
633 template <typename VulnerabilitiesT = Aws::Vector<FindingVulnerability>>
634 GetCodeFindingResult& WithVulnerabilities(VulnerabilitiesT&& value) {
635 SetVulnerabilities(std::forward<VulnerabilitiesT>(value));
636 return *this;
637 }
638 template <typename VulnerabilitiesT = FindingVulnerability>
639 GetCodeFindingResult& AddVulnerabilities(VulnerabilitiesT&& value) {
640 m_vulnerabilitiesHasBeenSet = true;
641 m_vulnerabilities.emplace_back(std::forward<VulnerabilitiesT>(value));
642 return *this;
643 }
645
647
650 inline const Aws::Vector<FindingResource>& GetResources() const { return m_resources; }
651 template <typename ResourcesT = Aws::Vector<FindingResource>>
652 void SetResources(ResourcesT&& value) {
653 m_resourcesHasBeenSet = true;
654 m_resources = std::forward<ResourcesT>(value);
655 }
656 template <typename ResourcesT = Aws::Vector<FindingResource>>
657 GetCodeFindingResult& WithResources(ResourcesT&& value) {
658 SetResources(std::forward<ResourcesT>(value));
659 return *this;
660 }
661 template <typename ResourcesT = FindingResource>
662 GetCodeFindingResult& AddResources(ResourcesT&& value) {
663 m_resourcesHasBeenSet = true;
664 m_resources.emplace_back(std::forward<ResourcesT>(value));
665 return *this;
666 }
668
670
674 inline const FindingPosture& GetPosture() const { return m_posture; }
675 template <typename PostureT = FindingPosture>
676 void SetPosture(PostureT&& value) {
677 m_postureHasBeenSet = true;
678 m_posture = std::forward<PostureT>(value);
679 }
680 template <typename PostureT = FindingPosture>
682 SetPosture(std::forward<PostureT>(value));
683 return *this;
684 }
686
688
691 inline const Aws::String& GetFindingId() const { return m_findingId; }
692 template <typename FindingIdT = Aws::String>
693 void SetFindingId(FindingIdT&& value) {
694 m_findingIdHasBeenSet = true;
695 m_findingId = std::forward<FindingIdT>(value);
696 }
697 template <typename FindingIdT = Aws::String>
698 GetCodeFindingResult& WithFindingId(FindingIdT&& value) {
699 SetFindingId(std::forward<FindingIdT>(value));
700 return *this;
701 }
703
705
708 inline const Aws::String& GetFindingArn() const { return m_findingArn; }
709 template <typename FindingArnT = Aws::String>
710 void SetFindingArn(FindingArnT&& value) {
711 m_findingArnHasBeenSet = true;
712 m_findingArn = std::forward<FindingArnT>(value);
713 }
714 template <typename FindingArnT = Aws::String>
715 GetCodeFindingResult& WithFindingArn(FindingArnT&& value) {
716 SetFindingArn(std::forward<FindingArnT>(value));
717 return *this;
718 }
720
722
725 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
726 template <typename EnvironmentIdT = Aws::String>
727 void SetEnvironmentId(EnvironmentIdT&& value) {
728 m_environmentIdHasBeenSet = true;
729 m_environmentId = std::forward<EnvironmentIdT>(value);
730 }
731 template <typename EnvironmentIdT = Aws::String>
732 GetCodeFindingResult& WithEnvironmentId(EnvironmentIdT&& value) {
733 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
734 return *this;
735 }
737
739
742 inline const Aws::String& GetSource() const { return m_source; }
743 template <typename SourceT = Aws::String>
744 void SetSource(SourceT&& value) {
745 m_sourceHasBeenSet = true;
746 m_source = std::forward<SourceT>(value);
747 }
748 template <typename SourceT = Aws::String>
750 SetSource(std::forward<SourceT>(value));
751 return *this;
752 }
754
756
759 inline const Aws::String& GetSourceFindingId() const { return m_sourceFindingId; }
760 template <typename SourceFindingIdT = Aws::String>
761 void SetSourceFindingId(SourceFindingIdT&& value) {
762 m_sourceFindingIdHasBeenSet = true;
763 m_sourceFindingId = std::forward<SourceFindingIdT>(value);
764 }
765 template <typename SourceFindingIdT = Aws::String>
766 GetCodeFindingResult& WithSourceFindingId(SourceFindingIdT&& value) {
767 SetSourceFindingId(std::forward<SourceFindingIdT>(value));
768 return *this;
769 }
771
773
783 inline const Aws::Utils::DateTime& GetReportedAt() const { return m_reportedAt; }
784 template <typename ReportedAtT = Aws::Utils::DateTime>
785 void SetReportedAt(ReportedAtT&& value) {
786 m_reportedAtHasBeenSet = true;
787 m_reportedAt = std::forward<ReportedAtT>(value);
788 }
789 template <typename ReportedAtT = Aws::Utils::DateTime>
790 GetCodeFindingResult& WithReportedAt(ReportedAtT&& value) {
791 SetReportedAt(std::forward<ReportedAtT>(value));
792 return *this;
793 }
795
797
800 inline FindingStatus GetStatus() const { return m_status; }
801 inline void SetStatus(FindingStatus value) {
802 m_statusHasBeenSet = true;
803 m_status = value;
804 }
806 SetStatus(value);
807 return *this;
808 }
810
812
815 inline const Aws::Utils::DateTime& GetStatusUpdatedAt() const { return m_statusUpdatedAt; }
816 template <typename StatusUpdatedAtT = Aws::Utils::DateTime>
817 void SetStatusUpdatedAt(StatusUpdatedAtT&& value) {
818 m_statusUpdatedAtHasBeenSet = true;
819 m_statusUpdatedAt = std::forward<StatusUpdatedAtT>(value);
820 }
821 template <typename StatusUpdatedAtT = Aws::Utils::DateTime>
822 GetCodeFindingResult& WithStatusUpdatedAt(StatusUpdatedAtT&& value) {
823 SetStatusUpdatedAt(std::forward<StatusUpdatedAtT>(value));
824 return *this;
825 }
827
829
832 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
833 template <typename CreatedAtT = Aws::Utils::DateTime>
834 void SetCreatedAt(CreatedAtT&& value) {
835 m_createdAtHasBeenSet = true;
836 m_createdAt = std::forward<CreatedAtT>(value);
837 }
838 template <typename CreatedAtT = Aws::Utils::DateTime>
839 GetCodeFindingResult& WithCreatedAt(CreatedAtT&& value) {
840 SetCreatedAt(std::forward<CreatedAtT>(value));
841 return *this;
842 }
844
846
853 inline const Aws::String& GetScanRunId() const { return m_scanRunId; }
854 template <typename ScanRunIdT = Aws::String>
855 void SetScanRunId(ScanRunIdT&& value) {
856 m_scanRunIdHasBeenSet = true;
857 m_scanRunId = std::forward<ScanRunIdT>(value);
858 }
859 template <typename ScanRunIdT = Aws::String>
860 GetCodeFindingResult& WithScanRunId(ScanRunIdT&& value) {
861 SetScanRunId(std::forward<ScanRunIdT>(value));
862 return *this;
863 }
865
867
870 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
871 template <typename StatusMessageT = Aws::String>
872 void SetStatusMessage(StatusMessageT&& value) {
873 m_statusMessageHasBeenSet = true;
874 m_statusMessage = std::forward<StatusMessageT>(value);
875 }
876 template <typename StatusMessageT = Aws::String>
877 GetCodeFindingResult& WithStatusMessage(StatusMessageT&& value) {
878 SetStatusMessage(std::forward<StatusMessageT>(value));
879 return *this;
880 }
882
884
887 inline FindingDiscardReason GetDiscardReason() const { return m_discardReason; }
889 m_discardReasonHasBeenSet = true;
890 m_discardReason = value;
891 }
893 SetDiscardReason(value);
894 return *this;
895 }
897
899
902 inline const Aws::String& GetDiscardReasoning() const { return m_discardReasoning; }
903 template <typename DiscardReasoningT = Aws::String>
904 void SetDiscardReasoning(DiscardReasoningT&& value) {
905 m_discardReasoningHasBeenSet = true;
906 m_discardReasoning = std::forward<DiscardReasoningT>(value);
907 }
908 template <typename DiscardReasoningT = Aws::String>
909 GetCodeFindingResult& WithDiscardReasoning(DiscardReasoningT&& value) {
910 SetDiscardReasoning(std::forward<DiscardReasoningT>(value));
911 return *this;
912 }
914
916
920 inline const Aws::String& GetDuplicateOfIssueId() const { return m_duplicateOfIssueId; }
921 template <typename DuplicateOfIssueIdT = Aws::String>
922 void SetDuplicateOfIssueId(DuplicateOfIssueIdT&& value) {
923 m_duplicateOfIssueIdHasBeenSet = true;
924 m_duplicateOfIssueId = std::forward<DuplicateOfIssueIdT>(value);
925 }
926 template <typename DuplicateOfIssueIdT = Aws::String>
927 GetCodeFindingResult& WithDuplicateOfIssueId(DuplicateOfIssueIdT&& value) {
928 SetDuplicateOfIssueId(std::forward<DuplicateOfIssueIdT>(value));
929 return *this;
930 }
932
934
937 inline const Aws::String& GetCreatedIssueId() const { return m_createdIssueId; }
938 template <typename CreatedIssueIdT = Aws::String>
939 void SetCreatedIssueId(CreatedIssueIdT&& value) {
940 m_createdIssueIdHasBeenSet = true;
941 m_createdIssueId = std::forward<CreatedIssueIdT>(value);
942 }
943 template <typename CreatedIssueIdT = Aws::String>
944 GetCodeFindingResult& WithCreatedIssueId(CreatedIssueIdT&& value) {
945 SetCreatedIssueId(std::forward<CreatedIssueIdT>(value));
946 return *this;
947 }
949
951
955 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
956 template <typename CompletedAtT = Aws::Utils::DateTime>
957 void SetCompletedAt(CompletedAtT&& value) {
958 m_completedAtHasBeenSet = true;
959 m_completedAt = std::forward<CompletedAtT>(value);
960 }
961 template <typename CompletedAtT = Aws::Utils::DateTime>
962 GetCodeFindingResult& WithCompletedAt(CompletedAtT&& value) {
963 SetCompletedAt(std::forward<CompletedAtT>(value));
964 return *this;
965 }
967
969
970 inline const Aws::String& GetRequestId() const { return m_requestId; }
971 template <typename RequestIdT = Aws::String>
972 void SetRequestId(RequestIdT&& value) {
973 m_requestIdHasBeenSet = true;
974 m_requestId = std::forward<RequestIdT>(value);
975 }
976 template <typename RequestIdT = Aws::String>
977 GetCodeFindingResult& WithRequestId(RequestIdT&& value) {
978 SetRequestId(std::forward<RequestIdT>(value));
979 return *this;
980 }
982 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
983
984 private:
986
987 Aws::String m_title;
988
990
991 Aws::String m_summary;
992
993 Aws::String m_detailedDescription;
994
995 Aws::String m_category;
996
997 Aws::String m_subCategory;
998
1000
1001 Aws::String m_owaspCategory;
1002
1003 Aws::String m_mitigation;
1004
1005 Aws::String m_filePath;
1006
1007 int m_lineNumber{0};
1008
1009 Aws::String m_cveId;
1010
1011 double m_cvssBaseScore{0.0};
1012
1013 Aws::Vector<AffectedPackage> m_affectedPackages;
1014
1015 Aws::String m_vulnerableCode;
1016
1017 Aws::Vector<Aws::String> m_relevantInputs;
1018
1019 Aws::Vector<Aws::String> m_stepsToReproduce;
1020
1021 FindingValidation m_validation;
1022
1023 int m_endLine{0};
1024
1025 Aws::Vector<Aws::String> m_mitreTechniques;
1026
1027 Aws::Vector<Aws::String> m_remediationReferences;
1028
1030
1031 Aws::String m_ocsfSchemaVersion;
1032
1033 Aws::String m_productName;
1034
1035 Aws::String m_productVendorName;
1036
1037 Aws::String m_productVersion;
1038
1039 Aws::String m_sourceStatus;
1040
1041 int m_sourceStatusId{0};
1042
1043 Aws::Utils::DateTime m_firstSeenAt{};
1044
1045 Aws::Vector<Aws::String> m_findingTypes;
1046
1047 Aws::Vector<FindingVulnerability> m_vulnerabilities;
1048
1049 Aws::Vector<FindingResource> m_resources;
1050
1051 FindingPosture m_posture;
1052
1053 Aws::String m_findingId;
1054
1055 Aws::String m_findingArn;
1056
1057 Aws::String m_environmentId;
1058
1059 Aws::String m_source;
1060
1061 Aws::String m_sourceFindingId;
1062
1063 Aws::Utils::DateTime m_reportedAt{};
1064
1066
1067 Aws::Utils::DateTime m_statusUpdatedAt{};
1068
1069 Aws::Utils::DateTime m_createdAt{};
1070
1071 Aws::String m_scanRunId;
1072
1073 Aws::String m_statusMessage;
1074
1076
1077 Aws::String m_discardReasoning;
1078
1079 Aws::String m_duplicateOfIssueId;
1080
1081 Aws::String m_createdIssueId;
1082
1083 Aws::Utils::DateTime m_completedAt{};
1084
1085 Aws::String m_requestId;
1086 Aws::Http::HttpResponseCode m_HttpResponseCode;
1087 bool m_typeHasBeenSet = false;
1088 bool m_titleHasBeenSet = false;
1089 bool m_severityHasBeenSet = false;
1090 bool m_summaryHasBeenSet = false;
1091 bool m_detailedDescriptionHasBeenSet = false;
1092 bool m_categoryHasBeenSet = false;
1093 bool m_subCategoryHasBeenSet = false;
1094 bool m_cweIdsHasBeenSet = false;
1095 bool m_owaspCategoryHasBeenSet = false;
1096 bool m_mitigationHasBeenSet = false;
1097 bool m_filePathHasBeenSet = false;
1098 bool m_lineNumberHasBeenSet = false;
1099 bool m_cveIdHasBeenSet = false;
1100 bool m_cvssBaseScoreHasBeenSet = false;
1101 bool m_affectedPackagesHasBeenSet = false;
1102 bool m_vulnerableCodeHasBeenSet = false;
1103 bool m_relevantInputsHasBeenSet = false;
1104 bool m_stepsToReproduceHasBeenSet = false;
1105 bool m_validationHasBeenSet = false;
1106 bool m_endLineHasBeenSet = false;
1107 bool m_mitreTechniquesHasBeenSet = false;
1108 bool m_remediationReferencesHasBeenSet = false;
1109 bool m_ocsfClassHasBeenSet = false;
1110 bool m_ocsfSchemaVersionHasBeenSet = false;
1111 bool m_productNameHasBeenSet = false;
1112 bool m_productVendorNameHasBeenSet = false;
1113 bool m_productVersionHasBeenSet = false;
1114 bool m_sourceStatusHasBeenSet = false;
1115 bool m_sourceStatusIdHasBeenSet = false;
1116 bool m_firstSeenAtHasBeenSet = false;
1117 bool m_findingTypesHasBeenSet = false;
1118 bool m_vulnerabilitiesHasBeenSet = false;
1119 bool m_resourcesHasBeenSet = false;
1120 bool m_postureHasBeenSet = false;
1121 bool m_findingIdHasBeenSet = false;
1122 bool m_findingArnHasBeenSet = false;
1123 bool m_environmentIdHasBeenSet = false;
1124 bool m_sourceHasBeenSet = false;
1125 bool m_sourceFindingIdHasBeenSet = false;
1126 bool m_reportedAtHasBeenSet = false;
1127 bool m_statusHasBeenSet = false;
1128 bool m_statusUpdatedAtHasBeenSet = false;
1129 bool m_createdAtHasBeenSet = false;
1130 bool m_scanRunIdHasBeenSet = false;
1131 bool m_statusMessageHasBeenSet = false;
1132 bool m_discardReasonHasBeenSet = false;
1133 bool m_discardReasoningHasBeenSet = false;
1134 bool m_duplicateOfIssueIdHasBeenSet = false;
1135 bool m_createdIssueIdHasBeenSet = false;
1136 bool m_completedAtHasBeenSet = false;
1137 bool m_requestIdHasBeenSet = false;
1138};
1139
1140} // namespace Model
1141} // namespace Continuum
1142} // namespace Aws
void SetRemediationReferences(RemediationReferencesT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
GetCodeFindingResult & WithOcsfSchemaVersion(OcsfSchemaVersionT &&value)
AWS_CONTINUUM_API GetCodeFindingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCodeFindingResult & WithSeverity(FindingSeverityId value)
const Aws::Vector< Aws::String > & GetCweIds() const
GetCodeFindingResult & WithCategory(CategoryT &&value)
GetCodeFindingResult & WithEnvironmentId(EnvironmentIdT &&value)
GetCodeFindingResult & WithDetailedDescription(DetailedDescriptionT &&value)
const Aws::Vector< Aws::String > & GetRemediationReferences() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetCodeFindingResult & WithCreatedIssueId(CreatedIssueIdT &&value)
const Aws::Vector< Aws::String > & GetRelevantInputs() const
void SetProductVendorName(ProductVendorNameT &&value)
GetCodeFindingResult & WithVulnerableCode(VulnerableCodeT &&value)
const FindingValidation & GetValidation() const
AWS_CONTINUUM_API GetCodeFindingResult()=default
void SetStepsToReproduce(StepsToReproduceT &&value)
void SetAffectedPackages(AffectedPackagesT &&value)
GetCodeFindingResult & WithFindingArn(FindingArnT &&value)
GetCodeFindingResult & WithSource(SourceT &&value)
GetCodeFindingResult & WithFilePath(FilePathT &&value)
GetCodeFindingResult & WithOwaspCategory(OwaspCategoryT &&value)
const Aws::Vector< FindingVulnerability > & GetVulnerabilities() const
GetCodeFindingResult & WithSourceStatus(SourceStatusT &&value)
GetCodeFindingResult & WithValidation(ValidationT &&value)
GetCodeFindingResult & WithStatusUpdatedAt(StatusUpdatedAtT &&value)
const Aws::Utils::DateTime & GetStatusUpdatedAt() const
GetCodeFindingResult & AddCweIds(CweIdsT &&value)
void SetOcsfSchemaVersion(OcsfSchemaVersionT &&value)
GetCodeFindingResult & AddResources(ResourcesT &&value)
const Aws::Vector< Aws::String > & GetStepsToReproduce() const
GetCodeFindingResult & WithSourceFindingId(SourceFindingIdT &&value)
GetCodeFindingResult & WithLineNumber(int value)
const Aws::Utils::DateTime & GetFirstSeenAt() const
GetCodeFindingResult & WithPosture(PostureT &&value)
GetCodeFindingResult & WithMitigation(MitigationT &&value)
GetCodeFindingResult & WithFindingId(FindingIdT &&value)
GetCodeFindingResult & WithType(FindingType value)
GetCodeFindingResult & AddVulnerabilities(VulnerabilitiesT &&value)
GetCodeFindingResult & WithAffectedPackages(AffectedPackagesT &&value)
GetCodeFindingResult & WithMitreTechniques(MitreTechniquesT &&value)
GetCodeFindingResult & AddRelevantInputs(RelevantInputsT &&value)
GetCodeFindingResult & WithStepsToReproduce(StepsToReproduceT &&value)
GetCodeFindingResult & AddAffectedPackages(AffectedPackagesT &&value)
GetCodeFindingResult & WithStatusMessage(StatusMessageT &&value)
GetCodeFindingResult & WithReportedAt(ReportedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetCodeFindingResult & WithScanRunId(ScanRunIdT &&value)
GetCodeFindingResult & WithCweIds(CweIdsT &&value)
GetCodeFindingResult & WithOcsfClass(FindingOcsfClass value)
GetCodeFindingResult & WithCvssBaseScore(double value)
GetCodeFindingResult & WithTitle(TitleT &&value)
void SetDiscardReason(FindingDiscardReason value)
GetCodeFindingResult & WithCreatedAt(CreatedAtT &&value)
void SetDuplicateOfIssueId(DuplicateOfIssueIdT &&value)
GetCodeFindingResult & WithVulnerabilities(VulnerabilitiesT &&value)
void SetDetailedDescription(DetailedDescriptionT &&value)
GetCodeFindingResult & WithProductVendorName(ProductVendorNameT &&value)
void SetVulnerabilities(VulnerabilitiesT &&value)
GetCodeFindingResult & WithRequestId(RequestIdT &&value)
GetCodeFindingResult & WithProductVersion(ProductVersionT &&value)
AWS_CONTINUUM_API GetCodeFindingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCodeFindingResult & WithDiscardReason(FindingDiscardReason value)
GetCodeFindingResult & WithSourceStatusId(int value)
GetCodeFindingResult & AddMitreTechniques(MitreTechniquesT &&value)
GetCodeFindingResult & WithCveId(CveIdT &&value)
GetCodeFindingResult & WithRelevantInputs(RelevantInputsT &&value)
GetCodeFindingResult & WithCompletedAt(CompletedAtT &&value)
GetCodeFindingResult & AddFindingTypes(FindingTypesT &&value)
GetCodeFindingResult & WithStatus(FindingStatus value)
GetCodeFindingResult & WithResources(ResourcesT &&value)
const Aws::Vector< Aws::String > & GetMitreTechniques() const
GetCodeFindingResult & WithSummary(SummaryT &&value)
GetCodeFindingResult & WithDuplicateOfIssueId(DuplicateOfIssueIdT &&value)
GetCodeFindingResult & WithFirstSeenAt(FirstSeenAtT &&value)
const Aws::Vector< FindingResource > & GetResources() const
const Aws::Vector< AffectedPackage > & GetAffectedPackages() const
GetCodeFindingResult & WithProductName(ProductNameT &&value)
void SetDiscardReasoning(DiscardReasoningT &&value)
GetCodeFindingResult & WithEndLine(int value)
GetCodeFindingResult & WithSubCategory(SubCategoryT &&value)
GetCodeFindingResult & WithRemediationReferences(RemediationReferencesT &&value)
void SetMitreTechniques(MitreTechniquesT &&value)
void SetSourceFindingId(SourceFindingIdT &&value)
const Aws::Vector< Aws::String > & GetFindingTypes() const
GetCodeFindingResult & AddStepsToReproduce(StepsToReproduceT &&value)
GetCodeFindingResult & WithDiscardReasoning(DiscardReasoningT &&value)
GetCodeFindingResult & AddRemediationReferences(RemediationReferencesT &&value)
GetCodeFindingResult & WithFindingTypes(FindingTypesT &&value)
const Aws::Utils::DateTime & GetReportedAt() const
void SetStatusUpdatedAt(StatusUpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue