2 * Copyright (c) 2018 Orange
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 * the License. You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 * specific language governing permissions and limitations under the License.
13 package org.onap.nbi.apis.hub.model;
15 import com.fasterxml.jackson.annotation.JsonFormat;
16 import com.fasterxml.jackson.databind.JsonNode;
17 import java.util.Date;
18 import javax.validation.constraints.NotNull;
23 private java.lang.String eventId;
24 private Date eventDate;
27 private String eventType;
30 private JsonNode event;
32 public String getEventId() {
36 public void setEventId(String eventId) {
37 this.eventId = eventId;
40 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
41 public Date getEventDate() {
45 public void setEventDate(Date eventDate) {
46 this.eventDate = eventDate;
49 public JsonNode getEvent() {
53 public void setEvent(JsonNode event) {
57 public String getEventType() {
61 public void setEventType(String eventType) {
62 this.eventType = eventType;