AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AutomationRulesMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/RuleStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
32 public:
33 AWS_SECURITYHUB_API AutomationRulesMetadata() = default;
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
43 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
44 template <typename RuleArnT = Aws::String>
45 void SetRuleArn(RuleArnT&& value) {
46 m_ruleArnHasBeenSet = true;
47 m_ruleArn = std::forward<RuleArnT>(value);
48 }
49 template <typename RuleArnT = Aws::String>
51 SetRuleArn(std::forward<RuleArnT>(value));
52 return *this;
53 }
55
57
65 inline RuleStatus GetRuleStatus() const { return m_ruleStatus; }
66 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
67 inline void SetRuleStatus(RuleStatus value) {
68 m_ruleStatusHasBeenSet = true;
69 m_ruleStatus = value;
70 }
72 SetRuleStatus(value);
73 return *this;
74 }
76
78
83 inline int GetRuleOrder() const { return m_ruleOrder; }
84 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
85 inline void SetRuleOrder(int value) {
86 m_ruleOrderHasBeenSet = true;
87 m_ruleOrder = value;
88 }
90 SetRuleOrder(value);
91 return *this;
92 }
94
96
99 inline const Aws::String& GetRuleName() const { return m_ruleName; }
100 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
101 template <typename RuleNameT = Aws::String>
102 void SetRuleName(RuleNameT&& value) {
103 m_ruleNameHasBeenSet = true;
104 m_ruleName = std::forward<RuleNameT>(value);
105 }
106 template <typename RuleNameT = Aws::String>
108 SetRuleName(std::forward<RuleNameT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetDescription() const { return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 template <typename DescriptionT = Aws::String>
120 void SetDescription(DescriptionT&& value) {
121 m_descriptionHasBeenSet = true;
122 m_description = std::forward<DescriptionT>(value);
123 }
124 template <typename DescriptionT = Aws::String>
126 SetDescription(std::forward<DescriptionT>(value));
127 return *this;
128 }
130
132
140 inline bool GetIsTerminal() const { return m_isTerminal; }
141 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
142 inline void SetIsTerminal(bool value) {
143 m_isTerminalHasBeenSet = true;
144 m_isTerminal = value;
145 }
147 SetIsTerminal(value);
148 return *this;
149 }
151
153
159 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
160 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
161 template <typename CreatedAtT = Aws::Utils::DateTime>
162 void SetCreatedAt(CreatedAtT&& value) {
163 m_createdAtHasBeenSet = true;
164 m_createdAt = std::forward<CreatedAtT>(value);
165 }
166 template <typename CreatedAtT = Aws::Utils::DateTime>
168 SetCreatedAt(std::forward<CreatedAtT>(value));
169 return *this;
170 }
172
174
180 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
181 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
182 template <typename UpdatedAtT = Aws::Utils::DateTime>
183 void SetUpdatedAt(UpdatedAtT&& value) {
184 m_updatedAtHasBeenSet = true;
185 m_updatedAt = std::forward<UpdatedAtT>(value);
186 }
187 template <typename UpdatedAtT = Aws::Utils::DateTime>
189 SetUpdatedAt(std::forward<UpdatedAtT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
199 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
200 template <typename CreatedByT = Aws::String>
201 void SetCreatedBy(CreatedByT&& value) {
202 m_createdByHasBeenSet = true;
203 m_createdBy = std::forward<CreatedByT>(value);
204 }
205 template <typename CreatedByT = Aws::String>
207 SetCreatedBy(std::forward<CreatedByT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_ruleArn;
213
214 RuleStatus m_ruleStatus{RuleStatus::NOT_SET};
215
216 int m_ruleOrder{0};
217
218 Aws::String m_ruleName;
219
220 Aws::String m_description;
221
222 bool m_isTerminal{false};
223
224 Aws::Utils::DateTime m_createdAt{};
225
226 Aws::Utils::DateTime m_updatedAt{};
227
228 Aws::String m_createdBy;
229 bool m_ruleArnHasBeenSet = false;
230 bool m_ruleStatusHasBeenSet = false;
231 bool m_ruleOrderHasBeenSet = false;
232 bool m_ruleNameHasBeenSet = false;
233 bool m_descriptionHasBeenSet = false;
234 bool m_isTerminalHasBeenSet = false;
235 bool m_createdAtHasBeenSet = false;
236 bool m_updatedAtHasBeenSet = false;
237 bool m_createdByHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace SecurityHub
242} // namespace Aws
AutomationRulesMetadata & WithCreatedAt(CreatedAtT &&value)
AutomationRulesMetadata & WithRuleStatus(RuleStatus value)
AutomationRulesMetadata & WithRuleName(RuleNameT &&value)
AutomationRulesMetadata & WithCreatedBy(CreatedByT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AutomationRulesMetadata & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYHUB_API AutomationRulesMetadata()=default
AutomationRulesMetadata & WithDescription(DescriptionT &&value)
AutomationRulesMetadata & WithRuleArn(RuleArnT &&value)
AutomationRulesMetadata & WithRuleOrder(int value)
AWS_SECURITYHUB_API AutomationRulesMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AutomationRulesMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomationRulesMetadata & WithIsTerminal(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue