AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
FindingDetail.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/CisaData.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/inspector2/model/ExploitObserved.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() = default;
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
49 inline const Aws::String& GetFindingArn() const { return m_findingArn; }
50 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
51 template<typename FindingArnT = Aws::String>
52 void SetFindingArn(FindingArnT&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::forward<FindingArnT>(value); }
53 template<typename FindingArnT = Aws::String>
54 FindingDetail& WithFindingArn(FindingArnT&& value) { SetFindingArn(std::forward<FindingArnT>(value)); return *this;}
56
58
62 inline const CisaData& GetCisaData() const { return m_cisaData; }
63 inline bool CisaDataHasBeenSet() const { return m_cisaDataHasBeenSet; }
64 template<typename CisaDataT = CisaData>
65 void SetCisaData(CisaDataT&& value) { m_cisaDataHasBeenSet = true; m_cisaData = std::forward<CisaDataT>(value); }
66 template<typename CisaDataT = CisaData>
67 FindingDetail& WithCisaData(CisaDataT&& value) { SetCisaData(std::forward<CisaDataT>(value)); return *this;}
69
71
74 inline int GetRiskScore() const { return m_riskScore; }
75 inline bool RiskScoreHasBeenSet() const { return m_riskScoreHasBeenSet; }
76 inline void SetRiskScore(int value) { m_riskScoreHasBeenSet = true; m_riskScore = value; }
77 inline FindingDetail& WithRiskScore(int value) { SetRiskScore(value); return *this;}
79
81
84 inline const Aws::Vector<Evidence>& GetEvidences() const { return m_evidences; }
85 inline bool EvidencesHasBeenSet() const { return m_evidencesHasBeenSet; }
86 template<typename EvidencesT = Aws::Vector<Evidence>>
87 void SetEvidences(EvidencesT&& value) { m_evidencesHasBeenSet = true; m_evidences = std::forward<EvidencesT>(value); }
88 template<typename EvidencesT = Aws::Vector<Evidence>>
89 FindingDetail& WithEvidences(EvidencesT&& value) { SetEvidences(std::forward<EvidencesT>(value)); return *this;}
90 template<typename EvidencesT = Evidence>
91 FindingDetail& AddEvidences(EvidencesT&& value) { m_evidencesHasBeenSet = true; m_evidences.emplace_back(std::forward<EvidencesT>(value)); return *this; }
93
95
99 inline const Aws::Vector<Aws::String>& GetTtps() const { return m_ttps; }
100 inline bool TtpsHasBeenSet() const { return m_ttpsHasBeenSet; }
101 template<typename TtpsT = Aws::Vector<Aws::String>>
102 void SetTtps(TtpsT&& value) { m_ttpsHasBeenSet = true; m_ttps = std::forward<TtpsT>(value); }
103 template<typename TtpsT = Aws::Vector<Aws::String>>
104 FindingDetail& WithTtps(TtpsT&& value) { SetTtps(std::forward<TtpsT>(value)); return *this;}
105 template<typename TtpsT = Aws::String>
106 FindingDetail& AddTtps(TtpsT&& value) { m_ttpsHasBeenSet = true; m_ttps.emplace_back(std::forward<TtpsT>(value)); return *this; }
108
110
113 inline const Aws::Vector<Aws::String>& GetTools() const { return m_tools; }
114 inline bool ToolsHasBeenSet() const { return m_toolsHasBeenSet; }
115 template<typename ToolsT = Aws::Vector<Aws::String>>
116 void SetTools(ToolsT&& value) { m_toolsHasBeenSet = true; m_tools = std::forward<ToolsT>(value); }
117 template<typename ToolsT = Aws::Vector<Aws::String>>
118 FindingDetail& WithTools(ToolsT&& value) { SetTools(std::forward<ToolsT>(value)); return *this;}
119 template<typename ToolsT = Aws::String>
120 FindingDetail& AddTools(ToolsT&& value) { m_toolsHasBeenSet = true; m_tools.emplace_back(std::forward<ToolsT>(value)); return *this; }
122
124
127 inline const ExploitObserved& GetExploitObserved() const { return m_exploitObserved; }
128 inline bool ExploitObservedHasBeenSet() const { return m_exploitObservedHasBeenSet; }
129 template<typename ExploitObservedT = ExploitObserved>
130 void SetExploitObserved(ExploitObservedT&& value) { m_exploitObservedHasBeenSet = true; m_exploitObserved = std::forward<ExploitObservedT>(value); }
131 template<typename ExploitObservedT = ExploitObserved>
132 FindingDetail& WithExploitObserved(ExploitObservedT&& value) { SetExploitObserved(std::forward<ExploitObservedT>(value)); return *this;}
134
136
139 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const { return m_referenceUrls; }
140 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
141 template<typename ReferenceUrlsT = Aws::Vector<Aws::String>>
142 void SetReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::forward<ReferenceUrlsT>(value); }
143 template<typename ReferenceUrlsT = Aws::Vector<Aws::String>>
144 FindingDetail& WithReferenceUrls(ReferenceUrlsT&& value) { SetReferenceUrls(std::forward<ReferenceUrlsT>(value)); return *this;}
145 template<typename ReferenceUrlsT = Aws::String>
146 FindingDetail& AddReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value)); return *this; }
148
150
154 inline const Aws::Vector<Aws::String>& GetCwes() const { return m_cwes; }
155 inline bool CwesHasBeenSet() const { return m_cwesHasBeenSet; }
156 template<typename CwesT = Aws::Vector<Aws::String>>
157 void SetCwes(CwesT&& value) { m_cwesHasBeenSet = true; m_cwes = std::forward<CwesT>(value); }
158 template<typename CwesT = Aws::Vector<Aws::String>>
159 FindingDetail& WithCwes(CwesT&& value) { SetCwes(std::forward<CwesT>(value)); return *this;}
160 template<typename CwesT = Aws::String>
161 FindingDetail& AddCwes(CwesT&& value) { m_cwesHasBeenSet = true; m_cwes.emplace_back(std::forward<CwesT>(value)); return *this; }
163
165
168 inline double GetEpssScore() const { return m_epssScore; }
169 inline bool EpssScoreHasBeenSet() const { return m_epssScoreHasBeenSet; }
170 inline void SetEpssScore(double value) { m_epssScoreHasBeenSet = true; m_epssScore = value; }
171 inline FindingDetail& WithEpssScore(double value) { SetEpssScore(value); return *this;}
173 private:
174
175 Aws::String m_findingArn;
176 bool m_findingArnHasBeenSet = false;
177
178 CisaData m_cisaData;
179 bool m_cisaDataHasBeenSet = false;
180
181 int m_riskScore{0};
182 bool m_riskScoreHasBeenSet = false;
183
184 Aws::Vector<Evidence> m_evidences;
185 bool m_evidencesHasBeenSet = false;
186
188 bool m_ttpsHasBeenSet = false;
189
191 bool m_toolsHasBeenSet = false;
192
193 ExploitObserved m_exploitObserved;
194 bool m_exploitObservedHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_referenceUrls;
197 bool m_referenceUrlsHasBeenSet = false;
198
200 bool m_cwesHasBeenSet = false;
201
202 double m_epssScore{0.0};
203 bool m_epssScoreHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace Inspector2
208} // namespace Aws
const Aws::Vector< Evidence > & GetEvidences() const
FindingDetail & WithEvidences(EvidencesT &&value)
FindingDetail & AddEvidences(EvidencesT &&value)
void SetEvidences(EvidencesT &&value)
FindingDetail & WithCwes(CwesT &&value)
const Aws::Vector< Aws::String > & GetTtps() const
AWS_INSPECTOR2_API FindingDetail(Aws::Utils::Json::JsonView jsonValue)
FindingDetail & WithReferenceUrls(ReferenceUrlsT &&value)
FindingDetail & AddReferenceUrls(ReferenceUrlsT &&value)
void SetExploitObserved(ExploitObservedT &&value)
FindingDetail & WithEpssScore(double value)
FindingDetail & AddTtps(TtpsT &&value)
AWS_INSPECTOR2_API FindingDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingDetail & WithExploitObserved(ExploitObservedT &&value)
const Aws::Vector< Aws::String > & GetTools() const
FindingDetail & AddTools(ToolsT &&value)
void SetCisaData(CisaDataT &&value)
const Aws::String & GetFindingArn() const
const Aws::Vector< Aws::String > & GetCwes() const
AWS_INSPECTOR2_API FindingDetail()=default
const ExploitObserved & GetExploitObserved() const
FindingDetail & AddCwes(CwesT &&value)
void SetFindingArn(FindingArnT &&value)
void SetReferenceUrls(ReferenceUrlsT &&value)
FindingDetail & WithTools(ToolsT &&value)
FindingDetail & WithRiskScore(int value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
FindingDetail & WithCisaData(CisaDataT &&value)
FindingDetail & WithFindingArn(FindingArnT &&value)
FindingDetail & WithTtps(TtpsT &&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