AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
RuleDetail.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/RuleDefinition.h>
13#include <aws/guardduty/model/RuleLanguage.h>
14#include <aws/guardduty/model/RuleSchema.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty {
26namespace Model {
27
35 public:
36 AWS_GUARDDUTY_API RuleDetail() = default;
37 AWS_GUARDDUTY_API RuleDetail(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API RuleDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetRuleId() const { return m_ruleId; }
46 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
47 template <typename RuleIdT = Aws::String>
48 void SetRuleId(RuleIdT&& value) {
49 m_ruleIdHasBeenSet = true;
50 m_ruleId = std::forward<RuleIdT>(value);
51 }
52 template <typename RuleIdT = Aws::String>
53 RuleDetail& WithRuleId(RuleIdT&& value) {
54 SetRuleId(std::forward<RuleIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
71 RuleDetail& WithArn(ArnT&& value) {
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 RuleDetail& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
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) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
107 RuleDetail& WithDescription(DescriptionT&& value) {
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline DetectionRuleSeverity GetSeverity() const { return m_severity; }
118 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
120 m_severityHasBeenSet = true;
121 m_severity = value;
122 }
124 SetSeverity(value);
125 return *this;
126 }
128
130
133 inline DetectionRuleDataSource GetDataSource() const { return m_dataSource; }
134 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
136 m_dataSourceHasBeenSet = true;
137 m_dataSource = value;
138 }
140 SetDataSource(value);
141 return *this;
142 }
144
146
149 inline const Aws::String& GetTactic() const { return m_tactic; }
150 inline bool TacticHasBeenSet() const { return m_tacticHasBeenSet; }
151 template <typename TacticT = Aws::String>
152 void SetTactic(TacticT&& value) {
153 m_tacticHasBeenSet = true;
154 m_tactic = std::forward<TacticT>(value);
155 }
156 template <typename TacticT = Aws::String>
157 RuleDetail& WithTactic(TacticT&& value) {
158 SetTactic(std::forward<TacticT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetTechnique() const { return m_technique; }
168 inline bool TechniqueHasBeenSet() const { return m_techniqueHasBeenSet; }
169 template <typename TechniqueT = Aws::String>
170 void SetTechnique(TechniqueT&& value) {
171 m_techniqueHasBeenSet = true;
172 m_technique = std::forward<TechniqueT>(value);
173 }
174 template <typename TechniqueT = Aws::String>
175 RuleDetail& WithTechnique(TechniqueT&& value) {
176 SetTechnique(std::forward<TechniqueT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetService() const { return m_service; }
186 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
187 template <typename ServiceT = Aws::String>
188 void SetService(ServiceT&& value) {
189 m_serviceHasBeenSet = true;
190 m_service = std::forward<ServiceT>(value);
191 }
192 template <typename ServiceT = Aws::String>
193 RuleDetail& WithService(ServiceT&& value) {
194 SetService(std::forward<ServiceT>(value));
195 return *this;
196 }
198
200
203 inline const RuleDefinition& GetDefinition() const { return m_definition; }
204 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
205 template <typename DefinitionT = RuleDefinition>
206 void SetDefinition(DefinitionT&& value) {
207 m_definitionHasBeenSet = true;
208 m_definition = std::forward<DefinitionT>(value);
209 }
210 template <typename DefinitionT = RuleDefinition>
211 RuleDetail& WithDefinition(DefinitionT&& value) {
212 SetDefinition(std::forward<DefinitionT>(value));
213 return *this;
214 }
216
218
221 inline RuleLanguage GetLanguage() const { return m_language; }
222 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
223 inline void SetLanguage(RuleLanguage value) {
224 m_languageHasBeenSet = true;
225 m_language = value;
226 }
228 SetLanguage(value);
229 return *this;
230 }
232
234
237 inline RuleSchema GetSchema() const { return m_schema; }
238 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
239 inline void SetSchema(RuleSchema value) {
240 m_schemaHasBeenSet = true;
241 m_schema = value;
242 }
244 SetSchema(value);
245 return *this;
246 }
248
250
253 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
254 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
255 template <typename CreatedAtT = Aws::Utils::DateTime>
256 void SetCreatedAt(CreatedAtT&& value) {
257 m_createdAtHasBeenSet = true;
258 m_createdAt = std::forward<CreatedAtT>(value);
259 }
260 template <typename CreatedAtT = Aws::Utils::DateTime>
261 RuleDetail& WithCreatedAt(CreatedAtT&& value) {
262 SetCreatedAt(std::forward<CreatedAtT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
272 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
273 template <typename UpdatedAtT = Aws::Utils::DateTime>
274 void SetUpdatedAt(UpdatedAtT&& value) {
275 m_updatedAtHasBeenSet = true;
276 m_updatedAt = std::forward<UpdatedAtT>(value);
277 }
278 template <typename UpdatedAtT = Aws::Utils::DateTime>
279 RuleDetail& WithUpdatedAt(UpdatedAtT&& value) {
280 SetUpdatedAt(std::forward<UpdatedAtT>(value));
281 return *this;
282 }
284 private:
285 Aws::String m_ruleId;
286
287 Aws::String m_arn;
288
289 Aws::String m_name;
290
291 Aws::String m_description;
292
294
296
297 Aws::String m_tactic;
298
299 Aws::String m_technique;
300
301 Aws::String m_service;
302
303 RuleDefinition m_definition;
304
306
308
309 Aws::Utils::DateTime m_createdAt{};
310
311 Aws::Utils::DateTime m_updatedAt{};
312 bool m_ruleIdHasBeenSet = false;
313 bool m_arnHasBeenSet = false;
314 bool m_nameHasBeenSet = false;
315 bool m_descriptionHasBeenSet = false;
316 bool m_severityHasBeenSet = false;
317 bool m_dataSourceHasBeenSet = false;
318 bool m_tacticHasBeenSet = false;
319 bool m_techniqueHasBeenSet = false;
320 bool m_serviceHasBeenSet = false;
321 bool m_definitionHasBeenSet = false;
322 bool m_languageHasBeenSet = false;
323 bool m_schemaHasBeenSet = false;
324 bool m_createdAtHasBeenSet = false;
325 bool m_updatedAtHasBeenSet = false;
326};
327
328} // namespace Model
329} // namespace GuardDuty
330} // namespace Aws
void SetService(ServiceT &&value)
Definition RuleDetail.h:188
RuleDetail & WithDescription(DescriptionT &&value)
Definition RuleDetail.h:107
void SetDescription(DescriptionT &&value)
Definition RuleDetail.h:102
const Aws::String & GetTactic() const
Definition RuleDetail.h:149
AWS_GUARDDUTY_API RuleDetail(Aws::Utils::Json::JsonView jsonValue)
RuleDetail & WithTechnique(TechniqueT &&value)
Definition RuleDetail.h:175
RuleDetail & WithCreatedAt(CreatedAtT &&value)
Definition RuleDetail.h:261
DetectionRuleDataSource GetDataSource() const
Definition RuleDetail.h:133
DetectionRuleSeverity GetSeverity() const
Definition RuleDetail.h:117
void SetName(NameT &&value)
Definition RuleDetail.h:84
void SetDataSource(DetectionRuleDataSource value)
Definition RuleDetail.h:135
RuleDetail & WithRuleId(RuleIdT &&value)
Definition RuleDetail.h:53
RuleDetail & WithArn(ArnT &&value)
Definition RuleDetail.h:71
RuleDetail & WithSchema(RuleSchema value)
Definition RuleDetail.h:243
void SetLanguage(RuleLanguage value)
Definition RuleDetail.h:223
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const RuleDefinition & GetDefinition() const
Definition RuleDetail.h:203
void SetDefinition(DefinitionT &&value)
Definition RuleDetail.h:206
RuleDetail & WithUpdatedAt(UpdatedAtT &&value)
Definition RuleDetail.h:279
AWS_GUARDDUTY_API RuleDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
Definition RuleDetail.h:256
AWS_GUARDDUTY_API RuleDetail()=default
const Aws::Utils::DateTime & GetCreatedAt() const
Definition RuleDetail.h:253
void SetSeverity(DetectionRuleSeverity value)
Definition RuleDetail.h:119
RuleDetail & WithLanguage(RuleLanguage value)
Definition RuleDetail.h:227
void SetRuleId(RuleIdT &&value)
Definition RuleDetail.h:48
const Aws::String & GetName() const
Definition RuleDetail.h:81
void SetUpdatedAt(UpdatedAtT &&value)
Definition RuleDetail.h:274
RuleDetail & WithDefinition(DefinitionT &&value)
Definition RuleDetail.h:211
const Aws::String & GetTechnique() const
Definition RuleDetail.h:167
RuleLanguage GetLanguage() const
Definition RuleDetail.h:221
void SetSchema(RuleSchema value)
Definition RuleDetail.h:239
RuleDetail & WithName(NameT &&value)
Definition RuleDetail.h:89
void SetTechnique(TechniqueT &&value)
Definition RuleDetail.h:170
RuleDetail & WithTactic(TacticT &&value)
Definition RuleDetail.h:157
void SetTactic(TacticT &&value)
Definition RuleDetail.h:152
const Aws::String & GetRuleId() const
Definition RuleDetail.h:45
const Aws::String & GetService() const
Definition RuleDetail.h:185
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition RuleDetail.h:271
const Aws::String & GetArn() const
Definition RuleDetail.h:63
RuleDetail & WithDataSource(DetectionRuleDataSource value)
Definition RuleDetail.h:139
RuleDetail & WithSeverity(DetectionRuleSeverity value)
Definition RuleDetail.h:123
const Aws::String & GetDescription() const
Definition RuleDetail.h:99
RuleDetail & WithService(ServiceT &&value)
Definition RuleDetail.h:193
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue