Merge from ECOMP's repository
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / PnfProperties.java
1 package org.onap.vid.aai.model;
2
3 import com.fasterxml.jackson.annotation.*;
4
5 import java.util.HashMap;
6 import java.util.Map;
7
8 @JsonInclude(JsonInclude.Include.NON_NULL)
9 @JsonIgnoreProperties(ignoreUnknown = true)
10 @JsonPropertyOrder({
11         "pnf-name",
12         "equip-type",
13         "equip-vendor",
14         "equip-model",
15         "in-maint",
16         "resource-version"
17 })
18 public class PnfProperties {
19
20     public String pnfName;
21     public String equipType;
22     public String equipVendor;
23     public String equipModel;
24     public Boolean inMaint;
25     public String resourceVersion;
26
27     @JsonIgnore
28     private Map<String, Object> additionalProperties = new HashMap<>();
29
30     @JsonAnyGetter
31     public Map<String, Object> getAdditionalProperties() {
32         return this.additionalProperties;
33     }
34
35     @JsonAnySetter
36     public void setAdditionalProperty(String name, Object value) {
37         this.additionalProperties.put(name, value);
38     }
39
40     @JsonProperty("pnf-name")
41     public void setJsonPnfName(String pnfName) {
42         this.pnfName = pnfName;
43     }
44
45     @JsonProperty("equip-type")
46     public void setJsonEquipType(String equipType) {
47         this.equipType = equipType;
48     }
49
50     @JsonProperty("equip-vendor")
51     public void setJsonEquipVendor(String equipVendor) {
52         this.equipVendor = equipVendor;
53     }
54
55     @JsonProperty("equip-model")
56     public void setJsonEquipModel(String equipModel) {
57         this.equipModel = equipModel;
58     }
59
60     @JsonProperty("in-maint")
61     public void setJsonInMaint(Boolean inMaint) {
62         this.inMaint = inMaint;
63     }
64
65     @JsonProperty("resource-version")
66     public void setJsonResourceVersion(String resourceVersion) {
67         this.resourceVersion = resourceVersion;
68     }
69
70 }