AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutomationRulesMetadata.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/RuleStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_SECURITYHUB_API AutomationRulesMetadata();
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
49 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
50 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
51 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
52 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
53 inline AutomationRulesMetadata& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
54 inline AutomationRulesMetadata& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
55 inline AutomationRulesMetadata& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
57
59
67 inline const RuleStatus& GetRuleStatus() const{ return m_ruleStatus; }
68 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
69 inline void SetRuleStatus(const RuleStatus& value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = value; }
70 inline void SetRuleStatus(RuleStatus&& value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = std::move(value); }
71 inline AutomationRulesMetadata& WithRuleStatus(const RuleStatus& value) { SetRuleStatus(value); return *this;}
72 inline AutomationRulesMetadata& WithRuleStatus(RuleStatus&& value) { SetRuleStatus(std::move(value)); return *this;}
74
76
81 inline int GetRuleOrder() const{ return m_ruleOrder; }
82 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
83 inline void SetRuleOrder(int value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = value; }
84 inline AutomationRulesMetadata& WithRuleOrder(int value) { SetRuleOrder(value); return *this;}
86
88
91 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
92 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
93 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
94 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
95 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
96 inline AutomationRulesMetadata& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
97 inline AutomationRulesMetadata& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
98 inline AutomationRulesMetadata& WithRuleName(const char* value) { SetRuleName(value); return *this;}
100
102
105 inline const Aws::String& GetDescription() const{ return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
108 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
109 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 inline AutomationRulesMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 inline AutomationRulesMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 inline AutomationRulesMetadata& WithDescription(const char* value) { SetDescription(value); return *this;}
114
116
124 inline bool GetIsTerminal() const{ return m_isTerminal; }
125 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
126 inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; }
127 inline AutomationRulesMetadata& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;}
129
131
148 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
149 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
150 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
151 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
152 inline AutomationRulesMetadata& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
153 inline AutomationRulesMetadata& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
155
157
174 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
175 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
176 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
177 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
178 inline AutomationRulesMetadata& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
179 inline AutomationRulesMetadata& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
181
183
186 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
187 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
188 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
189 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
190 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
191 inline AutomationRulesMetadata& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
192 inline AutomationRulesMetadata& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
193 inline AutomationRulesMetadata& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
195 private:
196
197 Aws::String m_ruleArn;
198 bool m_ruleArnHasBeenSet = false;
199
200 RuleStatus m_ruleStatus;
201 bool m_ruleStatusHasBeenSet = false;
202
203 int m_ruleOrder;
204 bool m_ruleOrderHasBeenSet = false;
205
206 Aws::String m_ruleName;
207 bool m_ruleNameHasBeenSet = false;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
212 bool m_isTerminal;
213 bool m_isTerminalHasBeenSet = false;
214
215 Aws::Utils::DateTime m_createdAt;
216 bool m_createdAtHasBeenSet = false;
217
218 Aws::Utils::DateTime m_updatedAt;
219 bool m_updatedAtHasBeenSet = false;
220
221 Aws::String m_createdBy;
222 bool m_createdByHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace SecurityHub
227} // namespace Aws
AutomationRulesMetadata & WithCreatedBy(Aws::String &&value)
AutomationRulesMetadata & WithRuleArn(Aws::String &&value)
AutomationRulesMetadata & WithCreatedAt(Aws::Utils::DateTime &&value)
AutomationRulesMetadata & WithCreatedAt(const Aws::Utils::DateTime &value)
AutomationRulesMetadata & WithCreatedBy(const char *value)
AutomationRulesMetadata & WithRuleName(Aws::String &&value)
AutomationRulesMetadata & WithUpdatedAt(Aws::Utils::DateTime &&value)
AutomationRulesMetadata & WithRuleArn(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AutomationRulesMetadata & WithDescription(const char *value)
AutomationRulesMetadata & WithDescription(const Aws::String &value)
AutomationRulesMetadata & WithRuleName(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
AutomationRulesMetadata & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AutomationRulesMetadata & WithRuleName(const char *value)
AutomationRulesMetadata & WithRuleStatus(RuleStatus &&value)
AutomationRulesMetadata & WithRuleOrder(int value)
AutomationRulesMetadata & WithDescription(Aws::String &&value)
AWS_SECURITYHUB_API AutomationRulesMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AutomationRulesMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomationRulesMetadata & WithCreatedBy(const Aws::String &value)
AutomationRulesMetadata & WithRuleStatus(const RuleStatus &value)
AutomationRulesMetadata & WithRuleArn(const char *value)
AutomationRulesMetadata & WithIsTerminal(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue