Change the header to SO
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / openecomp / mso / adapters / sdnc / impl / SDNCResponse.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.impl;
22
23
24 import java.io.Serializable;
25
26 public class SDNCResponse implements Serializable {
27
28         private static final long serialVersionUID = 1L;
29         private String reqId = null;
30         private int respCode = 0;
31         private String respMsg = null;
32         private String sdncRespXml = null;
33
34         public SDNCResponse(String reqId) {
35                 this.reqId = reqId;
36         }
37         public SDNCResponse(String reqId, int respCode, String respMsg) {
38                 this.reqId = reqId;
39                 this.respCode = respCode;
40                 this.respMsg = respMsg;
41         }
42
43         public String getReqId() {
44                 return reqId;
45         }
46         public void setReqId(String reqId) {
47                 this.reqId = reqId;
48         }
49         public int getRespCode() {
50                 return respCode;
51         }
52         public void setRespCode(int respCode) {
53                 this.respCode = respCode;
54         }
55         public String getRespMsg() {
56                 return respMsg;
57         }
58         public void setRespMsg(String respMsg) {
59                 this.respMsg = respMsg;
60         }
61         public String getSdncRespXml() {
62                 return sdncRespXml;
63         }
64         public void setSdncRespXml(String sdncRespXml) {
65                 this.sdncRespXml = sdncRespXml;
66         }
67
68         @Override
69         public String toString() {
70                 return "SDNCResponse [reqId=" + reqId + ", respCode=" + respCode
71                                 + ", respMsg=" + respMsg + ", sdncRespXml=" + sdncRespXml + "]";
72         }
73 }