Merge from ECOMP's repository
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / SimpleResult.java
1 package org.onap.vid.aai.model;
2
3 import com.fasterxml.jackson.annotation.JsonAnySetter;
4 import com.fasterxml.jackson.annotation.JsonIgnore;
5 import com.fasterxml.jackson.annotation.JsonProperty;
6
7 import java.util.HashMap;
8 import java.util.List;
9 import java.util.Map;
10
11 public class SimpleResult {
12     private String id;
13     private String nodeType;
14     private String url;
15     private Properties properties;
16     private List<RelatedTo> relatedTo = null;
17     @JsonIgnore
18     private Map<String, Object> additionalProperties = new HashMap<>();
19
20     public String getId() {
21         return id;
22     }
23
24     @JsonProperty("id")
25     public void setJsonId(String id) {
26         this.id = id;
27     }
28
29     public String getNodeType() {
30         return nodeType;
31     }
32
33     @JsonProperty("node-type")
34     public void setJsonNodeType(String nodeType) {
35         this.nodeType = nodeType;
36     }
37
38     public String getUrl() {
39         return url;
40     }
41
42     @JsonProperty("url")
43     public void setJsonUrl(String url) {
44         this.url = url;
45     }
46
47     public Properties getProperties() {
48         return properties;
49     }
50
51     @JsonProperty("properties")
52     public void setJsonProperties(Properties properties) {
53         this.properties = properties;
54     }
55
56     public List<RelatedTo> getRelatedTo() {
57         return relatedTo;
58     }
59
60     @JsonProperty("related-to")
61     public void setJsonRelatedTo(List<RelatedTo> relatedTo) {
62         this.relatedTo = relatedTo;
63     }
64
65     public Map<String, Object> getAdditionalProperties() {
66         return this.additionalProperties;
67     }
68
69     @JsonAnySetter
70     public void setJsonAdditionalProperty(String name, Object value) {
71         this.additionalProperties.put(name, value);
72     }
73 }