Modify ANR Payload aligned to A1 schema in SDNR
[dcaegen2/services/son-handler.git] / src / main / java / org / onap / dcaegen2 / services / sonhms / model / Input.java
1 /*******************************************************************************
2  *  ============LICENSE_START=======================================================
3  *  son-handler
4  *  ================================================================================
5  *   Copyright (C) 2022 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 Input {
27
28     @JsonProperty(value = "near-rt-ric-url")
29     private String url;
30     
31     @JsonProperty("body")
32     private ANRPayload anrPayload;
33
34     public Input() {
35
36     }
37
38     /**
39      * Parameterized constructor.
40      */
41     public Input(String url, ANRPayload anrPayload) {
42         super();
43         this.url = url;
44         this.anrPayload = anrPayload;
45     }
46
47
48     public String getUrl() {
49         return url;
50     }
51
52   
53     public void setUrl(String url) {
54         this.url = url;
55     }
56
57     public ANRPayload getAnrPayload(){
58         return anrPayload;
59     }
60
61     public void setAnrPayload(ANRPayload anrPayload){
62         this.anrPayload = anrPayload;
63     }
64
65   @Override
66   public String toString() {
67       return "Input [url=" + url + ", anrPayload=" + anrPayload + "]";
68   }
69 }
70