2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
25 package org.openecomp.datarouter.entity;
27 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 import com.fasterxml.jackson.annotation.JsonProperty;
31 * A convenience POJO for mapping the UebEventHeader from a UEB Event.
36 @JsonIgnoreProperties(ignoreUnknown = true)
37 public class UebEventHeader {
39 private String timestamp;
43 private String action;
45 private String domain;
47 private String sourceName;
49 private String entityLink;
51 private String entityType;
53 private String topEntityType;
55 private String sequenceNumber;
57 private String eventType;
59 private String version;
61 public String getTimestamp() {
65 public void setTimestamp(String timestamp) {
66 this.timestamp = timestamp;
69 public String getId() {
73 public void setId(String id) {
77 public String getAction() {
81 public void setAction(String action) {
85 public String getDomain() {
89 public void setDomain(String domain) {
93 public String getSourceName() {
97 @JsonProperty("source-name")
98 public void setSourceName(String sourceName) {
99 this.sourceName = sourceName;
102 public String getEntityLink() {
106 @JsonProperty("entity-link")
107 public void setEntityLink(String entityLink) {
108 this.entityLink = entityLink;
111 public String getEntityType() {
115 @JsonProperty("entity-type")
116 public void setEntityType(String entityType) {
117 this.entityType = entityType;
120 public String getTopEntityType() {
121 return topEntityType;
124 @JsonProperty("top-entity-type")
125 public void setTopEntityType(String topEntityType) {
126 this.topEntityType = topEntityType;
129 public String getSequenceNumber() {
130 return sequenceNumber;
133 @JsonProperty("sequence-number")
134 public void setSequenceNumber(String sequenceNumber) {
135 this.sequenceNumber = sequenceNumber;
138 public String getEventType() {
142 @JsonProperty("event-type")
143 public void setEventType(String eventType) {
144 this.eventType = eventType;
147 public String getVersion() {
151 public void setVersion(String version) {
152 this.version = version;
156 public String toString() {
157 return "UebEventHeader [" + (timestamp != null ? "timestamp=" + timestamp + ", " : "")
158 + (id != null ? "id=" + id + ", " : "") + (action != null ? "action=" + action + ", " : "")
159 + (domain != null ? "domain=" + domain + ", " : "")
160 + (sourceName != null ? "sourceName=" + sourceName + ", " : "")
161 + (entityLink != null ? "entityLink=" + entityLink + ", " : "")
162 + (entityType != null ? "entityType=" + entityType + ", " : "")
163 + (topEntityType != null ? "topEntityType=" + topEntityType + ", " : "")
164 + (sequenceNumber != null ? "sequenceNumber=" + sequenceNumber + ", " : "")
165 + (eventType != null ? "eventType=" + eventType + ", " : "")
166 + (version != null ? "version=" + version : "") + "]";