AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
UpdateFindingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgentRequest.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/FindingStatus.h>
11#include <aws/securityagent/model/RiskLevel.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityAgent {
17namespace Model {
18
26 public:
27 AWS_SECURITYAGENT_API UpdateFindingRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateFinding"; }
34
35 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetFindingId() const { return m_findingId; }
42 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
43 template <typename FindingIdT = Aws::String>
44 void SetFindingId(FindingIdT&& value) {
45 m_findingIdHasBeenSet = true;
46 m_findingId = std::forward<FindingIdT>(value);
47 }
48 template <typename FindingIdT = Aws::String>
49 UpdateFindingRequest& WithFindingId(FindingIdT&& value) {
50 SetFindingId(std::forward<FindingIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
60 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
61 template <typename AgentSpaceIdT = Aws::String>
62 void SetAgentSpaceId(AgentSpaceIdT&& value) {
63 m_agentSpaceIdHasBeenSet = true;
64 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
65 }
66 template <typename AgentSpaceIdT = Aws::String>
67 UpdateFindingRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
68 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
103 UpdateFindingRequest& WithDescription(DescriptionT&& value) {
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetRiskType() const { return m_riskType; }
114 inline bool RiskTypeHasBeenSet() const { return m_riskTypeHasBeenSet; }
115 template <typename RiskTypeT = Aws::String>
116 void SetRiskType(RiskTypeT&& value) {
117 m_riskTypeHasBeenSet = true;
118 m_riskType = std::forward<RiskTypeT>(value);
119 }
120 template <typename RiskTypeT = Aws::String>
121 UpdateFindingRequest& WithRiskType(RiskTypeT&& value) {
122 SetRiskType(std::forward<RiskTypeT>(value));
123 return *this;
124 }
126
128
131 inline RiskLevel GetRiskLevel() const { return m_riskLevel; }
132 inline bool RiskLevelHasBeenSet() const { return m_riskLevelHasBeenSet; }
133 inline void SetRiskLevel(RiskLevel value) {
134 m_riskLevelHasBeenSet = true;
135 m_riskLevel = value;
136 }
138 SetRiskLevel(value);
139 return *this;
140 }
142
144
147 inline const Aws::String& GetRiskScore() const { return m_riskScore; }
148 inline bool RiskScoreHasBeenSet() const { return m_riskScoreHasBeenSet; }
149 template <typename RiskScoreT = Aws::String>
150 void SetRiskScore(RiskScoreT&& value) {
151 m_riskScoreHasBeenSet = true;
152 m_riskScore = std::forward<RiskScoreT>(value);
153 }
154 template <typename RiskScoreT = Aws::String>
155 UpdateFindingRequest& WithRiskScore(RiskScoreT&& value) {
156 SetRiskScore(std::forward<RiskScoreT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetAttackScript() const { return m_attackScript; }
166 inline bool AttackScriptHasBeenSet() const { return m_attackScriptHasBeenSet; }
167 template <typename AttackScriptT = Aws::String>
168 void SetAttackScript(AttackScriptT&& value) {
169 m_attackScriptHasBeenSet = true;
170 m_attackScript = std::forward<AttackScriptT>(value);
171 }
172 template <typename AttackScriptT = Aws::String>
173 UpdateFindingRequest& WithAttackScript(AttackScriptT&& value) {
174 SetAttackScript(std::forward<AttackScriptT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetReasoning() const { return m_reasoning; }
184 inline bool ReasoningHasBeenSet() const { return m_reasoningHasBeenSet; }
185 template <typename ReasoningT = Aws::String>
186 void SetReasoning(ReasoningT&& value) {
187 m_reasoningHasBeenSet = true;
188 m_reasoning = std::forward<ReasoningT>(value);
189 }
190 template <typename ReasoningT = Aws::String>
191 UpdateFindingRequest& WithReasoning(ReasoningT&& value) {
192 SetReasoning(std::forward<ReasoningT>(value));
193 return *this;
194 }
196
198
201 inline FindingStatus GetStatus() const { return m_status; }
202 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
203 inline void SetStatus(FindingStatus value) {
204 m_statusHasBeenSet = true;
205 m_status = value;
206 }
208 SetStatus(value);
209 return *this;
210 }
212
214
217 inline const Aws::String& GetCustomerNote() const { return m_customerNote; }
218 inline bool CustomerNoteHasBeenSet() const { return m_customerNoteHasBeenSet; }
219 template <typename CustomerNoteT = Aws::String>
220 void SetCustomerNote(CustomerNoteT&& value) {
221 m_customerNoteHasBeenSet = true;
222 m_customerNote = std::forward<CustomerNoteT>(value);
223 }
224 template <typename CustomerNoteT = Aws::String>
225 UpdateFindingRequest& WithCustomerNote(CustomerNoteT&& value) {
226 SetCustomerNote(std::forward<CustomerNoteT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_findingId;
232
233 Aws::String m_agentSpaceId;
234
235 Aws::String m_name;
236
237 Aws::String m_description;
238
239 Aws::String m_riskType;
240
241 RiskLevel m_riskLevel{RiskLevel::NOT_SET};
242
243 Aws::String m_riskScore;
244
245 Aws::String m_attackScript;
246
247 Aws::String m_reasoning;
248
250
251 Aws::String m_customerNote;
252 bool m_findingIdHasBeenSet = false;
253 bool m_agentSpaceIdHasBeenSet = false;
254 bool m_nameHasBeenSet = false;
255 bool m_descriptionHasBeenSet = false;
256 bool m_riskTypeHasBeenSet = false;
257 bool m_riskLevelHasBeenSet = false;
258 bool m_riskScoreHasBeenSet = false;
259 bool m_attackScriptHasBeenSet = false;
260 bool m_reasoningHasBeenSet = false;
261 bool m_statusHasBeenSet = false;
262 bool m_customerNoteHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace SecurityAgent
267} // namespace Aws
UpdateFindingRequest & WithReasoning(ReasoningT &&value)
virtual const char * GetServiceRequestName() const override
UpdateFindingRequest & WithCustomerNote(CustomerNoteT &&value)
UpdateFindingRequest & WithDescription(DescriptionT &&value)
AWS_SECURITYAGENT_API UpdateFindingRequest()=default
UpdateFindingRequest & WithRiskLevel(RiskLevel value)
UpdateFindingRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdateFindingRequest & WithFindingId(FindingIdT &&value)
UpdateFindingRequest & WithStatus(FindingStatus value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
UpdateFindingRequest & WithName(NameT &&value)
UpdateFindingRequest & WithAttackScript(AttackScriptT &&value)
UpdateFindingRequest & WithRiskType(RiskTypeT &&value)
UpdateFindingRequest & WithRiskScore(RiskScoreT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String