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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=======================================================================
19 package org.commscope.tr069adapter.vesagent.model;
21 import com.fasterxml.jackson.annotation.JsonInclude;
22 import com.fasterxml.jackson.annotation.JsonProperty;
24 import java.io.Serializable;
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;
65 public String getEventId() {
69 public void setEventId(String eventId) {
70 this.eventId = eventId;
73 public String getEventName() {
77 public void setEventName(String eventName) {
78 this.eventName = eventName;
81 public String getDomain() {
85 public void setDomain(String domain) {
89 public String getSourceName() {
93 public void setSourceName(String sourceName) {
94 this.sourceName = sourceName;
97 public String getPriority() {
101 public void setPriority(String priority) {
102 this.priority = priority;
105 public String getVersion() {
109 public void setVersion(String version) {
110 this.version = version;
113 public int getSequence() {
117 public void setSequence(int sequence) {
118 this.sequence = sequence;
121 public String getVesEventListenerVersion() {
122 return vesEventListenerVersion;
125 public void setVesEventListenerVersion(String vesEventListenerVersion) {
126 this.vesEventListenerVersion = vesEventListenerVersion;
129 public long getStartEpochMicrosec() {
130 return startEpochMicrosec;
133 public void setStartEpochMicrosec(long startEpochMicrosec) {
134 this.startEpochMicrosec = startEpochMicrosec;
137 public long getLastEpochMicrosec() {
138 return lastEpochMicrosec;
141 public void setLastEpochMicrosec(long lastEpochMicrosec) {
142 this.lastEpochMicrosec = lastEpochMicrosec;
145 public String getReportingEntityName() {
146 return reportingEntityName;
149 public void setReportingEntityName(String reportingEntityName) {
150 this.reportingEntityName = reportingEntityName;
153 public void setSequence(Integer sequence) {
154 this.sequence = sequence;
157 public String getEventType() {
161 public void setEventType(String eventType) {
162 this.eventType = eventType;
165 public String getNfNamingCode() {
169 public void setNfNamingCode(String nfNamingCode) {
170 this.nfNamingCode = nfNamingCode;
173 public String getReportingEntityId() {
174 return reportingEntityId;
177 public void setReportingEntityId(String reportingEntityId) {
178 this.reportingEntityId = reportingEntityId;
181 public String getSourceId() {
185 public void setSourceId(String sourceId) {
186 this.sourceId = sourceId;
189 public String getNfVendorName() {
193 public void setNfVendorName(String nfVendorName) {
194 this.nfVendorName = nfVendorName;
197 public String getTimeZoneOffset() {
198 return timeZoneOffset;
201 public void setTimeZoneOffset(String timeZoneOffset) {
202 this.timeZoneOffset = timeZoneOffset;
205 public String getNfcNamingCode() {
206 return nfcNamingCode;
209 public void setNfcNamingCode(String nfcNamingCode) {
210 this.nfcNamingCode = nfcNamingCode;
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 + "]";