1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.hack23.sonar.cloudformation.reports.checkov;
21
22 import java.util.List;
23
24 import org.apache.commons.lang3.builder.EqualsBuilder;
25 import org.apache.commons.lang3.builder.HashCodeBuilder;
26 import org.apache.commons.lang3.builder.ToStringBuilder;
27 import org.apache.commons.lang3.builder.ToStringStyle;
28
29 import com.fasterxml.jackson.annotation.JsonProperty;
30
31
32
33
34 public final class CheckovPassedCheck {
35
36
37 private String checkId;
38
39
40 private String checkName;
41
42
43 private Object checkResult;
44
45
46 private String bcCheckId;
47
48
49 private List<Object> codeBlock;
50
51
52 private String filePath;
53
54
55 private String repoFilePath;
56
57
58 private List<Integer> fileLineRange;
59
60
61 private String resource;
62
63
64 private String fileAbsPath;
65
66
67 private EntityTags entityTags;
68
69
70 private String callerFilePath;
71
72
73 private List<Integer> callerFileLineRange;
74
75
76 private String fixedDefinition;
77
78
79 private Object evaluations;
80
81
82 private String checkClass;
83
84
85 private String guideline;
86
87
88
89
90
91
92 @JsonProperty("check_id")
93 public String getCheckId() {
94 return checkId;
95 }
96
97
98
99
100
101
102 public void setCheckId(final String checkId) {
103 this.checkId = checkId;
104 }
105
106
107
108
109
110
111
112
113
114 @JsonProperty("bc_check_id")
115 public String getBcCheckId() {
116 return bcCheckId;
117 }
118
119
120
121
122
123
124 public void setBcCheckId(final String bcCheckId) {
125 this.bcCheckId = bcCheckId;
126 }
127
128
129
130
131
132
133 @JsonProperty("check_name")
134 public String getCheckName() {
135 return checkName;
136 }
137
138
139
140
141
142
143 public void setCheckName(final String checkName) {
144 this.checkName = checkName;
145 }
146
147
148
149
150
151
152 @JsonProperty("check_result")
153 public Object getCheckResult() {
154 return checkResult;
155 }
156
157
158
159
160
161
162 public void setCheckResult(final Object checkResult) {
163 this.checkResult = checkResult;
164 }
165
166
167
168
169
170
171 @JsonProperty("code_block")
172 public List<Object> getCodeBlock() {
173 return codeBlock;
174 }
175
176
177
178
179
180
181 public void setCodeBlock(final List<Object> codeBlock) {
182 this.codeBlock = codeBlock;
183 }
184
185
186
187
188
189
190
191
192 @JsonProperty("file_path")
193 public String getFilePath() {
194 return filePath;
195 }
196
197
198
199
200
201
202 public void setFilePath(final String filePath) {
203 this.filePath = filePath;
204 }
205
206
207
208
209
210
211
212
213 @JsonProperty("repo_file_path")
214 public String getRepoFilePath() {
215 return repoFilePath;
216 }
217
218
219
220
221
222
223 public void setRepoFilePath(final String repoFilePath) {
224 this.repoFilePath = repoFilePath;
225 }
226
227
228
229
230
231
232 @JsonProperty("file_line_range")
233 public List<Integer> getFileLineRange() {
234 return fileLineRange;
235 }
236
237
238
239
240
241
242 public void setFileLineRange(final List<Integer> fileLineRange) {
243 this.fileLineRange = fileLineRange;
244 }
245
246
247
248
249
250
251 public String getResource() {
252 return resource;
253 }
254
255
256
257
258
259
260 public void setResource(final String resource) {
261 this.resource = resource;
262 }
263
264
265
266
267
268
269 public Object getEvaluations() {
270 return evaluations;
271 }
272
273
274
275
276
277
278 public void setEvaluations(final Object evaluations) {
279 this.evaluations = evaluations;
280 }
281
282
283
284
285
286
287 @JsonProperty("check_class")
288 public String getCheckClass() {
289 return checkClass;
290 }
291
292
293
294
295
296
297 public void setCheckClass(final String checkClass) {
298 this.checkClass = checkClass;
299 }
300
301
302
303
304
305
306 public String getGuideline() {
307 return guideline;
308 }
309
310
311
312
313
314
315 public void setGuideline(final String guideline) {
316 this.guideline = guideline;
317 }
318
319
320
321
322
323
324 @JsonProperty("file_abs_path")
325 public String getFileAbsPath() {
326 return fileAbsPath;
327 }
328
329
330
331
332
333
334 public void setFileAbsPath(final String fileAbsPath) {
335 this.fileAbsPath = fileAbsPath;
336 }
337
338
339
340
341
342
343
344
345 @JsonProperty("entity_tags")
346 public EntityTags getEntityTags() {
347 return entityTags;
348 }
349
350
351
352
353
354
355 public void setEntityTags(final EntityTags entityTags) {
356 this.entityTags = entityTags;
357 }
358
359
360
361
362
363
364 @JsonProperty("caller_file_path")
365 public String getCallerFilePath() {
366 return callerFilePath;
367 }
368
369
370
371
372
373
374 public void setCallerFilePath(final String callerFilePath) {
375 this.callerFilePath = callerFilePath;
376 }
377
378
379
380
381
382
383 @JsonProperty("caller_file_line_range")
384 public List<Integer> getCallerFileLineRange() {
385 return callerFileLineRange;
386 }
387
388
389
390
391
392
393 public void setCallerFileLineRange(final List<Integer> callerFileLineRange) {
394 this.callerFileLineRange = callerFileLineRange;
395 }
396
397
398
399
400
401
402 @JsonProperty("fixed_definition")
403 public String getFixedDefinition() {
404 return fixedDefinition;
405 }
406
407
408
409
410
411
412 public void setFixedDefinition(final String fixedDefinition) {
413 this.fixedDefinition = fixedDefinition;
414 }
415
416
417
418
419
420
421 @Override
422 public String toString() {
423 return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
424 }
425
426
427
428
429
430
431
432 @Override
433 public boolean equals(final Object object) {
434 return EqualsBuilder.reflectionEquals(this, object);
435 }
436
437
438
439
440
441
442 @Override
443 public int hashCode() {
444 return HashCodeBuilder.reflectionHashCode(this);
445 }
446
447 }