Fix for Penetration test _ Session and cookie management
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / PnfProperties.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.vid.aai.model;
22
23 import com.fasterxml.jackson.annotation.*;
24
25 import java.util.HashMap;
26 import java.util.Map;
27
28 @JsonInclude(JsonInclude.Include.NON_NULL)
29 @JsonIgnoreProperties(ignoreUnknown = true)
30 @JsonPropertyOrder({
31         "pnf-name",
32         "equip-type",
33         "equip-vendor",
34         "equip-model",
35         "in-maint",
36         "resource-version"
37 })
38 public class PnfProperties {
39
40     public String pnfName;
41     public String equipType;
42     public String equipVendor;
43     public String equipModel;
44     public Boolean inMaint;
45     public String resourceVersion;
46
47     @JsonIgnore
48     private Map<String, Object> additionalProperties = new HashMap<>();
49
50     @JsonAnyGetter
51     public Map<String, Object> getAdditionalProperties() {
52         return this.additionalProperties;
53     }
54
55     @JsonAnySetter
56     public void setAdditionalProperty(String name, Object value) {
57         this.additionalProperties.put(name, value);
58     }
59
60     @JsonProperty("pnf-name")
61     public void setJsonPnfName(String pnfName) {
62         this.pnfName = pnfName;
63     }
64
65     @JsonProperty("equip-type")
66     public void setJsonEquipType(String equipType) {
67         this.equipType = equipType;
68     }
69
70     @JsonProperty("equip-vendor")
71     public void setJsonEquipVendor(String equipVendor) {
72         this.equipVendor = equipVendor;
73     }
74
75     @JsonProperty("equip-model")
76     public void setJsonEquipModel(String equipModel) {
77         this.equipModel = equipModel;
78     }
79
80     @JsonProperty("in-maint")
81     public void setJsonInMaint(Boolean inMaint) {
82         this.inMaint = inMaint;
83     }
84
85     @JsonProperty("resource-version")
86     public void setJsonResourceVersion(String resourceVersion) {
87         this.resourceVersion = resourceVersion;
88     }
89
90 }