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