2020
2121/** The JSON:API attributes of the finding. */
2222@ JsonPropertyOrder ({
23+ FindingAttributes .JSON_PROPERTY_DATADOG_LINK ,
24+ FindingAttributes .JSON_PROPERTY_DESCRIPTION ,
2325 FindingAttributes .JSON_PROPERTY_EVALUATION ,
2426 FindingAttributes .JSON_PROPERTY_EVALUATION_CHANGED_AT ,
27+ FindingAttributes .JSON_PROPERTY_EXTERNAL_ID ,
2528 FindingAttributes .JSON_PROPERTY_MUTE ,
2629 FindingAttributes .JSON_PROPERTY_RESOURCE ,
2730 FindingAttributes .JSON_PROPERTY_RESOURCE_DISCOVERY_DATE ,
3538 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
3639public class FindingAttributes {
3740 @ JsonIgnore public boolean unparsed = false ;
41+ public static final String JSON_PROPERTY_DATADOG_LINK = "datadog_link" ;
42+ private String datadogLink ;
43+
44+ public static final String JSON_PROPERTY_DESCRIPTION = "description" ;
45+ private String description ;
46+
3847 public static final String JSON_PROPERTY_EVALUATION = "evaluation" ;
3948 private FindingEvaluation evaluation ;
4049
4150 public static final String JSON_PROPERTY_EVALUATION_CHANGED_AT = "evaluation_changed_at" ;
4251 private Long evaluationChangedAt ;
4352
53+ public static final String JSON_PROPERTY_EXTERNAL_ID = "external_id" ;
54+ private String externalId ;
55+
4456 public static final String JSON_PROPERTY_MUTE = "mute" ;
4557 private FindingMute mute ;
4658
@@ -65,6 +77,48 @@ public class FindingAttributes {
6577 public static final String JSON_PROPERTY_VULNERABILITY_TYPE = "vulnerability_type" ;
6678 private FindingVulnerabilityType vulnerabilityType ;
6779
80+ public FindingAttributes datadogLink (String datadogLink ) {
81+ this .datadogLink = datadogLink ;
82+ return this ;
83+ }
84+
85+ /**
86+ * The Datadog relative link for this finding.
87+ *
88+ * @return datadogLink
89+ */
90+ @ jakarta .annotation .Nullable
91+ @ JsonProperty (JSON_PROPERTY_DATADOG_LINK )
92+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
93+ public String getDatadogLink () {
94+ return datadogLink ;
95+ }
96+
97+ public void setDatadogLink (String datadogLink ) {
98+ this .datadogLink = datadogLink ;
99+ }
100+
101+ public FindingAttributes description (String description ) {
102+ this .description = description ;
103+ return this ;
104+ }
105+
106+ /**
107+ * The description and remediation steps for this finding.
108+ *
109+ * @return description
110+ */
111+ @ jakarta .annotation .Nullable
112+ @ JsonProperty (JSON_PROPERTY_DESCRIPTION )
113+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
114+ public String getDescription () {
115+ return description ;
116+ }
117+
118+ public void setDescription (String description ) {
119+ this .description = description ;
120+ }
121+
68122 public FindingAttributes evaluation (FindingEvaluation evaluation ) {
69123 this .evaluation = evaluation ;
70124 this .unparsed |= !evaluation .isValid ();
@@ -111,6 +165,27 @@ public void setEvaluationChangedAt(Long evaluationChangedAt) {
111165 this .evaluationChangedAt = evaluationChangedAt ;
112166 }
113167
168+ public FindingAttributes externalId (String externalId ) {
169+ this .externalId = externalId ;
170+ return this ;
171+ }
172+
173+ /**
174+ * The cloud-based ID for the resource related to the finding.
175+ *
176+ * @return externalId
177+ */
178+ @ jakarta .annotation .Nullable
179+ @ JsonProperty (JSON_PROPERTY_EXTERNAL_ID )
180+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
181+ public String getExternalId () {
182+ return externalId ;
183+ }
184+
185+ public void setExternalId (String externalId ) {
186+ this .externalId = externalId ;
187+ }
188+
114189 public FindingAttributes mute (FindingMute mute ) {
115190 this .mute = mute ;
116191 this .unparsed |= mute .unparsed ;
@@ -353,8 +428,11 @@ public boolean equals(Object o) {
353428 return false ;
354429 }
355430 FindingAttributes findingAttributes = (FindingAttributes ) o ;
356- return Objects .equals (this .evaluation , findingAttributes .evaluation )
431+ return Objects .equals (this .datadogLink , findingAttributes .datadogLink )
432+ && Objects .equals (this .description , findingAttributes .description )
433+ && Objects .equals (this .evaluation , findingAttributes .evaluation )
357434 && Objects .equals (this .evaluationChangedAt , findingAttributes .evaluationChangedAt )
435+ && Objects .equals (this .externalId , findingAttributes .externalId )
358436 && Objects .equals (this .mute , findingAttributes .mute )
359437 && Objects .equals (this .resource , findingAttributes .resource )
360438 && Objects .equals (this .resourceDiscoveryDate , findingAttributes .resourceDiscoveryDate )
@@ -369,8 +447,11 @@ public boolean equals(Object o) {
369447 @ Override
370448 public int hashCode () {
371449 return Objects .hash (
450+ datadogLink ,
451+ description ,
372452 evaluation ,
373453 evaluationChangedAt ,
454+ externalId ,
374455 mute ,
375456 resource ,
376457 resourceDiscoveryDate ,
@@ -386,10 +467,13 @@ public int hashCode() {
386467 public String toString () {
387468 StringBuilder sb = new StringBuilder ();
388469 sb .append ("class FindingAttributes {\n " );
470+ sb .append (" datadogLink: " ).append (toIndentedString (datadogLink )).append ("\n " );
471+ sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
389472 sb .append (" evaluation: " ).append (toIndentedString (evaluation )).append ("\n " );
390473 sb .append (" evaluationChangedAt: " )
391474 .append (toIndentedString (evaluationChangedAt ))
392475 .append ("\n " );
476+ sb .append (" externalId: " ).append (toIndentedString (externalId )).append ("\n " );
393477 sb .append (" mute: " ).append (toIndentedString (mute )).append ("\n " );
394478 sb .append (" resource: " ).append (toIndentedString (resource )).append ("\n " );
395479 sb .append (" resourceDiscoveryDate: " )
0 commit comments