2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017-2018 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 package org.onap.aai.datarouter.entity;
23 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
24 import com.fasterxml.jackson.annotation.JsonProperty;
27 * A convenience POJO for mapping the UebEventHeader from a UEB Event.
32 @JsonIgnoreProperties(ignoreUnknown = true)
33 public class UebEventHeader {
35 private String timestamp;
39 private String action;
41 private String domain;
43 private String sourceName;
45 private String entityLink;
47 private String entityType;
49 private String topEntityType;
51 private String sequenceNumber;
53 private String eventType;
55 private String version;
57 public String getTimestamp() {
61 public void setTimestamp(String timestamp) {
62 this.timestamp = timestamp;
65 public String getId() {
69 public void setId(String id) {
73 public String getAction() {
77 public void setAction(String action) {
81 public String getDomain() {
85 public void setDomain(String domain) {
89 public String getSourceName() {
93 @JsonProperty("source-name")
94 public void setSourceName(String sourceName) {
95 this.sourceName = sourceName;
98 public String getEntityLink() {
102 @JsonProperty("entity-link")
103 public void setEntityLink(String entityLink) {
104 this.entityLink = entityLink;
107 public String getEntityType() {
111 @JsonProperty("entity-type")
112 public void setEntityType(String entityType) {
113 this.entityType = entityType;
116 public String getTopEntityType() {
117 return topEntityType;
120 @JsonProperty("top-entity-type")
121 public void setTopEntityType(String topEntityType) {
122 this.topEntityType = topEntityType;
125 public String getSequenceNumber() {
126 return sequenceNumber;
129 @JsonProperty("sequence-number")
130 public void setSequenceNumber(String sequenceNumber) {
131 this.sequenceNumber = sequenceNumber;
134 public String getEventType() {
138 @JsonProperty("event-type")
139 public void setEventType(String eventType) {
140 this.eventType = eventType;
143 public String getVersion() {
147 public void setVersion(String version) {
148 this.version = version;
152 public String toString() {
153 return "UebEventHeader [" + (timestamp != null ? "timestamp=" + timestamp + ", " : "")
154 + (id != null ? "id=" + id + ", " : "") + (action != null ? "action=" + action + ", " : "")
155 + (domain != null ? "domain=" + domain + ", " : "")
156 + (sourceName != null ? "sourceName=" + sourceName + ", " : "")
157 + (entityLink != null ? "entityLink=" + entityLink + ", " : "")
158 + (entityType != null ? "entityType=" + entityType + ", " : "")
159 + (topEntityType != null ? "topEntityType=" + topEntityType + ", " : "")
160 + (sequenceNumber != null ? "sequenceNumber=" + sequenceNumber + ", " : "")
161 + (eventType != null ? "eventType=" + eventType + ", " : "")
162 + (version != null ? "version=" + version : "") + "]";