AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
BatchUpdateFindingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/SecurityHubRequest.h>
11#include <aws/securityhub/SecurityHub_EXPORTS.h>
12#include <aws/securityhub/model/AwsSecurityFindingIdentifier.h>
13#include <aws/securityhub/model/NoteUpdate.h>
14#include <aws/securityhub/model/RelatedFinding.h>
15#include <aws/securityhub/model/SeverityUpdate.h>
16#include <aws/securityhub/model/VerificationState.h>
17#include <aws/securityhub/model/WorkflowUpdate.h>
18
19#include <utility>
20
21namespace Aws {
22namespace SecurityHub {
23namespace Model {
24
28 public:
29 AWS_SECURITYHUB_API BatchUpdateFindingsRequest() = 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 "BatchUpdateFindings"; }
36
37 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
38
40
45 inline const Aws::Vector<AwsSecurityFindingIdentifier>& GetFindingIdentifiers() const { return m_findingIdentifiers; }
46 inline bool FindingIdentifiersHasBeenSet() const { return m_findingIdentifiersHasBeenSet; }
47 template <typename FindingIdentifiersT = Aws::Vector<AwsSecurityFindingIdentifier>>
48 void SetFindingIdentifiers(FindingIdentifiersT&& value) {
49 m_findingIdentifiersHasBeenSet = true;
50 m_findingIdentifiers = std::forward<FindingIdentifiersT>(value);
51 }
52 template <typename FindingIdentifiersT = Aws::Vector<AwsSecurityFindingIdentifier>>
53 BatchUpdateFindingsRequest& WithFindingIdentifiers(FindingIdentifiersT&& value) {
54 SetFindingIdentifiers(std::forward<FindingIdentifiersT>(value));
55 return *this;
56 }
57 template <typename FindingIdentifiersT = AwsSecurityFindingIdentifier>
58 BatchUpdateFindingsRequest& AddFindingIdentifiers(FindingIdentifiersT&& value) {
59 m_findingIdentifiersHasBeenSet = true;
60 m_findingIdentifiers.emplace_back(std::forward<FindingIdentifiersT>(value));
61 return *this;
62 }
64
66
67 inline const NoteUpdate& GetNote() const { return m_note; }
68 inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; }
69 template <typename NoteT = NoteUpdate>
70 void SetNote(NoteT&& value) {
71 m_noteHasBeenSet = true;
72 m_note = std::forward<NoteT>(value);
73 }
74 template <typename NoteT = NoteUpdate>
76 SetNote(std::forward<NoteT>(value));
77 return *this;
78 }
80
82
85 inline const SeverityUpdate& GetSeverity() const { return m_severity; }
86 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
87 template <typename SeverityT = SeverityUpdate>
88 void SetSeverity(SeverityT&& value) {
89 m_severityHasBeenSet = true;
90 m_severity = std::forward<SeverityT>(value);
91 }
92 template <typename SeverityT = SeverityUpdate>
94 SetSeverity(std::forward<SeverityT>(value));
95 return *this;
96 }
98
100
110 inline VerificationState GetVerificationState() const { return m_verificationState; }
111 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
113 m_verificationStateHasBeenSet = true;
114 m_verificationState = value;
115 }
118 return *this;
119 }
121
123
130 inline int GetConfidence() const { return m_confidence; }
131 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
132 inline void SetConfidence(int value) {
133 m_confidenceHasBeenSet = true;
134 m_confidence = value;
135 }
137 SetConfidence(value);
138 return *this;
139 }
141
143
149 inline int GetCriticality() const { return m_criticality; }
150 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
151 inline void SetCriticality(int value) {
152 m_criticalityHasBeenSet = true;
153 m_criticality = value;
154 }
156 SetCriticality(value);
157 return *this;
158 }
160
162
169 inline const Aws::Vector<Aws::String>& GetTypes() const { return m_types; }
170 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
171 template <typename TypesT = Aws::Vector<Aws::String>>
172 void SetTypes(TypesT&& value) {
173 m_typesHasBeenSet = true;
174 m_types = std::forward<TypesT>(value);
175 }
176 template <typename TypesT = Aws::Vector<Aws::String>>
178 SetTypes(std::forward<TypesT>(value));
179 return *this;
180 }
181 template <typename TypesT = Aws::String>
183 m_typesHasBeenSet = true;
184 m_types.emplace_back(std::forward<TypesT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::Map<Aws::String, Aws::String>& GetUserDefinedFields() const { return m_userDefinedFields; }
195 inline bool UserDefinedFieldsHasBeenSet() const { return m_userDefinedFieldsHasBeenSet; }
196 template <typename UserDefinedFieldsT = Aws::Map<Aws::String, Aws::String>>
197 void SetUserDefinedFields(UserDefinedFieldsT&& value) {
198 m_userDefinedFieldsHasBeenSet = true;
199 m_userDefinedFields = std::forward<UserDefinedFieldsT>(value);
200 }
201 template <typename UserDefinedFieldsT = Aws::Map<Aws::String, Aws::String>>
203 SetUserDefinedFields(std::forward<UserDefinedFieldsT>(value));
204 return *this;
205 }
206 template <typename UserDefinedFieldsKeyT = Aws::String, typename UserDefinedFieldsValueT = Aws::String>
207 BatchUpdateFindingsRequest& AddUserDefinedFields(UserDefinedFieldsKeyT&& key, UserDefinedFieldsValueT&& value) {
208 m_userDefinedFieldsHasBeenSet = true;
209 m_userDefinedFields.emplace(std::forward<UserDefinedFieldsKeyT>(key), std::forward<UserDefinedFieldsValueT>(value));
210 return *this;
211 }
213
215
219 inline const WorkflowUpdate& GetWorkflow() const { return m_workflow; }
220 inline bool WorkflowHasBeenSet() const { return m_workflowHasBeenSet; }
221 template <typename WorkflowT = WorkflowUpdate>
222 void SetWorkflow(WorkflowT&& value) {
223 m_workflowHasBeenSet = true;
224 m_workflow = std::forward<WorkflowT>(value);
225 }
226 template <typename WorkflowT = WorkflowUpdate>
228 SetWorkflow(std::forward<WorkflowT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Vector<RelatedFinding>& GetRelatedFindings() const { return m_relatedFindings; }
238 inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
239 template <typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
240 void SetRelatedFindings(RelatedFindingsT&& value) {
241 m_relatedFindingsHasBeenSet = true;
242 m_relatedFindings = std::forward<RelatedFindingsT>(value);
243 }
244 template <typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
246 SetRelatedFindings(std::forward<RelatedFindingsT>(value));
247 return *this;
248 }
249 template <typename RelatedFindingsT = RelatedFinding>
251 m_relatedFindingsHasBeenSet = true;
252 m_relatedFindings.emplace_back(std::forward<RelatedFindingsT>(value));
253 return *this;
254 }
256 private:
258
259 NoteUpdate m_note;
260
261 SeverityUpdate m_severity;
262
264
265 int m_confidence{0};
266
267 int m_criticality{0};
268
270
271 Aws::Map<Aws::String, Aws::String> m_userDefinedFields;
272
273 WorkflowUpdate m_workflow;
274
275 Aws::Vector<RelatedFinding> m_relatedFindings;
276 bool m_findingIdentifiersHasBeenSet = false;
277 bool m_noteHasBeenSet = false;
278 bool m_severityHasBeenSet = false;
279 bool m_verificationStateHasBeenSet = false;
280 bool m_confidenceHasBeenSet = false;
281 bool m_criticalityHasBeenSet = false;
282 bool m_typesHasBeenSet = false;
283 bool m_userDefinedFieldsHasBeenSet = false;
284 bool m_workflowHasBeenSet = false;
285 bool m_relatedFindingsHasBeenSet = false;
286};
287
288} // namespace Model
289} // namespace SecurityHub
290} // namespace Aws
BatchUpdateFindingsRequest & WithRelatedFindings(RelatedFindingsT &&value)
BatchUpdateFindingsRequest & AddTypes(TypesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetUserDefinedFields() const
BatchUpdateFindingsRequest & AddUserDefinedFields(UserDefinedFieldsKeyT &&key, UserDefinedFieldsValueT &&value)
BatchUpdateFindingsRequest & WithVerificationState(VerificationState value)
BatchUpdateFindingsRequest & WithNote(NoteT &&value)
BatchUpdateFindingsRequest & WithTypes(TypesT &&value)
BatchUpdateFindingsRequest & WithFindingIdentifiers(FindingIdentifiersT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
BatchUpdateFindingsRequest & WithUserDefinedFields(UserDefinedFieldsT &&value)
const Aws::Vector< AwsSecurityFindingIdentifier > & GetFindingIdentifiers() const
BatchUpdateFindingsRequest & WithSeverity(SeverityT &&value)
const Aws::Vector< Aws::String > & GetTypes() const
AWS_SECURITYHUB_API BatchUpdateFindingsRequest()=default
const Aws::Vector< RelatedFinding > & GetRelatedFindings() const
BatchUpdateFindingsRequest & WithWorkflow(WorkflowT &&value)
BatchUpdateFindingsRequest & AddFindingIdentifiers(FindingIdentifiersT &&value)
BatchUpdateFindingsRequest & AddRelatedFindings(RelatedFindingsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector