AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetAutomationRuleV2Result.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityhub/SecurityHub_EXPORTS.h>
12#include <aws/securityhub/model/AutomationRulesActionV2.h>
13#include <aws/securityhub/model/Criteria.h>
14#include <aws/securityhub/model/RuleStatusV2.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SecurityHub {
28namespace Model {
30 public:
31 AWS_SECURITYHUB_API GetAutomationRuleV2Result() = default;
34
36
39 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
40 template <typename RuleArnT = Aws::String>
41 void SetRuleArn(RuleArnT&& value) {
42 m_ruleArnHasBeenSet = true;
43 m_ruleArn = std::forward<RuleArnT>(value);
44 }
45 template <typename RuleArnT = Aws::String>
47 SetRuleArn(std::forward<RuleArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRuleId() const { return m_ruleId; }
57 template <typename RuleIdT = Aws::String>
58 void SetRuleId(RuleIdT&& value) {
59 m_ruleIdHasBeenSet = true;
60 m_ruleId = std::forward<RuleIdT>(value);
61 }
62 template <typename RuleIdT = Aws::String>
64 SetRuleId(std::forward<RuleIdT>(value));
65 return *this;
66 }
68
70
73 inline double GetRuleOrder() const { return m_ruleOrder; }
74 inline void SetRuleOrder(double value) {
75 m_ruleOrderHasBeenSet = true;
76 m_ruleOrder = value;
77 }
79 SetRuleOrder(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetRuleName() const { return m_ruleName; }
89 template <typename RuleNameT = Aws::String>
90 void SetRuleName(RuleNameT&& value) {
91 m_ruleNameHasBeenSet = true;
92 m_ruleName = std::forward<RuleNameT>(value);
93 }
94 template <typename RuleNameT = Aws::String>
96 SetRuleName(std::forward<RuleNameT>(value));
97 return *this;
98 }
100
102
105 inline RuleStatusV2 GetRuleStatus() const { return m_ruleStatus; }
106 inline void SetRuleStatus(RuleStatusV2 value) {
107 m_ruleStatusHasBeenSet = true;
108 m_ruleStatus = value;
109 }
111 SetRuleStatus(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetDescription() const { return m_description; }
121 template <typename DescriptionT = Aws::String>
122 void SetDescription(DescriptionT&& value) {
123 m_descriptionHasBeenSet = true;
124 m_description = std::forward<DescriptionT>(value);
125 }
126 template <typename DescriptionT = Aws::String>
128 SetDescription(std::forward<DescriptionT>(value));
129 return *this;
130 }
132
134
137 inline const Criteria& GetCriteria() const { return m_criteria; }
138 template <typename CriteriaT = Criteria>
139 void SetCriteria(CriteriaT&& value) {
140 m_criteriaHasBeenSet = true;
141 m_criteria = std::forward<CriteriaT>(value);
142 }
143 template <typename CriteriaT = Criteria>
145 SetCriteria(std::forward<CriteriaT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Vector<AutomationRulesActionV2>& GetActions() const { return m_actions; }
155 template <typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
156 void SetActions(ActionsT&& value) {
157 m_actionsHasBeenSet = true;
158 m_actions = std::forward<ActionsT>(value);
159 }
160 template <typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
162 SetActions(std::forward<ActionsT>(value));
163 return *this;
164 }
165 template <typename ActionsT = AutomationRulesActionV2>
167 m_actionsHasBeenSet = true;
168 m_actions.emplace_back(std::forward<ActionsT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
178 template <typename CreatedAtT = Aws::Utils::DateTime>
179 void SetCreatedAt(CreatedAtT&& value) {
180 m_createdAtHasBeenSet = true;
181 m_createdAt = std::forward<CreatedAtT>(value);
182 }
183 template <typename CreatedAtT = Aws::Utils::DateTime>
185 SetCreatedAt(std::forward<CreatedAtT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
195 template <typename UpdatedAtT = Aws::Utils::DateTime>
196 void SetUpdatedAt(UpdatedAtT&& value) {
197 m_updatedAtHasBeenSet = true;
198 m_updatedAt = std::forward<UpdatedAtT>(value);
199 }
200 template <typename UpdatedAtT = Aws::Utils::DateTime>
202 SetUpdatedAt(std::forward<UpdatedAtT>(value));
203 return *this;
204 }
206
208
209 inline const Aws::String& GetRequestId() const { return m_requestId; }
210 template <typename RequestIdT = Aws::String>
211 void SetRequestId(RequestIdT&& value) {
212 m_requestIdHasBeenSet = true;
213 m_requestId = std::forward<RequestIdT>(value);
214 }
215 template <typename RequestIdT = Aws::String>
217 SetRequestId(std::forward<RequestIdT>(value));
218 return *this;
219 }
221 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
222
223 private:
224 Aws::String m_ruleArn;
225
226 Aws::String m_ruleId;
227
228 double m_ruleOrder{0.0};
229
230 Aws::String m_ruleName;
231
233
234 Aws::String m_description;
235
236 Criteria m_criteria;
237
239
240 Aws::Utils::DateTime m_createdAt{};
241
242 Aws::Utils::DateTime m_updatedAt{};
243
244 Aws::String m_requestId;
245 Aws::Http::HttpResponseCode m_HttpResponseCode;
246 bool m_ruleArnHasBeenSet = false;
247 bool m_ruleIdHasBeenSet = false;
248 bool m_ruleOrderHasBeenSet = false;
249 bool m_ruleNameHasBeenSet = false;
250 bool m_ruleStatusHasBeenSet = false;
251 bool m_descriptionHasBeenSet = false;
252 bool m_criteriaHasBeenSet = false;
253 bool m_actionsHasBeenSet = false;
254 bool m_createdAtHasBeenSet = false;
255 bool m_updatedAtHasBeenSet = false;
256 bool m_requestIdHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace SecurityHub
261} // 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