AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateAutomationRuleV2Request.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/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/AutomationRulesActionV2.h>
12#include <aws/securityhub/model/Criteria.h>
13#include <aws/securityhub/model/RuleStatusV2.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SecurityHub {
19namespace Model {
20
24 public:
25 AWS_SECURITYHUB_API UpdateAutomationRuleV2Request() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAutomationRuleV2"; }
32
33 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetIdentifier() const { return m_identifier; }
40 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
41 template <typename IdentifierT = Aws::String>
42 void SetIdentifier(IdentifierT&& value) {
43 m_identifierHasBeenSet = true;
44 m_identifier = std::forward<IdentifierT>(value);
45 }
46 template <typename IdentifierT = Aws::String>
48 SetIdentifier(std::forward<IdentifierT>(value));
49 return *this;
50 }
52
54
57 inline RuleStatusV2 GetRuleStatus() const { return m_ruleStatus; }
58 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
59 inline void SetRuleStatus(RuleStatusV2 value) {
60 m_ruleStatusHasBeenSet = true;
61 m_ruleStatus = value;
62 }
64 SetRuleStatus(value);
65 return *this;
66 }
68
70
73 inline double GetRuleOrder() const { return m_ruleOrder; }
74 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
75 inline void SetRuleOrder(double value) {
76 m_ruleOrderHasBeenSet = true;
77 m_ruleOrder = value;
78 }
80 SetRuleOrder(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetRuleName() const { return m_ruleName; }
108 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
109 template <typename RuleNameT = Aws::String>
110 void SetRuleName(RuleNameT&& value) {
111 m_ruleNameHasBeenSet = true;
112 m_ruleName = std::forward<RuleNameT>(value);
113 }
114 template <typename RuleNameT = Aws::String>
116 SetRuleName(std::forward<RuleNameT>(value));
117 return *this;
118 }
120
122
125 inline const Criteria& GetCriteria() const { return m_criteria; }
126 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
127 template <typename CriteriaT = Criteria>
128 void SetCriteria(CriteriaT&& value) {
129 m_criteriaHasBeenSet = true;
130 m_criteria = std::forward<CriteriaT>(value);
131 }
132 template <typename CriteriaT = Criteria>
134 SetCriteria(std::forward<CriteriaT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Vector<AutomationRulesActionV2>& GetActions() const { return m_actions; }
144 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
145 template <typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
146 void SetActions(ActionsT&& value) {
147 m_actionsHasBeenSet = true;
148 m_actions = std::forward<ActionsT>(value);
149 }
150 template <typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
152 SetActions(std::forward<ActionsT>(value));
153 return *this;
154 }
155 template <typename ActionsT = AutomationRulesActionV2>
157 m_actionsHasBeenSet = true;
158 m_actions.emplace_back(std::forward<ActionsT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_identifier;
164
166
167 double m_ruleOrder{0.0};
168
169 Aws::String m_description;
170
171 Aws::String m_ruleName;
172
173 Criteria m_criteria;
174
176 bool m_identifierHasBeenSet = false;
177 bool m_ruleStatusHasBeenSet = false;
178 bool m_ruleOrderHasBeenSet = false;
179 bool m_descriptionHasBeenSet = false;
180 bool m_ruleNameHasBeenSet = false;
181 bool m_criteriaHasBeenSet = false;
182 bool m_actionsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace SecurityHub
187} // namespace Aws
UpdateAutomationRuleV2Request & WithRuleOrder(double value)
const Aws::Vector< AutomationRulesActionV2 > & GetActions() const
UpdateAutomationRuleV2Request & WithCriteria(CriteriaT &&value)
UpdateAutomationRuleV2Request & WithActions(ActionsT &&value)
UpdateAutomationRuleV2Request & WithDescription(DescriptionT &&value)
UpdateAutomationRuleV2Request & AddActions(ActionsT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
UpdateAutomationRuleV2Request & WithIdentifier(IdentifierT &&value)
UpdateAutomationRuleV2Request & WithRuleName(RuleNameT &&value)
UpdateAutomationRuleV2Request & WithRuleStatus(RuleStatusV2 value)
AWS_SECURITYHUB_API UpdateAutomationRuleV2Request()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector