AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AutomationRulesFindingFieldsUpdate.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/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/NoteUpdate.h>
12#include <aws/securityhub/model/RelatedFinding.h>
13#include <aws/securityhub/model/SeverityUpdate.h>
14#include <aws/securityhub/model/VerificationState.h>
15#include <aws/securityhub/model/WorkflowUpdate.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub {
27namespace Model {
28
36 public:
37 AWS_SECURITYHUB_API AutomationRulesFindingFieldsUpdate() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
44 inline const NoteUpdate& GetNote() const { return m_note; }
45 inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; }
46 template <typename NoteT = NoteUpdate>
47 void SetNote(NoteT&& value) {
48 m_noteHasBeenSet = true;
49 m_note = std::forward<NoteT>(value);
50 }
51 template <typename NoteT = NoteUpdate>
53 SetNote(std::forward<NoteT>(value));
54 return *this;
55 }
57
59
60 inline const SeverityUpdate& GetSeverity() const { return m_severity; }
61 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
62 template <typename SeverityT = SeverityUpdate>
63 void SetSeverity(SeverityT&& value) {
64 m_severityHasBeenSet = true;
65 m_severity = std::forward<SeverityT>(value);
66 }
67 template <typename SeverityT = SeverityUpdate>
69 SetSeverity(std::forward<SeverityT>(value));
70 return *this;
71 }
73
75
79 inline VerificationState GetVerificationState() const { return m_verificationState; }
80 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
82 m_verificationStateHasBeenSet = true;
83 m_verificationState = value;
84 }
87 return *this;
88 }
90
92
95 inline int GetConfidence() const { return m_confidence; }
96 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
97 inline void SetConfidence(int value) {
98 m_confidenceHasBeenSet = true;
99 m_confidence = value;
100 }
102 SetConfidence(value);
103 return *this;
104 }
106
108
112 inline int GetCriticality() const { return m_criticality; }
113 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
114 inline void SetCriticality(int value) {
115 m_criticalityHasBeenSet = true;
116 m_criticality = value;
117 }
119 SetCriticality(value);
120 return *this;
121 }
123
125
128 inline const Aws::Vector<Aws::String>& GetTypes() const { return m_types; }
129 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
130 template <typename TypesT = Aws::Vector<Aws::String>>
131 void SetTypes(TypesT&& value) {
132 m_typesHasBeenSet = true;
133 m_types = std::forward<TypesT>(value);
134 }
135 template <typename TypesT = Aws::Vector<Aws::String>>
137 SetTypes(std::forward<TypesT>(value));
138 return *this;
139 }
140 template <typename TypesT = Aws::String>
142 m_typesHasBeenSet = true;
143 m_types.emplace_back(std::forward<TypesT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Map<Aws::String, Aws::String>& GetUserDefinedFields() const { return m_userDefinedFields; }
154 inline bool UserDefinedFieldsHasBeenSet() const { return m_userDefinedFieldsHasBeenSet; }
155 template <typename UserDefinedFieldsT = Aws::Map<Aws::String, Aws::String>>
156 void SetUserDefinedFields(UserDefinedFieldsT&& value) {
157 m_userDefinedFieldsHasBeenSet = true;
158 m_userDefinedFields = std::forward<UserDefinedFieldsT>(value);
159 }
160 template <typename UserDefinedFieldsT = Aws::Map<Aws::String, Aws::String>>
162 SetUserDefinedFields(std::forward<UserDefinedFieldsT>(value));
163 return *this;
164 }
165 template <typename UserDefinedFieldsKeyT = Aws::String, typename UserDefinedFieldsValueT = Aws::String>
166 AutomationRulesFindingFieldsUpdate& AddUserDefinedFields(UserDefinedFieldsKeyT&& key, UserDefinedFieldsValueT&& value) {
167 m_userDefinedFieldsHasBeenSet = true;
168 m_userDefinedFields.emplace(std::forward<UserDefinedFieldsKeyT>(key), std::forward<UserDefinedFieldsValueT>(value));
169 return *this;
170 }
172
174
175 inline const WorkflowUpdate& GetWorkflow() const { return m_workflow; }
176 inline bool WorkflowHasBeenSet() const { return m_workflowHasBeenSet; }
177 template <typename WorkflowT = WorkflowUpdate>
178 void SetWorkflow(WorkflowT&& value) {
179 m_workflowHasBeenSet = true;
180 m_workflow = std::forward<WorkflowT>(value);
181 }
182 template <typename WorkflowT = WorkflowUpdate>
184 SetWorkflow(std::forward<WorkflowT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::Vector<RelatedFinding>& GetRelatedFindings() const { return m_relatedFindings; }
195 inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
196 template <typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
197 void SetRelatedFindings(RelatedFindingsT&& value) {
198 m_relatedFindingsHasBeenSet = true;
199 m_relatedFindings = std::forward<RelatedFindingsT>(value);
200 }
201 template <typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
203 SetRelatedFindings(std::forward<RelatedFindingsT>(value));
204 return *this;
205 }
206 template <typename RelatedFindingsT = RelatedFinding>
208 m_relatedFindingsHasBeenSet = true;
209 m_relatedFindings.emplace_back(std::forward<RelatedFindingsT>(value));
210 return *this;
211 }
213 private:
214 NoteUpdate m_note;
215
216 SeverityUpdate m_severity;
217
219
220 int m_confidence{0};
221
222 int m_criticality{0};
223
225
226 Aws::Map<Aws::String, Aws::String> m_userDefinedFields;
227
228 WorkflowUpdate m_workflow;
229
230 Aws::Vector<RelatedFinding> m_relatedFindings;
231 bool m_noteHasBeenSet = false;
232 bool m_severityHasBeenSet = false;
233 bool m_verificationStateHasBeenSet = false;
234 bool m_confidenceHasBeenSet = false;
235 bool m_criticalityHasBeenSet = false;
236 bool m_typesHasBeenSet = false;
237 bool m_userDefinedFieldsHasBeenSet = false;
238 bool m_workflowHasBeenSet = false;
239 bool m_relatedFindingsHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace SecurityHub
244} // namespace Aws
AWS_SECURITYHUB_API AutomationRulesFindingFieldsUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetUserDefinedFields() const
AWS_SECURITYHUB_API AutomationRulesFindingFieldsUpdate()=default
AutomationRulesFindingFieldsUpdate & WithUserDefinedFields(UserDefinedFieldsT &&value)
AutomationRulesFindingFieldsUpdate & WithVerificationState(VerificationState value)
AWS_SECURITYHUB_API AutomationRulesFindingFieldsUpdate(Aws::Utils::Json::JsonView jsonValue)
AutomationRulesFindingFieldsUpdate & AddRelatedFindings(RelatedFindingsT &&value)
AutomationRulesFindingFieldsUpdate & AddUserDefinedFields(UserDefinedFieldsKeyT &&key, UserDefinedFieldsValueT &&value)
AutomationRulesFindingFieldsUpdate & WithRelatedFindings(RelatedFindingsT &&value)
AutomationRulesFindingFieldsUpdate & WithSeverity(SeverityT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AutomationRulesFindingFieldsUpdate & WithWorkflow(WorkflowT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue