Change the header to SO
[so.git] / mso-api-handlers / mso-api-handler-common / src / main / java / org / openecomp / mso / apihandler / camundabeans / CamundaResponse.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.apihandler.camundabeans;
22
23
24 import org.codehaus.jackson.annotate.JsonProperty;
25
26 /**
27  * JavaBean JSON class for a "variables" which contains the xml payload that
28  * will be passed to the Camunda process
29  * 
30  */
31
32 public class CamundaResponse {
33         
34         @JsonProperty("response")
35         private String response;
36         @JsonProperty("messageCode")
37         private int messageCode;
38         @JsonProperty("message")
39         private String message;
40         @JsonProperty("processInstanceID")
41         private String processInstanceID;
42         @JsonProperty("variables")
43         private String variables;
44
45         public String getProcessInstanceID() {
46                 return processInstanceID;
47         }
48
49         public void setProcessInstanceID(String processInstanceID) {
50                 this.processInstanceID = processInstanceID;
51         }
52
53         public String getVariables() {
54                 return variables;
55         }
56
57         public void setVariables(String variables) {
58                 this.variables = variables;
59         }
60
61         public CamundaResponse() {
62         }
63
64         public String getResponse() {
65                 return response;
66         }
67
68         public void setResponse(String response) {
69                 this.response = response;
70         }
71
72         public int getMessageCode() {
73                 return messageCode;
74         }
75
76         public void setMessageCode(int messageCode) {
77                 this.messageCode = messageCode;
78         }
79
80         public String getMessage() {
81                 return message;
82         }
83
84         public void setMessage(String message) {
85                 this.message = message;
86         }
87
88         @Override
89         public String toString() {
90                 return "CamundaResponse [response=" + response + ", messageCode="
91                                 + messageCode + ", message=" + message + "]";
92         }
93
94         
95         
96         
97 }