AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
UpdateThreatResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityagent/SecurityAgent_EXPORTS.h>
12#include <aws/securityagent/model/StrideCategory.h>
13#include <aws/securityagent/model/ThreatActor.h>
14#include <aws/securityagent/model/ThreatAnchorShape.h>
15#include <aws/securityagent/model/ThreatEvidenceShape.h>
16#include <aws/securityagent/model/ThreatSeverity.h>
17#include <aws/securityagent/model/ThreatStatus.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace SecurityAgent {
31namespace Model {
38 public:
39 AWS_SECURITYAGENT_API UpdateThreatResult() = default;
42
44
47 inline const Aws::String& GetThreatId() const { return m_threatId; }
48 template <typename ThreatIdT = Aws::String>
49 void SetThreatId(ThreatIdT&& value) {
50 m_threatIdHasBeenSet = true;
51 m_threatId = std::forward<ThreatIdT>(value);
52 }
53 template <typename ThreatIdT = Aws::String>
54 UpdateThreatResult& WithThreatId(ThreatIdT&& value) {
55 SetThreatId(std::forward<ThreatIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetThreatJobId() const { return m_threatJobId; }
65 template <typename ThreatJobIdT = Aws::String>
66 void SetThreatJobId(ThreatJobIdT&& value) {
67 m_threatJobIdHasBeenSet = true;
68 m_threatJobId = std::forward<ThreatJobIdT>(value);
69 }
70 template <typename ThreatJobIdT = Aws::String>
71 UpdateThreatResult& WithThreatJobId(ThreatJobIdT&& value) {
72 SetThreatJobId(std::forward<ThreatJobIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTitle() const { return m_title; }
82 template <typename TitleT = Aws::String>
83 void SetTitle(TitleT&& value) {
84 m_titleHasBeenSet = true;
85 m_title = std::forward<TitleT>(value);
86 }
87 template <typename TitleT = Aws::String>
88 UpdateThreatResult& WithTitle(TitleT&& value) {
89 SetTitle(std::forward<TitleT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetStatement() const { return m_statement; }
99 template <typename StatementT = Aws::String>
100 void SetStatement(StatementT&& value) {
101 m_statementHasBeenSet = true;
102 m_statement = std::forward<StatementT>(value);
103 }
104 template <typename StatementT = Aws::String>
105 UpdateThreatResult& WithStatement(StatementT&& value) {
106 SetStatement(std::forward<StatementT>(value));
107 return *this;
108 }
110
112
115 inline ThreatSeverity GetSeverity() const { return m_severity; }
116 inline void SetSeverity(ThreatSeverity value) {
117 m_severityHasBeenSet = true;
118 m_severity = value;
119 }
121 SetSeverity(value);
122 return *this;
123 }
125
127
130 inline ThreatStatus GetStatus() const { return m_status; }
131 inline void SetStatus(ThreatStatus value) {
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
136 SetStatus(value);
137 return *this;
138 }
140
142
145 inline const Aws::String& GetComments() const { return m_comments; }
146 template <typename CommentsT = Aws::String>
147 void SetComments(CommentsT&& value) {
148 m_commentsHasBeenSet = true;
149 m_comments = std::forward<CommentsT>(value);
150 }
151 template <typename CommentsT = Aws::String>
152 UpdateThreatResult& WithComments(CommentsT&& value) {
153 SetComments(std::forward<CommentsT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Vector<StrideCategory>& GetStride() const { return m_stride; }
163 template <typename StrideT = Aws::Vector<StrideCategory>>
164 void SetStride(StrideT&& value) {
165 m_strideHasBeenSet = true;
166 m_stride = std::forward<StrideT>(value);
167 }
168 template <typename StrideT = Aws::Vector<StrideCategory>>
169 UpdateThreatResult& WithStride(StrideT&& value) {
170 SetStride(std::forward<StrideT>(value));
171 return *this;
172 }
174 m_strideHasBeenSet = true;
175 m_stride.push_back(value);
176 return *this;
177 }
179
181
184 inline const Aws::String& GetThreatSource() const { return m_threatSource; }
185 template <typename ThreatSourceT = Aws::String>
186 void SetThreatSource(ThreatSourceT&& value) {
187 m_threatSourceHasBeenSet = true;
188 m_threatSource = std::forward<ThreatSourceT>(value);
189 }
190 template <typename ThreatSourceT = Aws::String>
191 UpdateThreatResult& WithThreatSource(ThreatSourceT&& value) {
192 SetThreatSource(std::forward<ThreatSourceT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetPrerequisites() const { return m_prerequisites; }
202 template <typename PrerequisitesT = Aws::String>
203 void SetPrerequisites(PrerequisitesT&& value) {
204 m_prerequisitesHasBeenSet = true;
205 m_prerequisites = std::forward<PrerequisitesT>(value);
206 }
207 template <typename PrerequisitesT = Aws::String>
208 UpdateThreatResult& WithPrerequisites(PrerequisitesT&& value) {
209 SetPrerequisites(std::forward<PrerequisitesT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetThreatAction() const { return m_threatAction; }
219 template <typename ThreatActionT = Aws::String>
220 void SetThreatAction(ThreatActionT&& value) {
221 m_threatActionHasBeenSet = true;
222 m_threatAction = std::forward<ThreatActionT>(value);
223 }
224 template <typename ThreatActionT = Aws::String>
225 UpdateThreatResult& WithThreatAction(ThreatActionT&& value) {
226 SetThreatAction(std::forward<ThreatActionT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::String& GetThreatImpact() const { return m_threatImpact; }
236 template <typename ThreatImpactT = Aws::String>
237 void SetThreatImpact(ThreatImpactT&& value) {
238 m_threatImpactHasBeenSet = true;
239 m_threatImpact = std::forward<ThreatImpactT>(value);
240 }
241 template <typename ThreatImpactT = Aws::String>
242 UpdateThreatResult& WithThreatImpact(ThreatImpactT&& value) {
243 SetThreatImpact(std::forward<ThreatImpactT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::Vector<Aws::String>& GetImpactedGoal() const { return m_impactedGoal; }
253 template <typename ImpactedGoalT = Aws::Vector<Aws::String>>
254 void SetImpactedGoal(ImpactedGoalT&& value) {
255 m_impactedGoalHasBeenSet = true;
256 m_impactedGoal = std::forward<ImpactedGoalT>(value);
257 }
258 template <typename ImpactedGoalT = Aws::Vector<Aws::String>>
259 UpdateThreatResult& WithImpactedGoal(ImpactedGoalT&& value) {
260 SetImpactedGoal(std::forward<ImpactedGoalT>(value));
261 return *this;
262 }
263 template <typename ImpactedGoalT = Aws::String>
264 UpdateThreatResult& AddImpactedGoal(ImpactedGoalT&& value) {
265 m_impactedGoalHasBeenSet = true;
266 m_impactedGoal.emplace_back(std::forward<ImpactedGoalT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Vector<Aws::String>& GetImpactedAssets() const { return m_impactedAssets; }
276 template <typename ImpactedAssetsT = Aws::Vector<Aws::String>>
277 void SetImpactedAssets(ImpactedAssetsT&& value) {
278 m_impactedAssetsHasBeenSet = true;
279 m_impactedAssets = std::forward<ImpactedAssetsT>(value);
280 }
281 template <typename ImpactedAssetsT = Aws::Vector<Aws::String>>
282 UpdateThreatResult& WithImpactedAssets(ImpactedAssetsT&& value) {
283 SetImpactedAssets(std::forward<ImpactedAssetsT>(value));
284 return *this;
285 }
286 template <typename ImpactedAssetsT = Aws::String>
287 UpdateThreatResult& AddImpactedAssets(ImpactedAssetsT&& value) {
288 m_impactedAssetsHasBeenSet = true;
289 m_impactedAssets.emplace_back(std::forward<ImpactedAssetsT>(value));
290 return *this;
291 }
293
295
298 inline const ThreatAnchorShape& GetAnchor() const { return m_anchor; }
299 template <typename AnchorT = ThreatAnchorShape>
300 void SetAnchor(AnchorT&& value) {
301 m_anchorHasBeenSet = true;
302 m_anchor = std::forward<AnchorT>(value);
303 }
304 template <typename AnchorT = ThreatAnchorShape>
305 UpdateThreatResult& WithAnchor(AnchorT&& value) {
306 SetAnchor(std::forward<AnchorT>(value));
307 return *this;
308 }
310
312
315 inline const Aws::Vector<ThreatEvidenceShape>& GetEvidence() const { return m_evidence; }
316 template <typename EvidenceT = Aws::Vector<ThreatEvidenceShape>>
317 void SetEvidence(EvidenceT&& value) {
318 m_evidenceHasBeenSet = true;
319 m_evidence = std::forward<EvidenceT>(value);
320 }
321 template <typename EvidenceT = Aws::Vector<ThreatEvidenceShape>>
322 UpdateThreatResult& WithEvidence(EvidenceT&& value) {
323 SetEvidence(std::forward<EvidenceT>(value));
324 return *this;
325 }
326 template <typename EvidenceT = ThreatEvidenceShape>
327 UpdateThreatResult& AddEvidence(EvidenceT&& value) {
328 m_evidenceHasBeenSet = true;
329 m_evidence.emplace_back(std::forward<EvidenceT>(value));
330 return *this;
331 }
333
335
338 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
339 template <typename RecommendationT = Aws::String>
340 void SetRecommendation(RecommendationT&& value) {
341 m_recommendationHasBeenSet = true;
342 m_recommendation = std::forward<RecommendationT>(value);
343 }
344 template <typename RecommendationT = Aws::String>
345 UpdateThreatResult& WithRecommendation(RecommendationT&& value) {
346 SetRecommendation(std::forward<RecommendationT>(value));
347 return *this;
348 }
350
352
355 inline ThreatActor GetCreatedBy() const { return m_createdBy; }
356 inline void SetCreatedBy(ThreatActor value) {
357 m_createdByHasBeenSet = true;
358 m_createdBy = value;
359 }
361 SetCreatedBy(value);
362 return *this;
363 }
365
367
370 inline ThreatActor GetUpdatedBy() const { return m_updatedBy; }
371 inline void SetUpdatedBy(ThreatActor value) {
372 m_updatedByHasBeenSet = true;
373 m_updatedBy = value;
374 }
376 SetUpdatedBy(value);
377 return *this;
378 }
380
382
385 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
386 template <typename CreatedAtT = Aws::Utils::DateTime>
387 void SetCreatedAt(CreatedAtT&& value) {
388 m_createdAtHasBeenSet = true;
389 m_createdAt = std::forward<CreatedAtT>(value);
390 }
391 template <typename CreatedAtT = Aws::Utils::DateTime>
392 UpdateThreatResult& WithCreatedAt(CreatedAtT&& value) {
393 SetCreatedAt(std::forward<CreatedAtT>(value));
394 return *this;
395 }
397
399
402 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
403 template <typename UpdatedAtT = Aws::Utils::DateTime>
404 void SetUpdatedAt(UpdatedAtT&& value) {
405 m_updatedAtHasBeenSet = true;
406 m_updatedAt = std::forward<UpdatedAtT>(value);
407 }
408 template <typename UpdatedAtT = Aws::Utils::DateTime>
409 UpdateThreatResult& WithUpdatedAt(UpdatedAtT&& value) {
410 SetUpdatedAt(std::forward<UpdatedAtT>(value));
411 return *this;
412 }
414
416
417 inline const Aws::String& GetRequestId() const { return m_requestId; }
418 template <typename RequestIdT = Aws::String>
419 void SetRequestId(RequestIdT&& value) {
420 m_requestIdHasBeenSet = true;
421 m_requestId = std::forward<RequestIdT>(value);
422 }
423 template <typename RequestIdT = Aws::String>
424 UpdateThreatResult& WithRequestId(RequestIdT&& value) {
425 SetRequestId(std::forward<RequestIdT>(value));
426 return *this;
427 }
429 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
430
431 private:
432 Aws::String m_threatId;
433
434 Aws::String m_threatJobId;
435
436 Aws::String m_title;
437
438 Aws::String m_statement;
439
441
443
444 Aws::String m_comments;
445
447
448 Aws::String m_threatSource;
449
450 Aws::String m_prerequisites;
451
452 Aws::String m_threatAction;
453
454 Aws::String m_threatImpact;
455
456 Aws::Vector<Aws::String> m_impactedGoal;
457
458 Aws::Vector<Aws::String> m_impactedAssets;
459
460 ThreatAnchorShape m_anchor;
461
463
464 Aws::String m_recommendation;
465
467
469
470 Aws::Utils::DateTime m_createdAt{};
471
472 Aws::Utils::DateTime m_updatedAt{};
473
474 Aws::String m_requestId;
475 Aws::Http::HttpResponseCode m_HttpResponseCode;
476 bool m_threatIdHasBeenSet = false;
477 bool m_threatJobIdHasBeenSet = false;
478 bool m_titleHasBeenSet = false;
479 bool m_statementHasBeenSet = false;
480 bool m_severityHasBeenSet = false;
481 bool m_statusHasBeenSet = false;
482 bool m_commentsHasBeenSet = false;
483 bool m_strideHasBeenSet = false;
484 bool m_threatSourceHasBeenSet = false;
485 bool m_prerequisitesHasBeenSet = false;
486 bool m_threatActionHasBeenSet = false;
487 bool m_threatImpactHasBeenSet = false;
488 bool m_impactedGoalHasBeenSet = false;
489 bool m_impactedAssetsHasBeenSet = false;
490 bool m_anchorHasBeenSet = false;
491 bool m_evidenceHasBeenSet = false;
492 bool m_recommendationHasBeenSet = false;
493 bool m_createdByHasBeenSet = false;
494 bool m_updatedByHasBeenSet = false;
495 bool m_createdAtHasBeenSet = false;
496 bool m_updatedAtHasBeenSet = false;
497 bool m_requestIdHasBeenSet = false;
498};
499
500} // namespace Model
501} // namespace SecurityAgent
502} // namespace Aws
UpdateThreatResult & WithComments(CommentsT &&value)
const Aws::Vector< StrideCategory > & GetStride() const
const Aws::Vector< Aws::String > & GetImpactedAssets() const
UpdateThreatResult & WithImpactedGoal(ImpactedGoalT &&value)
UpdateThreatResult & WithThreatSource(ThreatSourceT &&value)
UpdateThreatResult & WithAnchor(AnchorT &&value)
AWS_SECURITYAGENT_API UpdateThreatResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateThreatResult & WithEvidence(EvidenceT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
UpdateThreatResult & WithPrerequisites(PrerequisitesT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
UpdateThreatResult & WithCreatedAt(CreatedAtT &&value)
UpdateThreatResult & WithStride(StrideT &&value)
UpdateThreatResult & AddEvidence(EvidenceT &&value)
UpdateThreatResult & AddStride(StrideCategory value)
UpdateThreatResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateThreatResult & WithThreatJobId(ThreatJobIdT &&value)
UpdateThreatResult & WithThreatId(ThreatIdT &&value)
UpdateThreatResult & WithUpdatedBy(ThreatActor value)
UpdateThreatResult & WithImpactedAssets(ImpactedAssetsT &&value)
const ThreatAnchorShape & GetAnchor() const
UpdateThreatResult & AddImpactedGoal(ImpactedGoalT &&value)
const Aws::Vector< Aws::String > & GetImpactedGoal() const
UpdateThreatResult & WithStatement(StatementT &&value)
UpdateThreatResult & WithCreatedBy(ThreatActor value)
const Aws::Vector< ThreatEvidenceShape > & GetEvidence() const
UpdateThreatResult & WithStatus(ThreatStatus value)
UpdateThreatResult & WithTitle(TitleT &&value)
UpdateThreatResult & WithRequestId(RequestIdT &&value)
AWS_SECURITYAGENT_API UpdateThreatResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateThreatResult & AddImpactedAssets(ImpactedAssetsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateThreatResult & WithRecommendation(RecommendationT &&value)
AWS_SECURITYAGENT_API UpdateThreatResult()=default
UpdateThreatResult & WithSeverity(ThreatSeverity value)
UpdateThreatResult & WithThreatImpact(ThreatImpactT &&value)
UpdateThreatResult & WithThreatAction(ThreatActionT &&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