org.onap migration
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / PnfResult.java
1 package org.onap.vid.aai.model;
2
3 import com.fasterxml.jackson.annotation.JsonAnyGetter;
4 import com.fasterxml.jackson.annotation.JsonAnySetter;
5 import com.fasterxml.jackson.annotation.JsonIgnore;
6 import com.fasterxml.jackson.annotation.JsonInclude;
7 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
8 import org.codehaus.jackson.annotate.JsonProperty;
9 import org.onap.vid.RelatedTo;
10
11 import java.util.HashMap;
12 import java.util.List;
13 import java.util.Map;
14
15
16 @JsonInclude(JsonInclude.Include.NON_NULL)
17 @JsonPropertyOrder({
18         "id",
19         "node-type",
20         "url",
21         "properties",
22         "related-to"
23 })
24 public class PnfResult {
25
26     @JsonProperty("id")
27     public String id;
28     @JsonProperty("node-type")
29     public String nodeType;
30     @JsonProperty("url")
31     public String url;
32     @JsonProperty("properties")
33     public PnfProperties properties;
34     @JsonProperty("related-to")
35     public List<RelatedTo> relatedTo;
36
37     @JsonIgnore
38     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
39
40     @JsonAnyGetter
41     public Map<String, Object> getAdditionalProperties() {
42         return this.additionalProperties;
43     }
44
45     @JsonAnySetter
46     public void setAdditionalProperty(String name, Object value) {
47         this.additionalProperties.put(name, value);
48     }
49 }