e68d3226a00123a4dcc41cf19a82bb776d46c217
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / hub / model / Event.java
1 /**
2  *     Copyright (c) 2018 Orange
3  *
4  *     Licensed under the Apache License, Version 2.0 (the "License");
5  *     you may not use this file except in compliance with the License.
6  *     You may obtain a copy of the License at
7  *
8  *         http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *     Unless required by applicable law or agreed to in writing, software
11  *     distributed under the License is distributed on an "AS IS" BASIS,
12  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *     See the License for the specific language governing permissions and
14  *     limitations under the License.
15  */
16 package org.onap.nbi.apis.hub.model;
17
18 import com.fasterxml.jackson.databind.JsonNode;
19
20 import javax.validation.constraints.NotNull;
21 import java.time.LocalDateTime;
22
23
24 public class Event {
25
26     private String eventId;
27     private LocalDateTime eventDate;
28
29     @NotNull
30     private String eventType;
31
32     @NotNull
33     private JsonNode event;
34
35     public String getEventId() {
36         return eventId;
37     }
38
39     public void setEventId(String eventId) {
40         this.eventId = eventId;
41     }
42
43     public LocalDateTime getEventDate() {
44         return eventDate;
45     }
46
47     public void setEventDate(LocalDateTime eventDate) {
48         this.eventDate = eventDate;
49     }
50
51     public String getEventType() {
52         return eventType;
53     }
54
55     public void setEventType(String eventType) {
56         this.eventType = eventType;
57     }
58
59     public JsonNode getEvent() {
60         return event;
61     }
62
63     public void setEvent(JsonNode event) {
64         this.event = event;
65     }
66 }