Development of NETCONF RPCs for tr-069 adapter to
[oam/tr069-adapter.git] / ves-agent / src / main / java / org / commscope / tr069adapter / vesagent / model / CommonEventHeader.java
1 /*
2  * ============LICENSE_START========================================================================
3  * ONAP : tr-069-adapter
4  * =================================================================================================
5  * Copyright (C) 2020 CommScope Inc Intellectual Property.
6  * =================================================================================================
7  * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,
8  * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
9  * may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14  * either express or implied. See the License for the specific language governing permissions and
15  * limitations under the License.
16  * ===============LICENSE_END=======================================================================
17  */
18
19 package org.commscope.tr069adapter.vesagent.model;
20
21 import com.fasterxml.jackson.annotation.JsonInclude;
22 import com.fasterxml.jackson.annotation.JsonProperty;
23
24 import java.io.Serializable;
25
26 @JsonInclude(JsonInclude.Include.NON_NULL)
27 public class CommonEventHeader implements Serializable {
28   @JsonProperty("version")
29   private String version;
30   @JsonProperty("vesEventListenerVersion")
31   private String vesEventListenerVersion;
32   @JsonProperty("domain")
33   private String domain;
34   @JsonProperty("eventName")
35   private String eventName;
36   @JsonProperty("eventType")
37   private String eventType;
38   @JsonProperty("eventId")
39   private String eventId;
40   @JsonProperty("sequence")
41   private Integer sequence;
42   @JsonProperty("priority")
43   private String priority;
44   @JsonProperty("reportingEntityId")
45   private String reportingEntityId;
46   @JsonProperty("reportingEntityName")
47   private String reportingEntityName;
48   @JsonProperty("sourceId")
49   private String sourceId;
50   @JsonProperty("sourceName")
51   private String sourceName;
52   @JsonProperty("nfVendorName")
53   private String nfVendorName;
54   @JsonProperty("nfNamingCode")
55   private String nfNamingCode;
56   @JsonProperty("nfcNamingCode")
57   private String nfcNamingCode;
58   @JsonProperty("startEpochMicrosec")
59   private long startEpochMicrosec;
60   @JsonProperty("lastEpochMicrosec")
61   private long lastEpochMicrosec;
62   @JsonProperty("timeZoneOffset")
63   private String timeZoneOffset;
64
65   public String getEventId() {
66     return eventId;
67   }
68
69   public void setEventId(String eventId) {
70     this.eventId = eventId;
71   }
72
73   public String getEventName() {
74     return eventName;
75   }
76
77   public void setEventName(String eventName) {
78     this.eventName = eventName;
79   }
80
81   public String getDomain() {
82     return domain;
83   }
84
85   public void setDomain(String domain) {
86     this.domain = domain;
87   }
88
89   public String getSourceName() {
90     return sourceName;
91   }
92
93   public void setSourceName(String sourceName) {
94     this.sourceName = sourceName;
95   }
96
97   public String getPriority() {
98     return priority;
99   }
100
101   public void setPriority(String priority) {
102     this.priority = priority;
103   }
104
105   public String getVersion() {
106     return version;
107   }
108
109   public void setVersion(String version) {
110     this.version = version;
111   }
112
113   public int getSequence() {
114     return sequence;
115   }
116
117   public void setSequence(int sequence) {
118     this.sequence = sequence;
119   }
120
121   public String getVesEventListenerVersion() {
122     return vesEventListenerVersion;
123   }
124
125   public void setVesEventListenerVersion(String vesEventListenerVersion) {
126     this.vesEventListenerVersion = vesEventListenerVersion;
127   }
128
129   public long getStartEpochMicrosec() {
130     return startEpochMicrosec;
131   }
132
133   public void setStartEpochMicrosec(long startEpochMicrosec) {
134     this.startEpochMicrosec = startEpochMicrosec;
135   }
136
137   public long getLastEpochMicrosec() {
138     return lastEpochMicrosec;
139   }
140
141   public void setLastEpochMicrosec(long lastEpochMicrosec) {
142     this.lastEpochMicrosec = lastEpochMicrosec;
143   }
144
145   public String getReportingEntityName() {
146     return reportingEntityName;
147   }
148
149   public void setReportingEntityName(String reportingEntityName) {
150     this.reportingEntityName = reportingEntityName;
151   }
152
153   public void setSequence(Integer sequence) {
154     this.sequence = sequence;
155   }
156
157   public String getEventType() {
158     return eventType;
159   }
160
161   public void setEventType(String eventType) {
162     this.eventType = eventType;
163   }
164
165   public String getNfNamingCode() {
166     return nfNamingCode;
167   }
168
169   public void setNfNamingCode(String nfNamingCode) {
170     this.nfNamingCode = nfNamingCode;
171   }
172
173   public String getReportingEntityId() {
174     return reportingEntityId;
175   }
176
177   public void setReportingEntityId(String reportingEntityId) {
178     this.reportingEntityId = reportingEntityId;
179   }
180
181   public String getSourceId() {
182     return sourceId;
183   }
184
185   public void setSourceId(String sourceId) {
186     this.sourceId = sourceId;
187   }
188
189   public String getNfVendorName() {
190     return nfVendorName;
191   }
192
193   public void setNfVendorName(String nfVendorName) {
194     this.nfVendorName = nfVendorName;
195   }
196
197   public String getTimeZoneOffset() {
198     return timeZoneOffset;
199   }
200
201   public void setTimeZoneOffset(String timeZoneOffset) {
202     this.timeZoneOffset = timeZoneOffset;
203   }
204
205   public String getNfcNamingCode() {
206     return nfcNamingCode;
207   }
208
209   public void setNfcNamingCode(String nfcNamingCode) {
210     this.nfcNamingCode = nfcNamingCode;
211   }
212
213   @Override
214   public String toString() {
215     return "CommonEventHeader [version=" + version + ", vesEventListenerVersion="
216         + vesEventListenerVersion + ", domain=" + domain + ", eventName=" + eventName
217         + ", eventType=" + eventType + ", eventId=" + eventId + ", sequence=" + sequence
218         + ", priority=" + priority + ", reportingEntityId=" + reportingEntityId
219         + ", reportingEntityName=" + reportingEntityName + ", sourceId=" + sourceId
220         + ", sourceName=" + sourceName + ", nfVendorName=" + nfVendorName + ", nfNamingCode="
221         + nfNamingCode + ", nfcNamingCode=" + nfcNamingCode + ", startEpochMicrosec="
222         + startEpochMicrosec + ", lastEpochMicrosec=" + lastEpochMicrosec + ", timeZoneOffset="
223         + timeZoneOffset + "]";
224   }
225
226 }