AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchUpdateFindingsRequest.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/NoteUpdate.h>
11#include <aws/securityhub/model/SeverityUpdate.h>
12#include <aws/securityhub/model/VerificationState.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/securityhub/model/WorkflowUpdate.h>
15#include <aws/securityhub/model/AwsSecurityFindingIdentifier.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/securityhub/model/RelatedFinding.h>
18#include <utility>
19
20namespace Aws
21{
22namespace SecurityHub
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_SECURITYHUB_API BatchUpdateFindingsRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "BatchUpdateFindings"; }
39
40 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
41
42
44
49 inline const Aws::Vector<AwsSecurityFindingIdentifier>& GetFindingIdentifiers() const { return m_findingIdentifiers; }
50 inline bool FindingIdentifiersHasBeenSet() const { return m_findingIdentifiersHasBeenSet; }
51 template<typename FindingIdentifiersT = Aws::Vector<AwsSecurityFindingIdentifier>>
52 void SetFindingIdentifiers(FindingIdentifiersT&& value) { m_findingIdentifiersHasBeenSet = true; m_findingIdentifiers = std::forward<FindingIdentifiersT>(value); }
53 template<typename FindingIdentifiersT = Aws::Vector<AwsSecurityFindingIdentifier>>
54 BatchUpdateFindingsRequest& WithFindingIdentifiers(FindingIdentifiersT&& value) { SetFindingIdentifiers(std::forward<FindingIdentifiersT>(value)); return *this;}
55 template<typename FindingIdentifiersT = AwsSecurityFindingIdentifier>
56 BatchUpdateFindingsRequest& AddFindingIdentifiers(FindingIdentifiersT&& value) { m_findingIdentifiersHasBeenSet = true; m_findingIdentifiers.emplace_back(std::forward<FindingIdentifiersT>(value)); return *this; }
58
60
61 inline const NoteUpdate& GetNote() const { return m_note; }
62 inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; }
63 template<typename NoteT = NoteUpdate>
64 void SetNote(NoteT&& value) { m_noteHasBeenSet = true; m_note = std::forward<NoteT>(value); }
65 template<typename NoteT = NoteUpdate>
66 BatchUpdateFindingsRequest& WithNote(NoteT&& value) { SetNote(std::forward<NoteT>(value)); return *this;}
68
70
73 inline const SeverityUpdate& GetSeverity() const { return m_severity; }
74 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
75 template<typename SeverityT = SeverityUpdate>
76 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
77 template<typename SeverityT = SeverityUpdate>
78 BatchUpdateFindingsRequest& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
80
82
92 inline VerificationState GetVerificationState() const { return m_verificationState; }
93 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
94 inline void SetVerificationState(VerificationState value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
97
99
106 inline int GetConfidence() const { return m_confidence; }
107 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
108 inline void SetConfidence(int value) { m_confidenceHasBeenSet = true; m_confidence = value; }
109 inline BatchUpdateFindingsRequest& WithConfidence(int value) { SetConfidence(value); return *this;}
111
113
119 inline int GetCriticality() const { return m_criticality; }
120 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
121 inline void SetCriticality(int value) { m_criticalityHasBeenSet = true; m_criticality = value; }
122 inline BatchUpdateFindingsRequest& WithCriticality(int value) { SetCriticality(value); return *this;}
124
126
133 inline const Aws::Vector<Aws::String>& GetTypes() const { return m_types; }
134 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
135 template<typename TypesT = Aws::Vector<Aws::String>>
136 void SetTypes(TypesT&& value) { m_typesHasBeenSet = true; m_types = std::forward<TypesT>(value); }
137 template<typename TypesT = Aws::Vector<Aws::String>>
138 BatchUpdateFindingsRequest& WithTypes(TypesT&& value) { SetTypes(std::forward<TypesT>(value)); return *this;}
139 template<typename TypesT = Aws::String>
140 BatchUpdateFindingsRequest& AddTypes(TypesT&& value) { m_typesHasBeenSet = true; m_types.emplace_back(std::forward<TypesT>(value)); return *this; }
142
144
148 inline const Aws::Map<Aws::String, Aws::String>& GetUserDefinedFields() const { return m_userDefinedFields; }
149 inline bool UserDefinedFieldsHasBeenSet() const { return m_userDefinedFieldsHasBeenSet; }
150 template<typename UserDefinedFieldsT = Aws::Map<Aws::String, Aws::String>>
151 void SetUserDefinedFields(UserDefinedFieldsT&& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields = std::forward<UserDefinedFieldsT>(value); }
152 template<typename UserDefinedFieldsT = Aws::Map<Aws::String, Aws::String>>
153 BatchUpdateFindingsRequest& WithUserDefinedFields(UserDefinedFieldsT&& value) { SetUserDefinedFields(std::forward<UserDefinedFieldsT>(value)); return *this;}
154 template<typename UserDefinedFieldsKeyT = Aws::String, typename UserDefinedFieldsValueT = Aws::String>
155 BatchUpdateFindingsRequest& AddUserDefinedFields(UserDefinedFieldsKeyT&& key, UserDefinedFieldsValueT&& value) {
156 m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(std::forward<UserDefinedFieldsKeyT>(key), std::forward<UserDefinedFieldsValueT>(value)); return *this;
157 }
159
161
165 inline const WorkflowUpdate& GetWorkflow() const { return m_workflow; }
166 inline bool WorkflowHasBeenSet() const { return m_workflowHasBeenSet; }
167 template<typename WorkflowT = WorkflowUpdate>
168 void SetWorkflow(WorkflowT&& value) { m_workflowHasBeenSet = true; m_workflow = std::forward<WorkflowT>(value); }
169 template<typename WorkflowT = WorkflowUpdate>
170 BatchUpdateFindingsRequest& WithWorkflow(WorkflowT&& value) { SetWorkflow(std::forward<WorkflowT>(value)); return *this;}
172
174
177 inline const Aws::Vector<RelatedFinding>& GetRelatedFindings() const { return m_relatedFindings; }
178 inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
179 template<typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
180 void SetRelatedFindings(RelatedFindingsT&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = std::forward<RelatedFindingsT>(value); }
181 template<typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
182 BatchUpdateFindingsRequest& WithRelatedFindings(RelatedFindingsT&& value) { SetRelatedFindings(std::forward<RelatedFindingsT>(value)); return *this;}
183 template<typename RelatedFindingsT = RelatedFinding>
184 BatchUpdateFindingsRequest& AddRelatedFindings(RelatedFindingsT&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.emplace_back(std::forward<RelatedFindingsT>(value)); return *this; }
186 private:
187
189 bool m_findingIdentifiersHasBeenSet = false;
190
191 NoteUpdate m_note;
192 bool m_noteHasBeenSet = false;
193
194 SeverityUpdate m_severity;
195 bool m_severityHasBeenSet = false;
196
198 bool m_verificationStateHasBeenSet = false;
199
200 int m_confidence{0};
201 bool m_confidenceHasBeenSet = false;
202
203 int m_criticality{0};
204 bool m_criticalityHasBeenSet = false;
205
207 bool m_typesHasBeenSet = false;
208
209 Aws::Map<Aws::String, Aws::String> m_userDefinedFields;
210 bool m_userDefinedFieldsHasBeenSet = false;
211
212 WorkflowUpdate m_workflow;
213 bool m_workflowHasBeenSet = false;
214
215 Aws::Vector<RelatedFinding> m_relatedFindings;
216 bool m_relatedFindingsHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace SecurityHub
221} // 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