AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
53 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
54 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
55 inline AutomationRulesConfig& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
56 inline AutomationRulesConfig& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
57 inline AutomationRulesConfig& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
59
61
66 inline const RuleStatus& GetRuleStatus() const{ return m_ruleStatus; }
67 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
68 inline void SetRuleStatus(const RuleStatus& value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = value; }
69 inline void SetRuleStatus(RuleStatus&& value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = std::move(value); }
70 inline AutomationRulesConfig& WithRuleStatus(const RuleStatus& value) { SetRuleStatus(value); return *this;}
71 inline AutomationRulesConfig& WithRuleStatus(RuleStatus&& value) { SetRuleStatus(std::move(value)); return *this;}
73
75
80 inline int GetRuleOrder() const{ return m_ruleOrder; }
81 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
82 inline void SetRuleOrder(int value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = value; }
83 inline AutomationRulesConfig& WithRuleOrder(int value) { SetRuleOrder(value); return *this;}
85
87
90 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
91 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
92 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
93 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
94 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
95 inline AutomationRulesConfig& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
96 inline AutomationRulesConfig& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
97 inline AutomationRulesConfig& WithRuleName(const char* value) { SetRuleName(value); return *this;}
99
101
104 inline const Aws::String& GetDescription() const{ return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
107 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
108 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
109 inline AutomationRulesConfig& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110 inline AutomationRulesConfig& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 inline AutomationRulesConfig& WithDescription(const char* value) { SetDescription(value); return *this;}
113
115
123 inline bool GetIsTerminal() const{ return m_isTerminal; }
124 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
125 inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; }
126 inline AutomationRulesConfig& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;}
128
130
138 inline const AutomationRulesFindingFilters& GetCriteria() const{ return m_criteria; }
139 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
140 inline void SetCriteria(const AutomationRulesFindingFilters& value) { m_criteriaHasBeenSet = true; m_criteria = value; }
141 inline void SetCriteria(AutomationRulesFindingFilters&& value) { m_criteriaHasBeenSet = true; m_criteria = std::move(value); }
143 inline AutomationRulesConfig& WithCriteria(AutomationRulesFindingFilters&& value) { SetCriteria(std::move(value)); return *this;}
145
147
151 inline const Aws::Vector<AutomationRulesAction>& GetActions() const{ return m_actions; }
152 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
153 inline void SetActions(const Aws::Vector<AutomationRulesAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
154 inline void SetActions(Aws::Vector<AutomationRulesAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
156 inline AutomationRulesConfig& WithActions(Aws::Vector<AutomationRulesAction>&& value) { SetActions(std::move(value)); return *this;}
157 inline AutomationRulesConfig& AddActions(const AutomationRulesAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
158 inline AutomationRulesConfig& AddActions(AutomationRulesAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
160
162
179 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
180 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
181 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
182 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
183 inline AutomationRulesConfig& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
184 inline AutomationRulesConfig& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
186
188
205 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
206 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
207 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
208 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
209 inline AutomationRulesConfig& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
210 inline AutomationRulesConfig& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
212
214
217 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
218 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
219 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
220 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
221 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
222 inline AutomationRulesConfig& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
223 inline AutomationRulesConfig& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
224 inline AutomationRulesConfig& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
226 private:
227
228 Aws::String m_ruleArn;
229 bool m_ruleArnHasBeenSet = false;
230
231 RuleStatus m_ruleStatus;
232 bool m_ruleStatusHasBeenSet = false;
233
234 int m_ruleOrder;
235 bool m_ruleOrderHasBeenSet = false;
236
237 Aws::String m_ruleName;
238 bool m_ruleNameHasBeenSet = false;
239
240 Aws::String m_description;
241 bool m_descriptionHasBeenSet = false;
242
243 bool m_isTerminal;
244 bool m_isTerminalHasBeenSet = false;
245
247 bool m_criteriaHasBeenSet = false;
248
250 bool m_actionsHasBeenSet = false;
251
252 Aws::Utils::DateTime m_createdAt;
253 bool m_createdAtHasBeenSet = false;
254
255 Aws::Utils::DateTime m_updatedAt;
256 bool m_updatedAtHasBeenSet = false;
257
258 Aws::String m_createdBy;
259 bool m_createdByHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace SecurityHub
264} // namespace Aws
AutomationRulesConfig & WithIsTerminal(bool value)
AutomationRulesConfig & WithCreatedBy(Aws::String &&value)
const AutomationRulesFindingFilters & GetCriteria() const
AutomationRulesConfig & WithRuleArn(Aws::String &&value)
AutomationRulesConfig & AddActions(AutomationRulesAction &&value)
AutomationRulesConfig & WithRuleStatus(const RuleStatus &value)
AutomationRulesConfig & WithRuleOrder(int value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AutomationRulesConfig & WithRuleName(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_SECURITYHUB_API AutomationRulesConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomationRulesConfig & WithCriteria(AutomationRulesFindingFilters &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AutomationRulesConfig & WithRuleArn(const Aws::String &value)
AutomationRulesConfig & AddActions(const AutomationRulesAction &value)
AutomationRulesConfig & WithDescription(const Aws::String &value)
AutomationRulesConfig & WithRuleName(const Aws::String &value)
AutomationRulesConfig & WithCreatedAt(Aws::Utils::DateTime &&value)
AutomationRulesConfig & WithActions(const Aws::Vector< AutomationRulesAction > &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AutomationRulesConfig & WithDescription(const char *value)
AutomationRulesConfig & WithUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< AutomationRulesAction > & GetActions() const
AutomationRulesConfig & WithActions(Aws::Vector< AutomationRulesAction > &&value)
AutomationRulesConfig & WithRuleArn(const char *value)
AutomationRulesConfig & WithRuleName(Aws::String &&value)
AutomationRulesConfig & WithCreatedBy(const char *value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
AutomationRulesConfig & WithCreatedBy(const Aws::String &value)
AutomationRulesConfig & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
AutomationRulesConfig & WithCreatedAt(const Aws::Utils::DateTime &value)
AutomationRulesConfig & WithRuleStatus(RuleStatus &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AutomationRulesConfig & WithDescription(Aws::String &&value)
void SetCriteria(const AutomationRulesFindingFilters &value)
AWS_SECURITYHUB_API AutomationRulesConfig(Aws::Utils::Json::JsonView jsonValue)
void SetCriteria(AutomationRulesFindingFilters &&value)
void SetActions(Aws::Vector< AutomationRulesAction > &&value)
void SetActions(const Aws::Vector< AutomationRulesAction > &value)
AutomationRulesConfig & WithCriteria(const AutomationRulesFindingFilters &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