AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutomationRulesFindingFieldsUpdate.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/NoteUpdate.h>
9#include <aws/securityhub/model/SeverityUpdate.h>
10#include <aws/securityhub/model/VerificationState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/securityhub/model/WorkflowUpdate.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/securityhub/model/RelatedFinding.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SecurityHub
29{
30namespace Model
31{
32
40 {
41 public:
45 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
50 inline const NoteUpdate& GetNote() const{ return m_note; }
51 inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; }
52 inline void SetNote(const NoteUpdate& value) { m_noteHasBeenSet = true; m_note = value; }
53 inline void SetNote(NoteUpdate&& value) { m_noteHasBeenSet = true; m_note = std::move(value); }
54 inline AutomationRulesFindingFieldsUpdate& WithNote(const NoteUpdate& value) { SetNote(value); return *this;}
55 inline AutomationRulesFindingFieldsUpdate& WithNote(NoteUpdate&& value) { SetNote(std::move(value)); return *this;}
57
59
60 inline const SeverityUpdate& GetSeverity() const{ return m_severity; }
61 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
62 inline void SetSeverity(const SeverityUpdate& value) { m_severityHasBeenSet = true; m_severity = value; }
63 inline void SetSeverity(SeverityUpdate&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
64 inline AutomationRulesFindingFieldsUpdate& WithSeverity(const SeverityUpdate& value) { SetSeverity(value); return *this;}
65 inline AutomationRulesFindingFieldsUpdate& WithSeverity(SeverityUpdate&& value) { SetSeverity(std::move(value)); return *this;}
67
69
73 inline const VerificationState& GetVerificationState() const{ return m_verificationState; }
74 inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; }
75 inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; }
76 inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); }
80
82
85 inline int GetConfidence() const{ return m_confidence; }
86 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
87 inline void SetConfidence(int value) { m_confidenceHasBeenSet = true; m_confidence = value; }
88 inline AutomationRulesFindingFieldsUpdate& WithConfidence(int value) { SetConfidence(value); return *this;}
90
92
96 inline int GetCriticality() const{ return m_criticality; }
97 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
98 inline void SetCriticality(int value) { m_criticalityHasBeenSet = true; m_criticality = value; }
99 inline AutomationRulesFindingFieldsUpdate& WithCriticality(int value) { SetCriticality(value); return *this;}
101
103
106 inline const Aws::Vector<Aws::String>& GetTypes() const{ return m_types; }
107 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
108 inline void SetTypes(const Aws::Vector<Aws::String>& value) { m_typesHasBeenSet = true; m_types = value; }
109 inline void SetTypes(Aws::Vector<Aws::String>&& value) { m_typesHasBeenSet = true; m_types = std::move(value); }
111 inline AutomationRulesFindingFieldsUpdate& WithTypes(Aws::Vector<Aws::String>&& value) { SetTypes(std::move(value)); return *this;}
112 inline AutomationRulesFindingFieldsUpdate& AddTypes(const Aws::String& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
113 inline AutomationRulesFindingFieldsUpdate& AddTypes(Aws::String&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; }
114 inline AutomationRulesFindingFieldsUpdate& AddTypes(const char* value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
116
118
122 inline const Aws::Map<Aws::String, Aws::String>& GetUserDefinedFields() const{ return m_userDefinedFields; }
123 inline bool UserDefinedFieldsHasBeenSet() const { return m_userDefinedFieldsHasBeenSet; }
124 inline void SetUserDefinedFields(const Aws::Map<Aws::String, Aws::String>& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields = value; }
125 inline void SetUserDefinedFields(Aws::Map<Aws::String, Aws::String>&& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields = std::move(value); }
128 inline AutomationRulesFindingFieldsUpdate& AddUserDefinedFields(const Aws::String& key, const Aws::String& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(key, value); return *this; }
129 inline AutomationRulesFindingFieldsUpdate& AddUserDefinedFields(Aws::String&& key, const Aws::String& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(std::move(key), value); return *this; }
130 inline AutomationRulesFindingFieldsUpdate& AddUserDefinedFields(const Aws::String& key, Aws::String&& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(key, std::move(value)); return *this; }
131 inline AutomationRulesFindingFieldsUpdate& AddUserDefinedFields(Aws::String&& key, Aws::String&& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(std::move(key), std::move(value)); return *this; }
132 inline AutomationRulesFindingFieldsUpdate& AddUserDefinedFields(const char* key, Aws::String&& value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(key, std::move(value)); return *this; }
133 inline AutomationRulesFindingFieldsUpdate& AddUserDefinedFields(Aws::String&& key, const char* value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(std::move(key), value); return *this; }
134 inline AutomationRulesFindingFieldsUpdate& AddUserDefinedFields(const char* key, const char* value) { m_userDefinedFieldsHasBeenSet = true; m_userDefinedFields.emplace(key, value); return *this; }
136
138
139 inline const WorkflowUpdate& GetWorkflow() const{ return m_workflow; }
140 inline bool WorkflowHasBeenSet() const { return m_workflowHasBeenSet; }
141 inline void SetWorkflow(const WorkflowUpdate& value) { m_workflowHasBeenSet = true; m_workflow = value; }
142 inline void SetWorkflow(WorkflowUpdate&& value) { m_workflowHasBeenSet = true; m_workflow = std::move(value); }
143 inline AutomationRulesFindingFieldsUpdate& WithWorkflow(const WorkflowUpdate& value) { SetWorkflow(value); return *this;}
144 inline AutomationRulesFindingFieldsUpdate& WithWorkflow(WorkflowUpdate&& value) { SetWorkflow(std::move(value)); return *this;}
146
148
152 inline const Aws::Vector<RelatedFinding>& GetRelatedFindings() const{ return m_relatedFindings; }
153 inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
154 inline void SetRelatedFindings(const Aws::Vector<RelatedFinding>& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = value; }
155 inline void SetRelatedFindings(Aws::Vector<RelatedFinding>&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = std::move(value); }
158 inline AutomationRulesFindingFieldsUpdate& AddRelatedFindings(const RelatedFinding& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.push_back(value); return *this; }
159 inline AutomationRulesFindingFieldsUpdate& AddRelatedFindings(RelatedFinding&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.push_back(std::move(value)); return *this; }
161 private:
162
163 NoteUpdate m_note;
164 bool m_noteHasBeenSet = false;
165
166 SeverityUpdate m_severity;
167 bool m_severityHasBeenSet = false;
168
169 VerificationState m_verificationState;
170 bool m_verificationStateHasBeenSet = false;
171
172 int m_confidence;
173 bool m_confidenceHasBeenSet = false;
174
175 int m_criticality;
176 bool m_criticalityHasBeenSet = false;
177
179 bool m_typesHasBeenSet = false;
180
181 Aws::Map<Aws::String, Aws::String> m_userDefinedFields;
182 bool m_userDefinedFieldsHasBeenSet = false;
183
184 WorkflowUpdate m_workflow;
185 bool m_workflowHasBeenSet = false;
186
187 Aws::Vector<RelatedFinding> m_relatedFindings;
188 bool m_relatedFindingsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace SecurityHub
193} // namespace Aws
AutomationRulesFindingFieldsUpdate & AddUserDefinedFields(Aws::String &&key, const Aws::String &value)
AWS_SECURITYHUB_API AutomationRulesFindingFieldsUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomationRulesFindingFieldsUpdate & WithTypes(Aws::Vector< Aws::String > &&value)
AutomationRulesFindingFieldsUpdate & AddRelatedFindings(RelatedFinding &&value)
AutomationRulesFindingFieldsUpdate & AddUserDefinedFields(const char *key, Aws::String &&value)
AutomationRulesFindingFieldsUpdate & WithNote(NoteUpdate &&value)
const Aws::Map< Aws::String, Aws::String > & GetUserDefinedFields() const
void SetUserDefinedFields(Aws::Map< Aws::String, Aws::String > &&value)
AutomationRulesFindingFieldsUpdate & WithRelatedFindings(Aws::Vector< RelatedFinding > &&value)
AutomationRulesFindingFieldsUpdate & AddUserDefinedFields(const Aws::String &key, const Aws::String &value)
AutomationRulesFindingFieldsUpdate & WithNote(const NoteUpdate &value)
AutomationRulesFindingFieldsUpdate & AddUserDefinedFields(const Aws::String &key, Aws::String &&value)
AutomationRulesFindingFieldsUpdate & WithSeverity(const SeverityUpdate &value)
AutomationRulesFindingFieldsUpdate & AddRelatedFindings(const RelatedFinding &value)
AutomationRulesFindingFieldsUpdate & AddUserDefinedFields(const char *key, const char *value)
AutomationRulesFindingFieldsUpdate & WithRelatedFindings(const Aws::Vector< RelatedFinding > &value)
AutomationRulesFindingFieldsUpdate & WithTypes(const Aws::Vector< Aws::String > &value)
AWS_SECURITYHUB_API AutomationRulesFindingFieldsUpdate(Aws::Utils::Json::JsonView jsonValue)
AutomationRulesFindingFieldsUpdate & WithUserDefinedFields(const Aws::Map< Aws::String, Aws::String > &value)
AutomationRulesFindingFieldsUpdate & WithVerificationState(VerificationState &&value)
void SetUserDefinedFields(const Aws::Map< Aws::String, Aws::String > &value)
AutomationRulesFindingFieldsUpdate & WithUserDefinedFields(Aws::Map< Aws::String, Aws::String > &&value)
AutomationRulesFindingFieldsUpdate & AddUserDefinedFields(Aws::String &&key, Aws::String &&value)
AutomationRulesFindingFieldsUpdate & AddTypes(const char *value)
AutomationRulesFindingFieldsUpdate & AddTypes(const Aws::String &value)
AutomationRulesFindingFieldsUpdate & WithWorkflow(const WorkflowUpdate &value)
AutomationRulesFindingFieldsUpdate & AddUserDefinedFields(Aws::String &&key, const char *value)
AutomationRulesFindingFieldsUpdate & WithWorkflow(WorkflowUpdate &&value)
AutomationRulesFindingFieldsUpdate & WithSeverity(SeverityUpdate &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AutomationRulesFindingFieldsUpdate & WithVerificationState(const VerificationState &value)
AutomationRulesFindingFieldsUpdate & AddTypes(Aws::String &&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
Aws::Utils::Json::JsonValue JsonValue