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