AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/DetectionRuleDataSource.h>
11#include <aws/guardduty/model/DetectionRuleSeverity.h>
12#include <aws/guardduty/model/RuleLanguage.h>
13#include <aws/guardduty/model/RuleSchema.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty {
25namespace Model {
26
34 public:
35 AWS_GUARDDUTY_API RuleSummary() = default;
36 AWS_GUARDDUTY_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API RuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetRuleId() const { return m_ruleId; }
45 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
46 template <typename RuleIdT = Aws::String>
47 void SetRuleId(RuleIdT&& value) {
48 m_ruleIdHasBeenSet = true;
49 m_ruleId = std::forward<RuleIdT>(value);
50 }
51 template <typename RuleIdT = Aws::String>
52 RuleSummary& WithRuleId(RuleIdT&& value) {
53 SetRuleId(std::forward<RuleIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetArn() const { return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 template <typename ArnT = Aws::String>
65 void SetArn(ArnT&& value) {
66 m_arnHasBeenSet = true;
67 m_arn = std::forward<ArnT>(value);
68 }
69 template <typename ArnT = Aws::String>
70 RuleSummary& WithArn(ArnT&& value) {
71 SetArn(std::forward<ArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 RuleSummary& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
106 RuleSummary& WithDescription(DescriptionT&& value) {
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
116 inline DetectionRuleSeverity GetSeverity() const { return m_severity; }
117 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
119 m_severityHasBeenSet = true;
120 m_severity = value;
121 }
123 SetSeverity(value);
124 return *this;
125 }
127
129
132 inline DetectionRuleDataSource GetDataSource() const { return m_dataSource; }
133 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
135 m_dataSourceHasBeenSet = true;
136 m_dataSource = value;
137 }
139 SetDataSource(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetTactic() const { return m_tactic; }
149 inline bool TacticHasBeenSet() const { return m_tacticHasBeenSet; }
150 template <typename TacticT = Aws::String>
151 void SetTactic(TacticT&& value) {
152 m_tacticHasBeenSet = true;
153 m_tactic = std::forward<TacticT>(value);
154 }
155 template <typename TacticT = Aws::String>
156 RuleSummary& WithTactic(TacticT&& value) {
157 SetTactic(std::forward<TacticT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetTechnique() const { return m_technique; }
167 inline bool TechniqueHasBeenSet() const { return m_techniqueHasBeenSet; }
168 template <typename TechniqueT = Aws::String>
169 void SetTechnique(TechniqueT&& value) {
170 m_techniqueHasBeenSet = true;
171 m_technique = std::forward<TechniqueT>(value);
172 }
173 template <typename TechniqueT = Aws::String>
174 RuleSummary& WithTechnique(TechniqueT&& value) {
175 SetTechnique(std::forward<TechniqueT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetService() const { return m_service; }
185 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
186 template <typename ServiceT = Aws::String>
187 void SetService(ServiceT&& value) {
188 m_serviceHasBeenSet = true;
189 m_service = std::forward<ServiceT>(value);
190 }
191 template <typename ServiceT = Aws::String>
192 RuleSummary& WithService(ServiceT&& value) {
193 SetService(std::forward<ServiceT>(value));
194 return *this;
195 }
197
199
202 inline RuleLanguage GetLanguage() const { return m_language; }
203 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
204 inline void SetLanguage(RuleLanguage value) {
205 m_languageHasBeenSet = true;
206 m_language = value;
207 }
209 SetLanguage(value);
210 return *this;
211 }
213
215
218 inline RuleSchema GetSchema() const { return m_schema; }
219 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
220 inline void SetSchema(RuleSchema value) {
221 m_schemaHasBeenSet = true;
222 m_schema = value;
223 }
225 SetSchema(value);
226 return *this;
227 }
229
231
234 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
235 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
236 template <typename CreatedAtT = Aws::Utils::DateTime>
237 void SetCreatedAt(CreatedAtT&& value) {
238 m_createdAtHasBeenSet = true;
239 m_createdAt = std::forward<CreatedAtT>(value);
240 }
241 template <typename CreatedAtT = Aws::Utils::DateTime>
242 RuleSummary& WithCreatedAt(CreatedAtT&& value) {
243 SetCreatedAt(std::forward<CreatedAtT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
253 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
254 template <typename UpdatedAtT = Aws::Utils::DateTime>
255 void SetUpdatedAt(UpdatedAtT&& value) {
256 m_updatedAtHasBeenSet = true;
257 m_updatedAt = std::forward<UpdatedAtT>(value);
258 }
259 template <typename UpdatedAtT = Aws::Utils::DateTime>
260 RuleSummary& WithUpdatedAt(UpdatedAtT&& value) {
261 SetUpdatedAt(std::forward<UpdatedAtT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_ruleId;
267
268 Aws::String m_arn;
269
270 Aws::String m_name;
271
272 Aws::String m_description;
273
275
277
278 Aws::String m_tactic;
279
280 Aws::String m_technique;
281
282 Aws::String m_service;
283
285
287
288 Aws::Utils::DateTime m_createdAt{};
289
290 Aws::Utils::DateTime m_updatedAt{};
291 bool m_ruleIdHasBeenSet = false;
292 bool m_arnHasBeenSet = false;
293 bool m_nameHasBeenSet = false;
294 bool m_descriptionHasBeenSet = false;
295 bool m_severityHasBeenSet = false;
296 bool m_dataSourceHasBeenSet = false;
297 bool m_tacticHasBeenSet = false;
298 bool m_techniqueHasBeenSet = false;
299 bool m_serviceHasBeenSet = false;
300 bool m_languageHasBeenSet = false;
301 bool m_schemaHasBeenSet = false;
302 bool m_createdAtHasBeenSet = false;
303 bool m_updatedAtHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace GuardDuty
308} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetSeverity(DetectionRuleSeverity value)
const Aws::String & GetDescription() const
Definition RuleSummary.h:98
void SetService(ServiceT &&value)
RuleSummary & WithDataSource(DetectionRuleDataSource value)
void SetRuleId(RuleIdT &&value)
Definition RuleSummary.h:47
void SetTactic(TacticT &&value)
const Aws::String & GetName() const
Definition RuleSummary.h:80
DetectionRuleSeverity GetSeverity() const
DetectionRuleDataSource GetDataSource() const
void SetUpdatedAt(UpdatedAtT &&value)
void SetDataSource(DetectionRuleDataSource value)
void SetLanguage(RuleLanguage value)
const Aws::String & GetRuleId() const
Definition RuleSummary.h:44
const Aws::String & GetTactic() const
AWS_GUARDDUTY_API RuleSummary()=default
void SetCreatedAt(CreatedAtT &&value)
RuleSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_GUARDDUTY_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
RuleSummary & WithRuleId(RuleIdT &&value)
Definition RuleSummary.h:52
RuleSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
RuleSummary & WithTactic(TacticT &&value)
RuleSummary & WithService(ServiceT &&value)
void SetTechnique(TechniqueT &&value)
RuleSummary & WithName(NameT &&value)
Definition RuleSummary.h:88
RuleSummary & WithLanguage(RuleLanguage value)
RuleSummary & WithSchema(RuleSchema value)
void SetSchema(RuleSchema value)
RuleSummary & WithDescription(DescriptionT &&value)
RuleSummary & WithArn(ArnT &&value)
Definition RuleSummary.h:70
const Aws::String & GetService() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
RuleSummary & WithSeverity(DetectionRuleSeverity value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetArn() const
Definition RuleSummary.h:62
RuleLanguage GetLanguage() const
AWS_GUARDDUTY_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleSummary & WithTechnique(TechniqueT &&value)
const Aws::String & GetTechnique() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue