AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AutomationRulesMetadataV2.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/AutomationRulesActionTypeObjectV2.h>
12#include <aws/securityhub/model/RuleStatusV2.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
33 public:
34 AWS_SECURITYHUB_API AutomationRulesMetadataV2() = default;
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
44 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
45 template <typename RuleArnT = Aws::String>
46 void SetRuleArn(RuleArnT&& value) {
47 m_ruleArnHasBeenSet = true;
48 m_ruleArn = std::forward<RuleArnT>(value);
49 }
50 template <typename RuleArnT = Aws::String>
52 SetRuleArn(std::forward<RuleArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRuleId() const { return m_ruleId; }
62 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
63 template <typename RuleIdT = Aws::String>
64 void SetRuleId(RuleIdT&& value) {
65 m_ruleIdHasBeenSet = true;
66 m_ruleId = std::forward<RuleIdT>(value);
67 }
68 template <typename RuleIdT = Aws::String>
70 SetRuleId(std::forward<RuleIdT>(value));
71 return *this;
72 }
74
76
79 inline double GetRuleOrder() const { return m_ruleOrder; }
80 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
81 inline void SetRuleOrder(double value) {
82 m_ruleOrderHasBeenSet = true;
83 m_ruleOrder = value;
84 }
86 SetRuleOrder(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetRuleName() const { return m_ruleName; }
96 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
97 template <typename RuleNameT = Aws::String>
98 void SetRuleName(RuleNameT&& value) {
99 m_ruleNameHasBeenSet = true;
100 m_ruleName = std::forward<RuleNameT>(value);
101 }
102 template <typename RuleNameT = Aws::String>
104 SetRuleName(std::forward<RuleNameT>(value));
105 return *this;
106 }
108
110
113 inline RuleStatusV2 GetRuleStatus() const { return m_ruleStatus; }
114 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
115 inline void SetRuleStatus(RuleStatusV2 value) {
116 m_ruleStatusHasBeenSet = true;
117 m_ruleStatus = value;
118 }
120 SetRuleStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetDescription() const { return m_description; }
130 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 template <typename DescriptionT = Aws::String>
132 void SetDescription(DescriptionT&& value) {
133 m_descriptionHasBeenSet = true;
134 m_description = std::forward<DescriptionT>(value);
135 }
136 template <typename DescriptionT = Aws::String>
138 SetDescription(std::forward<DescriptionT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Vector<AutomationRulesActionTypeObjectV2>& GetActions() const { return m_actions; }
148 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
149 template <typename ActionsT = Aws::Vector<AutomationRulesActionTypeObjectV2>>
150 void SetActions(ActionsT&& value) {
151 m_actionsHasBeenSet = true;
152 m_actions = std::forward<ActionsT>(value);
153 }
154 template <typename ActionsT = Aws::Vector<AutomationRulesActionTypeObjectV2>>
156 SetActions(std::forward<ActionsT>(value));
157 return *this;
158 }
159 template <typename ActionsT = AutomationRulesActionTypeObjectV2>
161 m_actionsHasBeenSet = true;
162 m_actions.emplace_back(std::forward<ActionsT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
172 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
173 template <typename CreatedAtT = Aws::Utils::DateTime>
174 void SetCreatedAt(CreatedAtT&& value) {
175 m_createdAtHasBeenSet = true;
176 m_createdAt = std::forward<CreatedAtT>(value);
177 }
178 template <typename CreatedAtT = Aws::Utils::DateTime>
180 SetCreatedAt(std::forward<CreatedAtT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
190 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
191 template <typename UpdatedAtT = Aws::Utils::DateTime>
192 void SetUpdatedAt(UpdatedAtT&& value) {
193 m_updatedAtHasBeenSet = true;
194 m_updatedAt = std::forward<UpdatedAtT>(value);
195 }
196 template <typename UpdatedAtT = Aws::Utils::DateTime>
198 SetUpdatedAt(std::forward<UpdatedAtT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_ruleArn;
204
205 Aws::String m_ruleId;
206
207 double m_ruleOrder{0.0};
208
209 Aws::String m_ruleName;
210
212
213 Aws::String m_description;
214
216
217 Aws::Utils::DateTime m_createdAt{};
218
219 Aws::Utils::DateTime m_updatedAt{};
220 bool m_ruleArnHasBeenSet = false;
221 bool m_ruleIdHasBeenSet = false;
222 bool m_ruleOrderHasBeenSet = false;
223 bool m_ruleNameHasBeenSet = false;
224 bool m_ruleStatusHasBeenSet = false;
225 bool m_descriptionHasBeenSet = false;
226 bool m_actionsHasBeenSet = false;
227 bool m_createdAtHasBeenSet = false;
228 bool m_updatedAtHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace SecurityHub
233} // namespace Aws
AutomationRulesMetadataV2 & WithUpdatedAt(UpdatedAtT &&value)
AutomationRulesMetadataV2 & WithCreatedAt(CreatedAtT &&value)
AutomationRulesMetadataV2 & WithRuleStatus(RuleStatusV2 value)
AWS_SECURITYHUB_API AutomationRulesMetadataV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomationRulesMetadataV2 & AddActions(ActionsT &&value)
AutomationRulesMetadataV2 & WithRuleId(RuleIdT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AutomationRulesMetadataV2 & WithRuleArn(RuleArnT &&value)
AWS_SECURITYHUB_API AutomationRulesMetadataV2()=default
AutomationRulesMetadataV2 & WithRuleOrder(double value)
AutomationRulesMetadataV2 & WithActions(ActionsT &&value)
AWS_SECURITYHUB_API AutomationRulesMetadataV2(Aws::Utils::Json::JsonView jsonValue)
AutomationRulesMetadataV2 & WithDescription(DescriptionT &&value)
AutomationRulesMetadataV2 & WithRuleName(RuleNameT &&value)
const Aws::Vector< AutomationRulesActionTypeObjectV2 > & GetActions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue