AssetInfo.java
2.03 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
79
80
81
82
83
84
85
86
87
package com.idss.vulsync.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;
import java.util.List;
/**
* @Author: zc
* @Date: 2023/4/7 13:10
*/
@Data
@JsonPropertyOrder(alphabetic=true)
public class AssetInfo {
@JsonProperty("Brand")
private List<Brand> brand;
@JsonProperty("Language")
private String language;
@JsonProperty("Memory")
private List<Memory> memory;
@JsonProperty("OpenSource")
private String openSource;
@JsonProperty("HardwareEnvironment")
private String hardwareEnvironment;
@JsonProperty("SoftwareEnvironment")
private String softwareEnvironment;
@JsonProperty("CPU")
private List<Cpu> cpu;
@JsonProperty("information")
private List<Information> information;
@JsonProperty("Chip")
private List<Chip> Chip;
@Data
@JsonPropertyOrder(alphabetic=true)
public static class Brand {
@JsonProperty("Manufacturer")
private String manufacturer;
@JsonProperty("Region")
private String region;
@JsonProperty("Name")
private String name;
}
@Data
@JsonPropertyOrder(alphabetic=true)
public static class Memory {
@JsonProperty("Manufacturer")
private String manufacturer;
@JsonProperty("Model")
private String model;
}
@Data
@JsonPropertyOrder(alphabetic=true)
public static class Cpu {
@JsonProperty("Manufacturer")
private String manufacturer;
@JsonProperty("Model")
private String model;
}
@Data
@JsonPropertyOrder(alphabetic=true)
public static class Information {
@JsonProperty("Version")
private String version;
@JsonProperty("Model")
private String model;
}
@Data
@JsonPropertyOrder(alphabetic=true)
public static class Chip {
@JsonProperty("Manufacturer")
private String manufacturer;
@JsonProperty("Model")
private String model;
}
}