Change the header to SO
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / openecomp / mso / adapters / sdnc / RequestHeader.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
21 package org.openecomp.mso.adapters.sdnc;
22
23
24 import javax.xml.bind.annotation.XmlAccessType;
25 import javax.xml.bind.annotation.XmlAccessorType;
26 import javax.xml.bind.annotation.XmlElement;
27 import javax.xml.bind.annotation.XmlRootElement;
28 import javax.xml.bind.annotation.XmlType;
29
30
31 /**
32  * <p>Java class for anonymous complex type.
33  *
34  * <p>The following schema fragment specifies the expected content contained within this class.
35  *
36  * <pre>
37  * &lt;complexType>
38  *   &lt;complexContent>
39  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
40  *       &lt;sequence>
41  *         &lt;element name="RequestId" type="{http://www.w3.org/2001/XMLSchema}string"/>
42  *         &lt;element name="SvcInstanceId" type="{http://www.w3.org/2001/XMLSchema}string"/>
43  *         &lt;element name="SvcAction" type="{http://www.w3.org/2001/XMLSchema}string"/>
44  *         &lt;element name="SvcOperation" type="{http://www.w3.org/2001/XMLSchema}string"/>
45  *         &lt;element name="CallbackUrl" type="{http://www.w3.org/2001/XMLSchema}string"/>
46  *       &lt;/sequence>
47  *     &lt;/restriction>
48  *   &lt;/complexContent>
49  * &lt;/complexType>
50  * </pre>
51  *
52  *
53  */
54 //BPEL to SDNCAdapter request header
55 @XmlAccessorType(XmlAccessType.FIELD)
56 @XmlType(name = "", propOrder = {
57     "requestId",
58     "svcInstanceId",
59     "svcAction",
60     "svcOperation",
61     "callbackUrl",
62     "msoAction"
63 })
64 @XmlRootElement(name = "RequestHeader")
65 public class RequestHeader {
66
67     @XmlElement(name = "RequestId", required = true)
68     protected String requestId;
69     @XmlElement(name = "SvcInstanceId")
70     protected String svcInstanceId;
71     @XmlElement(name = "SvcAction", required = true)
72     protected String svcAction;
73     @XmlElement(name = "SvcOperation", required = true)
74     protected String svcOperation;
75     @XmlElement(name = "CallbackUrl", required = true)
76     protected String callbackUrl;
77     @XmlElement(name = "MsoAction")
78     protected String msoAction;
79
80     /**
81      * Gets the value of the requestId property.
82      *
83      * @return
84      *     possible object is
85      *     {@link String }
86      *
87      */
88     public String getRequestId() {
89         return requestId;
90     }
91
92     /**
93      * Sets the value of the requestId property.
94      *
95      * @param value
96      *     allowed object is
97      *     {@link String }
98      *
99      */
100     public void setRequestId(String value) {
101         this.requestId = value;
102     }
103
104     public String getSvcInstanceId() {
105                 return svcInstanceId;
106         }
107
108         public void setSvcInstanceId(String svcInstanceId) {
109                 this.svcInstanceId = svcInstanceId;
110         }
111
112         /**
113      * Gets the value of the svcAction property.
114      *
115      * @return
116      *     possible object is
117      *     {@link String }
118      *
119      */
120     public String getSvcAction() {
121         return svcAction;
122     }
123
124     /**
125      * Sets the value of the svcAction property.
126      *
127      * @param value
128      *     allowed object is
129      *     {@link String }
130      *
131      */
132     public void setSvcAction(String value) {
133         this.svcAction = value;
134     }
135
136     /**
137      * Gets the value of the svcOperation property.
138      *
139      * @return
140      *     possible object is
141      *     {@link String }
142      *
143      */
144     public String getSvcOperation() {
145         return svcOperation;
146     }
147
148     /**
149      * Sets the value of the svcOperation property.
150      *
151      * @param value
152      *     allowed object is
153      *     {@link String }
154      *
155      */
156     public void setSvcOperation(String value) {
157         this.svcOperation = value;
158     }
159
160     /**
161      * Gets the value of the callbackUrl property.
162      *
163      * @return
164      *     possible object is
165      *     {@link String }
166      *
167      */
168     public String getCallbackUrl() {
169         return callbackUrl;
170     }
171
172     /**
173      * Sets the value of the callbackUrl property.
174      *
175      * @param value
176      *     allowed object is
177      *     {@link String }
178      *
179      */
180     public void setCallbackUrl(String value) {
181         this.callbackUrl = value;
182     }
183
184     /**
185      * Gets the value of the callbackUrl property.
186      *
187      * @return
188      *     possible object is
189      *     {@link String }
190      *
191      */
192     public String getMsoAction() {
193         return msoAction;
194     }
195
196     /**
197      * Sets the value of the callbackUrl property.
198      *
199      * @param value
200      *     allowed object is
201      *     {@link String }
202      *
203      */
204     public void setMsoAction(String value) {
205         this.msoAction = value;
206     }
207
208
209         @Override
210         public String toString() {
211                 return "RequestHeader [requestId=" + requestId +
212                                 ", svcInstanceId=" + svcInstanceId +
213                                 ", svcAction=" + svcAction +
214                                 ", svcOperation=" + svcOperation +
215                                 ", callbackUrl=" + callbackUrl +
216                                 ", msoAction=" + msoAction + "]";
217         }
218
219 }