AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FindingDetail.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/CisaData.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/model/ExploitObserved.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/inspector2/model/Evidence.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Inspector2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_INSPECTOR2_API FindingDetail();
40 AWS_INSPECTOR2_API FindingDetail(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR2_API FindingDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
47 inline const CisaData& GetCisaData() const{ return m_cisaData; }
48 inline bool CisaDataHasBeenSet() const { return m_cisaDataHasBeenSet; }
49 inline void SetCisaData(const CisaData& value) { m_cisaDataHasBeenSet = true; m_cisaData = value; }
50 inline void SetCisaData(CisaData&& value) { m_cisaDataHasBeenSet = true; m_cisaData = std::move(value); }
51 inline FindingDetail& WithCisaData(const CisaData& value) { SetCisaData(value); return *this;}
52 inline FindingDetail& WithCisaData(CisaData&& value) { SetCisaData(std::move(value)); return *this;}
54
56
60 inline const Aws::Vector<Aws::String>& GetCwes() const{ return m_cwes; }
61 inline bool CwesHasBeenSet() const { return m_cwesHasBeenSet; }
62 inline void SetCwes(const Aws::Vector<Aws::String>& value) { m_cwesHasBeenSet = true; m_cwes = value; }
63 inline void SetCwes(Aws::Vector<Aws::String>&& value) { m_cwesHasBeenSet = true; m_cwes = std::move(value); }
64 inline FindingDetail& WithCwes(const Aws::Vector<Aws::String>& value) { SetCwes(value); return *this;}
65 inline FindingDetail& WithCwes(Aws::Vector<Aws::String>&& value) { SetCwes(std::move(value)); return *this;}
66 inline FindingDetail& AddCwes(const Aws::String& value) { m_cwesHasBeenSet = true; m_cwes.push_back(value); return *this; }
67 inline FindingDetail& AddCwes(Aws::String&& value) { m_cwesHasBeenSet = true; m_cwes.push_back(std::move(value)); return *this; }
68 inline FindingDetail& AddCwes(const char* value) { m_cwesHasBeenSet = true; m_cwes.push_back(value); return *this; }
70
72
75 inline double GetEpssScore() const{ return m_epssScore; }
76 inline bool EpssScoreHasBeenSet() const { return m_epssScoreHasBeenSet; }
77 inline void SetEpssScore(double value) { m_epssScoreHasBeenSet = true; m_epssScore = value; }
78 inline FindingDetail& WithEpssScore(double value) { SetEpssScore(value); return *this;}
80
82
85 inline const Aws::Vector<Evidence>& GetEvidences() const{ return m_evidences; }
86 inline bool EvidencesHasBeenSet() const { return m_evidencesHasBeenSet; }
87 inline void SetEvidences(const Aws::Vector<Evidence>& value) { m_evidencesHasBeenSet = true; m_evidences = value; }
88 inline void SetEvidences(Aws::Vector<Evidence>&& value) { m_evidencesHasBeenSet = true; m_evidences = std::move(value); }
89 inline FindingDetail& WithEvidences(const Aws::Vector<Evidence>& value) { SetEvidences(value); return *this;}
90 inline FindingDetail& WithEvidences(Aws::Vector<Evidence>&& value) { SetEvidences(std::move(value)); return *this;}
91 inline FindingDetail& AddEvidences(const Evidence& value) { m_evidencesHasBeenSet = true; m_evidences.push_back(value); return *this; }
92 inline FindingDetail& AddEvidences(Evidence&& value) { m_evidencesHasBeenSet = true; m_evidences.push_back(std::move(value)); return *this; }
94
96
97 inline const ExploitObserved& GetExploitObserved() const{ return m_exploitObserved; }
98 inline bool ExploitObservedHasBeenSet() const { return m_exploitObservedHasBeenSet; }
99 inline void SetExploitObserved(const ExploitObserved& value) { m_exploitObservedHasBeenSet = true; m_exploitObserved = value; }
100 inline void SetExploitObserved(ExploitObserved&& value) { m_exploitObservedHasBeenSet = true; m_exploitObserved = std::move(value); }
101 inline FindingDetail& WithExploitObserved(const ExploitObserved& value) { SetExploitObserved(value); return *this;}
102 inline FindingDetail& WithExploitObserved(ExploitObserved&& value) { SetExploitObserved(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetFindingArn() const{ return m_findingArn; }
110 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
111 inline void SetFindingArn(const Aws::String& value) { m_findingArnHasBeenSet = true; m_findingArn = value; }
112 inline void SetFindingArn(Aws::String&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::move(value); }
113 inline void SetFindingArn(const char* value) { m_findingArnHasBeenSet = true; m_findingArn.assign(value); }
114 inline FindingDetail& WithFindingArn(const Aws::String& value) { SetFindingArn(value); return *this;}
115 inline FindingDetail& WithFindingArn(Aws::String&& value) { SetFindingArn(std::move(value)); return *this;}
116 inline FindingDetail& WithFindingArn(const char* value) { SetFindingArn(value); return *this;}
118
120
123 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const{ return m_referenceUrls; }
124 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
125 inline void SetReferenceUrls(const Aws::Vector<Aws::String>& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = value; }
126 inline void SetReferenceUrls(Aws::Vector<Aws::String>&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::move(value); }
127 inline FindingDetail& WithReferenceUrls(const Aws::Vector<Aws::String>& value) { SetReferenceUrls(value); return *this;}
128 inline FindingDetail& WithReferenceUrls(Aws::Vector<Aws::String>&& value) { SetReferenceUrls(std::move(value)); return *this;}
129 inline FindingDetail& AddReferenceUrls(const Aws::String& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
130 inline FindingDetail& AddReferenceUrls(Aws::String&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(std::move(value)); return *this; }
131 inline FindingDetail& AddReferenceUrls(const char* value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
133
135
138 inline int GetRiskScore() const{ return m_riskScore; }
139 inline bool RiskScoreHasBeenSet() const { return m_riskScoreHasBeenSet; }
140 inline void SetRiskScore(int value) { m_riskScoreHasBeenSet = true; m_riskScore = value; }
141 inline FindingDetail& WithRiskScore(int value) { SetRiskScore(value); return *this;}
143
145
148 inline const Aws::Vector<Aws::String>& GetTools() const{ return m_tools; }
149 inline bool ToolsHasBeenSet() const { return m_toolsHasBeenSet; }
150 inline void SetTools(const Aws::Vector<Aws::String>& value) { m_toolsHasBeenSet = true; m_tools = value; }
151 inline void SetTools(Aws::Vector<Aws::String>&& value) { m_toolsHasBeenSet = true; m_tools = std::move(value); }
152 inline FindingDetail& WithTools(const Aws::Vector<Aws::String>& value) { SetTools(value); return *this;}
153 inline FindingDetail& WithTools(Aws::Vector<Aws::String>&& value) { SetTools(std::move(value)); return *this;}
154 inline FindingDetail& AddTools(const Aws::String& value) { m_toolsHasBeenSet = true; m_tools.push_back(value); return *this; }
155 inline FindingDetail& AddTools(Aws::String&& value) { m_toolsHasBeenSet = true; m_tools.push_back(std::move(value)); return *this; }
156 inline FindingDetail& AddTools(const char* value) { m_toolsHasBeenSet = true; m_tools.push_back(value); return *this; }
158
160
164 inline const Aws::Vector<Aws::String>& GetTtps() const{ return m_ttps; }
165 inline bool TtpsHasBeenSet() const { return m_ttpsHasBeenSet; }
166 inline void SetTtps(const Aws::Vector<Aws::String>& value) { m_ttpsHasBeenSet = true; m_ttps = value; }
167 inline void SetTtps(Aws::Vector<Aws::String>&& value) { m_ttpsHasBeenSet = true; m_ttps = std::move(value); }
168 inline FindingDetail& WithTtps(const Aws::Vector<Aws::String>& value) { SetTtps(value); return *this;}
169 inline FindingDetail& WithTtps(Aws::Vector<Aws::String>&& value) { SetTtps(std::move(value)); return *this;}
170 inline FindingDetail& AddTtps(const Aws::String& value) { m_ttpsHasBeenSet = true; m_ttps.push_back(value); return *this; }
171 inline FindingDetail& AddTtps(Aws::String&& value) { m_ttpsHasBeenSet = true; m_ttps.push_back(std::move(value)); return *this; }
172 inline FindingDetail& AddTtps(const char* value) { m_ttpsHasBeenSet = true; m_ttps.push_back(value); return *this; }
174 private:
175
176 CisaData m_cisaData;
177 bool m_cisaDataHasBeenSet = false;
178
180 bool m_cwesHasBeenSet = false;
181
182 double m_epssScore;
183 bool m_epssScoreHasBeenSet = false;
184
185 Aws::Vector<Evidence> m_evidences;
186 bool m_evidencesHasBeenSet = false;
187
188 ExploitObserved m_exploitObserved;
189 bool m_exploitObservedHasBeenSet = false;
190
191 Aws::String m_findingArn;
192 bool m_findingArnHasBeenSet = false;
193
194 Aws::Vector<Aws::String> m_referenceUrls;
195 bool m_referenceUrlsHasBeenSet = false;
196
197 int m_riskScore;
198 bool m_riskScoreHasBeenSet = false;
199
201 bool m_toolsHasBeenSet = false;
202
204 bool m_ttpsHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace Inspector2
209} // namespace Aws
const Aws::Vector< Evidence > & GetEvidences() const
void SetTools(Aws::Vector< Aws::String > &&value)
FindingDetail & WithFindingArn(Aws::String &&value)
FindingDetail & WithCwes(const Aws::Vector< Aws::String > &value)
FindingDetail & WithEvidences(Aws::Vector< Evidence > &&value)
const Aws::Vector< Aws::String > & GetTtps() const
void SetFindingArn(const char *value)
void SetEvidences(Aws::Vector< Evidence > &&value)
void SetExploitObserved(ExploitObserved &&value)
void SetTools(const Aws::Vector< Aws::String > &value)
FindingDetail & AddCwes(Aws::String &&value)
AWS_INSPECTOR2_API FindingDetail(Aws::Utils::Json::JsonView jsonValue)
FindingDetail & WithReferenceUrls(Aws::Vector< Aws::String > &&value)
FindingDetail & WithTtps(const Aws::Vector< Aws::String > &value)
FindingDetail & WithCwes(Aws::Vector< Aws::String > &&value)
FindingDetail & AddTools(Aws::String &&value)
void SetEvidences(const Aws::Vector< Evidence > &value)
FindingDetail & WithFindingArn(const Aws::String &value)
FindingDetail & WithEpssScore(double value)
AWS_INSPECTOR2_API FindingDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingDetail & AddCwes(const Aws::String &value)
FindingDetail & AddTools(const char *value)
void SetCisaData(const CisaData &value)
void SetCwes(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetTools() const
FindingDetail & WithTtps(Aws::Vector< Aws::String > &&value)
void SetFindingArn(Aws::String &&value)
FindingDetail & WithTools(const Aws::Vector< Aws::String > &value)
void SetTtps(Aws::Vector< Aws::String > &&value)
FindingDetail & WithEvidences(const Aws::Vector< Evidence > &value)
FindingDetail & WithCisaData(CisaData &&value)
const Aws::String & GetFindingArn() const
const Aws::Vector< Aws::String > & GetCwes() const
FindingDetail & AddReferenceUrls(Aws::String &&value)
FindingDetail & AddTtps(const Aws::String &value)
FindingDetail & AddTools(const Aws::String &value)
void SetReferenceUrls(Aws::Vector< Aws::String > &&value)
FindingDetail & WithReferenceUrls(const Aws::Vector< Aws::String > &value)
FindingDetail & WithTools(Aws::Vector< Aws::String > &&value)
FindingDetail & WithExploitObserved(const ExploitObserved &value)
FindingDetail & AddReferenceUrls(const char *value)
const ExploitObserved & GetExploitObserved() const
FindingDetail & WithExploitObserved(ExploitObserved &&value)
FindingDetail & AddEvidences(Evidence &&value)
FindingDetail & AddEvidences(const Evidence &value)
FindingDetail & AddReferenceUrls(const Aws::String &value)
FindingDetail & WithFindingArn(const char *value)
FindingDetail & WithCisaData(const CisaData &value)
FindingDetail & WithRiskScore(int value)
void SetCwes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
void SetExploitObserved(const ExploitObserved &value)
FindingDetail & AddCwes(const char *value)
FindingDetail & AddTtps(const char *value)
FindingDetail & AddTtps(Aws::String &&value)
void SetFindingArn(const Aws::String &value)
void SetTtps(const Aws::Vector< Aws::String > &value)
void SetReferenceUrls(const Aws::Vector< Aws::String > &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const CisaData & GetCisaData() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue