AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
UpdateThreatRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/ThreatAnchorShape.h>
12#include <aws/securityagent/model/ThreatEvidenceShape.h>
13#include <aws/securityagent/model/ThreatSeverity.h>
14#include <aws/securityagent/model/ThreatStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SecurityAgent {
20namespace Model {
21
28 public:
29 AWS_SECURITYAGENT_API UpdateThreatRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateThreat"; }
36
37 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetThreatId() const { return m_threatId; }
44 inline bool ThreatIdHasBeenSet() const { return m_threatIdHasBeenSet; }
45 template <typename ThreatIdT = Aws::String>
46 void SetThreatId(ThreatIdT&& value) {
47 m_threatIdHasBeenSet = true;
48 m_threatId = std::forward<ThreatIdT>(value);
49 }
50 template <typename ThreatIdT = Aws::String>
51 UpdateThreatRequest& WithThreatId(ThreatIdT&& value) {
52 SetThreatId(std::forward<ThreatIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
62 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
63 template <typename AgentSpaceIdT = Aws::String>
64 void SetAgentSpaceId(AgentSpaceIdT&& value) {
65 m_agentSpaceIdHasBeenSet = true;
66 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
67 }
68 template <typename AgentSpaceIdT = Aws::String>
69 UpdateThreatRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
70 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetTitle() const { return m_title; }
80 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
81 template <typename TitleT = Aws::String>
82 void SetTitle(TitleT&& value) {
83 m_titleHasBeenSet = true;
84 m_title = std::forward<TitleT>(value);
85 }
86 template <typename TitleT = Aws::String>
87 UpdateThreatRequest& WithTitle(TitleT&& value) {
88 SetTitle(std::forward<TitleT>(value));
89 return *this;
90 }
92
94
97 inline ThreatStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(ThreatStatus value) {
100 m_statusHasBeenSet = true;
101 m_status = value;
102 }
104 SetStatus(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetComments() const { return m_comments; }
114 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
115 template <typename CommentsT = Aws::String>
116 void SetComments(CommentsT&& value) {
117 m_commentsHasBeenSet = true;
118 m_comments = std::forward<CommentsT>(value);
119 }
120 template <typename CommentsT = Aws::String>
121 UpdateThreatRequest& WithComments(CommentsT&& value) {
122 SetComments(std::forward<CommentsT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetStatement() const { return m_statement; }
132 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
133 template <typename StatementT = Aws::String>
134 void SetStatement(StatementT&& value) {
135 m_statementHasBeenSet = true;
136 m_statement = std::forward<StatementT>(value);
137 }
138 template <typename StatementT = Aws::String>
139 UpdateThreatRequest& WithStatement(StatementT&& value) {
140 SetStatement(std::forward<StatementT>(value));
141 return *this;
142 }
144
146
149 inline ThreatSeverity GetSeverity() const { return m_severity; }
150 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
151 inline void SetSeverity(ThreatSeverity value) {
152 m_severityHasBeenSet = true;
153 m_severity = value;
154 }
156 SetSeverity(value);
157 return *this;
158 }
160
162
165 inline const Aws::String& GetThreatSource() const { return m_threatSource; }
166 inline bool ThreatSourceHasBeenSet() const { return m_threatSourceHasBeenSet; }
167 template <typename ThreatSourceT = Aws::String>
168 void SetThreatSource(ThreatSourceT&& value) {
169 m_threatSourceHasBeenSet = true;
170 m_threatSource = std::forward<ThreatSourceT>(value);
171 }
172 template <typename ThreatSourceT = Aws::String>
173 UpdateThreatRequest& WithThreatSource(ThreatSourceT&& value) {
174 SetThreatSource(std::forward<ThreatSourceT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetPrerequisites() const { return m_prerequisites; }
184 inline bool PrerequisitesHasBeenSet() const { return m_prerequisitesHasBeenSet; }
185 template <typename PrerequisitesT = Aws::String>
186 void SetPrerequisites(PrerequisitesT&& value) {
187 m_prerequisitesHasBeenSet = true;
188 m_prerequisites = std::forward<PrerequisitesT>(value);
189 }
190 template <typename PrerequisitesT = Aws::String>
191 UpdateThreatRequest& WithPrerequisites(PrerequisitesT&& value) {
192 SetPrerequisites(std::forward<PrerequisitesT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetThreatAction() const { return m_threatAction; }
202 inline bool ThreatActionHasBeenSet() const { return m_threatActionHasBeenSet; }
203 template <typename ThreatActionT = Aws::String>
204 void SetThreatAction(ThreatActionT&& value) {
205 m_threatActionHasBeenSet = true;
206 m_threatAction = std::forward<ThreatActionT>(value);
207 }
208 template <typename ThreatActionT = Aws::String>
209 UpdateThreatRequest& WithThreatAction(ThreatActionT&& value) {
210 SetThreatAction(std::forward<ThreatActionT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetThreatImpact() const { return m_threatImpact; }
220 inline bool ThreatImpactHasBeenSet() const { return m_threatImpactHasBeenSet; }
221 template <typename ThreatImpactT = Aws::String>
222 void SetThreatImpact(ThreatImpactT&& value) {
223 m_threatImpactHasBeenSet = true;
224 m_threatImpact = std::forward<ThreatImpactT>(value);
225 }
226 template <typename ThreatImpactT = Aws::String>
227 UpdateThreatRequest& WithThreatImpact(ThreatImpactT&& value) {
228 SetThreatImpact(std::forward<ThreatImpactT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Vector<Aws::String>& GetImpactedGoal() const { return m_impactedGoal; }
238 inline bool ImpactedGoalHasBeenSet() const { return m_impactedGoalHasBeenSet; }
239 template <typename ImpactedGoalT = Aws::Vector<Aws::String>>
240 void SetImpactedGoal(ImpactedGoalT&& value) {
241 m_impactedGoalHasBeenSet = true;
242 m_impactedGoal = std::forward<ImpactedGoalT>(value);
243 }
244 template <typename ImpactedGoalT = Aws::Vector<Aws::String>>
245 UpdateThreatRequest& WithImpactedGoal(ImpactedGoalT&& value) {
246 SetImpactedGoal(std::forward<ImpactedGoalT>(value));
247 return *this;
248 }
249 template <typename ImpactedGoalT = Aws::String>
250 UpdateThreatRequest& AddImpactedGoal(ImpactedGoalT&& value) {
251 m_impactedGoalHasBeenSet = true;
252 m_impactedGoal.emplace_back(std::forward<ImpactedGoalT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::Vector<Aws::String>& GetImpactedAssets() const { return m_impactedAssets; }
262 inline bool ImpactedAssetsHasBeenSet() const { return m_impactedAssetsHasBeenSet; }
263 template <typename ImpactedAssetsT = Aws::Vector<Aws::String>>
264 void SetImpactedAssets(ImpactedAssetsT&& value) {
265 m_impactedAssetsHasBeenSet = true;
266 m_impactedAssets = std::forward<ImpactedAssetsT>(value);
267 }
268 template <typename ImpactedAssetsT = Aws::Vector<Aws::String>>
269 UpdateThreatRequest& WithImpactedAssets(ImpactedAssetsT&& value) {
270 SetImpactedAssets(std::forward<ImpactedAssetsT>(value));
271 return *this;
272 }
273 template <typename ImpactedAssetsT = Aws::String>
274 UpdateThreatRequest& AddImpactedAssets(ImpactedAssetsT&& value) {
275 m_impactedAssetsHasBeenSet = true;
276 m_impactedAssets.emplace_back(std::forward<ImpactedAssetsT>(value));
277 return *this;
278 }
280
282
285 inline const ThreatAnchorShape& GetAnchor() const { return m_anchor; }
286 inline bool AnchorHasBeenSet() const { return m_anchorHasBeenSet; }
287 template <typename AnchorT = ThreatAnchorShape>
288 void SetAnchor(AnchorT&& value) {
289 m_anchorHasBeenSet = true;
290 m_anchor = std::forward<AnchorT>(value);
291 }
292 template <typename AnchorT = ThreatAnchorShape>
293 UpdateThreatRequest& WithAnchor(AnchorT&& value) {
294 SetAnchor(std::forward<AnchorT>(value));
295 return *this;
296 }
298
300
303 inline const Aws::Vector<ThreatEvidenceShape>& GetEvidence() const { return m_evidence; }
304 inline bool EvidenceHasBeenSet() const { return m_evidenceHasBeenSet; }
305 template <typename EvidenceT = Aws::Vector<ThreatEvidenceShape>>
306 void SetEvidence(EvidenceT&& value) {
307 m_evidenceHasBeenSet = true;
308 m_evidence = std::forward<EvidenceT>(value);
309 }
310 template <typename EvidenceT = Aws::Vector<ThreatEvidenceShape>>
311 UpdateThreatRequest& WithEvidence(EvidenceT&& value) {
312 SetEvidence(std::forward<EvidenceT>(value));
313 return *this;
314 }
315 template <typename EvidenceT = ThreatEvidenceShape>
316 UpdateThreatRequest& AddEvidence(EvidenceT&& value) {
317 m_evidenceHasBeenSet = true;
318 m_evidence.emplace_back(std::forward<EvidenceT>(value));
319 return *this;
320 }
322
324
327 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
328 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
329 template <typename RecommendationT = Aws::String>
330 void SetRecommendation(RecommendationT&& value) {
331 m_recommendationHasBeenSet = true;
332 m_recommendation = std::forward<RecommendationT>(value);
333 }
334 template <typename RecommendationT = Aws::String>
335 UpdateThreatRequest& WithRecommendation(RecommendationT&& value) {
336 SetRecommendation(std::forward<RecommendationT>(value));
337 return *this;
338 }
340 private:
341 Aws::String m_threatId;
342
343 Aws::String m_agentSpaceId;
344
345 Aws::String m_title;
346
348
349 Aws::String m_comments;
350
351 Aws::String m_statement;
352
354
355 Aws::String m_threatSource;
356
357 Aws::String m_prerequisites;
358
359 Aws::String m_threatAction;
360
361 Aws::String m_threatImpact;
362
363 Aws::Vector<Aws::String> m_impactedGoal;
364
365 Aws::Vector<Aws::String> m_impactedAssets;
366
367 ThreatAnchorShape m_anchor;
368
370
371 Aws::String m_recommendation;
372 bool m_threatIdHasBeenSet = false;
373 bool m_agentSpaceIdHasBeenSet = false;
374 bool m_titleHasBeenSet = false;
375 bool m_statusHasBeenSet = false;
376 bool m_commentsHasBeenSet = false;
377 bool m_statementHasBeenSet = false;
378 bool m_severityHasBeenSet = false;
379 bool m_threatSourceHasBeenSet = false;
380 bool m_prerequisitesHasBeenSet = false;
381 bool m_threatActionHasBeenSet = false;
382 bool m_threatImpactHasBeenSet = false;
383 bool m_impactedGoalHasBeenSet = false;
384 bool m_impactedAssetsHasBeenSet = false;
385 bool m_anchorHasBeenSet = false;
386 bool m_evidenceHasBeenSet = false;
387 bool m_recommendationHasBeenSet = false;
388};
389
390} // namespace Model
391} // namespace SecurityAgent
392} // namespace Aws
UpdateThreatRequest & WithThreatAction(ThreatActionT &&value)
UpdateThreatRequest & WithStatus(ThreatStatus value)
UpdateThreatRequest & WithThreatSource(ThreatSourceT &&value)
UpdateThreatRequest & AddImpactedAssets(ImpactedAssetsT &&value)
const Aws::Vector< Aws::String > & GetImpactedAssets() const
UpdateThreatRequest & WithComments(CommentsT &&value)
UpdateThreatRequest & WithPrerequisites(PrerequisitesT &&value)
AWS_SECURITYAGENT_API UpdateThreatRequest()=default
UpdateThreatRequest & WithAnchor(AnchorT &&value)
UpdateThreatRequest & WithThreatId(ThreatIdT &&value)
UpdateThreatRequest & WithSeverity(ThreatSeverity value)
UpdateThreatRequest & AddImpactedGoal(ImpactedGoalT &&value)
UpdateThreatRequest & AddEvidence(EvidenceT &&value)
UpdateThreatRequest & WithStatement(StatementT &&value)
const Aws::Vector< ThreatEvidenceShape > & GetEvidence() const
UpdateThreatRequest & WithImpactedAssets(ImpactedAssetsT &&value)
const Aws::Vector< Aws::String > & GetImpactedGoal() const
UpdateThreatRequest & WithTitle(TitleT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
UpdateThreatRequest & WithEvidence(EvidenceT &&value)
UpdateThreatRequest & WithImpactedGoal(ImpactedGoalT &&value)
virtual const char * GetServiceRequestName() const override
UpdateThreatRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdateThreatRequest & WithThreatImpact(ThreatImpactT &&value)
UpdateThreatRequest & WithRecommendation(RecommendationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector