20
20
21
21
/** The JSON:API attributes of the finding. */
22
22
@ JsonPropertyOrder ({
23
+ FindingAttributes .JSON_PROPERTY_DATADOG_LINK ,
24
+ FindingAttributes .JSON_PROPERTY_DESCRIPTION ,
23
25
FindingAttributes .JSON_PROPERTY_EVALUATION ,
24
26
FindingAttributes .JSON_PROPERTY_EVALUATION_CHANGED_AT ,
25
27
FindingAttributes .JSON_PROPERTY_MUTE ,
35
37
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
36
38
public class FindingAttributes {
37
39
@ JsonIgnore public boolean unparsed = false ;
40
+ public static final String JSON_PROPERTY_DATADOG_LINK = "datadog_link" ;
41
+ private String datadogLink ;
42
+
43
+ public static final String JSON_PROPERTY_DESCRIPTION = "description" ;
44
+ private String description ;
45
+
38
46
public static final String JSON_PROPERTY_EVALUATION = "evaluation" ;
39
47
private FindingEvaluation evaluation ;
40
48
@@ -65,6 +73,48 @@ public class FindingAttributes {
65
73
public static final String JSON_PROPERTY_VULNERABILITY_TYPE = "vulnerability_type" ;
66
74
private FindingVulnerabilityType vulnerabilityType ;
67
75
76
+ public FindingAttributes datadogLink (String datadogLink ) {
77
+ this .datadogLink = datadogLink ;
78
+ return this ;
79
+ }
80
+
81
+ /**
82
+ * The Datadog relative link for this finding.
83
+ *
84
+ * @return datadogLink
85
+ */
86
+ @ jakarta .annotation .Nullable
87
+ @ JsonProperty (JSON_PROPERTY_DATADOG_LINK )
88
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
89
+ public String getDatadogLink () {
90
+ return datadogLink ;
91
+ }
92
+
93
+ public void setDatadogLink (String datadogLink ) {
94
+ this .datadogLink = datadogLink ;
95
+ }
96
+
97
+ public FindingAttributes description (String description ) {
98
+ this .description = description ;
99
+ return this ;
100
+ }
101
+
102
+ /**
103
+ * The description and remediation steps for this finding.
104
+ *
105
+ * @return description
106
+ */
107
+ @ jakarta .annotation .Nullable
108
+ @ JsonProperty (JSON_PROPERTY_DESCRIPTION )
109
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
110
+ public String getDescription () {
111
+ return description ;
112
+ }
113
+
114
+ public void setDescription (String description ) {
115
+ this .description = description ;
116
+ }
117
+
68
118
public FindingAttributes evaluation (FindingEvaluation evaluation ) {
69
119
this .evaluation = evaluation ;
70
120
this .unparsed |= !evaluation .isValid ();
@@ -353,7 +403,9 @@ public boolean equals(Object o) {
353
403
return false ;
354
404
}
355
405
FindingAttributes findingAttributes = (FindingAttributes ) o ;
356
- return Objects .equals (this .evaluation , findingAttributes .evaluation )
406
+ return Objects .equals (this .datadogLink , findingAttributes .datadogLink )
407
+ && Objects .equals (this .description , findingAttributes .description )
408
+ && Objects .equals (this .evaluation , findingAttributes .evaluation )
357
409
&& Objects .equals (this .evaluationChangedAt , findingAttributes .evaluationChangedAt )
358
410
&& Objects .equals (this .mute , findingAttributes .mute )
359
411
&& Objects .equals (this .resource , findingAttributes .resource )
@@ -369,6 +421,8 @@ public boolean equals(Object o) {
369
421
@ Override
370
422
public int hashCode () {
371
423
return Objects .hash (
424
+ datadogLink ,
425
+ description ,
372
426
evaluation ,
373
427
evaluationChangedAt ,
374
428
mute ,
@@ -386,6 +440,8 @@ public int hashCode() {
386
440
public String toString () {
387
441
StringBuilder sb = new StringBuilder ();
388
442
sb .append ("class FindingAttributes {\n " );
443
+ sb .append (" datadogLink: " ).append (toIndentedString (datadogLink )).append ("\n " );
444
+ sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
389
445
sb .append (" evaluation: " ).append (toIndentedString (evaluation )).append ("\n " );
390
446
sb .append (" evaluationChangedAt: " )
391
447
.append (toIndentedString (evaluationChangedAt ))
0 commit comments