AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAutomationRulesRequestItem.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/securityhub/model/AutomationRulesAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SECURITYHUB_API UpdateAutomationRulesRequestItem();
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
50 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
51 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
52 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
53 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
54 inline UpdateAutomationRulesRequestItem& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
55 inline UpdateAutomationRulesRequestItem& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
56 inline UpdateAutomationRulesRequestItem& WithRuleArn(const char* value) { SetRuleArn(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 UpdateAutomationRulesRequestItem& WithRuleStatus(const RuleStatus& value) { SetRuleStatus(value); return *this;}
73 inline UpdateAutomationRulesRequestItem& 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 UpdateAutomationRulesRequestItem& WithRuleOrder(int value) { SetRuleOrder(value); return *this;}
87
89
92 inline const Aws::String& GetDescription() const{ return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
97 inline UpdateAutomationRulesRequestItem& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
98 inline UpdateAutomationRulesRequestItem& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
99 inline UpdateAutomationRulesRequestItem& WithDescription(const char* value) { SetDescription(value); return *this;}
101
103
106 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
107 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
108 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
109 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
110 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
111 inline UpdateAutomationRulesRequestItem& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
112 inline UpdateAutomationRulesRequestItem& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
113 inline UpdateAutomationRulesRequestItem& WithRuleName(const char* value) { SetRuleName(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 UpdateAutomationRulesRequestItem& 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); }
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 UpdateAutomationRulesRequestItem& AddActions(const AutomationRulesAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
158 inline UpdateAutomationRulesRequestItem& AddActions(AutomationRulesAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
160 private:
161
162 Aws::String m_ruleArn;
163 bool m_ruleArnHasBeenSet = 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_description;
172 bool m_descriptionHasBeenSet = false;
173
174 Aws::String m_ruleName;
175 bool m_ruleNameHasBeenSet = 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
UpdateAutomationRulesRequestItem & WithRuleArn(const char *value)
UpdateAutomationRulesRequestItem & WithDescription(const Aws::String &value)
UpdateAutomationRulesRequestItem & WithActions(const Aws::Vector< AutomationRulesAction > &value)
UpdateAutomationRulesRequestItem & WithRuleStatus(RuleStatus &&value)
UpdateAutomationRulesRequestItem & WithRuleName(Aws::String &&value)
UpdateAutomationRulesRequestItem & WithDescription(Aws::String &&value)
UpdateAutomationRulesRequestItem & WithRuleName(const Aws::String &value)
void SetActions(const Aws::Vector< AutomationRulesAction > &value)
UpdateAutomationRulesRequestItem & WithRuleName(const char *value)
UpdateAutomationRulesRequestItem & AddActions(const AutomationRulesAction &value)
UpdateAutomationRulesRequestItem & WithCriteria(const AutomationRulesFindingFilters &value)
UpdateAutomationRulesRequestItem & AddActions(AutomationRulesAction &&value)
UpdateAutomationRulesRequestItem & WithActions(Aws::Vector< AutomationRulesAction > &&value)
UpdateAutomationRulesRequestItem & WithCriteria(AutomationRulesFindingFilters &&value)
UpdateAutomationRulesRequestItem & WithRuleArn(Aws::String &&value)
UpdateAutomationRulesRequestItem & WithDescription(const char *value)
UpdateAutomationRulesRequestItem & WithRuleArn(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API UpdateAutomationRulesRequestItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API UpdateAutomationRulesRequestItem(Aws::Utils::Json::JsonView jsonValue)
void SetActions(Aws::Vector< AutomationRulesAction > &&value)
const Aws::Vector< AutomationRulesAction > & GetActions() const
UpdateAutomationRulesRequestItem & WithRuleStatus(const RuleStatus &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