AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AutomationRulesConfig.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/RuleStatus.h>
10#include <aws/securityhub/model/AutomationRulesFindingFilters.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/securityhub/model/AutomationRulesAction.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SECURITYHUB_API AutomationRulesConfig() = default;
41 AWS_SECURITYHUB_API AutomationRulesConfig(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
51 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
52 template<typename RuleArnT = Aws::String>
53 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
54 template<typename RuleArnT = Aws::String>
55 AutomationRulesConfig& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
57
59
64 inline RuleStatus GetRuleStatus() const { return m_ruleStatus; }
65 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
66 inline void SetRuleStatus(RuleStatus value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = value; }
67 inline AutomationRulesConfig& WithRuleStatus(RuleStatus value) { SetRuleStatus(value); return *this;}
69
71
76 inline int GetRuleOrder() const { return m_ruleOrder; }
77 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
78 inline void SetRuleOrder(int value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = value; }
79 inline AutomationRulesConfig& WithRuleOrder(int value) { SetRuleOrder(value); return *this;}
81
83
86 inline const Aws::String& GetRuleName() const { return m_ruleName; }
87 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
88 template<typename RuleNameT = Aws::String>
89 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
90 template<typename RuleNameT = Aws::String>
91 AutomationRulesConfig& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template<typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
102 template<typename DescriptionT = Aws::String>
103 AutomationRulesConfig& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
105
107
115 inline bool GetIsTerminal() const { return m_isTerminal; }
116 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
117 inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; }
118 inline AutomationRulesConfig& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;}
120
122
130 inline const AutomationRulesFindingFilters& GetCriteria() const { return m_criteria; }
131 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
132 template<typename CriteriaT = AutomationRulesFindingFilters>
133 void SetCriteria(CriteriaT&& value) { m_criteriaHasBeenSet = true; m_criteria = std::forward<CriteriaT>(value); }
134 template<typename CriteriaT = AutomationRulesFindingFilters>
135 AutomationRulesConfig& WithCriteria(CriteriaT&& value) { SetCriteria(std::forward<CriteriaT>(value)); return *this;}
137
139
143 inline const Aws::Vector<AutomationRulesAction>& GetActions() const { return m_actions; }
144 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
145 template<typename ActionsT = Aws::Vector<AutomationRulesAction>>
146 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
147 template<typename ActionsT = Aws::Vector<AutomationRulesAction>>
148 AutomationRulesConfig& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
149 template<typename ActionsT = AutomationRulesAction>
150 AutomationRulesConfig& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
152
154
160 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
161 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
162 template<typename CreatedAtT = Aws::Utils::DateTime>
163 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
164 template<typename CreatedAtT = Aws::Utils::DateTime>
165 AutomationRulesConfig& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
167
169
175 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
176 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
177 template<typename UpdatedAtT = Aws::Utils::DateTime>
178 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
179 template<typename UpdatedAtT = Aws::Utils::DateTime>
180 AutomationRulesConfig& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
182
184
187 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
188 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
189 template<typename CreatedByT = Aws::String>
190 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
191 template<typename CreatedByT = Aws::String>
192 AutomationRulesConfig& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
194 private:
195
196 Aws::String m_ruleArn;
197 bool m_ruleArnHasBeenSet = false;
198
199 RuleStatus m_ruleStatus{RuleStatus::NOT_SET};
200 bool m_ruleStatusHasBeenSet = false;
201
202 int m_ruleOrder{0};
203 bool m_ruleOrderHasBeenSet = false;
204
205 Aws::String m_ruleName;
206 bool m_ruleNameHasBeenSet = false;
207
208 Aws::String m_description;
209 bool m_descriptionHasBeenSet = false;
210
211 bool m_isTerminal{false};
212 bool m_isTerminalHasBeenSet = false;
213
214 AutomationRulesFindingFilters m_criteria;
215 bool m_criteriaHasBeenSet = false;
216
218 bool m_actionsHasBeenSet = false;
219
220 Aws::Utils::DateTime m_createdAt{};
221 bool m_createdAtHasBeenSet = false;
222
223 Aws::Utils::DateTime m_updatedAt{};
224 bool m_updatedAtHasBeenSet = false;
225
226 Aws::String m_createdBy;
227 bool m_createdByHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace SecurityHub
232} // 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