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;
26 @JsonIgnoreProperties(ignoreUnknown = true)
27 public class SpikeEventHeader {
29 @JsonProperty("request-id")
30 private String requestId;
32 private String timestamp;
34 @JsonProperty("source-name")
35 private String sourceName;
37 @JsonProperty("event-type")
38 private String eventType;
40 public String getRequestId() {
44 public void setRequestId(String requestId) {
45 this.requestId = requestId;
48 public String getTimestamp() {
52 public void setTimestamp(String timestamp) {
53 this.timestamp = timestamp;
56 public String getSourceName() {
60 public void setSourceName(String sourceName) {
61 this.sourceName = sourceName;
64 public String getEventType() {
68 public void setEventType(String eventType) {
69 this.eventType = eventType;
73 public String toString() {
74 return "SpikeEventHeader [" + (requestId != null ? "requestId=" + requestId + ", " : "")
75 + (timestamp != null ? "timestamp=" + timestamp + ", " : "")
76 + (sourceName != null ? "sourceName=" + sourceName + ", " : "")
77 + (eventType != null ? "eventType=" + eventType : "") + "]";