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