AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateAutomationRulesRequestItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AutomationRulesAction.h>
11#include <aws/securityhub/model/AutomationRulesFindingFilters.h>
12#include <aws/securityhub/model/RuleStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
33 public:
34 AWS_SECURITYHUB_API UpdateAutomationRulesRequestItem() = default;
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
44 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
45 template <typename RuleArnT = Aws::String>
46 void SetRuleArn(RuleArnT&& value) {
47 m_ruleArnHasBeenSet = true;
48 m_ruleArn = std::forward<RuleArnT>(value);
49 }
50 template <typename RuleArnT = Aws::String>
52 SetRuleArn(std::forward<RuleArnT>(value));
53 return *this;
54 }
56
58
66 inline RuleStatus GetRuleStatus() const { return m_ruleStatus; }
67 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
68 inline void SetRuleStatus(RuleStatus value) {
69 m_ruleStatusHasBeenSet = true;
70 m_ruleStatus = value;
71 }
73 SetRuleStatus(value);
74 return *this;
75 }
77
79
84 inline int GetRuleOrder() const { return m_ruleOrder; }
85 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
86 inline void SetRuleOrder(int value) {
87 m_ruleOrderHasBeenSet = true;
88 m_ruleOrder = value;
89 }
91 SetRuleOrder(value);
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetRuleName() const { return m_ruleName; }
119 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
120 template <typename RuleNameT = Aws::String>
121 void SetRuleName(RuleNameT&& value) {
122 m_ruleNameHasBeenSet = true;
123 m_ruleName = std::forward<RuleNameT>(value);
124 }
125 template <typename RuleNameT = Aws::String>
127 SetRuleName(std::forward<RuleNameT>(value));
128 return *this;
129 }
131
133
141 inline bool GetIsTerminal() const { return m_isTerminal; }
142 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
143 inline void SetIsTerminal(bool value) {
144 m_isTerminalHasBeenSet = true;
145 m_isTerminal = value;
146 }
148 SetIsTerminal(value);
149 return *this;
150 }
152
154
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 private:
199 Aws::String m_ruleArn;
200
201 RuleStatus m_ruleStatus{RuleStatus::NOT_SET};
202
203 int m_ruleOrder{0};
204
205 Aws::String m_description;
206
207 Aws::String m_ruleName;
208
209 bool m_isTerminal{false};
210
211 AutomationRulesFindingFilters m_criteria;
212
214 bool m_ruleArnHasBeenSet = false;
215 bool m_ruleStatusHasBeenSet = false;
216 bool m_ruleOrderHasBeenSet = false;
217 bool m_descriptionHasBeenSet = false;
218 bool m_ruleNameHasBeenSet = false;
219 bool m_isTerminalHasBeenSet = false;
220 bool m_criteriaHasBeenSet = false;
221 bool m_actionsHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace SecurityHub
226} // namespace Aws
UpdateAutomationRulesRequestItem & AddActions(ActionsT &&value)
UpdateAutomationRulesRequestItem & WithRuleName(RuleNameT &&value)
UpdateAutomationRulesRequestItem & WithCriteria(CriteriaT &&value)
UpdateAutomationRulesRequestItem & WithActions(ActionsT &&value)
UpdateAutomationRulesRequestItem & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API UpdateAutomationRulesRequestItem()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateAutomationRulesRequestItem & WithRuleArn(RuleArnT &&value)
AWS_SECURITYHUB_API UpdateAutomationRulesRequestItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API UpdateAutomationRulesRequestItem(Aws::Utils::Json::JsonView jsonValue)
UpdateAutomationRulesRequestItem & WithRuleStatus(RuleStatus value)
const Aws::Vector< AutomationRulesAction > & GetActions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue