AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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
50 inline const CisaData& GetCisaData() const { return m_cisaData; }
51 inline bool CisaDataHasBeenSet() const { return m_cisaDataHasBeenSet; }
52 template<typename CisaDataT = CisaData>
53 void SetCisaData(CisaDataT&& value) { m_cisaDataHasBeenSet = true; m_cisaData = std::forward<CisaDataT>(value); }
54 template<typename CisaDataT = CisaData>
55 FindingDetail& WithCisaData(CisaDataT&& value) { SetCisaData(std::forward<CisaDataT>(value)); return *this;}
57
59
63 inline const Aws::Vector<Aws::String>& GetCwes() const { return m_cwes; }
64 inline bool CwesHasBeenSet() const { return m_cwesHasBeenSet; }
65 template<typename CwesT = Aws::Vector<Aws::String>>
66 void SetCwes(CwesT&& value) { m_cwesHasBeenSet = true; m_cwes = std::forward<CwesT>(value); }
67 template<typename CwesT = Aws::Vector<Aws::String>>
68 FindingDetail& WithCwes(CwesT&& value) { SetCwes(std::forward<CwesT>(value)); return *this;}
69 template<typename CwesT = Aws::String>
70 FindingDetail& AddCwes(CwesT&& value) { m_cwesHasBeenSet = true; m_cwes.emplace_back(std::forward<CwesT>(value)); return *this; }
72
74
77 inline double GetEpssScore() const { return m_epssScore; }
78 inline bool EpssScoreHasBeenSet() const { return m_epssScoreHasBeenSet; }
79 inline void SetEpssScore(double value) { m_epssScoreHasBeenSet = true; m_epssScore = value; }
80 inline FindingDetail& WithEpssScore(double value) { SetEpssScore(value); return *this;}
82
84
87 inline const Aws::Vector<Evidence>& GetEvidences() const { return m_evidences; }
88 inline bool EvidencesHasBeenSet() const { return m_evidencesHasBeenSet; }
89 template<typename EvidencesT = Aws::Vector<Evidence>>
90 void SetEvidences(EvidencesT&& value) { m_evidencesHasBeenSet = true; m_evidences = std::forward<EvidencesT>(value); }
91 template<typename EvidencesT = Aws::Vector<Evidence>>
92 FindingDetail& WithEvidences(EvidencesT&& value) { SetEvidences(std::forward<EvidencesT>(value)); return *this;}
93 template<typename EvidencesT = Evidence>
94 FindingDetail& AddEvidences(EvidencesT&& value) { m_evidencesHasBeenSet = true; m_evidences.emplace_back(std::forward<EvidencesT>(value)); return *this; }
96
98
101 inline const ExploitObserved& GetExploitObserved() const { return m_exploitObserved; }
102 inline bool ExploitObservedHasBeenSet() const { return m_exploitObservedHasBeenSet; }
103 template<typename ExploitObservedT = ExploitObserved>
104 void SetExploitObserved(ExploitObservedT&& value) { m_exploitObservedHasBeenSet = true; m_exploitObserved = std::forward<ExploitObservedT>(value); }
105 template<typename ExploitObservedT = ExploitObserved>
106 FindingDetail& WithExploitObserved(ExploitObservedT&& value) { SetExploitObserved(std::forward<ExploitObservedT>(value)); return *this;}
108
110
113 inline const Aws::String& GetFindingArn() const { return m_findingArn; }
114 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
115 template<typename FindingArnT = Aws::String>
116 void SetFindingArn(FindingArnT&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::forward<FindingArnT>(value); }
117 template<typename FindingArnT = Aws::String>
118 FindingDetail& WithFindingArn(FindingArnT&& value) { SetFindingArn(std::forward<FindingArnT>(value)); return *this;}
120
122
125 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const { return m_referenceUrls; }
126 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
127 template<typename ReferenceUrlsT = Aws::Vector<Aws::String>>
128 void SetReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::forward<ReferenceUrlsT>(value); }
129 template<typename ReferenceUrlsT = Aws::Vector<Aws::String>>
130 FindingDetail& WithReferenceUrls(ReferenceUrlsT&& value) { SetReferenceUrls(std::forward<ReferenceUrlsT>(value)); return *this;}
131 template<typename ReferenceUrlsT = Aws::String>
132 FindingDetail& AddReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value)); return *this; }
134
136
139 inline int GetRiskScore() const { return m_riskScore; }
140 inline bool RiskScoreHasBeenSet() const { return m_riskScoreHasBeenSet; }
141 inline void SetRiskScore(int value) { m_riskScoreHasBeenSet = true; m_riskScore = value; }
142 inline FindingDetail& WithRiskScore(int value) { SetRiskScore(value); return *this;}
144
146
149 inline const Aws::Vector<Aws::String>& GetTools() const { return m_tools; }
150 inline bool ToolsHasBeenSet() const { return m_toolsHasBeenSet; }
151 template<typename ToolsT = Aws::Vector<Aws::String>>
152 void SetTools(ToolsT&& value) { m_toolsHasBeenSet = true; m_tools = std::forward<ToolsT>(value); }
153 template<typename ToolsT = Aws::Vector<Aws::String>>
154 FindingDetail& WithTools(ToolsT&& value) { SetTools(std::forward<ToolsT>(value)); return *this;}
155 template<typename ToolsT = Aws::String>
156 FindingDetail& AddTools(ToolsT&& value) { m_toolsHasBeenSet = true; m_tools.emplace_back(std::forward<ToolsT>(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 template<typename TtpsT = Aws::Vector<Aws::String>>
167 void SetTtps(TtpsT&& value) { m_ttpsHasBeenSet = true; m_ttps = std::forward<TtpsT>(value); }
168 template<typename TtpsT = Aws::Vector<Aws::String>>
169 FindingDetail& WithTtps(TtpsT&& value) { SetTtps(std::forward<TtpsT>(value)); return *this;}
170 template<typename TtpsT = Aws::String>
171 FindingDetail& AddTtps(TtpsT&& value) { m_ttpsHasBeenSet = true; m_ttps.emplace_back(std::forward<TtpsT>(value)); return *this; }
173 private:
174
175 CisaData m_cisaData;
176 bool m_cisaDataHasBeenSet = false;
177
179 bool m_cwesHasBeenSet = false;
180
181 double m_epssScore{0.0};
182 bool m_epssScoreHasBeenSet = false;
183
184 Aws::Vector<Evidence> m_evidences;
185 bool m_evidencesHasBeenSet = false;
186
187 ExploitObserved m_exploitObserved;
188 bool m_exploitObservedHasBeenSet = false;
189
190 Aws::String m_findingArn;
191 bool m_findingArnHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_referenceUrls;
194 bool m_referenceUrlsHasBeenSet = false;
195
196 int m_riskScore{0};
197 bool m_riskScoreHasBeenSet = false;
198
200 bool m_toolsHasBeenSet = false;
201
203 bool m_ttpsHasBeenSet = 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