-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathData.java
More file actions
78 lines (72 loc) · 2.83 KB
/
Data.java
File metadata and controls
78 lines (72 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package com.checkmarx.ast.results.result;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Value;
import java.util.List;
@Value
@JsonDeserialize()
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class Data {
String queryId;
String queryName;
String group;
String resultHash;
String languageName;
String platform;
String issueType;
String expectedValue;
String value;
String fileName;
String packageIdentifier;
String recommendedVersion;
int line;
List<Node> nodes;
List<PackageData> packageData;
ScaPackageData scaPackageData;
// Secret Detection specific fields
String ruleName;
String ruleDescription;
String remediation;
public Data(@JsonProperty("queryId") String queryId,
@JsonProperty("queryName") String queryName,
@JsonProperty("group") String group,
@JsonProperty("resultHash") String resultHash,
@JsonProperty("languageName") String languageName,
@JsonProperty("platform") String platform,
@JsonProperty("issueType") String issueType,
@JsonProperty("expectedValue") String expectedValue,
@JsonProperty("value") String value,
@JsonProperty("filename") String fileName,
@JsonProperty("packageIdentifier") String packageIdentifier,
@JsonProperty("recommendedVersion") String recommendedVersion,
@JsonProperty("line") int line,
@JsonProperty("nodes") List<Node> nodes,
@JsonProperty("packageData") List<PackageData> packageData,
@JsonProperty("scaPackageData") ScaPackageData scaPackageData,
@JsonProperty("ruleName") String ruleName,
@JsonProperty("ruleDescription") String ruleDescription,
@JsonProperty("remediation") String remediation) {
this.queryId = queryId;
this.queryName = queryName;
this.group = group;
this.resultHash = resultHash;
this.languageName = languageName;
this.platform = platform;
this.issueType = issueType;
this.expectedValue = expectedValue;
this.value = value;
this.fileName = fileName;
this.packageIdentifier = packageIdentifier;
this.recommendedVersion = recommendedVersion;
this.line = line;
this.nodes = nodes;
this.packageData = packageData;
this.scaPackageData = scaPackageData;
this.ruleName = ruleName;
this.ruleDescription = ruleDescription;
this.remediation = remediation;
}
}