AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AutomationRulesConfig.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/AutomationRulesAction.h>
12#include <aws/securityhub/model/AutomationRulesFindingFilters.h>
13#include <aws/securityhub/model/RuleStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub {
25namespace Model {
26
34 public:
35 AWS_SECURITYHUB_API AutomationRulesConfig() = default;
36 AWS_SECURITYHUB_API AutomationRulesConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
45 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
46 template <typename RuleArnT = Aws::String>
47 void SetRuleArn(RuleArnT&& value) {
48 m_ruleArnHasBeenSet = true;
49 m_ruleArn = std::forward<RuleArnT>(value);
50 }
51 template <typename RuleArnT = Aws::String>
53 SetRuleArn(std::forward<RuleArnT>(value));
54 return *this;
55 }
57
59
64 inline RuleStatus GetRuleStatus() const { return m_ruleStatus; }
65 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
66 inline void SetRuleStatus(RuleStatus value) {
67 m_ruleStatusHasBeenSet = true;
68 m_ruleStatus = value;
69 }
71 SetRuleStatus(value);
72 return *this;
73 }
75
77
82 inline int GetRuleOrder() const { return m_ruleOrder; }
83 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
84 inline void SetRuleOrder(int value) {
85 m_ruleOrderHasBeenSet = true;
86 m_ruleOrder = value;
87 }
89 SetRuleOrder(value);
90 return *this;
91 }
93
95
98 inline const Aws::String& GetRuleName() const { return m_ruleName; }
99 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
100 template <typename RuleNameT = Aws::String>
101 void SetRuleName(RuleNameT&& value) {
102 m_ruleNameHasBeenSet = true;
103 m_ruleName = std::forward<RuleNameT>(value);
104 }
105 template <typename RuleNameT = Aws::String>
107 SetRuleName(std::forward<RuleNameT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
124 AutomationRulesConfig& WithDescription(DescriptionT&& value) {
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
139 inline bool GetIsTerminal() const { return m_isTerminal; }
140 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
141 inline void SetIsTerminal(bool value) {
142 m_isTerminalHasBeenSet = true;
143 m_isTerminal = value;
144 }
146 SetIsTerminal(value);
147 return *this;
148 }
150
152
160 inline const AutomationRulesFindingFilters& GetCriteria() const { return m_criteria; }
161 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
162 template <typename CriteriaT = AutomationRulesFindingFilters>
163 void SetCriteria(CriteriaT&& value) {
164 m_criteriaHasBeenSet = true;
165 m_criteria = std::forward<CriteriaT>(value);
166 }
167 template <typename CriteriaT = AutomationRulesFindingFilters>
169 SetCriteria(std::forward<CriteriaT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::Vector<AutomationRulesAction>& GetActions() const { return m_actions; }
180 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
181 template <typename ActionsT = Aws::Vector<AutomationRulesAction>>
182 void SetActions(ActionsT&& value) {
183 m_actionsHasBeenSet = true;
184 m_actions = std::forward<ActionsT>(value);
185 }
186 template <typename ActionsT = Aws::Vector<AutomationRulesAction>>
188 SetActions(std::forward<ActionsT>(value));
189 return *this;
190 }
191 template <typename ActionsT = AutomationRulesAction>
193 m_actionsHasBeenSet = true;
194 m_actions.emplace_back(std::forward<ActionsT>(value));
195 return *this;
196 }
198
200
206 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
207 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
208 template <typename CreatedAtT = Aws::Utils::DateTime>
209 void SetCreatedAt(CreatedAtT&& value) {
210 m_createdAtHasBeenSet = true;
211 m_createdAt = std::forward<CreatedAtT>(value);
212 }
213 template <typename CreatedAtT = Aws::Utils::DateTime>
215 SetCreatedAt(std::forward<CreatedAtT>(value));
216 return *this;
217 }
219
221
227 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
228 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
229 template <typename UpdatedAtT = Aws::Utils::DateTime>
230 void SetUpdatedAt(UpdatedAtT&& value) {
231 m_updatedAtHasBeenSet = true;
232 m_updatedAt = std::forward<UpdatedAtT>(value);
233 }
234 template <typename UpdatedAtT = Aws::Utils::DateTime>
236 SetUpdatedAt(std::forward<UpdatedAtT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
246 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
247 template <typename CreatedByT = Aws::String>
248 void SetCreatedBy(CreatedByT&& value) {
249 m_createdByHasBeenSet = true;
250 m_createdBy = std::forward<CreatedByT>(value);
251 }
252 template <typename CreatedByT = Aws::String>
254 SetCreatedBy(std::forward<CreatedByT>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_ruleArn;
260
261 RuleStatus m_ruleStatus{RuleStatus::NOT_SET};
262
263 int m_ruleOrder{0};
264
265 Aws::String m_ruleName;
266
267 Aws::String m_description;
268
269 bool m_isTerminal{false};
270
271 AutomationRulesFindingFilters m_criteria;
272
274
275 Aws::Utils::DateTime m_createdAt{};
276
277 Aws::Utils::DateTime m_updatedAt{};
278
279 Aws::String m_createdBy;
280 bool m_ruleArnHasBeenSet = false;
281 bool m_ruleStatusHasBeenSet = false;
282 bool m_ruleOrderHasBeenSet = false;
283 bool m_ruleNameHasBeenSet = false;
284 bool m_descriptionHasBeenSet = false;
285 bool m_isTerminalHasBeenSet = false;
286 bool m_criteriaHasBeenSet = false;
287 bool m_actionsHasBeenSet = false;
288 bool m_createdAtHasBeenSet = false;
289 bool m_updatedAtHasBeenSet = false;
290 bool m_createdByHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace SecurityHub
295} // namespace Aws
AutomationRulesConfig & WithIsTerminal(bool value)
AutomationRulesConfig & AddActions(ActionsT &&value)
const AutomationRulesFindingFilters & GetCriteria() const
AutomationRulesConfig & WithRuleOrder(int value)
const Aws::Utils::DateTime & GetCreatedAt() const
AutomationRulesConfig & WithActions(ActionsT &&value)
AWS_SECURITYHUB_API AutomationRulesConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AutomationRulesConfig & WithRuleName(RuleNameT &&value)
const Aws::Vector< AutomationRulesAction > & GetActions() const
AutomationRulesConfig & WithCriteria(CriteriaT &&value)
AutomationRulesConfig & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API AutomationRulesConfig()=default
AutomationRulesConfig & WithRuleStatus(RuleStatus value)
AutomationRulesConfig & WithRuleArn(RuleArnT &&value)
AutomationRulesConfig & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_SECURITYHUB_API AutomationRulesConfig(Aws::Utils::Json::JsonView jsonValue)
AutomationRulesConfig & WithCreatedBy(CreatedByT &&value)
AutomationRulesConfig & WithUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue