AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAutomationRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/SecurityHubRequest.h>
11#include <aws/securityhub/SecurityHub_EXPORTS.h>
12#include <aws/securityhub/model/AutomationRulesAction.h>
13#include <aws/securityhub/model/AutomationRulesFindingFilters.h>
14#include <aws/securityhub/model/RuleStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SecurityHub {
20namespace Model {
21
25 public:
26 AWS_SECURITYHUB_API CreateAutomationRuleRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAutomationRule"; }
33
34 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
41 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
42 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
43 void SetTags(TagsT&& value) {
44 m_tagsHasBeenSet = true;
45 m_tags = std::forward<TagsT>(value);
46 }
47 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
49 SetTags(std::forward<TagsT>(value));
50 return *this;
51 }
52 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
53 CreateAutomationRuleRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
54 m_tagsHasBeenSet = true;
55 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
56 return *this;
57 }
59
61
69 inline RuleStatus GetRuleStatus() const { return m_ruleStatus; }
70 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
71 inline void SetRuleStatus(RuleStatus value) {
72 m_ruleStatusHasBeenSet = true;
73 m_ruleStatus = value;
74 }
76 SetRuleStatus(value);
77 return *this;
78 }
80
82
87 inline int GetRuleOrder() const { return m_ruleOrder; }
88 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
89 inline void SetRuleOrder(int value) {
90 m_ruleOrderHasBeenSet = true;
91 m_ruleOrder = value;
92 }
94 SetRuleOrder(value);
95 return *this;
96 }
98
100
103 inline const Aws::String& GetRuleName() const { return m_ruleName; }
104 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
105 template <typename RuleNameT = Aws::String>
106 void SetRuleName(RuleNameT&& value) {
107 m_ruleNameHasBeenSet = true;
108 m_ruleName = std::forward<RuleNameT>(value);
109 }
110 template <typename RuleNameT = Aws::String>
112 SetRuleName(std::forward<RuleNameT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetDescription() const { return m_description; }
122 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
123 template <typename DescriptionT = Aws::String>
124 void SetDescription(DescriptionT&& value) {
125 m_descriptionHasBeenSet = true;
126 m_description = std::forward<DescriptionT>(value);
127 }
128 template <typename DescriptionT = Aws::String>
130 SetDescription(std::forward<DescriptionT>(value));
131 return *this;
132 }
134
136
144 inline bool GetIsTerminal() const { return m_isTerminal; }
145 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
146 inline void SetIsTerminal(bool value) {
147 m_isTerminalHasBeenSet = true;
148 m_isTerminal = value;
149 }
151 SetIsTerminal(value);
152 return *this;
153 }
155
157
163 inline const AutomationRulesFindingFilters& GetCriteria() const { return m_criteria; }
164 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
165 template <typename CriteriaT = AutomationRulesFindingFilters>
166 void SetCriteria(CriteriaT&& value) {
167 m_criteriaHasBeenSet = true;
168 m_criteria = std::forward<CriteriaT>(value);
169 }
170 template <typename CriteriaT = AutomationRulesFindingFilters>
172 SetCriteria(std::forward<CriteriaT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::Vector<AutomationRulesAction>& GetActions() const { return m_actions; }
183 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
184 template <typename ActionsT = Aws::Vector<AutomationRulesAction>>
185 void SetActions(ActionsT&& value) {
186 m_actionsHasBeenSet = true;
187 m_actions = std::forward<ActionsT>(value);
188 }
189 template <typename ActionsT = Aws::Vector<AutomationRulesAction>>
191 SetActions(std::forward<ActionsT>(value));
192 return *this;
193 }
194 template <typename ActionsT = AutomationRulesAction>
196 m_actionsHasBeenSet = true;
197 m_actions.emplace_back(std::forward<ActionsT>(value));
198 return *this;
199 }
201 private:
203
204 RuleStatus m_ruleStatus{RuleStatus::NOT_SET};
205
206 int m_ruleOrder{0};
207
208 Aws::String m_ruleName;
209
210 Aws::String m_description;
211
212 bool m_isTerminal{false};
213
214 AutomationRulesFindingFilters m_criteria;
215
217 bool m_tagsHasBeenSet = false;
218 bool m_ruleStatusHasBeenSet = false;
219 bool m_ruleOrderHasBeenSet = false;
220 bool m_ruleNameHasBeenSet = false;
221 bool m_descriptionHasBeenSet = false;
222 bool m_isTerminalHasBeenSet = false;
223 bool m_criteriaHasBeenSet = false;
224 bool m_actionsHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace SecurityHub
229} // namespace Aws
CreateAutomationRuleRequest & AddActions(ActionsT &&value)
CreateAutomationRuleRequest & WithRuleStatus(RuleStatus value)
CreateAutomationRuleRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const AutomationRulesFindingFilters & GetCriteria() const
CreateAutomationRuleRequest & WithRuleName(RuleNameT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
CreateAutomationRuleRequest & WithCriteria(CriteriaT &&value)
CreateAutomationRuleRequest & WithActions(ActionsT &&value)
CreateAutomationRuleRequest & WithTags(TagsT &&value)
CreateAutomationRuleRequest & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API CreateAutomationRuleRequest()=default
const Aws::Vector< AutomationRulesAction > & GetActions() const
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