AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFindingIdentifiers(const Aws::Vector<AwsSecurityFindingIdentifier>& value) { m_findingIdentifiersHasBeenSet = true; m_findingIdentifiers = value; }
52 inline void SetFindingIdentifiers(Aws::Vector<AwsSecurityFindingIdentifier>&& value) { m_findingIdentifiersHasBeenSet = true; m_findingIdentifiers = std::move(value); }
55 inline BatchUpdateFindingsRequest& AddFindingIdentifiers(const AwsSecurityFindingIdentifier& value) { m_findingIdentifiersHasBeenSet = true; m_findingIdentifiers.push_back(value); return *this; }
56 inline BatchUpdateFindingsRequest& AddFindingIdentifiers(AwsSecurityFindingIdentifier&& value) { m_findingIdentifiersHasBeenSet = true; m_findingIdentifiers.push_back(std::move(value)); return *this; }
58
60
61 inline const NoteUpdate& GetNote() const{ return m_note; }
62 inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; }
63 inline void SetNote(const NoteUpdate& value) { m_noteHasBeenSet = true; m_note = value; }
64 inline void SetNote(NoteUpdate&& value) { m_noteHasBeenSet = true; m_note = std::move(value); }
65 inline BatchUpdateFindingsRequest& WithNote(const NoteUpdate& value) { SetNote(value); return *this;}
66 inline BatchUpdateFindingsRequest& WithNote(NoteUpdate&& value) { SetNote(std::move(value)); return *this;}
68
70
73 inline const SeverityUpdate& GetSeverity() const{ return m_severity; }
74 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
75 inline void SetSeverity(const SeverityUpdate& value) { m_severityHasBeenSet = true; m_severity = value; }
76 inline void SetSeverity(SeverityUpdate&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
77 inline BatchUpdateFindingsRequest& WithSeverity(const SeverityUpdate& value) { SetSeverity(value); return *this;}
78 inline BatchUpdateFindingsRequest& WithSeverity(SeverityUpdate&& value) { SetSeverity(std::move(value)); return *this;}
80
82
92 inline const VerificationState& GetVerificationState() const{ return m_verificationState; }
93 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
94 inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
95 inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); }
99
101
108 inline int GetConfidence() const{ return m_confidence; }
109 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
110 inline void SetConfidence(int value) { m_confidenceHasBeenSet = true; m_confidence = value; }
111 inline BatchUpdateFindingsRequest& WithConfidence(int value) { SetConfidence(value); return *this;}
113
115
121 inline int GetCriticality() const{ return m_criticality; }
122 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
123 inline void SetCriticality(int value) { m_criticalityHasBeenSet = true; m_criticality = value; }
124 inline BatchUpdateFindingsRequest& WithCriticality(int value) { SetCriticality(value); return *this;}
126
128
135 inline const Aws::Vector<Aws::String>& GetTypes() const{ return m_types; }
136 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
137 inline void SetTypes(const Aws::Vector<Aws::String>& value) { m_typesHasBeenSet = true; m_types = value; }
138 inline void SetTypes(Aws::Vector<Aws::String>&& value) { m_typesHasBeenSet = true; m_types = std::move(value); }
139 inline BatchUpdateFindingsRequest& WithTypes(const Aws::Vector<Aws::String>& value) { SetTypes(value); return *this;}
140 inline BatchUpdateFindingsRequest& WithTypes(Aws::Vector<Aws::String>&& value) { SetTypes(std::move(value)); return *this;}
141 inline BatchUpdateFindingsRequest& AddTypes(const Aws::String& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
142 inline BatchUpdateFindingsRequest& AddTypes(Aws::String&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; }
143 inline BatchUpdateFindingsRequest& AddTypes(const char* value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
145
147
151 inline const Aws::Map<Aws::String, Aws::String>& GetUserDefinedFields() const{ return m_userDefinedFields; }
152 inline bool UserDefinedFieldsHasBeenSet() const { return m_userDefinedFieldsHasBeenSet; }
153 inline void SetUserDefinedFields(const Aws::Map<Aws::String, Aws::String>& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields = value; }
154 inline void SetUserDefinedFields(Aws::Map<Aws::String, Aws::String>&& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields = std::move(value); }
157 inline BatchUpdateFindingsRequest& AddUserDefinedFields(const Aws::String& key, const Aws::String& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(key, value); return *this; }
158 inline BatchUpdateFindingsRequest& AddUserDefinedFields(Aws::String&& key, const Aws::String& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(std::move(key), value); return *this; }
159 inline BatchUpdateFindingsRequest& AddUserDefinedFields(const Aws::String& key, Aws::String&& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(key, std::move(value)); return *this; }
160 inline BatchUpdateFindingsRequest& AddUserDefinedFields(Aws::String&& key, Aws::String&& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(std::move(key), std::move(value)); return *this; }
161 inline BatchUpdateFindingsRequest& AddUserDefinedFields(const char* key, Aws::String&& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(key, std::move(value)); return *this; }
162 inline BatchUpdateFindingsRequest& AddUserDefinedFields(Aws::String&& key, const char* value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(std::move(key), value); return *this; }
163 inline BatchUpdateFindingsRequest& AddUserDefinedFields(const char* key, const char* value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(key, value); return *this; }
165
167
171 inline const WorkflowUpdate& GetWorkflow() const{ return m_workflow; }
172 inline bool WorkflowHasBeenSet() const { return m_workflowHasBeenSet; }
173 inline void SetWorkflow(const WorkflowUpdate& value) { m_workflowHasBeenSet = true; m_workflow = value; }
174 inline void SetWorkflow(WorkflowUpdate&& value) { m_workflowHasBeenSet = true; m_workflow = std::move(value); }
175 inline BatchUpdateFindingsRequest& WithWorkflow(const WorkflowUpdate& value) { SetWorkflow(value); return *this;}
176 inline BatchUpdateFindingsRequest& WithWorkflow(WorkflowUpdate&& value) { SetWorkflow(std::move(value)); return *this;}
178
180
183 inline const Aws::Vector<RelatedFinding>& GetRelatedFindings() const{ return m_relatedFindings; }
184 inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
185 inline void SetRelatedFindings(const Aws::Vector<RelatedFinding>& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = value; }
186 inline void SetRelatedFindings(Aws::Vector<RelatedFinding>&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = std::move(value); }
189 inline BatchUpdateFindingsRequest& AddRelatedFindings(const RelatedFinding& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.push_back(value); return *this; }
190 inline BatchUpdateFindingsRequest& AddRelatedFindings(RelatedFinding&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.push_back(std::move(value)); return *this; }
192 private:
193
195 bool m_findingIdentifiersHasBeenSet = false;
196
197 NoteUpdate m_note;
198 bool m_noteHasBeenSet = false;
199
200 SeverityUpdate m_severity;
201 bool m_severityHasBeenSet = false;
202
203 VerificationState m_verificationState;
204 bool m_verificationStateHasBeenSet = false;
205
206 int m_confidence;
207 bool m_confidenceHasBeenSet = false;
208
209 int m_criticality;
210 bool m_criticalityHasBeenSet = false;
211
213 bool m_typesHasBeenSet = false;
214
215 Aws::Map<Aws::String, Aws::String> m_userDefinedFields;
216 bool m_userDefinedFieldsHasBeenSet = false;
217
218 WorkflowUpdate m_workflow;
219 bool m_workflowHasBeenSet = false;
220
221 Aws::Vector<RelatedFinding> m_relatedFindings;
222 bool m_relatedFindingsHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace SecurityHub
227} // namespace Aws
BatchUpdateFindingsRequest & AddUserDefinedFields(Aws::String &&key, const Aws::String &value)
BatchUpdateFindingsRequest & WithTypes(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetUserDefinedFields() const
void SetFindingIdentifiers(const Aws::Vector< AwsSecurityFindingIdentifier > &value)
BatchUpdateFindingsRequest & WithRelatedFindings(const Aws::Vector< RelatedFinding > &value)
BatchUpdateFindingsRequest & AddTypes(Aws::String &&value)
BatchUpdateFindingsRequest & WithWorkflow(WorkflowUpdate &&value)
void SetTypes(const Aws::Vector< Aws::String > &value)
BatchUpdateFindingsRequest & AddUserDefinedFields(const char *key, Aws::String &&value)
BatchUpdateFindingsRequest & AddRelatedFindings(const RelatedFinding &value)
BatchUpdateFindingsRequest & AddUserDefinedFields(const char *key, const char *value)
BatchUpdateFindingsRequest & WithWorkflow(const WorkflowUpdate &value)
BatchUpdateFindingsRequest & WithNote(NoteUpdate &&value)
BatchUpdateFindingsRequest & WithVerificationState(VerificationState &&value)
void SetUserDefinedFields(Aws::Map< Aws::String, Aws::String > &&value)
BatchUpdateFindingsRequest & WithUserDefinedFields(const Aws::Map< Aws::String, Aws::String > &value)
void SetFindingIdentifiers(Aws::Vector< AwsSecurityFindingIdentifier > &&value)
BatchUpdateFindingsRequest & AddUserDefinedFields(const Aws::String &key, Aws::String &&value)
BatchUpdateFindingsRequest & AddUserDefinedFields(Aws::String &&key, const char *value)
BatchUpdateFindingsRequest & AddUserDefinedFields(Aws::String &&key, Aws::String &&value)
BatchUpdateFindingsRequest & WithTypes(const Aws::Vector< Aws::String > &value)
BatchUpdateFindingsRequest & AddTypes(const Aws::String &value)
BatchUpdateFindingsRequest & WithNote(const NoteUpdate &value)
virtual const char * GetServiceRequestName() const override
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
BatchUpdateFindingsRequest & AddFindingIdentifiers(const AwsSecurityFindingIdentifier &value)
BatchUpdateFindingsRequest & WithRelatedFindings(Aws::Vector< RelatedFinding > &&value)
BatchUpdateFindingsRequest & WithFindingIdentifiers(const Aws::Vector< AwsSecurityFindingIdentifier > &value)
BatchUpdateFindingsRequest & WithSeverity(const SeverityUpdate &value)
void SetRelatedFindings(const Aws::Vector< RelatedFinding > &value)
const Aws::Vector< AwsSecurityFindingIdentifier > & GetFindingIdentifiers() const
BatchUpdateFindingsRequest & WithSeverity(SeverityUpdate &&value)
BatchUpdateFindingsRequest & AddFindingIdentifiers(AwsSecurityFindingIdentifier &&value)
BatchUpdateFindingsRequest & AddRelatedFindings(RelatedFinding &&value)
const Aws::Vector< Aws::String > & GetTypes() const
const Aws::Vector< RelatedFinding > & GetRelatedFindings() const
void SetUserDefinedFields(const Aws::Map< Aws::String, Aws::String > &value)
void SetRelatedFindings(Aws::Vector< RelatedFinding > &&value)
BatchUpdateFindingsRequest & WithUserDefinedFields(Aws::Map< Aws::String, Aws::String > &&value)
BatchUpdateFindingsRequest & AddTypes(const char *value)
BatchUpdateFindingsRequest & AddUserDefinedFields(const Aws::String &key, const Aws::String &value)
BatchUpdateFindingsRequest & WithVerificationState(const VerificationState &value)
BatchUpdateFindingsRequest & WithFindingIdentifiers(Aws::Vector< AwsSecurityFindingIdentifier > &&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