AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateAutomationRuleRequest.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/securityhub/model/RuleStatus.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/securityhub/model/AutomationRulesFindingFilters.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/securityhub/model/AutomationRulesAction.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SecurityHub
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SECURITYHUB_API CreateAutomationRuleRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateAutomationRule"; }
36
37 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
45 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
46 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
47 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
48 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
49 CreateAutomationRuleRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
50 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
51 CreateAutomationRuleRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
52 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
53 }
55
57
65 inline RuleStatus GetRuleStatus() const { return m_ruleStatus; }
66 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
67 inline void SetRuleStatus(RuleStatus value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = value; }
70
72
77 inline int GetRuleOrder() const { return m_ruleOrder; }
78 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
79 inline void SetRuleOrder(int value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = value; }
80 inline CreateAutomationRuleRequest& WithRuleOrder(int value) { SetRuleOrder(value); return *this;}
82
84
87 inline const Aws::String& GetRuleName() const { return m_ruleName; }
88 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
89 template<typename RuleNameT = Aws::String>
90 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
91 template<typename RuleNameT = Aws::String>
92 CreateAutomationRuleRequest& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template<typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
103 template<typename DescriptionT = Aws::String>
104 CreateAutomationRuleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
106
108
116 inline bool GetIsTerminal() const { return m_isTerminal; }
117 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
118 inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; }
119 inline CreateAutomationRuleRequest& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;}
121
123
129 inline const AutomationRulesFindingFilters& GetCriteria() const { return m_criteria; }
130 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
131 template<typename CriteriaT = AutomationRulesFindingFilters>
132 void SetCriteria(CriteriaT&& value) { m_criteriaHasBeenSet = true; m_criteria = std::forward<CriteriaT>(value); }
133 template<typename CriteriaT = AutomationRulesFindingFilters>
134 CreateAutomationRuleRequest& WithCriteria(CriteriaT&& value) { SetCriteria(std::forward<CriteriaT>(value)); return *this;}
136
138
142 inline const Aws::Vector<AutomationRulesAction>& GetActions() const { return m_actions; }
143 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
144 template<typename ActionsT = Aws::Vector<AutomationRulesAction>>
145 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
146 template<typename ActionsT = Aws::Vector<AutomationRulesAction>>
147 CreateAutomationRuleRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
148 template<typename ActionsT = AutomationRulesAction>
149 CreateAutomationRuleRequest& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
151 private:
152
154 bool m_tagsHasBeenSet = false;
155
156 RuleStatus m_ruleStatus{RuleStatus::NOT_SET};
157 bool m_ruleStatusHasBeenSet = false;
158
159 int m_ruleOrder{0};
160 bool m_ruleOrderHasBeenSet = false;
161
162 Aws::String m_ruleName;
163 bool m_ruleNameHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167
168 bool m_isTerminal{false};
169 bool m_isTerminalHasBeenSet = false;
170
171 AutomationRulesFindingFilters m_criteria;
172 bool m_criteriaHasBeenSet = false;
173
175 bool m_actionsHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace SecurityHub
180} // 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