AT&T 1712 and 1802 release code
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / adapters / sdncrest / RequestInformation.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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 package org.openecomp.mso.adapters.sdncrest;
21
22 import com.fasterxml.jackson.annotation.JsonProperty;
23
24 import javax.xml.bind.annotation.XmlElement;
25 import java.io.Serializable;
26
27 /**
28  * Request Information specified by the SDNC "agnostic" API.
29  */
30 public class RequestInformation implements Serializable {
31         private static final long serialVersionUID = 1L;
32
33         // Identifies the transaction MSO has with the calling system.
34         private String requestId;
35
36         // Identifies the calling system, e.g. CCD.
37         private String source;
38
39         // The calling system's endpoint for receiving notifications from MSO.
40         private String notificationUrl;
41
42         // NOTE: these are defined in the SDNC AID, but not used by MSO:
43         //     request-action
44         //     request-sub-action
45
46         // Identifies the request action
47         private String requestAction;
48
49         // Identifies the request sub action
50         private String requestSubAction;
51
52         public RequestInformation(String requestId, String source, String notificationUrl) {
53                 this.requestId = requestId;
54                 this.source = source;
55                 this.notificationUrl = notificationUrl;
56         }
57
58         public RequestInformation() {
59         }
60
61         @JsonProperty("requestId")
62         @XmlElement(name = "requestId")
63         public String getRequestId() {
64                 return requestId;
65         }
66
67         @JsonProperty("requestId")
68         public void setRequestId(String requestId) {
69                 this.requestId = requestId;
70         }
71
72         @JsonProperty("source")
73         @XmlElement(name = "source")
74         public String getSource() {
75                 return source;
76         }
77
78         @JsonProperty("source")
79         public void setSource(String source) {
80                 this.source = source;
81         }
82
83         @JsonProperty("notificationUrl")
84         @XmlElement(name = "notificationUrl")
85         public String getNotificationUrl() {
86                 return notificationUrl;
87         }
88
89         @JsonProperty("notificationUrl")
90         public void setNotificationUrl(String notificationUrl) {
91                 this.notificationUrl = notificationUrl;
92         }
93
94         @JsonProperty("requestAction")
95         @XmlElement(name = "requestAction")
96         public String getRequestAction() {
97                 return requestAction;
98         }
99
100         @JsonProperty("requestAction")
101         public void setRequestAction(String requestAction) {
102                 this.requestAction = requestAction;
103         }
104
105         @JsonProperty("requestSubAction")
106         @XmlElement(name = "requestSubAction")
107         public String getRequestSubAction() {
108                 return requestSubAction;
109         }
110
111         @JsonProperty("requestSubAction")
112         public void setRequestSubAction(String requestSubAction) {
113                 this.requestSubAction = requestSubAction;
114         }
115 }