Implement Enhancements to the Microservice
[dcaegen2/services/son-handler.git] / src / main / java / org / onap / dcaegen2 / services / sonhms / model / Notification.java
1 /*******************************************************************************
2  *  ============LICENSE_START=======================================================
3  *  son-handler
4  *  ================================================================================
5  *   Copyright (C) 2019 Wipro Limited.
6  *   ==============================================================================
7  *     Licensed under the Apache License, Version 2.0 (the "License");
8  *     you may not use this file except in compliance with the License.
9  *     You may obtain a copy of the License at
10  *  
11  *          http://www.apache.org/licenses/LICENSE-2.0
12  *  
13  *     Unless required by applicable law or agreed to in writing, software
14  *     distributed under the License is distributed on an "AS IS" BASIS,
15  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  *     See the License for the specific language governing permissions and
17  *     limitations under the License.
18  *     ============LICENSE_END=========================================================
19  *  
20  *******************************************************************************/
21
22 package org.onap.dcaegen2.services.sonhms.model;
23
24 import com.fasterxml.jackson.annotation.JsonProperty;
25
26 public class Notification {
27
28     @JsonProperty("requestID")
29     private String requestId;
30
31     @JsonProperty("AAI")
32     private Object aai;
33
34     @JsonProperty("from")
35     private String from;
36
37     @JsonProperty("version")
38     private String version;
39
40     @JsonProperty("Action")
41     private String action;
42
43     @JsonProperty("Payload")
44     private NotificationPayload payload;
45
46     public Notification() {
47
48     }
49
50     /**
51      * Parameterized Constructor.
52      */
53
54     public Notification(String requestId, Object aai, String from, String version, String action,
55             NotificationPayload payload) {
56         super();
57         this.requestId = requestId;
58         this.aai = aai;
59         this.from = from;
60         this.version = version;
61         this.action = action;
62         this.payload = payload;
63     }
64
65     public NotificationPayload getPayload() {
66         return payload;
67     }
68
69     public void setPayload(NotificationPayload payload) {
70         this.payload = payload;
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 getRequestId() {
82         return requestId;
83     }
84
85     public void setRequestId(String requestId) {
86         this.requestId = requestId;
87     }
88
89     public String getFrom() {
90         return from;
91     }
92
93     public void setFrom(String from) {
94         this.from = from;
95     }
96
97     public Object getAai() {
98         return aai;
99     }
100
101     public void setAai(Object aai) {
102         this.aai = aai;
103     }
104
105     public String getVersion() {
106         return version;
107     }
108
109     public void setVersion(String version) {
110         this.version = version;
111     }
112
113     @Override
114     public String toString() {
115         return "Notification [requestId=" + requestId + ", aai=" + aai + ", from=" + from + ", version=" + version
116                 + ", action=" + action + ", payload=" + payload + "]";
117     }
118     
119
120 }