AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetAutomationRuleV2Result.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub {
27namespace Model {
29 public:
30 AWS_SECURITYHUB_API GetAutomationRuleV2Result() = default;
33
35
38 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
39 template <typename RuleArnT = Aws::String>
40 void SetRuleArn(RuleArnT&& value) {
41 m_ruleArnHasBeenSet = true;
42 m_ruleArn = std::forward<RuleArnT>(value);
43 }
44 template <typename RuleArnT = Aws::String>
46 SetRuleArn(std::forward<RuleArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetRuleId() const { return m_ruleId; }
56 template <typename RuleIdT = Aws::String>
57 void SetRuleId(RuleIdT&& value) {
58 m_ruleIdHasBeenSet = true;
59 m_ruleId = std::forward<RuleIdT>(value);
60 }
61 template <typename RuleIdT = Aws::String>
63 SetRuleId(std::forward<RuleIdT>(value));
64 return *this;
65 }
67
69
72 inline double GetRuleOrder() const { return m_ruleOrder; }
73 inline void SetRuleOrder(double value) {
74 m_ruleOrderHasBeenSet = true;
75 m_ruleOrder = value;
76 }
78 SetRuleOrder(value);
79 return *this;
80 }
82
84
87 inline const Aws::String& GetRuleName() const { return m_ruleName; }
88 template <typename RuleNameT = Aws::String>
89 void SetRuleName(RuleNameT&& value) {
90 m_ruleNameHasBeenSet = true;
91 m_ruleName = std::forward<RuleNameT>(value);
92 }
93 template <typename RuleNameT = Aws::String>
95 SetRuleName(std::forward<RuleNameT>(value));
96 return *this;
97 }
99
101
104 inline RuleStatusV2 GetRuleStatus() const { return m_ruleStatus; }
105 inline void SetRuleStatus(RuleStatusV2 value) {
106 m_ruleStatusHasBeenSet = true;
107 m_ruleStatus = value;
108 }
110 SetRuleStatus(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetDescription() const { return m_description; }
120 template <typename DescriptionT = Aws::String>
121 void SetDescription(DescriptionT&& value) {
122 m_descriptionHasBeenSet = true;
123 m_description = std::forward<DescriptionT>(value);
124 }
125 template <typename DescriptionT = Aws::String>
127 SetDescription(std::forward<DescriptionT>(value));
128 return *this;
129 }
131
133
136 inline const Criteria& GetCriteria() const { return m_criteria; }
137 template <typename CriteriaT = Criteria>
138 void SetCriteria(CriteriaT&& value) {
139 m_criteriaHasBeenSet = true;
140 m_criteria = std::forward<CriteriaT>(value);
141 }
142 template <typename CriteriaT = Criteria>
144 SetCriteria(std::forward<CriteriaT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<AutomationRulesActionV2>& GetActions() const { return m_actions; }
154 template <typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
155 void SetActions(ActionsT&& value) {
156 m_actionsHasBeenSet = true;
157 m_actions = std::forward<ActionsT>(value);
158 }
159 template <typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
161 SetActions(std::forward<ActionsT>(value));
162 return *this;
163 }
164 template <typename ActionsT = AutomationRulesActionV2>
166 m_actionsHasBeenSet = true;
167 m_actions.emplace_back(std::forward<ActionsT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
177 template <typename CreatedAtT = Aws::Utils::DateTime>
178 void SetCreatedAt(CreatedAtT&& value) {
179 m_createdAtHasBeenSet = true;
180 m_createdAt = std::forward<CreatedAtT>(value);
181 }
182 template <typename CreatedAtT = Aws::Utils::DateTime>
184 SetCreatedAt(std::forward<CreatedAtT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
194 template <typename UpdatedAtT = Aws::Utils::DateTime>
195 void SetUpdatedAt(UpdatedAtT&& value) {
196 m_updatedAtHasBeenSet = true;
197 m_updatedAt = std::forward<UpdatedAtT>(value);
198 }
199 template <typename UpdatedAtT = Aws::Utils::DateTime>
201 SetUpdatedAt(std::forward<UpdatedAtT>(value));
202 return *this;
203 }
205
207
208 inline const Aws::String& GetRequestId() const { return m_requestId; }
209 template <typename RequestIdT = Aws::String>
210 void SetRequestId(RequestIdT&& value) {
211 m_requestIdHasBeenSet = true;
212 m_requestId = std::forward<RequestIdT>(value);
213 }
214 template <typename RequestIdT = Aws::String>
216 SetRequestId(std::forward<RequestIdT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_ruleArn;
222
223 Aws::String m_ruleId;
224
225 double m_ruleOrder{0.0};
226
227 Aws::String m_ruleName;
228
230
231 Aws::String m_description;
232
233 Criteria m_criteria;
234
236
237 Aws::Utils::DateTime m_createdAt{};
238
239 Aws::Utils::DateTime m_updatedAt{};
240
241 Aws::String m_requestId;
242 bool m_ruleArnHasBeenSet = false;
243 bool m_ruleIdHasBeenSet = false;
244 bool m_ruleOrderHasBeenSet = false;
245 bool m_ruleNameHasBeenSet = false;
246 bool m_ruleStatusHasBeenSet = false;
247 bool m_descriptionHasBeenSet = false;
248 bool m_criteriaHasBeenSet = false;
249 bool m_actionsHasBeenSet = false;
250 bool m_createdAtHasBeenSet = false;
251 bool m_updatedAtHasBeenSet = false;
252 bool m_requestIdHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace SecurityHub
257} // namespace Aws
GetAutomationRuleV2Result & WithRuleArn(RuleArnT &&value)
AWS_SECURITYHUB_API GetAutomationRuleV2Result()=default
GetAutomationRuleV2Result & WithCreatedAt(CreatedAtT &&value)
GetAutomationRuleV2Result & WithRuleOrder(double value)
GetAutomationRuleV2Result & WithActions(ActionsT &&value)
GetAutomationRuleV2Result & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API GetAutomationRuleV2Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAutomationRuleV2Result & WithRuleId(RuleIdT &&value)
const Aws::Vector< AutomationRulesActionV2 > & GetActions() const
GetAutomationRuleV2Result & WithCriteria(CriteriaT &&value)
GetAutomationRuleV2Result & AddActions(ActionsT &&value)
GetAutomationRuleV2Result & WithRuleStatus(RuleStatusV2 value)
GetAutomationRuleV2Result & WithRequestId(RequestIdT &&value)
GetAutomationRuleV2Result & WithRuleName(RuleNameT &&value)
GetAutomationRuleV2Result & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYHUB_API GetAutomationRuleV2Result(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue