AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RuleArnT = Aws::String>
51 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
52 template<typename RuleArnT = Aws::String>
53 AutomationRulesMetadata& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
55
57
65 inline RuleStatus GetRuleStatus() const { return m_ruleStatus; }
66 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
67 inline void SetRuleStatus(RuleStatus value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = value; }
68 inline AutomationRulesMetadata& WithRuleStatus(RuleStatus value) { SetRuleStatus(value); return *this;}
70
72
77 inline int GetRuleOrder() const { return m_ruleOrder; }
78 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
79 inline void SetRuleOrder(int value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = value; }
80 inline AutomationRulesMetadata& WithRuleOrder(int value) { SetRuleOrder(value); return *this;}
82
84
87 inline const Aws::String& GetRuleName() const { return m_ruleName; }
88 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
89 template<typename RuleNameT = Aws::String>
90 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
91 template<typename RuleNameT = Aws::String>
92 AutomationRulesMetadata& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template<typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
103 template<typename DescriptionT = Aws::String>
104 AutomationRulesMetadata& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
106
108
116 inline bool GetIsTerminal() const { return m_isTerminal; }
117 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
118 inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; }
119 inline AutomationRulesMetadata& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;}
121
123
129 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
130 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
131 template<typename CreatedAtT = Aws::Utils::DateTime>
132 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
133 template<typename CreatedAtT = Aws::Utils::DateTime>
134 AutomationRulesMetadata& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
136
138
144 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
145 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
146 template<typename UpdatedAtT = Aws::Utils::DateTime>
147 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
148 template<typename UpdatedAtT = Aws::Utils::DateTime>
149 AutomationRulesMetadata& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
151
153
156 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
157 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
158 template<typename CreatedByT = Aws::String>
159 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
160 template<typename CreatedByT = Aws::String>
161 AutomationRulesMetadata& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
163 private:
164
165 Aws::String m_ruleArn;
166 bool m_ruleArnHasBeenSet = false;
167
168 RuleStatus m_ruleStatus{RuleStatus::NOT_SET};
169 bool m_ruleStatusHasBeenSet = false;
170
171 int m_ruleOrder{0};
172 bool m_ruleOrderHasBeenSet = false;
173
174 Aws::String m_ruleName;
175 bool m_ruleNameHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 bool m_isTerminal{false};
181 bool m_isTerminalHasBeenSet = false;
182
183 Aws::Utils::DateTime m_createdAt{};
184 bool m_createdAtHasBeenSet = false;
185
186 Aws::Utils::DateTime m_updatedAt{};
187 bool m_updatedAtHasBeenSet = false;
188
189 Aws::String m_createdBy;
190 bool m_createdByHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace SecurityHub
195} // 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