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
index c1d0750..f8b6a85 100644 (file)
-/*\r
- * ============LICENSE_START========================================================================\r
- * ONAP : tr-069-adapter\r
- * =================================================================================================\r
- * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
- * =================================================================================================\r
- * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
- * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
- * may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
- * either express or implied. See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- * ===============LICENSE_END=======================================================================\r
- */\r
-\r
-package org.commscope.tr069adapter.vesagent.model;\r
-\r
-import com.fasterxml.jackson.annotation.JsonInclude;\r
-import com.fasterxml.jackson.annotation.JsonProperty;\r
-\r
-import java.io.Serializable;\r
-\r
-@JsonInclude(JsonInclude.Include.NON_NULL)\r
-public class CommonEventHeader implements Serializable {\r
-  @JsonProperty("version")\r
-  private String version;\r
-  @JsonProperty("vesEventListenerVersion")\r
-  private String vesEventListenerVersion;\r
-  @JsonProperty("domain")\r
-  private String domain;\r
-  @JsonProperty("eventName")\r
-  private String eventName;\r
-  @JsonProperty("eventType")\r
-  private String eventType;\r
-  @JsonProperty("eventId")\r
-  private String eventId;\r
-  @JsonProperty("sequence")\r
-  private Integer sequence;\r
-  @JsonProperty("priority")\r
-  private String priority;\r
-  @JsonProperty("reportingEntityId")\r
-  private String reportingEntityId;\r
-  @JsonProperty("reportingEntityName")\r
-  private String reportingEntityName;\r
-  @JsonProperty("sourceId")\r
-  private String sourceId;\r
-  @JsonProperty("sourceName")\r
-  private String sourceName;\r
-  @JsonProperty("nfVendorName")\r
-  private String nfVendorName;\r
-  @JsonProperty("nfNamingCode")\r
-  private String nfNamingCode;\r
-  @JsonProperty("nfcNamingCode")\r
-  private String nfcNamingCode;\r
-  @JsonProperty("startEpochMicrosec")\r
-  private long startEpochMicrosec;\r
-  @JsonProperty("lastEpochMicrosec")\r
-  private long lastEpochMicrosec;\r
-  @JsonProperty("timeZoneOffset")\r
-  private String timeZoneOffset;\r
-\r
-  public String getEventId() {\r
-    return eventId;\r
-  }\r
-\r
-  public void setEventId(String eventId) {\r
-    this.eventId = eventId;\r
-  }\r
-\r
-  public String getEventName() {\r
-    return eventName;\r
-  }\r
-\r
-  public void setEventName(String eventName) {\r
-    this.eventName = eventName;\r
-  }\r
-\r
-  public String getDomain() {\r
-    return domain;\r
-  }\r
-\r
-  public void setDomain(String domain) {\r
-    this.domain = domain;\r
-  }\r
-\r
-  public String getSourceName() {\r
-    return sourceName;\r
-  }\r
-\r
-  public void setSourceName(String sourceName) {\r
-    this.sourceName = sourceName;\r
-  }\r
-\r
-  public String getPriority() {\r
-    return priority;\r
-  }\r
-\r
-  public void setPriority(String priority) {\r
-    this.priority = priority;\r
-  }\r
-\r
-  public String getVersion() {\r
-    return version;\r
-  }\r
-\r
-  public void setVersion(String version) {\r
-    this.version = version;\r
-  }\r
-\r
-  public int getSequence() {\r
-    return sequence;\r
-  }\r
-\r
-  public void setSequence(int sequence) {\r
-    this.sequence = sequence;\r
-  }\r
-\r
-  public String getVesEventListenerVersion() {\r
-    return vesEventListenerVersion;\r
-  }\r
-\r
-  public void setVesEventListenerVersion(String vesEventListenerVersion) {\r
-    this.vesEventListenerVersion = vesEventListenerVersion;\r
-  }\r
-\r
-  public long getStartEpochMicrosec() {\r
-    return startEpochMicrosec;\r
-  }\r
-\r
-  public void setStartEpochMicrosec(long startEpochMicrosec) {\r
-    this.startEpochMicrosec = startEpochMicrosec;\r
-  }\r
-\r
-  public long getLastEpochMicrosec() {\r
-    return lastEpochMicrosec;\r
-  }\r
-\r
-  public void setLastEpochMicrosec(long lastEpochMicrosec) {\r
-    this.lastEpochMicrosec = lastEpochMicrosec;\r
-  }\r
-\r
-  public String getReportingEntityName() {\r
-    return reportingEntityName;\r
-  }\r
-\r
-  public void setReportingEntityName(String reportingEntityName) {\r
-    this.reportingEntityName = reportingEntityName;\r
-  }\r
-\r
-  public void setSequence(Integer sequence) {\r
-    this.sequence = sequence;\r
-  }\r
-\r
-  public String getEventType() {\r
-    return eventType;\r
-  }\r
-\r
-  public void setEventType(String eventType) {\r
-    this.eventType = eventType;\r
-  }\r
-\r
-  public String getNfNamingCode() {\r
-    return nfNamingCode;\r
-  }\r
-\r
-  public void setNfNamingCode(String nfNamingCode) {\r
-    this.nfNamingCode = nfNamingCode;\r
-  }\r
-\r
-  public String getReportingEntityId() {\r
-    return reportingEntityId;\r
-  }\r
-\r
-  public void setReportingEntityId(String reportingEntityId) {\r
-    this.reportingEntityId = reportingEntityId;\r
-  }\r
-\r
-  public String getSourceId() {\r
-    return sourceId;\r
-  }\r
-\r
-  public void setSourceId(String sourceId) {\r
-    this.sourceId = sourceId;\r
-  }\r
-\r
-  public String getNfVendorName() {\r
-    return nfVendorName;\r
-  }\r
-\r
-  public void setNfVendorName(String nfVendorName) {\r
-    this.nfVendorName = nfVendorName;\r
-  }\r
-\r
-  public String getTimeZoneOffset() {\r
-    return timeZoneOffset;\r
-  }\r
-\r
-  public void setTimeZoneOffset(String timeZoneOffset) {\r
-    this.timeZoneOffset = timeZoneOffset;\r
-  }\r
-\r
-  public String getNfcNamingCode() {\r
-    return nfcNamingCode;\r
-  }\r
-\r
-  public void setNfcNamingCode(String nfcNamingCode) {\r
-    this.nfcNamingCode = nfcNamingCode;\r
-  }\r
-\r
-}\r
+/*
+ * ============LICENSE_START========================================================================
+ * ONAP : tr-069-adapter
+ * =================================================================================================
+ * Copyright (C) 2020 CommScope Inc Intellectual Property.
+ * =================================================================================================
+ * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
+ * may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ===============LICENSE_END=======================================================================
+ */
+
+package org.commscope.tr069adapter.vesagent.model;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import java.io.Serializable;
+
+@JsonInclude(JsonInclude.Include.NON_NULL)
+public class CommonEventHeader implements Serializable {
+  @JsonProperty("version")
+  private String version;
+  @JsonProperty("vesEventListenerVersion")
+  private String vesEventListenerVersion;
+  @JsonProperty("domain")
+  private String domain;
+  @JsonProperty("eventName")
+  private String eventName;
+  @JsonProperty("eventType")
+  private String eventType;
+  @JsonProperty("eventId")
+  private String eventId;
+  @JsonProperty("sequence")
+  private Integer sequence;
+  @JsonProperty("priority")
+  private String priority;
+  @JsonProperty("reportingEntityId")
+  private String reportingEntityId;
+  @JsonProperty("reportingEntityName")
+  private String reportingEntityName;
+  @JsonProperty("sourceId")
+  private String sourceId;
+  @JsonProperty("sourceName")
+  private String sourceName;
+  @JsonProperty("nfVendorName")
+  private String nfVendorName;
+  @JsonProperty("nfNamingCode")
+  private String nfNamingCode;
+  @JsonProperty("nfcNamingCode")
+  private String nfcNamingCode;
+  @JsonProperty("startEpochMicrosec")
+  private long startEpochMicrosec;
+  @JsonProperty("lastEpochMicrosec")
+  private long lastEpochMicrosec;
+  @JsonProperty("timeZoneOffset")
+  private String timeZoneOffset;
+
+  public String getEventId() {
+    return eventId;
+  }
+
+  public void setEventId(String eventId) {
+    this.eventId = eventId;
+  }
+
+  public String getEventName() {
+    return eventName;
+  }
+
+  public void setEventName(String eventName) {
+    this.eventName = eventName;
+  }
+
+  public String getDomain() {
+    return domain;
+  }
+
+  public void setDomain(String domain) {
+    this.domain = domain;
+  }
+
+  public String getSourceName() {
+    return sourceName;
+  }
+
+  public void setSourceName(String sourceName) {
+    this.sourceName = sourceName;
+  }
+
+  public String getPriority() {
+    return priority;
+  }
+
+  public void setPriority(String priority) {
+    this.priority = priority;
+  }
+
+  public String getVersion() {
+    return version;
+  }
+
+  public void setVersion(String version) {
+    this.version = version;
+  }
+
+  public int getSequence() {
+    return sequence;
+  }
+
+  public void setSequence(int sequence) {
+    this.sequence = sequence;
+  }
+
+  public String getVesEventListenerVersion() {
+    return vesEventListenerVersion;
+  }
+
+  public void setVesEventListenerVersion(String vesEventListenerVersion) {
+    this.vesEventListenerVersion = vesEventListenerVersion;
+  }
+
+  public long getStartEpochMicrosec() {
+    return startEpochMicrosec;
+  }
+
+  public void setStartEpochMicrosec(long startEpochMicrosec) {
+    this.startEpochMicrosec = startEpochMicrosec;
+  }
+
+  public long getLastEpochMicrosec() {
+    return lastEpochMicrosec;
+  }
+
+  public void setLastEpochMicrosec(long lastEpochMicrosec) {
+    this.lastEpochMicrosec = lastEpochMicrosec;
+  }
+
+  public String getReportingEntityName() {
+    return reportingEntityName;
+  }
+
+  public void setReportingEntityName(String reportingEntityName) {
+    this.reportingEntityName = reportingEntityName;
+  }
+
+  public void setSequence(Integer sequence) {
+    this.sequence = sequence;
+  }
+
+  public String getEventType() {
+    return eventType;
+  }
+
+  public void setEventType(String eventType) {
+    this.eventType = eventType;
+  }
+
+  public String getNfNamingCode() {
+    return nfNamingCode;
+  }
+
+  public void setNfNamingCode(String nfNamingCode) {
+    this.nfNamingCode = nfNamingCode;
+  }
+
+  public String getReportingEntityId() {
+    return reportingEntityId;
+  }
+
+  public void setReportingEntityId(String reportingEntityId) {
+    this.reportingEntityId = reportingEntityId;
+  }
+
+  public String getSourceId() {
+    return sourceId;
+  }
+
+  public void setSourceId(String sourceId) {
+    this.sourceId = sourceId;
+  }
+
+  public String getNfVendorName() {
+    return nfVendorName;
+  }
+
+  public void setNfVendorName(String nfVendorName) {
+    this.nfVendorName = nfVendorName;
+  }
+
+  public String getTimeZoneOffset() {
+    return timeZoneOffset;
+  }
+
+  public void setTimeZoneOffset(String timeZoneOffset) {
+    this.timeZoneOffset = timeZoneOffset;
+  }
+
+  public String getNfcNamingCode() {
+    return nfcNamingCode;
+  }
+
+  public void setNfcNamingCode(String nfcNamingCode) {
+    this.nfcNamingCode = nfcNamingCode;
+  }
+
+  @Override
+  public String toString() {
+    return "CommonEventHeader [version=" + version + ", vesEventListenerVersion="
+        + vesEventListenerVersion + ", domain=" + domain + ", eventName=" + eventName
+        + ", eventType=" + eventType + ", eventId=" + eventId + ", sequence=" + sequence
+        + ", priority=" + priority + ", reportingEntityId=" + reportingEntityId
+        + ", reportingEntityName=" + reportingEntityName + ", sourceId=" + sourceId
+        + ", sourceName=" + sourceName + ", nfVendorName=" + nfVendorName + ", nfNamingCode="
+        + nfNamingCode + ", nfcNamingCode=" + nfcNamingCode + ", startEpochMicrosec="
+        + startEpochMicrosec + ", lastEpochMicrosec=" + lastEpochMicrosec + ", timeZoneOffset="
+        + timeZoneOffset + "]";
+  }
+
+}