Initial ONAP Synapse commit
[aai/data-router.git] / src / main / java / org / openecomp / datarouter / entity / UebEventHeader.java
1 /**
2  * ============LICENSE_START=======================================================
3  * DataRouter
4  * ================================================================================
5  * Copyright © 2017 AT&T Intellectual Property.
6  * Copyright © 2017 Amdocs
7  * All rights reserved.
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
12  *
13  *    http://www.apache.org/licenses/LICENSE-2.0
14  *
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=========================================================
21  *
22  * ECOMP and OpenECOMP are trademarks
23  * and service marks of AT&T Intellectual Property.
24  */
25 package org.openecomp.datarouter.entity;
26
27 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29
30 /**
31  * A convenience POJO for mapping the UebEventHeader from a UEB Event.
32  * 
33  * @author davea
34  */
35
36 @JsonIgnoreProperties(ignoreUnknown = true)
37 public class UebEventHeader {
38
39   private String timestamp;
40
41   private String id;
42
43   private String action;
44
45   private String domain;
46
47   private String sourceName;
48
49   private String entityLink;
50
51   private String entityType;
52
53   private String topEntityType;
54
55   private String sequenceNumber;
56
57   private String eventType;
58
59   private String version;
60
61   public String getTimestamp() {
62     return timestamp;
63   }
64
65   public void setTimestamp(String timestamp) {
66     this.timestamp = timestamp;
67   }
68
69   public String getId() {
70     return id;
71   }
72
73   public void setId(String id) {
74     this.id = id;
75   }
76
77   public String getAction() {
78     return action;
79   }
80
81   public void setAction(String action) {
82     this.action = action;
83   }
84
85   public String getDomain() {
86     return domain;
87   }
88
89   public void setDomain(String domain) {
90     this.domain = domain;
91   }
92
93   public String getSourceName() {
94     return sourceName;
95   }
96
97   @JsonProperty("source-name")
98   public void setSourceName(String sourceName) {
99     this.sourceName = sourceName;
100   }
101
102   public String getEntityLink() {
103     return entityLink;
104   }
105
106   @JsonProperty("entity-link")
107   public void setEntityLink(String entityLink) {
108     this.entityLink = entityLink;
109   }
110
111   public String getEntityType() {
112     return entityType;
113   }
114
115   @JsonProperty("entity-type")
116   public void setEntityType(String entityType) {
117     this.entityType = entityType;
118   }
119
120   public String getTopEntityType() {
121     return topEntityType;
122   }
123
124   @JsonProperty("top-entity-type")
125   public void setTopEntityType(String topEntityType) {
126     this.topEntityType = topEntityType;
127   }
128
129   public String getSequenceNumber() {
130     return sequenceNumber;
131   }
132
133   @JsonProperty("sequence-number")
134   public void setSequenceNumber(String sequenceNumber) {
135     this.sequenceNumber = sequenceNumber;
136   }
137
138   public String getEventType() {
139     return eventType;
140   }
141
142   @JsonProperty("event-type")
143   public void setEventType(String eventType) {
144     this.eventType = eventType;
145   }
146
147   public String getVersion() {
148     return version;
149   }
150
151   public void setVersion(String version) {
152     this.version = version;
153   }
154
155   @Override
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 : "") + "]";
167   }
168
169 }