2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017 Amdocs
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.onap.aai.datarouter.entity;
25 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 import com.fasterxml.jackson.annotation.JsonProperty;
29 * A convenience POJO for mapping the UebEventHeader from a UEB Event.
34 @JsonIgnoreProperties(ignoreUnknown = true)
35 public class UebEventHeader {
37 private String timestamp;
41 private String action;
43 private String domain;
45 private String sourceName;
47 private String entityLink;
49 private String entityType;
51 private String topEntityType;
53 private String sequenceNumber;
55 private String eventType;
57 private String version;
59 public String getTimestamp() {
63 public void setTimestamp(String timestamp) {
64 this.timestamp = timestamp;
67 public String getId() {
71 public void setId(String id) {
75 public String getAction() {
79 public void setAction(String action) {
83 public String getDomain() {
87 public void setDomain(String domain) {
91 public String getSourceName() {
95 @JsonProperty("source-name")
96 public void setSourceName(String sourceName) {
97 this.sourceName = sourceName;
100 public String getEntityLink() {
104 @JsonProperty("entity-link")
105 public void setEntityLink(String entityLink) {
106 this.entityLink = entityLink;
109 public String getEntityType() {
113 @JsonProperty("entity-type")
114 public void setEntityType(String entityType) {
115 this.entityType = entityType;
118 public String getTopEntityType() {
119 return topEntityType;
122 @JsonProperty("top-entity-type")
123 public void setTopEntityType(String topEntityType) {
124 this.topEntityType = topEntityType;
127 public String getSequenceNumber() {
128 return sequenceNumber;
131 @JsonProperty("sequence-number")
132 public void setSequenceNumber(String sequenceNumber) {
133 this.sequenceNumber = sequenceNumber;
136 public String getEventType() {
140 @JsonProperty("event-type")
141 public void setEventType(String eventType) {
142 this.eventType = eventType;
145 public String getVersion() {
149 public void setVersion(String version) {
150 this.version = version;
154 public String toString() {
155 return "UebEventHeader [" + (timestamp != null ? "timestamp=" + timestamp + ", " : "")
156 + (id != null ? "id=" + id + ", " : "") + (action != null ? "action=" + action + ", " : "")
157 + (domain != null ? "domain=" + domain + ", " : "")
158 + (sourceName != null ? "sourceName=" + sourceName + ", " : "")
159 + (entityLink != null ? "entityLink=" + entityLink + ", " : "")
160 + (entityType != null ? "entityType=" + entityType + ", " : "")
161 + (topEntityType != null ? "topEntityType=" + topEntityType + ", " : "")
162 + (sequenceNumber != null ? "sequenceNumber=" + sequenceNumber + ", " : "")
163 + (eventType != null ? "eventType=" + eventType + ", " : "")
164 + (version != null ? "version=" + version : "") + "]";