Modify ANR Payload aligned to A1 schema in SDNR
[dcaegen2/services/son-handler.git] / src / main / java / org / onap / dcaegen2 / services / sonhms / model / Neighbours.java
1 /*******************************************************************************
2  *  ============LICENSE_START=======================================================
3  *  son-handler
4  *  ================================================================================
5  *   Copyright (C) 2022 Wipro Limited.
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
22 package org.onap.dcaegen2.services.sonhms.model;
23
24 import com.fasterxml.jackson.annotation.JsonProperty;
25
26 import java.util.List;
27
28 /**
29  * Model class for neighbour details within the payload
30  *      for A1 based control loop
31  */
32
33 public class Neighbours {
34
35     @JsonProperty("PNFName")
36     private String pnfName;
37
38     @JsonProperty("PLMNID")
39     private String plmnId;
40
41     @JsonProperty("CellID")
42     private String cellId;
43
44     @JsonProperty("ho-kpi1")
45     private int hoKpi;
46
47     public Neighbours() {
48
49     }
50
51     /**
52      * Parameterized Constructor.
53      */
54     public Neighbours(String pnfName, String plmnId, String cellId, int hoKpi) {
55         super();
56         this.pnfName = pnfName;
57         this.plmnId = plmnId;
58         this.cellId = cellId;
59         this.hoKpi = hoKpi;
60     }
61
62     public String getPnfName() {
63         return pnfName;
64     }
65
66     public void setPnfName(String pnfName) {
67         this.pnfName = pnfName;
68     }
69
70     public String getPlmnId() {
71         return plmnId;
72     }
73
74     public void setPlmnId(String plmnId) {
75         this.plmnId = plmnId;
76     }
77
78     public String getCellId() {
79          return cellId;
80     }
81
82     public void setCellId(String cellId) {
83         this.cellId = cellId;
84     }
85
86     public int getHoKpi() {
87         return hoKpi;
88     }
89
90     public void setHoKpi(int hoKpi) {
91        this.hoKpi = hoKpi;
92     }
93
94     @Override
95     public String toString() {
96          return "Neighbours [pnfName=" + pnfName + ", plmnId=" + plmnId + ", cellId=" + cellId + ", hoKpi=" + hoKpi
97             + "]";
98     }
99
100 }
101