AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
FindingSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/ConfidenceLevel.h>
11#include <aws/securityagent/model/FindingStatus.h>
12#include <aws/securityagent/model/RiskLevel.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityAgent {
24namespace Model {
25
32 public:
33 AWS_SECURITYAGENT_API FindingSummary() = default;
34 AWS_SECURITYAGENT_API FindingSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API FindingSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetFindingId() const { return m_findingId; }
43 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
44 template <typename FindingIdT = Aws::String>
45 void SetFindingId(FindingIdT&& value) {
46 m_findingIdHasBeenSet = true;
47 m_findingId = std::forward<FindingIdT>(value);
48 }
49 template <typename FindingIdT = Aws::String>
50 FindingSummary& WithFindingId(FindingIdT&& value) {
51 SetFindingId(std::forward<FindingIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
61 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
62 template <typename AgentSpaceIdT = Aws::String>
63 void SetAgentSpaceId(AgentSpaceIdT&& value) {
64 m_agentSpaceIdHasBeenSet = true;
65 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
66 }
67 template <typename AgentSpaceIdT = Aws::String>
68 FindingSummary& WithAgentSpaceId(AgentSpaceIdT&& value) {
69 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetPentestId() const { return m_pentestId; }
79 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
80 template <typename PentestIdT = Aws::String>
81 void SetPentestId(PentestIdT&& value) {
82 m_pentestIdHasBeenSet = true;
83 m_pentestId = std::forward<PentestIdT>(value);
84 }
85 template <typename PentestIdT = Aws::String>
86 FindingSummary& WithPentestId(PentestIdT&& value) {
87 SetPentestId(std::forward<PentestIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetPentestJobId() const { return m_pentestJobId; }
97 inline bool PentestJobIdHasBeenSet() const { return m_pentestJobIdHasBeenSet; }
98 template <typename PentestJobIdT = Aws::String>
99 void SetPentestJobId(PentestJobIdT&& value) {
100 m_pentestJobIdHasBeenSet = true;
101 m_pentestJobId = std::forward<PentestJobIdT>(value);
102 }
103 template <typename PentestJobIdT = Aws::String>
104 FindingSummary& WithPentestJobId(PentestJobIdT&& value) {
105 SetPentestJobId(std::forward<PentestJobIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetName() const { return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 template <typename NameT = Aws::String>
117 void SetName(NameT&& value) {
118 m_nameHasBeenSet = true;
119 m_name = std::forward<NameT>(value);
120 }
121 template <typename NameT = Aws::String>
122 FindingSummary& WithName(NameT&& value) {
123 SetName(std::forward<NameT>(value));
124 return *this;
125 }
127
129
132 inline FindingStatus GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(FindingStatus value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetRiskType() const { return m_riskType; }
149 inline bool RiskTypeHasBeenSet() const { return m_riskTypeHasBeenSet; }
150 template <typename RiskTypeT = Aws::String>
151 void SetRiskType(RiskTypeT&& value) {
152 m_riskTypeHasBeenSet = true;
153 m_riskType = std::forward<RiskTypeT>(value);
154 }
155 template <typename RiskTypeT = Aws::String>
156 FindingSummary& WithRiskType(RiskTypeT&& value) {
157 SetRiskType(std::forward<RiskTypeT>(value));
158 return *this;
159 }
161
163
166 inline RiskLevel GetRiskLevel() const { return m_riskLevel; }
167 inline bool RiskLevelHasBeenSet() const { return m_riskLevelHasBeenSet; }
168 inline void SetRiskLevel(RiskLevel value) {
169 m_riskLevelHasBeenSet = true;
170 m_riskLevel = value;
171 }
173 SetRiskLevel(value);
174 return *this;
175 }
177
179
182 inline ConfidenceLevel GetConfidence() const { return m_confidence; }
183 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
184 inline void SetConfidence(ConfidenceLevel value) {
185 m_confidenceHasBeenSet = true;
186 m_confidence = value;
187 }
189 SetConfidence(value);
190 return *this;
191 }
193
195
198 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
199 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
200 template <typename CreatedAtT = Aws::Utils::DateTime>
201 void SetCreatedAt(CreatedAtT&& value) {
202 m_createdAtHasBeenSet = true;
203 m_createdAt = std::forward<CreatedAtT>(value);
204 }
205 template <typename CreatedAtT = Aws::Utils::DateTime>
206 FindingSummary& WithCreatedAt(CreatedAtT&& value) {
207 SetCreatedAt(std::forward<CreatedAtT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
217 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
218 template <typename UpdatedAtT = Aws::Utils::DateTime>
219 void SetUpdatedAt(UpdatedAtT&& value) {
220 m_updatedAtHasBeenSet = true;
221 m_updatedAt = std::forward<UpdatedAtT>(value);
222 }
223 template <typename UpdatedAtT = Aws::Utils::DateTime>
224 FindingSummary& WithUpdatedAt(UpdatedAtT&& value) {
225 SetUpdatedAt(std::forward<UpdatedAtT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_findingId;
231
232 Aws::String m_agentSpaceId;
233
234 Aws::String m_pentestId;
235
236 Aws::String m_pentestJobId;
237
238 Aws::String m_name;
239
241
242 Aws::String m_riskType;
243
244 RiskLevel m_riskLevel{RiskLevel::NOT_SET};
245
247
248 Aws::Utils::DateTime m_createdAt{};
249
250 Aws::Utils::DateTime m_updatedAt{};
251 bool m_findingIdHasBeenSet = false;
252 bool m_agentSpaceIdHasBeenSet = false;
253 bool m_pentestIdHasBeenSet = false;
254 bool m_pentestJobIdHasBeenSet = false;
255 bool m_nameHasBeenSet = false;
256 bool m_statusHasBeenSet = false;
257 bool m_riskTypeHasBeenSet = false;
258 bool m_riskLevelHasBeenSet = false;
259 bool m_confidenceHasBeenSet = false;
260 bool m_createdAtHasBeenSet = false;
261 bool m_updatedAtHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace SecurityAgent
266} // namespace Aws
FindingSummary & WithCreatedAt(CreatedAtT &&value)
FindingSummary & WithRiskType(RiskTypeT &&value)
FindingSummary & WithRiskLevel(RiskLevel value)
const Aws::Utils::DateTime & GetUpdatedAt() const
FindingSummary & WithName(NameT &&value)
AWS_SECURITYAGENT_API FindingSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API FindingSummary()=default
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
FindingSummary & WithPentestJobId(PentestJobIdT &&value)
const Aws::String & GetPentestJobId() const
void SetPentestJobId(PentestJobIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
FindingSummary & WithPentestId(PentestIdT &&value)
FindingSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetFindingId() const
const Aws::String & GetRiskType() const
const Aws::String & GetPentestId() const
void SetAgentSpaceId(AgentSpaceIdT &&value)
const Aws::String & GetAgentSpaceId() const
FindingSummary & WithAgentSpaceId(AgentSpaceIdT &&value)
FindingSummary & WithStatus(FindingStatus value)
FindingSummary & WithFindingId(FindingIdT &&value)
void SetConfidence(ConfidenceLevel value)
FindingSummary & WithConfidence(ConfidenceLevel value)
AWS_SECURITYAGENT_API FindingSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue