AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
47 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
49 inline CreateAutomationRuleRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
50 inline CreateAutomationRuleRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
51 inline CreateAutomationRuleRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
52 inline CreateAutomationRuleRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
53 inline CreateAutomationRuleRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
54 inline CreateAutomationRuleRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
55 inline CreateAutomationRuleRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
56 inline CreateAutomationRuleRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
58
60
68 inline const RuleStatus& GetRuleStatus() const{ return m_ruleStatus; }
69 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
70 inline void SetRuleStatus(const RuleStatus& value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = value; }
71 inline void SetRuleStatus(RuleStatus&& value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = std::move(value); }
72 inline CreateAutomationRuleRequest& WithRuleStatus(const RuleStatus& value) { SetRuleStatus(value); return *this;}
73 inline CreateAutomationRuleRequest& WithRuleStatus(RuleStatus&& value) { SetRuleStatus(std::move(value)); return *this;}
75
77
82 inline int GetRuleOrder() const{ return m_ruleOrder; }
83 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
84 inline void SetRuleOrder(int value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = value; }
85 inline CreateAutomationRuleRequest& WithRuleOrder(int value) { SetRuleOrder(value); return *this;}
87
89
92 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
93 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
94 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
95 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
96 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
97 inline CreateAutomationRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
98 inline CreateAutomationRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
99 inline CreateAutomationRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
101
103
106 inline const Aws::String& GetDescription() const{ return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
110 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
111 inline CreateAutomationRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 inline CreateAutomationRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 inline CreateAutomationRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
115
117
125 inline bool GetIsTerminal() const{ return m_isTerminal; }
126 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
127 inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; }
128 inline CreateAutomationRuleRequest& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;}
130
132
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 CreateAutomationRuleRequest& 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); }
157 inline CreateAutomationRuleRequest& AddActions(const AutomationRulesAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
158 inline CreateAutomationRuleRequest& AddActions(AutomationRulesAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
160 private:
161
163 bool m_tagsHasBeenSet = false;
164
165 RuleStatus m_ruleStatus;
166 bool m_ruleStatusHasBeenSet = false;
167
168 int m_ruleOrder;
169 bool m_ruleOrderHasBeenSet = false;
170
171 Aws::String m_ruleName;
172 bool m_ruleNameHasBeenSet = false;
173
174 Aws::String m_description;
175 bool m_descriptionHasBeenSet = false;
176
177 bool m_isTerminal;
178 bool m_isTerminalHasBeenSet = false;
179
181 bool m_criteriaHasBeenSet = false;
182
184 bool m_actionsHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace SecurityHub
189} // namespace Aws
CreateAutomationRuleRequest & WithRuleName(const Aws::String &value)
CreateAutomationRuleRequest & WithCriteria(AutomationRulesFindingFilters &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAutomationRuleRequest & WithRuleStatus(RuleStatus &&value)
CreateAutomationRuleRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAutomationRuleRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAutomationRuleRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAutomationRuleRequest & WithDescription(const char *value)
CreateAutomationRuleRequest & WithRuleStatus(const RuleStatus &value)
const AutomationRulesFindingFilters & GetCriteria() const
CreateAutomationRuleRequest & WithRuleName(Aws::String &&value)
CreateAutomationRuleRequest & AddActions(AutomationRulesAction &&value)
CreateAutomationRuleRequest & AddActions(const AutomationRulesAction &value)
void SetCriteria(AutomationRulesFindingFilters &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAutomationRuleRequest & AddTags(const char *key, const char *value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
void SetActions(Aws::Vector< AutomationRulesAction > &&value)
CreateAutomationRuleRequest & WithActions(const Aws::Vector< AutomationRulesAction > &value)
CreateAutomationRuleRequest & WithDescription(Aws::String &&value)
void SetCriteria(const AutomationRulesFindingFilters &value)
CreateAutomationRuleRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAutomationRuleRequest & WithCriteria(const AutomationRulesFindingFilters &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAutomationRuleRequest & WithRuleName(const char *value)
CreateAutomationRuleRequest & WithDescription(const Aws::String &value)
void SetActions(const Aws::Vector< AutomationRulesAction > &value)
const Aws::Vector< AutomationRulesAction > & GetActions() const
CreateAutomationRuleRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAutomationRuleRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAutomationRuleRequest & WithActions(Aws::Vector< AutomationRulesAction > &&value)
CreateAutomationRuleRequest & AddTags(Aws::String &&key, const char *value)
CreateAutomationRuleRequest & AddTags(const char *key, Aws::String &&value)
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